@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--gutter);
}
.top img { height: 22px; width: auto; }
.top .mail { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.top .mail:hover { text-decoration: underline; text-underline-offset: 4px; }

.mono { font-family: var(--mono); }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* flow sketch shared by all variants: the first chapter after the hero */
.chapter { padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(96px, 12vw, 160px); }
.chapter-head { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1400px; margin: 0 auto 48px; }
.chapter-head h2 { margin: 0; font-weight: 600; font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -0.035em; }
.film { max-width: 1400px; margin: 0 auto; display: grid; gap: 20px; }
.film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.film-meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; }
.film-meta h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 550; letter-spacing: -0.015em; }
.film-meta p { margin: 0; grid-column: 1 / -1; font-size: 15px; line-height: 1.5; max-width: 60ch; opacity: .72; }


:root {
  --page: #f3f4f6;
  --ink: #111111;
  --muted: #5d6068;
  /* periwinkle, picked by Andrew */
  --accent: #6f8cff; --accent-2: #b3c4ff; --accent-ink: #3953d6; --accent-deep: #5470e6; --accent-fg: #0d1640;
  --top: #ffffff;
  --south: #dfe2e8;
  --west: #c9cdd6;
  --street: #e6e8ec;
  --edge: rgba(17, 17, 17, .55);
  --line: #d6d9df;
  --error: #b8321f;
  --c: min(46px, calc((100vw - 2 * var(--gutter)) / 27));
}
:root { --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2)); }
body { background: var(--page); color: var(--ink); }

.hero {
  min-height: 100dvh; display: grid; grid-template-rows: auto minmax(calc(var(--c) * 10), 1fr);
  gap: 8px; padding: 112px 0 72px; overflow: hidden;
}
.intro { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; position: relative; z-index: 2; }
.intro h1 { margin: 0; font-weight: 600; font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.035em; }
.intro p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 36ch; }

/* the city runs edge to edge; the view fades it out at every side */
.stage { position: relative; }
.view {
  position: absolute; inset: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
  mask-composite: intersect;
}
.cam { position: absolute; inset: 0; transition: transform 1100ms var(--ease-in-out); }
.city {
  position: absolute; width: calc(var(--c) * var(--n)); height: calc(var(--c) * var(--n));
  left: calc(50% - var(--c) * var(--ox)); top: calc(60% - var(--c) * var(--oy));
  transform-origin: calc(var(--c) * var(--ox)) calc(var(--c) * var(--oy));
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-45deg);
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(17,17,17,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,.05) 1px, transparent 1px);
  background-size: var(--c) var(--c);
}
.street { position: absolute; background-color: var(--street); background-repeat: repeat-y; background-position: center; }
.street.ns { top: 0; width: var(--c); height: 100%; background-image: linear-gradient(to bottom, #ffffff 50%, transparent 50%); background-size: 2px calc(var(--c) * .5); }
.street.ew { left: 0; height: var(--c); width: 100%; background-image: linear-gradient(to right, #ffffff 50%, transparent 50%); background-size: calc(var(--c) * .5) 2px; background-repeat: repeat-x; }

.district { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; transition: transform 300ms var(--ease-out); text-decoration: none; }
.district.on { transform: translateZ(10px); }

.b {
  position: absolute; transform-style: preserve-3d; pointer-events: none;
  left: calc(var(--c) * var(--x)); top: calc(var(--c) * var(--y));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--d));
  --hh: calc(var(--c) * var(--h));
  transform-origin: 50% 50% 0;
  transform: translateZ(calc(var(--c) * var(--z, 0))) scaleZ(var(--k, 1));
  transition: transform 700ms var(--ease-in-out);
  animation: rise 900ms var(--ease-out) backwards;
  animation-delay: var(--delay, 200ms);
}
.district .b { pointer-events: auto; cursor: pointer; }
@keyframes rise { from { transform: translateZ(calc(var(--c) * var(--z, 0))) scaleZ(.01); } }
.b > i { position: absolute; display: block; box-shadow: inset 0 0 0 1px rgba(17,17,17,.55); }
.b .t { inset: 0; background: var(--top); transform: translateZ(var(--hh)); transition: background-color 300ms var(--ease-out); }
.b .s { left: 0; bottom: 0; width: 100%; height: var(--hh); background: var(--south); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.b .w { left: 0; top: 0; width: var(--hh); height: 100%; background: var(--west); transform-origin: 0 50%; transform: rotateY(-90deg); }
/* the gradient sits on its own layer so only its opacity animates */
.district .b .t::before { content: ""; position: absolute; inset: 0; background: var(--accent-grad); box-shadow: inset 0 0 0 1px rgba(17,17,17,.55); opacity: 0; transition: opacity 300ms var(--ease-out); }
.district.on .b:not(.park):not(.tree):not(.plaza):not(.path):not(.zebra):not(.bench):not(.plinth):not(.px):not(.lane):not(.step):not(.tk):not(.mpost) .t::before { opacity: 1; }
/* vibe coding: a cube's top glows more the taller it stands, and the tallest ones get a halo */
.district .b.px .t::before { opacity: clamp(0, calc((var(--k, 1) - .55) * 1.25), 1); transition: opacity 700ms var(--ease-in-out); }
.district.on .b.px .t::before { opacity: clamp(.4, calc((var(--k, 1) - .3) * 1.25), 1); }
.b.px .t::after { content: ""; position: absolute; inset: 0; box-shadow: 0 0 calc(var(--c) * .35) calc(var(--c) * .05) var(--accent); opacity: clamp(0, calc((var(--k, 1) - 1.15) * 3), 1); transition: opacity 700ms var(--ease-in-out); }

/* the rest of town is quieter so the five districts read first */
.f > i { box-shadow: inset 0 0 0 1px rgba(17,17,17,.24); }
.f .s { background: #e7e9ee; }
.f .w { background: #d6d9e0; }

.park .t { background: #b9d8c2; }
.tree .t { background: #9cc5a9; }
.tree .s { background: #8db69a; }
.tree .w { background: #7fa98c; }
.f.park .t { background: #d3e6d8; }
.f.tree .t { background: #b7d6c0; }
.f.tree .s { background: #a9cbb3; }
.f.tree .w { background: #9cc0a6; }
.plaza .t { background: #f7f8fa; }
/* urban planning: a zebra crossing, a park path with benches, street lamps and a bus shelter */
.path .t { background: #eef1ec; }
.zebra > i { box-shadow: none; }
.zebra .t { background: #ffffff; }
.lamp > i { box-shadow: none; }
.lamp .s, .lamp .w, .lamp .t { background: #6b6e76; }
.bench .t { background: #c9b79c; }
.bench .s { background: #b3a185; }
.bench .w { background: #a08f74; }
.shelter .t, .shelter .s, .shelter .w { background: #dfe6ff; }
/* cinema: a framed screen facing rows of seats, lit by a projector beam when the district is on */
.screen .s { background: #fbfbfd; box-shadow: inset 0 0 0 1px rgba(17,17,17,.55), inset 0 0 0 calc(var(--c) * .12) #1b1c20; }
.screen .s::before { content: ""; position: absolute; inset: calc(var(--c) * .12); background: linear-gradient(to top, var(--accent-2), #ffffff 80%); opacity: 0; transition: opacity 400ms var(--ease-out); }
.district.on .screen .s::before { opacity: 1; }
.booth .s::after { content: ""; position: absolute; left: 50%; top: 28%; width: calc(var(--c) * .16); height: calc(var(--c) * .16); margin-left: calc(var(--c) * -.08); border-radius: 50%; background: #1b1c20; }
.beam {
  position: absolute; pointer-events: none;
  left: calc(var(--c) * var(--x)); top: calc(var(--c) * var(--y));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--d));
  transform-origin: 50% 100%; transform: translateZ(calc(var(--c) * var(--z))) rotateX(calc(var(--tilt) * -1deg));
  clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%);
  background: linear-gradient(to top, var(--accent), transparent);
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.district.on .beam { opacity: .55; }
/* about: the logo as three solid slabs floating over a plinth; they fan apart when the district is on */
.plinth .t { background: #f7f8fa; }
.mono {
  position: absolute; transform-style: preserve-3d; pointer-events: none;
  left: calc(var(--c) * var(--x)); top: calc(var(--c) * (var(--y) - var(--mh)));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--mh));
  --dd: calc(var(--c) * var(--dep));
  transform-origin: 50% 100%; transform: translateZ(calc(var(--c) * var(--z))) rotateZ(28deg) rotateX(-64deg) rotateZ(13deg);
}
.mono .bob { position: absolute; inset: 0; transform-style: preserve-3d; animation: bob 4.8s var(--ease-in-out) infinite alternate; }
@keyframes bob { from { transform: translateY(calc(var(--c) * .07)); } to { transform: translateY(calc(var(--c) * -.07)); } }
.slab {
  position: absolute; inset: 0; transform-style: preserve-3d;
  --sz: var(--rz);
  transform: translate3d(0, calc(var(--c) * var(--sy, 0)), calc(var(--c) * var(--sz)));
  transition: transform 800ms var(--ease-out);
  animation: slab-in 1100ms var(--ease-out) backwards; animation-delay: var(--delay);
}
@keyframes slab-in { from { transform: translate3d(0, calc(var(--c) * -2.4), calc(var(--c) * var(--rz))); } }
.district.on .slab { --sy: var(--fy); --sz: var(--fz); }
.slab > i { position: absolute; display: block; pointer-events: auto; cursor: pointer; }
/* the face itself is the outline; its fill is cut 1px inside, like the inset outline on every block */
.slab .fr { inset: 0; background: #7a7c80; transform: translateZ(var(--dd)); }
.slab .fr::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--top); clip-path: var(--ip); }
.slab .fr::before { clip-path: var(--ip); }
/* a backing face so seams where Chrome splits the front show the face, not the street */
.slab .fr.bk { transform: translateZ(calc(var(--dd) * .5)); }
.slab .ed { left: calc(var(--c) * var(--ex)); top: calc(var(--c) * var(--ey)); width: calc(var(--c) * var(--el)); height: var(--dd); transform-origin: 0 0; transform: rotateZ(var(--ea)) rotateX(90deg); box-shadow: inset 0 0 0 1px rgba(17,17,17,.55); }
.slab .up { background: var(--south); }
.slab .wst { background: var(--west); }
.slab > i::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 400ms var(--ease-out); }
.slab .fr::before { background: var(--accent-grad); }
.slab .up::before { background: var(--accent-2); }
.slab .wst::before { background: var(--accent-deep); }
.district.on .slab > i::before { opacity: 1; }
.shade {
  position: absolute; pointer-events: none; border-radius: 50%;
  left: calc(var(--c) * var(--x)); top: calc(var(--c) * var(--y));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--d));
  background: radial-gradient(closest-side, rgba(17,20,28,.22), rgba(17,20,28,0));
  transform: translateZ(calc(var(--c) * var(--z)));
  animation: shade 4.8s var(--ease-in-out) infinite alternate;
}
@keyframes shade { to { transform: translateZ(calc(var(--c) * var(--z))) scale(.8); } }
/* say hello: a post office with a sorting wing and a mail van at its dock, a letterbox out front; accents come in on the sign, the roll-up door, the van stripe and the flag */
.lane .t { background: #eceef2; }
.step .t { background: #f3f4f6; }
.po .s > span, .wing .s > span, .tk .s > span { position: absolute; box-shadow: inset 0 0 0 1px rgba(17,17,17,.3); }
.po .s .dr { left: 35%; width: 30%; top: 26%; bottom: 0; background: #c3c6cd; }
.po .s .sg { left: 39%; width: 22%; top: 18%; height: 56%; background: #ffffff; }
.po .s .sg::before, .po .s .sg::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 55%); background: #c9ccd3; }
.po .s .sg::after, .wing .s .ru::after, .tk.box .w::after { background: var(--accent-2); opacity: 0; transition: opacity 300ms var(--ease-out); }
.wing .s .ru { left: 14%; right: 14%; top: 24%; bottom: 0; background: repeating-linear-gradient(to bottom, #e3e6ec 0 5px, #c9cdd5 5px 6px); }
.wing .s .ru::after { content: ""; position: absolute; inset: 0; }
.tk.cab .s .ws { left: 10%; right: 10%; top: 12%; height: 42%; background: #6b6e76; }
/* the van stripe runs along its west side; on that face, left is the ground and right the roof */
.tk.box .w::before, .tk.box .w::after { content: ""; position: absolute; left: 30%; width: 16%; top: 0; bottom: 0; }
.tk.box .w::before { background: #b4b8c1; }
.wh > i { box-shadow: none; }
.wh .t, .wh .s, .wh .w, .mpost .t, .mpost .s, .mpost .w { background: #2e3035; }
.flag .t, .flag .s, .flag .w { background: #b4b8c1; }
.flag .s::after, .flag .w::after { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; transition: opacity 300ms var(--ease-out); }
.district.on .po .s .sg::after, .district.on .wing .s .ru::after, .district.on .tk.box .w::after, .district.on .flag .s::after, .district.on .flag .w::after { opacity: 1; }
.flag { transform-origin: 50% calc(var(--c) * var(--oy, 0)) calc(var(--c) * var(--oz, 0)); transform: translateZ(calc(var(--c) * var(--z, 0))) scaleZ(var(--k, 1)) rotateX(90deg); }
.district.on .flag { transform: translateZ(calc(var(--c) * var(--z, 0))) scaleZ(var(--k, 1)) rotateX(0deg); }
.wing .s .dk { left: 14%; right: 14%; top: 24%; bottom: 0; background: #2e3035; }
.wing .s .ru { transform-origin: 50% 0; transition: transform 600ms var(--ease-in-out) 450ms; }
.district.on .wing .s .ru { transform: scaleY(.12); transition-delay: 100ms; }
.district.on .tk { transform: translateZ(calc(var(--c) * var(--z, 0))) scaleZ(var(--k, 1)) translateY(calc(var(--c) * .55)); transition-delay: 450ms; }

.car { position: absolute; transform-style: preserve-3d; pointer-events: none; animation: drive var(--dur) linear infinite var(--dir) var(--off); }
.car .b { animation: none; }
.car .b .t { background: var(--ink); }
.car .b .s { background: #2a2a2a; }
.car .b .w { background: #000; }
.car.ns { top: 0; --to: translateY(calc(var(--c) * var(--n))); }
.car.ew { left: 0; --to: translateX(calc(var(--c) * var(--n))); }
@keyframes drive { from { transform: none; } to { transform: var(--to); } }

/* the main nav: flat pins standing on each district */
.pins { position: absolute; inset: 0; pointer-events: none; }
.pins ul { list-style: none; margin: 0; padding: 0; }
.pin {
  position: absolute; left: var(--px); top: var(--py); transform: translate(-50%, calc(-100% - 22px));
  pointer-events: auto; text-decoration: none; white-space: nowrap;
  display: flex; gap: 8px; align-items: baseline;
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(17,17,17,.12), 0 8px 20px -10px rgba(17,20,28,.35);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  opacity: 0; animation: pin-in 500ms var(--ease-out) forwards; animation-delay: var(--pd);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: rgba(17,17,17,.35); }
.pin.on { background: var(--accent-grad); color: var(--accent-fg); }
.pin.on::after { background: var(--accent); }
.pin:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
@keyframes pin-in { from { opacity: 0; transform: translate(-50%, calc(-100% - 10px)); } to { opacity: 1; } }

.menu { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid #d6d9df; }
.menu a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid #d6d9df; text-decoration: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.menu .go { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transform: translateX(-6px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.menu a.on .go { opacity: 1; transform: none; }

/* sections sit on the same light page as the city, so the hero has no bottom edge */
.chapter { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.chapter + .chapter .chapter-head { border-top: 1px solid #d6d9df; padding-top: clamp(48px, 6vw, 80px); }
.soon { margin: 16px 0 0; font-size: 18px; color: var(--muted); }
/* step 2: the line between the city and the work; the first sentence leads, the second is quieter */
.statement { padding: clamp(24px, 4vw, 56px) var(--gutter) 0; }
.statement p { max-width: 1400px; margin: 0 auto; font-weight: 500; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -0.025em; text-wrap: pretty; }
.statement p span:not(.w) { color: var(--muted); }
/* the script wraps each word in .w; they rise into place one after another when the line scrolls into view */
.statement .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.statement.in .w { opacity: 1; transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:has(.letter[open]) { overflow: hidden; }
/* step 3a v2: video editing; each film is a still frame and a quiet text column, the line under it marks the film's real cuts */
.film { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); }
.film.in { opacity: 1; transform: none; }
.film + .film { margin-top: clamp(96px, 12vw, 176px); }
.film-media { grid-column: 1 / 9; grid-row: 1; }
.film-text { grid-column: 10 / 13; grid-row: 1; align-self: end; padding-bottom: 52px; }
.film.alt .film-media { grid-column: 6 / 13; }
.film.alt .film-text { grid-column: 1 / 5; align-self: start; padding-bottom: 0; }
.film-text h3 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.film-text h3 + p { margin: 16px 0 0; max-width: 44ch; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }
.viewer { position: relative; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--edge); }
.viewer video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; transition: transform 900ms var(--ease-out); }
.play { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--edge); background: var(--top); color: var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out), opacity 300ms var(--ease-out); }
.play::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; transition: opacity 200ms var(--ease-out); }
.play svg { position: relative; width: 16px; height: 16px; }
.play .pz, .film.on .play .pl { display: none; }
.film.on .play .pz { display: block; }
.film.on .play { opacity: 0; }
.play:active { transform: scale(.97); }
.play:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; opacity: 1; }
/* the timeline: a hairline, one tick per cut (--t seconds of --len), an ink fill and a playhead that both move by transform */
.scrub { --p: 0; position: relative; container-type: inline-size; height: 32px; margin-top: 8px; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--west); }
.scrub i { position: absolute; top: calc(50% - 6px); left: calc(var(--t) / var(--len) * 100%); width: 1px; height: 12px; background: var(--muted); }
.scrub .fill { position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.playhead { position: absolute; top: calc(50% - 8px); left: -1px; width: 2px; height: 16px; background: var(--ink); transform: translateX(calc(var(--p) * 100cqw)); pointer-events: none; }
.scrub input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scrub:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.tc { display: flex; justify-content: space-between; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .viewer:hover video { transform: scale(1.015); }
  .play:hover::before, .viewer:hover .play::before { opacity: 1; }
  .film.on .viewer:hover .play { opacity: 1; }
  .scrub:hover .fill, .scrub:hover .playhead { background: var(--accent-ink); }
}
@media (max-width: 1200px) {
  .film-media { grid-column: 1 / 8; }
  .film-text { grid-column: 8 / 13; }
  .film.alt .film-media { grid-column: 6 / 13; }
  .film.alt .film-text { grid-column: 1 / 6; }
}
@media (max-width: 900px) {
  .film-media, .film.alt .film-media { grid-column: 1 / -1; grid-row: 1; }
  .film-text, .film.alt .film-text { grid-column: 1 / -1; grid-row: 2; margin-top: 24px; padding-bottom: 0; }
  .play { left: 12px; bottom: 12px; width: 48px; height: 48px; }
}

/* step 3c: vibe coding; one large panel per app, the name runs off the panel's bottom edge, the screens sit over it */
.reel { max-width: 1400px; margin: 0 auto; }
.app { position: relative; height: min(820px, calc(100dvh - 96px)); min-height: 560px; overflow: hidden; background: var(--top); box-shadow: 0 0 0 1px var(--edge); }
.app-text { position: absolute; left: clamp(24px, 3vw, 48px); top: clamp(24px, 3vw, 48px); z-index: 2; max-width: 34ch; }
.app-plat { margin: 0; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.app-plat + p { margin: 16px 0 0; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.app-name { position: absolute; left: clamp(12px, 1.6vw, 24px); bottom: 0; margin: 0; font-weight: 600; font-size: clamp(160px, 27vw, 380px); line-height: .74; letter-spacing: -0.06em; transform: translateY(.12em); }
.app-shots { position: absolute; right: clamp(24px, 3vw, 48px); top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.app-shots li { transform: translateY(var(--y)); transition: transform 500ms var(--ease-out); }
.app-shots img { display: block; width: clamp(120px, 12vw, 172px); height: auto; aspect-ratio: 640 / 1300; box-shadow: 0 0 0 1px var(--edge); transition: box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .app-shots li:hover { transform: translateY(calc(var(--y) - 12px)); }
  .app-shots li:hover img { box-shadow: 0 0 0 2px var(--accent); }
}
.app-shots button { display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-shots button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.app-more { margin: 20px 0 0; padding: 12px 0; border: 0; background: none; color: var(--ink); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 6px; cursor: pointer; transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.app-more:active { transform: scale(.97); }
.app-more:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .app-more:hover { color: var(--accent-ink); text-decoration-color: var(--accent); } }
.app + .app { margin-top: clamp(24px, 3vw, 48px); }
/* .wide: an app with landscape screens; two columns, the second set lower */
.app.wide .app-shots { display: grid; grid-template-columns: repeat(2, auto); align-content: center; }
.app.wide .app-shots img { width: clamp(220px, 22vw, 320px); aspect-ratio: 1920 / 1078; object-fit: cover; object-position: left top; }
/* narrow screens: text on top, the screens become a row you swipe, the name still sits under them */
@media (max-width: 900px) {
  .app { height: auto; min-height: 0; padding-bottom: 112px; }
  .app-text { position: relative; left: auto; top: auto; padding: 24px 24px 0; }
  .app-shots, .app.wide .app-shots { position: relative; inset: auto; display: flex; overflow-x: auto; padding: 80px 24px 88px; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
  .app-shots li { flex: none; scroll-snap-align: start; }
  .app.wide .app-shots img { width: 260px; }
}

/* the app page: the panel opened up; the story on the left, one screen at a time on the right over the cropped name */
html:has(.store[open]) { overflow: hidden; }
.store { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px var(--gutter); border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.store[open] { display: grid; place-items: center; }
.store::backdrop { background: rgba(243, 244, 246, .88); }
.store-card { position: relative; display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; width: min(1400px, 100%); height: min(900px, 100%); background: var(--top); box-shadow: 0 0 0 1px var(--edge); overflow: hidden; }
.store-card:focus { outline: none; }
.store-card > .shut { position: absolute; top: 12px; right: 12px; z-index: 3; }
.store-text { grid-area: 1 / 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 48px); border-right: 1px solid var(--line); }
.store-lede { margin: 16px 0 0; max-width: 40ch; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.store-feats { margin: 32px 0 0; }
.store-feats div { padding: 16px 0; border-top: 1px solid var(--line); }
.store-feats dt { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.store-feats dd { margin: 4px 0 0; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.store-req { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.store-stage { grid-area: 1 / 2; position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
.store-name { position: absolute; left: clamp(12px, 1.6vw, 24px); bottom: 0; margin: 0; font-weight: 600; font-size: clamp(120px, 21vw, 300px); line-height: .74; letter-spacing: -0.06em; white-space: nowrap; transform: translateY(.12em); }
.store-top { position: absolute; left: clamp(24px, 3vw, 48px); right: 72px; top: clamp(24px, 3vw, 48px); z-index: 2; display: flex; gap: 16px; align-items: baseline; margin: 0; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); }
.store-count { flex: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.store-shots { position: absolute; inset: 72px 72px 40px; z-index: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.store-shots li { grid-area: 1 / 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; opacity: 0; transform: translateX(32px); transition: opacity 240ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
.store-shots li.l { transform: translateX(-32px); }
.store-shots li.on { opacity: 1; transform: none; pointer-events: auto; }
.store-shots img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 0 1px var(--edge); }
.store-step { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 160ms var(--ease-out); }
.store-step.prev { left: 12px; }
.store-step.next { right: 12px; }
.store-step svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.store-step:active { transform: scale(.94); }
.store-step:disabled { opacity: .25; cursor: default; transform: none; }
.store-step:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .store-step:not(:disabled):hover { color: var(--accent-ink); } }
.store[open] .store-card { animation: letter-rise 480ms var(--ease-out) both; }
.store[open]::backdrop { animation: letter-fade 320ms var(--ease-out); }
.store.closing::backdrop { animation: letter-fade-out 180ms cubic-bezier(.4, 0, 1, 1) forwards; }
.store.closing .store-card { animation: letter-sink 180ms cubic-bezier(.4, 0, 1, 1) forwards; }
/* privacy: the same sheet as the app pages, one narrow column that scrolls as a whole */
.top-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); }
.top .priv { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-underline-offset: 4px; }
.top .priv:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .top .priv:hover { text-decoration: underline; } }
.store.privacy .store-card { display: flex; flex-direction: column; width: min(760px, 100%); height: auto; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.store.privacy .store-card > .shut { position: sticky; top: 0; order: -1; align-self: flex-end; flex: none; margin: 0 0 -44px; background: var(--top); }
.store.privacy .store-text { flex: none; overflow: visible; border-right: 0; }
.privacy-title { margin: 0; font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.privacy .store-lede { margin-top: 20px; }
.privacy .store-feats dd { max-width: 58ch; }
.privacy .store-feats a { color: var(--ink); text-decoration-color: var(--edge); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .store { padding: 12px; }
  .store-card { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .store-stage { flex: none; height: min(64dvh, 620px); border-bottom: 1px solid var(--line); }
  .store-text { overflow: visible; border-right: 0; }
  .store-shots { inset: 64px 56px 32px; }
  .store-step.prev { left: 4px; }
  .store-step.next { right: 4px; }
  /* the card scrolls here, so the close button sticks to its top corner instead of scrolling away */
  .store-card > .shut { position: sticky; top: 0; order: -1; align-self: flex-end; flex: none; margin: 0 0 -44px; background: var(--top); }
  .store.wide .store-stage { height: min(48dvh, 420px); }
  .store.wide .store-shots { inset: 64px 48px 40px; }
}

/* step 3d v3: about me, approved round 7; the cut pairs the internship with the role it became, the shelf holds the rest */
#about-me { --body: #2a2c31; --cg: clamp(16px, 2vw, 32px); --s1: 8px; --s2: 12px; --s3: 24px; --s4: 48px; --s5: clamp(64px, 8vw, 112px); }
#about-me .wrap { max-width: 1400px; margin: 0 auto; }
#about-me .a1-head { margin-bottom: 0; }
#about-me h3 { margin: 0; font-size: 19px; line-height: 1.22; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
#about-me p { margin: 0; }
#about-me .lead { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -0.018em; font-weight: 450; max-width: 36ch; text-wrap: pretty; }
#about-me .txt { font-size: 16px; line-height: 1.55; color: var(--body); max-width: 62ch; text-wrap: pretty; }
#about-me .meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); min-height: 21px; margin: var(--s1) 0 var(--s2); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
#about-me .tag { color: var(--ink); border: 1px solid currentColor; padding: 4px 6px 3px; font-size: 11px; }
#about-me .loc dt { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
#about-me .loc dd { margin: 0; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 500; letter-spacing: -0.012em; }
#about-me .loc { margin: 0; }

#about-me .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 600ms var(--ease-out) calc(var(--i, 0) * 90ms); }
#about-me .in .reveal, #about-me .reveal.in { opacity: 1; transform: none; }

/* heading rises out of its own line box */
#about-me .a1-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s4); }
#about-me .a1-head h2 { margin: 0; font-weight: 600; font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -0.035em; overflow: clip; padding-bottom: .06em; }
#about-me .a1-head h2 span { display: inline-block; transform: translateY(110%); transition: transform 900ms var(--ease-out); }
#about-me .a1-head.in h2 span { transform: none; }
#about-me .a1-head .loc { padding-bottom: 4px; }

/* the cut: one block split along the logo's diagonal; the halves close when the pair arrives */
#about-me .cut { position: relative; height: 200px; }
#about-me .cut-half { position: absolute; inset: 0; background: var(--ink); transition: transform 1300ms var(--ease-out) 150ms; }
#about-me .cut-top { clip-path: polygon(0 0, 100% 0, 100% 41%, 0 59%); transform: translateY(-3px); }
#about-me .cut-bot { clip-path: polygon(0 59%, 100% 41%, 100% 100%, 0 100%); transform: translateY(3px); }
#about-me [data-in]:not(.in) .cut-top { transform: translateY(-56px); }
#about-me [data-in]:not(.in) .cut-bot { transform: translateY(56px); }
#about-me .cut-half span { position: absolute; left: 20px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
#about-me .cut-top span { top: 20px; }
#about-me .cut-bot span { bottom: 20px; }
#about-me .bridge { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 44ch; }
#about-me .bridge::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--ink); }

#about-me .a1-pair { display: grid; gap: var(--s3); margin-top: var(--s5); }
#about-me .a1-shelf { display: grid; gap: var(--s5); margin-top: var(--s5); }

/* each shelf item plays once when it arrives (.lit), and again on hover with a fine pointer */
#about-me .a1-stand { position: relative; min-height: 112px; display: flex; align-items: flex-end; margin-bottom: var(--s3); }
#about-me .a1-stand::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out); }
#about-me .lit .a1-stand::after { transform: none; }
#about-me .reset, #about-me .reset *, #about-me .reset *::before, #about-me .reset *::after, #about-me .reset .a1-stand::after { transition: none !important; }

/* objects, drawn in the cut's own language: ink, sharp corners, straight lines */
#about-me .ob { position: relative; flex: none; }

/* freelance: one cut square onion skinned across five frames; the frames spread out like an ease out */
#about-me .ob-trail { width: 232px; height: 112px; }
#about-me .ob-trail i { position: absolute; left: 0; bottom: 0; width: 112px; height: 112px; opacity: 0; transform: none; transition: transform 1100ms var(--ease-out) 250ms, opacity 400ms var(--ease-out) 250ms; }
#about-me .lit .ob-trail i { opacity: var(--o); transform: translateX(var(--x)); }
#about-me .ob-trail i::before, #about-me .ob-trail i::after { content: ""; position: absolute; inset: 0; background: var(--ink); }
#about-me .ob-trail i::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 58%); }
#about-me .ob-trail i::after { clip-path: polygon(0 62%, 100% 44%, 100% 100%, 0 100%); }

/* sustainability intern: a hotel facade builds up from the ground, then the audited windows light */
#about-me .ob-facade { width: 128px; height: 168px; border: 1.5px solid var(--ink); border-bottom: 0; padding: 14px 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-out) 250ms; }
#about-me .lit .ob-facade { clip-path: inset(0); }
#about-me .ob-facade i { position: relative; border: 1.5px solid var(--ink); }
#about-me .ob-facade i.on::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity 200ms var(--ease-out) calc(1000ms + var(--d) * 220ms); }
#about-me .lit .ob-facade i.on::after { opacity: 1; }
#about-me .ob-facade i.door { grid-column: 2; border-bottom: 0; }

/* study: the water rises, then the block lifts above it on its stilts */
#about-me .ob-water { width: 232px; height: 168px; }
#about-me .ob-water::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-top: 1.5px solid var(--ink); background: repeating-linear-gradient(to bottom, transparent 0 7px, rgba(17, 17, 17, .55) 7px 8.5px); clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-out) 250ms; }
#about-me .lit .ob-water::before { clip-path: inset(0); }
#about-me .ob-water b { position: absolute; left: 64px; bottom: 92px; width: 104px; height: 76px; background: var(--ink); opacity: 0; transform: translateY(92px); transition: opacity 400ms var(--ease-out) 250ms, transform 900ms var(--ease-out) 750ms; }
#about-me .ob-water i { position: absolute; bottom: 0; width: 2px; height: 92px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 900ms var(--ease-out) 750ms; }
#about-me .lit .ob-water b, #about-me .lit .ob-water i { transform: none; }
#about-me .lit .ob-water b { opacity: 1; }
#about-me .ob-water i:nth-of-type(1) { left: 76px; }
#about-me .ob-water i:nth-of-type(2) { left: 154px; }

#about-me .shelf-txt { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out) 150ms, transform 600ms var(--ease-out) 150ms; }
#about-me .in .shelf-txt { opacity: 1; transform: none; }

@media (min-width: 1000px) {
  #about-me .a1-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: var(--s4); grid-template-rows: 1fr auto 1fr; }
  #about-me .a1-pair .cut { grid-column: 1 / 5; grid-row: 1 / 4; height: auto; min-height: 600px; }
  #about-me .a1-pair .ent, #about-me .a1-pair .bridge { grid-column: 5 / 13; padding-left: 64px; }
  #about-me .a1-pair .bridge { padding-left: 0; margin-left: calc(-1 * var(--cg)); }
  #about-me .a1-pair .bridge::before { width: calc(var(--cg) + 50px); }
  #about-me .a1-pair .e-top { grid-row: 1; align-self: start; }
  #about-me .a1-pair .bridge { grid-row: 2; }
  #about-me .a1-pair .e-bot { grid-row: 3; align-self: end; }
  #about-me .a1-stand { height: 184px; }
  #about-me .a1-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--cg); margin-top: calc(var(--s5) + 32px); }
  /* the three columns arrive left to right */
  #about-me .a1-shelf > :nth-child(2) { --lag: 120ms; }
  #about-me .a1-shelf > :nth-child(3) { --lag: 240ms; }
  #about-me .a1-shelf > * .a1-stand::after { transition-delay: var(--lag, 0ms); }
}

@media (prefers-reduced-motion: reduce) {
  #about-me .reveal, #about-me .shelf-txt { transform: none; transition: opacity 300ms linear; }
  #about-me .a1-head h2 span { transform: none; transition: none; }
  #about-me .cut-half { transition: none; }
  #about-me [data-in]:not(.in) .cut-top { transform: translateY(-3px); }
  #about-me [data-in]:not(.in) .cut-bot { transform: translateY(3px); }
  #about-me .a1-stand::after, #about-me .ob-water i { transform: none; transition: none; }
  #about-me .ob-water b { transform: none; transition: opacity 300ms linear; }
  #about-me .ob-trail i { transform: translateX(var(--x)); transition: opacity 300ms linear; }
  #about-me .ob-facade, #about-me .ob-water::before { clip-path: none; transition: none; }
  #about-me .ob-facade i.on::after { transition: opacity 300ms linear; }
}

/* step 4: the last chapter; the heading is the way in; only the word itself drives the cut, .hov forces it for screenshots */
.chapter-head h2.mk { font-size: clamp(72px, 15vw, 230px); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.mk-btn { --h: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk-btn:focus { outline: none; }
.mk-btn:focus-visible { --h: 1; outline: 2px solid var(--accent-ink); outline-offset: 10px; }
.mk-btn.hov { --h: 1; }
@media (hover: hover) and (pointer: fine) { .mk-btn:hover { --h: 1; } }
.mk svg { display: inline-block; height: .72em; width: auto; margin: 0 .025em; overflow: visible; vertical-align: baseline; }
.mk path { transition: transform 700ms var(--ease-out), opacity 400ms var(--ease-out); }
.mk .m2 path { transition-delay: 90ms; }
.mk .q1 { transform: translate(calc(var(--h) * -.45px), calc(var(--h) * -.6px)); }
.mk .q3 { transform: translate(calc(var(--h) * .45px), calc(var(--h) * .6px)); }
.mk .q2a { opacity: var(--h); }

/* contact: the address opens the same letter, LinkedIn and GitHub as icons */
.hello-contact { max-width: 1400px; margin: 0 auto; }
.hello-mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hello-mail .addr { font-weight: 500; font-size: clamp(20px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; overflow-wrap: anywhere; transition: color 200ms var(--ease-out); }
.hello-mail .go { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color 200ms var(--ease-out), transform 200ms var(--ease-out); }
.hello-icons { display: flex; gap: 4px; margin: 16px 0 0 -10px; padding: 0; list-style: none; }
.hello-icons a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color 200ms var(--ease-out); }
.hello-icons svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) {
  .hello-icons a:hover { color: var(--accent-ink); }
  .hello-mail:hover .addr, .hello-mail:hover .go { color: var(--accent-ink); }
  .hello-mail:hover .go { transform: translateX(6px); }
}

/* extruded like the city's blocks: west and south faces pushed --d down and left */
.face { position: absolute; pointer-events: none; }
.face::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 300ms var(--ease-out); }
.face.w { left: calc(-1px - var(--d)); top: -1px; width: var(--d); height: calc(100% + 2px + var(--d)); background: var(--west); clip-path: polygon(100% 0, 100% calc(100% - var(--d)), 0 100%, 0 var(--d)); }
.face.s { left: calc(-1px - var(--d)); top: calc(100% + 1px); width: calc(100% + 2px + var(--d)); height: var(--d); background: var(--south); clip-path: polygon(var(--d) 0, 100% 0, calc(100% - var(--d)) 100%, 0 100%); }
.face.w::after { background: var(--accent-deep); }
.face.s::after { background: var(--accent-2); }

/* the letter: a modal sheet; the backdrop is the page, dimmed */
.letter { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 48px var(--gutter); border: 0; background: transparent; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.letter[open] { display: grid; }
.letter::backdrop { background: rgba(243, 244, 246, .88); }
.panel { --d: 14px; position: relative; width: min(720px, 100%); margin: auto; padding: 24px 36px 36px; background: var(--top); border: 1px solid var(--edge); }
.panel:focus { outline: none; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin: 0 -12px 8px 0; }
.panel-top .eyebrow { margin: 0; color: var(--muted); }
.shut { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; transition: color 200ms var(--ease-out); }
.shut svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.shut:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .shut:hover { color: var(--ink); } }

.field { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 6px 24px; align-items: baseline; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.field::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.field:focus-within::before { transform: scaleX(1); }
.lab { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color 200ms var(--ease-out); }
.lab small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .04em; text-transform: none; opacity: .8; }
.field:focus-within .lab { color: var(--accent-ink); }
.to-addr { font: 500 20px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--muted); overflow-wrap: anywhere; }
.ctl { min-width: 0; }
.ctl input, .ctl textarea { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 500 20px/1.3 var(--sans); letter-spacing: -0.01em; outline: none; }
.ctl textarea { min-height: calc(5 * 1.3em); field-sizing: content; resize: vertical; }
.ctl ::placeholder { color: #9a9ea6; opacity: 1; }
.err { margin: 6px 0 0; font: 500 12px/1.3 var(--mono); color: var(--error); }
.err:empty { display: none; }

/* about: Andrew's three fields are the three pieces of the mark; picking one slides its piece out and lights it */
.about { align-items: start; }
.pick { display: flex; gap: 20px; align-items: flex-start; }
.pick-mark { flex: none; width: 61.6px; height: 112px; overflow: visible; }
.pick-mark g { transition: transform 500ms var(--ease-out); }
.pick-mark .a { opacity: 0; transition: opacity 300ms var(--ease-out); }
.pick-opts { display: grid; grid-auto-rows: 41px; margin-top: -3.7px; }
.pick-opts label { display: flex; align-items: center; margin-left: calc(var(--s) * 8.4px); cursor: pointer; }
.pick-opts input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pick-opts span { font: 500 18px/1 var(--sans); letter-spacing: -0.01em; color: var(--muted); transition: color 200ms var(--ease-out), transform 500ms var(--ease-out); }
.pick-opts input:checked + span { color: var(--accent-ink); transform: translateX(5px); }
.pick-opts input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 6px; }
.pick:has(.o1 input:checked) .g1, .pick:has(.o2 input:checked) .g2, .pick:has(.o3 input:checked) .g3 { transform: translateX(.9px); }
.pick:has(.o1 input:checked) .g1 .a, .pick:has(.o2 input:checked) .g2 .a, .pick:has(.o3 input:checked) .g3 .a { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pick-opts label:hover span { color: var(--ink); }
  .pick-opts label:hover input:checked + span { color: var(--accent-ink); }
  .pick:has(.o1:hover) .g1 .a, .pick:has(.o2:hover) .g2 .a, .pick:has(.o3:hover) .g3 .a { opacity: .45; }
}

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.hint { margin: 0; max-width: 34ch; font: 500 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); }

/* send: a small block that lifts and takes the accent */
.send { --d: 6px; margin: 0 0 var(--d) var(--d); padding: 0; border: 0; background: none; color: var(--ink); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.send .key { position: relative; display: block; padding: 18px 40px; background: var(--top); border: 1px solid var(--edge); transition: transform 400ms var(--ease-out); }
.send .key::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity 300ms var(--ease-out); }
.send .t { position: relative; transition: color 300ms var(--ease-out); }
.send:focus { outline: none; }
.send:focus-visible .key { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.send:focus-visible .key, .send.hov .key { transform: translate(3px, -3px); }
.send:focus-visible .key::before, .send:focus-visible .face::after, .send.hov .key::before, .send.hov .face::after { opacity: 1; }
.send:focus-visible .t, .send.hov .t { color: var(--accent-fg); }
@media (hover: hover) and (pointer: fine) {
  .send:hover .key { transform: translate(3px, -3px); }
  .send:hover .key::before, .send:hover .face::after { opacity: 1; }
  .send:hover .t { color: var(--accent-fg); }
}
.send:active .key { transform: none; transition-duration: 80ms; }

/* motion: the sheet rises, then its rows step in from the left like the mark's pieces */
@keyframes letter-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes letter-step { from { opacity: 0; transform: translateX(-14px); } }
@keyframes letter-fade { from { opacity: 0; } }
@keyframes letter-sink { to { opacity: 0; transform: translateY(12px); } }
@keyframes letter-fade-out { to { opacity: 0; } }
.letter[open]::backdrop { animation: letter-fade 320ms var(--ease-out); }
.letter[open] .panel { animation: letter-rise 560ms var(--ease-out) both; }
.letter[open] .row { animation: letter-step 620ms var(--ease-out) both; animation-delay: calc(90ms + var(--i) * 45ms); }
.letter.closing::backdrop { animation: letter-fade-out 180ms cubic-bezier(.4, 0, 1, 1) forwards; }
.letter.closing .panel { animation: letter-sink 180ms cubic-bezier(.4, 0, 1, 1) forwards; }

@media (max-width: 600px) {
  .letter { padding: 16px 16px 24px 24px; }
  .panel { --d: 8px; padding: 12px 20px 24px; }
  .field { grid-template-columns: 1fr; padding: 14px 0 16px; }
  .foot { flex-direction: column-reverse; align-items: stretch; }
  .send { margin-right: 0; }
  .send .key { text-align: center; }
}
/* the city lifts and fades as the page scrolls; the script sets --p from 0 to 1 */
.stage { opacity: calc(1 - var(--p, 0)); transform: translateY(calc(var(--p, 0) * -64px)) scale(calc(1 - var(--p, 0) * .04)); will-change: opacity, transform; }

@media (max-width: 900px) {
  :root { --c: 30px; }
  .hero { grid-template-rows: auto minmax(calc(var(--c) * 10.5), 1fr) auto; padding-top: 88px; gap: 0; }
  .intro { grid-template-columns: 1fr; }
  .intro p { display: none; }
  .pins { display: none; }
  .menu { display: block; margin: 0 var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .b { animation-duration: 300ms; animation-delay: 0ms; transition-duration: 0ms; }
  @keyframes rise { from { transform: scaleZ(.6); } }
  .car { display: none; }
  .mono .bob, .shade, .slab { animation: none; }
  .wing .s .ru { transition: none; }
  .district.on .tk { transition-delay: 0ms; }
  .district, .cam { transition: none; }
  .district.on { transform: none; }
  .pin { animation: none; opacity: 1; }
  .statement .w { transform: none; transition-duration: 600ms; transition-delay: calc(var(--i) * 15ms); }
  .hello-mail:hover .go { transform: none; }
  .mk path { transition-duration: 250ms; transition-delay: 0ms; }
  .letter[open] .panel { animation: letter-fade 220ms var(--ease-out) both; }
  .letter[open] .row { animation: none; }
  .letter.closing .panel { animation: letter-fade-out 160ms linear forwards; }
  .pick-mark g, .pick-opts span, .send .key, .field::before { transition-duration: 200ms; }
  .stage { transform: none; }
  .film { transform: none; transition-duration: 500ms; }
  .viewer:hover video { transform: none; }
  .play { transition-duration: 150ms; }
  .store[open] .store-card { animation: letter-fade 220ms var(--ease-out) both; }
  .store.closing .store-card { animation: letter-fade-out 160ms linear forwards; }
  .store-shots li, .store-shots li.l { transform: none; transition-duration: 200ms; }
}
