@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --ink: #ebebe9;
  --muted: #a5a5a1;
  --rule: #343431;
  --pad: clamp(18px, 3vw, 48px);
  --nav: 62px;
  --rail: clamp(150px, 14.2vw, 235px);
  --stage-height: 100svh;
  --title-tracking: -.049em;
  --silver: linear-gradient(100deg, #fff 12%, #c6c9d0 52%, #7d818c);
  font-family: "Inter Tight", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 450;
  letter-spacing: -.018em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; }
h1, h2, p, ul { margin: 0; }
h1, h2 { font-weight: 650; line-height: .9; letter-spacing: -.049em; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 12px; left: var(--pad); z-index: 11; transform: translateY(-160%); background: var(--bg); padding: 10px; }
.skip:focus { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 7;
  height: var(--nav);
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-size: .92rem;
}
.site-header nav, .contact-links, .project-links { display: flex; align-items: baseline; gap: clamp(16px, 2.8vw, 44px); }
.site-header a { text-decoration: none; }
.site-header a:hover, .contact-links a:hover { text-decoration: underline; }
.wordmark img { height: 30px; width: auto; }
.wordmark { display: flex; align-items: center; gap: 10px; width: max-content; font-size: 1.23rem; font-weight: 710; letter-spacing: -.055em; }
.studio-location { color: var(--muted); }
section[id], footer[id], .static-project { scroll-margin-top: var(--nav); }

.behind-title, .scene, .swarm { position: fixed; pointer-events: none; }
.scene, .swarm { inset: 0; width: 100%; height: var(--stage-height); }
.behind-title { z-index: 1; }
.scene { z-index: 2; }
.swarm { z-index: 5; }
.enhanced .static-story, .enhanced .wall-grid { display: none; }
.enhanced .story { height: var(--story-height); }
.stage {
  position: sticky;
  z-index: 3;
  top: 0;
  height: var(--stage-height);
  overflow: clip;
  pointer-events: none;
}
.project-rail {
  position: absolute;
  z-index: 6;
  inset: calc(var(--nav) + clamp(20px, 7vh, 85px)) auto 16px var(--pad);
  width: calc(var(--rail) - 21px);
  overflow: auto;
  scrollbar-width: thin;
  pointer-events: auto;
}
.project-rail li { border-top: 1px solid var(--rule); }
.project-rail li:last-child { border-bottom: 1px solid var(--rule); }
.project-rail a {
  display: flex;
  align-items: center;
  min-height: clamp(26px, 4.28vh, 42px);
  padding: 4px 7px 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .89rem;
  line-height: 1.05;
}
.project-rail a:hover, .project-rail a[aria-current] { color: var(--ink); }
.project-rail a[aria-current] { font-weight: 680; }
.project-rail :focus-visible { outline-offset: -2px; }
.project-menu { display: none; }
.opening, .active-project {
  position: absolute;
  inset: var(--nav) var(--pad) 0 calc(var(--pad) + var(--rail));
}
.opening {
  left: var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(26px, 5.4vh, 60px);
}
.opening p { max-width: 100%; background: var(--bg); font-size: clamp(1rem, 1.55vw, 1.42rem); position: relative; }
.hero-title { font-size: var(--fit, 14vw); }
.active-title, .behind-title, .passing-title, .hero-title, .contact-title {
  font-weight: 650;
  line-height: .94;
  letter-spacing: var(--title-tracking);
  white-space: nowrap;
}
.active-title, .behind-title, .passing-title {
  font-size: var(--fit, 12vw);
  width: max-content;
  top: 0;
  left: 0;
}
.active-title, .passing-title { position: absolute; }
.active-title { z-index: 4; }
.passing-title { z-index: 2; }
.enhanced .active-title { clip-path: inset(-18% -15% calc(var(--behind, 0%) - 1px) -15%); }
.behind-title { clip-path: inset(calc(100% - var(--behind, 0%)) -15% -20% -15%); }
.screen-zone {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.screen-link {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  font-size: .92rem;
  pointer-events: none;
}
.screen-link:not(:focus-visible) { outline: none; }
.project-details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
  border-top: 1px solid var(--rule);
  padding-top: 13px;
  font-size: clamp(1rem, 1.4vw, 1.26rem);
}
.project-details > p { max-width: 39ch; }
.active-project > .project-details {
  position: absolute;
  z-index: 4;
  inset: auto 0 clamp(22px, 6.5vh, 66px);
  min-height: 64px;
}
.project-links { flex: 0 0 auto; font-size: .94rem; }
.project-links span { color: var(--muted); }
.project-links a { pointer-events: auto; white-space: nowrap; }
.project-links a:hover, .index-row:hover span:last-child { text-decoration-thickness: 2px; }
.sliced { white-space: nowrap; }
/* Own layers, so moving a title does not redraw its letters. */
.opening, .active-title, .behind-title, .passing-title, .sliced .strip { will-change: transform; }
.hero-title, .contact-title { position: relative; }
.sliced .strip {
  position: absolute;
  inset: 0 -.07em -.25em 0;
  pointer-events: none;
  visibility: hidden;
  clip-path: inset(var(--cut-top) -35vw var(--cut-bottom) -35vw);
}
.sliced > span:first-child, .sliced .strip, .section-line h2, .project-index h2, .static-project h2, .static-intro h1,
.dialog-head h2, .index-row span:first-child, .loading span {
  color: transparent;
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
}
/* Room for the last letter and for tails, which the gradient would otherwise cut off. */
.sliced > span:first-child { padding-right: .07em; margin-right: -.07em; }
.section-line h2, .project-index h2, .static-project h2, .static-intro h1, .dialog-head h2 {
  width: fit-content;
  padding: 0 .07em .18em 0;
}
.index-row span:first-child { width: fit-content; padding-right: .07em; }
.sliced.is-built > span:first-child { background: none; -webkit-text-stroke: 1px #82827c; }
.sliced.is-built .strip { visibility: visible; }
.typed-caret {
  position: absolute;
  top: 12%;
  left: 0;
  height: 76%;
  width: 1px;
  pointer-events: none;
  background: var(--active-accent, var(--ink));
}
.body-grab, .body-grab canvas { cursor: grabbing !important; }
.body-pick { cursor: pointer; }
.body-move { cursor: grab; }
body.project-drag { user-select: none; }

.static-intro {
  min-height: min(77svh, 690px);
  padding: calc(var(--nav) + 45px) var(--pad) 35px;
  display: grid;
  align-content: center;
  gap: 22px;
}
.static-intro h1 { font-size: 18vw; }
.static-intro p { font-size: clamp(1rem, 2vw, 1.45rem); }
.static-project {
  padding: 60px var(--pad) 70px;
  max-width: 1200px;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}
.static-project h2 { font-size: clamp(2.65rem, 10vw, 9rem); }
.static-screens {
  margin: 22px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20%;
  align-items: end;
  gap: clamp(6px, 1.5vw, 20px);
}
.static-screens img { width: 100%; height: auto; border: 1px solid var(--muted); display: block; background: var(--accent); }
.wall, .project-index {
  padding: clamp(64px, 9vw, 126px) var(--pad);
  border-top: 1px solid var(--rule);
}
.wall { position: relative; }
.enhanced .wall { padding: 0; }
.enhanced .wall .section-line {
  position: absolute;
  inset: clamp(16px, 4vh, 42px) var(--pad) auto;
  z-index: 4;
  pointer-events: none;
}
.enhanced .wall-instruction { background: var(--bg); }
/* Fades the top of the wall so the title stays readable over light screens. */
.wall-zone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(rgb(10 10 10 / .88), rgb(10 10 10 / .62) 45%, transparent);
}
.enhanced .wall-instruction { padding: 6px 8px; }
.section-line {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: clamp(13px, 2vw, 26px);
}
.section-line h2, .project-index h2 { font-size: clamp(3.75rem, 10vw, 10rem); }
.wall-instruction { color: var(--muted); padding-bottom: 4px; white-space: nowrap; }
.wall-zone {
  position: relative;
  z-index: 3;
  height: 100svh;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wall-label {
  position: absolute;
  inset: auto var(--pad) 20px auto;
  min-width: max-content;
  pointer-events: none;
  padding: 7px 11px;
  font-size: .9rem;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 43vw), 1fr)); gap: 12px; }
.wall-grid a { display: block; border: 1px solid var(--rule); }
.wall-grid img { display: block; width: 100%; height: 115px; object-fit: contain; }
.project-index h2 { margin-bottom: clamp(26px, 5vw, 72px); }
.index-list { border-bottom: 1px solid var(--rule); }
.index-row {
  display: grid;
  grid-template-columns: 1fr minmax(90px, 16%) max-content;
  gap: 10px;
  align-items: baseline;
  padding: clamp(10px, 1.65vw, 24px) 0;
  border-top: 1px solid var(--rule);
  line-height: 1.12;
  text-decoration: none;
}
.index-row span:first-child { font-size: clamp(1.55rem, 4.15vw, 4.4rem); font-weight: 610; letter-spacing: -.048em; }
.index-row span:nth-child(2) { color: var(--muted); }
.index-row span:last-child { text-decoration: underline; }
.index-preview {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  width: clamp(210px, 25vw, 400px);
  aspect-ratio: 8 / 5;
  pointer-events: none;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--muted);
  box-shadow: 5px 5px 0 #0a0a0a;
}
.contact {
  position: relative;
  overflow-x: clip;
  min-height: min(88svh, 850px);
  padding: clamp(28px, 6vh, 90px) var(--pad) 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 6.5vh, 84px) clamp(30px, 7vw, 120px);
  align-items: start;
}
.contact h2 { grid-column: 1 / -1; }
.contact-logo {
  position: absolute;
  top: clamp(28px, 6vh, 90px);
  right: var(--pad);
  width: auto;
  height: min(27vh, 15vw);
}
.contact h2, .contact-links, .contact-form { position: relative; z-index: 6; }
.contact-title { display: inline-block; font-size: var(--fit, 14.3vw); text-decoration: none; }
.contact-links a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.contact-links {
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.contact-links a {
  width: 100%;
  border-top: 1px solid var(--rule);
  padding: 13px 0;
  font-size: clamp(1.1rem, 1.75vw, 1.6rem);
  text-decoration: none;
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.contact-form label { display: grid; gap: 4px; color: var(--muted); font-size: .92rem; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #686862;
  border-radius: 0;
  padding: 8px 0 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  resize: none;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.contact-form .trap { display: none; }
.form-foot { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.contact-form button {
  border: 0;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 610;
  cursor: pointer;
  transition: transform .16s ease-out, opacity .16s ease-out;
}
.contact-form button:active { transform: scale(.97); }
.contact-form button:disabled { opacity: .55; cursor: default; }
.form-status { flex: 1 1 200px; }
.loading {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: end;
  pointer-events: none;
  background: var(--bg);
  padding: var(--pad);
  font-size: clamp(6rem, 21vw, 18rem);
  font-weight: 630;
  line-height: .83;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  transition: transform .48s cubic-bezier(.73,.07,.22,1);
}
.booting .loading { display: flex !important; }
.loading.is-done { transform: translateY(-101%); }
dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--pad);
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 23px; }
.dialog-head h2 { font-size: clamp(2.55rem, 9vw, 5rem); }
.dialog-head button, .project-menu {
  border: 1px solid var(--rule);
  padding: 8px 11px;
  background-color: var(--bg);
}
dialog li { border-top: 1px solid var(--rule); }
dialog li:last-child { border-bottom: 1px solid var(--rule); }
dialog li a { display: block; font-size: 1.26rem; padding: 8px 2px; text-decoration: none; }
dialog a[aria-current] { text-decoration: underline; }

.dialog-sections { display: flex; gap: 20px; margin: 19px 0 10px; }

@media (max-width: 760px) {
  :root { --nav: 52px; --title-tracking: .004em; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header nav { gap: clamp(9px, 3vw, 16px); white-space: nowrap; }
  .site-header nav a, .project-menu { font-size: .85rem; }
  .studio-location, .project-rail, .header-wall, .has-project-picker .header-index { display: none; }
  .has-project-picker .project-menu { display: block; padding: 6px 8px; line-height: 1.05; }
  .opening { inset: var(--nav) var(--pad) 0; }
  .active-project { inset: calc(var(--nav) + 16px) var(--pad) 0; }
  .active-title, .passing-title, .hero-title, .contact-title, .static-project h2, .static-intro h1 {
    font-variant-ligatures: none;
  }
  .enhanced .active-title { clip-path: none; }
  .behind-title { display: none; }
  .active-project > .project-details {
    inset: auto 0 max(15px, env(safe-area-inset-bottom));
    min-height: 81px;
    padding-top: 9px;
  }
  .project-details { flex-direction: column; align-items: stretch; gap: 8px; }
  .project-links { justify-content: space-between; }
  .open-site { position: relative; }
  .open-site::after { content: ""; position: absolute; inset: -10px; }
  .index-row { grid-template-columns: minmax(0, 1fr) auto max-content; }
  .index-row span:first-child { overflow-wrap: anywhere; }
  .index-row span:nth-child(n + 2) { font-size: .79rem; }
  .index-preview { display: none; }
  .wordmark img { height: 25px; }
  .wordmark { gap: 7px; font-size: 1.1rem; }
  .contact-logo { position: static; height: 92px; margin-bottom: -12px; }
  .contact { min-height: 75svh; }
  .contact, .contact-form { grid-template-columns: minmax(0, 1fr); }
  .static-project h2, .static-intro h1 { letter-spacing: var(--title-tracking); }
}
@media (max-width: 370px) {
  .site-header nav { gap: 8px; }
  .site-header nav a, .project-menu { font-size: .79rem; }
  .index-row span:first-child { font-size: 1.4rem; }
}
@media (max-height: 525px) and (min-width: 761px) {
  .active-project > .project-details { bottom: 15px; }
  .project-rail { top: calc(var(--nav) + 14px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.story { touch-action: pan-y pinch-zoom; }
