:root {
  --bg: #05070a;
  --bg-soft: #090c11;
  --text: #f1f0eb;
  --muted: #aaa9a4;
  --accent: #8798ff;
  --accent-soft: #6472c4;
  --line: rgba(241, 240, 235, 0.22);
  --line-strong: rgba(241, 240, 235, 0.48);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --page: min(94vw, 1480px);
  --header-height: 86px;
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.site-header {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(18px);
  transition: height 220ms ease, background 220ms ease;
}

.site-header.is-compact {
  --header-height: 68px;
  background: rgba(5, 7, 10, 0.94);
}

.brand {
  color: var(--text);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
}

.site-nav a,
.text-link {
  position: relative;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.95fr);
  grid-template-rows: 1fr auto;
  gap: 36px clamp(48px, 6vw, 100px);
  min-height: calc(92svh - var(--header-height));
  padding-block: clamp(64px, 8vh, 112px) 28px;
}

.hero-copy {
  z-index: 2;
  align-self: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 4.6vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

em,
.serif {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}

.hero-copy > p {
  margin: clamp(36px, 5vh, 66px) 0 0;
  color: #c4c2bb;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.6vw, 1.85rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button svg,
.email-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--text);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  align-self: center;
  min-height: 560px;
  transition: transform 100ms linear;
}

.hero-art img {
  position: absolute;
  inset: 7% -8% auto -4%;
  width: 112%;
  height: 88%;
  object-fit: cover;
  object-position: 54% center;
  mix-blend-mode: screen;
  filter: contrast(1.03) saturate(0.78);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hero-frame {
  position: absolute;
  border: 1px solid var(--line-strong);
}

.frame-one {
  inset: 7% 16% 20% 1%;
}

.frame-two {
  inset: 13% 7% 13% 8%;
  border-color: rgba(135, 152, 255, 0.7);
}

.coordinate-mark {
  position: absolute;
  width: 74px;
  height: 74px;
}

.coordinate-mark::before,
.coordinate-mark::after {
  position: absolute;
  content: "";
  background: var(--line-strong);
}

.coordinate-mark::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.coordinate-mark::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.coordinate-a {
  right: 0;
  bottom: 16%;
}

.coordinate-b {
  top: 3%;
  left: 14%;
  width: 28px;
  height: 28px;
}

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.scroll-cue span {
  position: relative;
  width: 21px;
  height: 36px;
  border: 1px solid var(--text);
  border-radius: 12px;
}

.scroll-cue span::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50% { transform: translate(-50%, 13px); opacity: 1; }
}

.work {
  padding: clamp(32px, 3vw, 48px) 0 clamp(110px, 14vw, 200px);
}

.section-heading,
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(54px, 7vw, 92px);
}

.section-heading h2,
.section-label h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading .text-link {
  color: var(--accent);
}

.section-label {
  gap: 30px;
}

.section-label span {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.project {
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-media-first {
  grid-template-columns: minmax(520px, 1.28fr) minmax(350px, 0.72fr);
}

.project-info {
  display: grid;
  grid-template-columns: minmax(100px, 0.72fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
}

.project-info-reverse {
  grid-template-columns: minmax(220px, 1fr) minmax(100px, 0.72fr);
}

.project-number {
  color: var(--accent);
  font-size: clamp(6rem, 12vw, 13.5rem);
  font-weight: 200;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.project-info-reverse .project-number {
  text-align: right;
}

.project-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.project-copy > p:not(.project-tags) {
  max-width: 420px;
  margin: 0;
  color: #c5c4bf;
  font-size: clamp(0.96rem, 1.1vw, 1.14rem);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 28px;
  color: var(--accent);
  font-size: 0.9rem;
}

.project-tags i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.project-trigger {
  padding: 0 0 4px;
  color: var(--accent);
}

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  cursor: pointer;
}

.project-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.04);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease;
}

.project-media:hover img,
.project-media:focus-visible img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.025);
}

.media-corner {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-media:hover .media-corner,
.project-media:focus-visible .media-corner {
  opacity: 1;
  transform: none;
}

.about,
.notes {
  padding-block: clamp(100px, 12vw, 176px);
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(60px, 10vw, 170px);
  align-items: center;
}

.about-statement {
  margin: 0;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--accent-soft);
  font-size: clamp(2.5rem, 4.5vw, 5.6rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.about-body {
  max-width: 760px;
  margin: 42px 0;
  color: #cbc9c2;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.75;
}

.about-details {
  margin: 0;
}

.about-details div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-details dt {
  color: var(--accent);
}

.about-details dd {
  margin: 0;
}

.about-diagram {
  position: relative;
  aspect-ratio: 1;
}

.orbit,
.axis,
.diagram-square {
  position: absolute;
}

.orbit {
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.orbit-one {
  inset: 12% 7% 9% 13%;
}

.orbit-two {
  right: 2%;
  bottom: 6%;
  width: 48%;
  height: 48%;
}

.axis {
  background: var(--accent);
}

.axis-x {
  top: 54%;
  right: 0;
  left: 0;
  height: 1px;
}

.axis-y {
  top: 0;
  bottom: 0;
  left: 55%;
  width: 1px;
}

.diagram-square {
  top: 51.5%;
  left: 52.5%;
  width: 18px;
  height: 18px;
  border: 1px solid var(--text);
}

.notes {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(50px, 9vw, 150px);
}

.notes .section-label {
  align-self: start;
}

.notes .section-label span {
  display: none;
}

.note-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px 24px;
  width: 100%;
  padding: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: padding 240ms ease, border-color 240ms ease;
}

.note-row:last-child {
  border-bottom: 1px solid var(--line);
}

.note-row:hover,
.note-row:focus-visible {
  padding-right: 10px;
  padding-left: 10px;
  border-color: var(--accent);
}

.note-number,
.note-action,
.note-row time {
  color: var(--accent);
}

.note-title {
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.note-action {
  grid-column: 2;
  font-size: 0.92rem;
}

.note-action b {
  display: inline-block;
  margin-left: 12px;
  font-weight: 400;
  transition: transform 220ms ease;
}

.note-row:hover .note-action b,
.note-row:focus-visible .note-action b {
  transform: translateX(7px);
}

.note-row time {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.4fr) minmax(140px, 0.35fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(84px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5.8rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.contact-main > p {
  margin: 22px 0 36px;
  color: #c9c7c1;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 780px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: clamp(1.35rem, 2.8vw, 3rem);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.email-link svg {
  transition: transform 220ms ease;
}

.email-link:hover svg,
.email-link:focus-visible svg {
  transform: translateX(8px);
}

.contact-mark {
  position: relative;
  aspect-ratio: 1;
  border-right: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
}

.contact-mark span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  background: var(--bg);
}

.contact-mark span:nth-child(1) { top: -3px; right: -4px; }
.contact-mark span:nth-child(2) { top: 43%; left: 43%; }
.contact-mark span:nth-child(3) { right: -4px; bottom: -4px; }
.contact-mark span:nth-child(4) { bottom: -4px; left: -3px; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

.contact-links .text-link {
  color: var(--accent);
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.footer-mark {
  position: relative;
  width: 24px;
  height: 24px;
}

.footer-mark::before,
.footer-mark::after {
  position: absolute;
  content: "";
  background: var(--accent);
}

.footer-mark::before { top: 50%; left: 0; width: 100%; height: 1px; }
.footer-mark::after { top: 0; left: 50%; width: 1px; height: 100%; }

.project-dialog {
  width: min(92vw, 700px);
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  background: #090c11;
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65);
}

.project-dialog::backdrop {
  background: rgba(1, 2, 4, 0.82);
  backdrop-filter: blur(8px);
}

.project-dialog[open] {
  animation: dialog-in 260ms ease both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  place-items: center;
  cursor: pointer;
}

.dialog-close svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.dialog-index {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-dialog h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.project-dialog > p:not(.dialog-index) {
  max-width: 560px;
  color: #c7c5bf;
  font-size: 1.05rem;
}

.dialog-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-dialog .button {
  margin-top: 24px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 48px));
  padding: 15px 18px;
  border: 1px solid var(--accent-soft);
  background: var(--bg-soft);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(420px, 0.7fr) auto;
  }

  .hero-art {
    min-height: 460px;
  }

  .hero-meta {
    grid-column: 1;
  }

  .project,
  .project-media-first {
    grid-template-columns: 1fr;
  }

  .project-media-first .project-media {
    order: 2;
  }

  .project-info {
    grid-template-columns: 150px 1fr;
  }

  .project-info-reverse {
    grid-template-columns: 1fr 150px;
  }

  .project-number {
    font-size: 9rem;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .contact-links {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(90vw, 680px);
    --header-height: 68px;
  }

  .site-header {
    position: relative;
  }

  .brand {
    font-size: 1.5rem;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-copy > p br {
    display: none;
  }

  .hero-actions {
    gap: 28px;
  }

  .button {
    min-height: 52px;
    padding-inline: 18px;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-art img {
    inset: 4% -18% auto -18%;
    width: 136%;
    height: 92%;
  }

  .coordinate-a {
    display: none;
  }

  .hero-meta {
    grid-template-columns: 1fr auto;
  }

  .section-heading,
  .section-label {
    margin-bottom: 46px;
  }

  .section-heading h2,
  .section-label h2 {
    font-size: 2.5rem;
  }

  .section-heading .text-link {
    font-size: 0.82rem;
  }

  .project-info,
  .project-info-reverse {
    grid-template-columns: 88px 1fr;
  }

  .project-info-reverse .project-number {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .project-info-reverse .project-copy {
    grid-column: 2;
  }

  .project-number {
    font-size: 5.5rem;
  }

  .project-tags {
    margin-block: 18px 22px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-statement br {
    display: none;
  }

  .about-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .about-diagram {
    width: min(70vw, 320px);
    margin-inline: auto;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .notes .section-label span {
    display: block;
  }

  .note-row {
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
  }

  .note-title br {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-mark {
    width: min(48vw, 180px);
  }

  .contact-links {
    grid-column: 1;
  }
}

@media (max-width: 470px) {
  .site-nav {
    gap: 11px;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-meta > span {
    max-width: 190px;
  }

  .project-info,
  .project-info-reverse {
    grid-template-columns: 1fr;
  }

  .project-info-reverse .project-number,
  .project-info-reverse .project-copy {
    grid-column: 1;
  }

  .project-number {
    font-size: 4rem;
  }

  .note-row {
    grid-template-columns: 32px 1fr;
  }

  .note-row time {
    grid-column: 2;
    grid-row: 3;
  }

  .note-action {
    grid-column: 2;
  }

  .email-link {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
