/* ===========================================================================
   REDO — r4. Loaded LAST on every page.
   Homepage: split banner (photo left half / copy right) -> black stage with
   four full-width case rows + a compact fifth + a composed Ezra/Lurch pair ->
   a half-screen pixel scenery (hills, mountains, drifting clouds) behind a
   giant DESSERTS link. Sitewide: strips the notebook kit, sober monochrome,
   case pages restyled AND given a working light/dark theme.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   0. TOKENS + THEME
   --------------------------------------------------------------------------- */
:root {
  --mono: var(--sans);
  --w-label: 600;
  --tr-label: 0.07em;
  --endmark-h: clamp(300px, 50vh, 620px);     /* ~half screen reveal */

  --accent: var(--ink) !important;
  --v3-accent: var(--ink) !important;
  --v3-accent-press: var(--ink) !important;
  --v3-focus: var(--ink) !important;

  --home-grad: linear-gradient(158deg, #F6F3EC 0%, #ECEDF1 52%, #E6E3DB 100%);
  --home-ink: #14151A;
  --home-ink-soft: #5B6069;
  --stage-bg: #0B0B0C;
}
:root[data-theme="dark"] {
  --home-grad: linear-gradient(158deg, #16171C 0%, #0E0F12 55%, #121217 100%);
  --home-ink: #F3F0E7;
  --home-ink-soft: #B4AF9F;
}

/* Case pages: a real dark theme (case.css ships light-only). Flipping its
   tokens gives every case page a working dark mode; the media mats already
   have a dark variant in case.css. */
:root[data-case][data-theme="dark"] {
  --bg: #121317; --surface: #1B1D22;
  --rule: #2C2F36; --rule-soft: #24272D;
  --ink: #F2F0EA; --body: #C8C6BE; --soft: #A8A79F; --label: #8C8B84;
  --accent: #9FC2DC !important;
}


/* ---------------------------------------------------------------------------
   1. STRIP THE NOTEBOOK STYLE
   --------------------------------------------------------------------------- */
body::before { display: none !important; }
[data-ruled] body::after { display: none !important; }
.shade { display: none !important; }
:root, body { --dot: transparent !important; }
.pno::after, .idx-no::after,
.head .eyebrow::before,
.cat__name[style*="--dot"]::before, .cat__name.has-dot::before { content: none !important; display: none !important; }
.nb-mark::before { display: none !important; }
.nb-mark { background: none !important; }


/* ---------------------------------------------------------------------------
   2. TYPE
   --------------------------------------------------------------------------- */
.label, .nb-note, .eyebrow, .rail__label, .decision__n,
.meta th, .compare th, .top {
  font-family: var(--sans) !important; font-weight: 600; letter-spacing: 0.07em;
}
h1, h2, .dname { font-weight: 700; letter-spacing: -0.022em; }
:root[data-case] .eyebrow, :root[data-case] .rail__label, :root[data-case] .decision__n { font-weight: 700; letter-spacing: 0.1em; }
.cat__name { padding-left: 0 !important; }
.action, .pcta, .idx-name { color: var(--ink); }


/* ===========================================================================
   3. HOMEPAGE
   =========================================================================== */

/* --- Layer A: split banner — photo left half, copy right ------------------- */
.banner.banner--split {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 100svh; min-height: 600px; max-height: none;   /* beat swiss's 900px cap */
  background: var(--home-grad);
  overflow: hidden;
}
.banner__media { position: relative; height: 100%; overflow: hidden; }
.banner__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;   /* bias up so "WHOA." stays in */
}
/* The old dark bottom scrims (home.css + swiss.css) would tint the right-hand
   copy column now that the photo is only the left half. Off. */
.banner__in::before { display: none !important; }
/* swiss.css makes .banner__in absolute inset:0 (it used to overlay the full
   photo). Pull it back into the grid so it is the right-hand cell. */
.banner__in {
  position: relative; inset: auto;                    /* anchor for the scroll cue */
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;   /* vertically centred, left-aligned */
  padding: 0 clamp(28px, 5vw, 92px);
}
.banner__copy { position: relative; max-width: 30rem; }
.banner__hi {
  margin: 0 0 12px; font-weight: 400;
  font-size: clamp(17px, 1.4vw + 10px, 24px);
  letter-spacing: -0.01em; color: var(--home-ink);
}
.banner__h1 {
  margin: 0; max-width: 16ch; font-weight: 400;
  font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--home-ink);
}
/* The scroll cue is pinned to the foot of the banner, centred — not floating
   in the copy flow. */
.banner__cue {
  position: absolute; left: 50%; bottom: clamp(16px, 3vh, 34px);
  transform: translateX(-50%); margin: 0;
  color: var(--home-ink-soft);
}
:root.js .banner__cue { animation: redo-cue 2.6s ease-in-out infinite; }
@keyframes redo-cue {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 5px); }
}
@media (prefers-reduced-motion: reduce) { :root.js .banner__cue { animation: none; } }

@media (max-width: 760px) {
  /* Text on top (35%), photo below (65%) — the image gets the room. */
  .banner.banner--split { grid-template-columns: 1fr; grid-template-rows: 35svh 65svh; height: 100svh; min-height: 0; }
  .banner__in { grid-row: 1; align-items: flex-start; justify-content: center; padding-block: clamp(20px, 4vh, 40px); }
  .banner__media { grid-row: 2; }
  .banner__cue { display: none; }   /* no room for it between the two rows */
}

/* --- Hand-drawn annotations on the banner ---------------------------------
   Four handwritten marks mapped to Rishabh's reference. Each position is a
   percentage of the banner, taken from the 1893x822 reference, so they track
   the split layout as it scales. Shown from 761px up (the split layout — desktop
   and tablet); the mobile banner (<=760px) stacks and has its own placement
   below. pointer-events:none so links stay clickable. */
.hand { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hand__el { position: absolute; display: none; height: auto; }
/* Résumé annotation is a real link: clickable, lifts + tilts a little on hover, opens the résumé. */
.hand__resume--link { pointer-events: auto; cursor: pointer; transition: transform .2s cubic-bezier(.2,.7,.3,1); transform-origin: 60% 85%; }
.hand__resume--link img { display: block; width: 100%; height: auto; }
.hand__resume--link:hover, .hand__resume--link:focus-visible { transform: translateY(-5px) rotate(-3.5deg); }
.hand__resume--link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hand__resume--link { transition: none; } }
@media (min-width: 761px) {
  .hand__el { display: block; }
  .hand__nilgiris { left: 46.17%; top: 10.10%; width: 13.15%; }
  .hand__apple    { left: 26.68%; top: 47.57%; width: 4.07%; }
  .hand__resume   { left: 89.80%; top: 8.03%; width: 7.13%; }
}
/* Mobile: the banner stacks (cream copy 35svh on top, photo 65svh below) and
   .hand still spans the whole banner (inset:0), so these positions are a % of
   the full stacked banner, mapped from the 401x800 mobile reference.
   resume sits top-right in the cream; nilgiris + apple land on the photo. */
@media (max-width: 760px) {
  .hand__el { display: block; }
  .hand__resume   { left: 77%;   top: 2.0%;  width: 16%; }
  /* Bigger and straddling the seam: text up in the beige copy band, arrow
     reaching down across onto the photo toward the snow peak. */
  .hand__nilgiris { left: 48%;   top: 31%;   width: 40%; }
  .hand__apple    { left: 53%;   top: 58.4%; width: 12%; }
}

/* The "an" caret is a proof-mark inserted into the headline itself, between
   "and" and "AI-native", so it tracks the text at any viewport instead of
   drifting with the (vertically-centred) headline. Sized in em of the headline,
   positioned off a zero-width inline anchor. */
.an-ins { position: relative; display: inline-block; width: 0; }
.hand__an { position: absolute; display: none; pointer-events: none; max-width: none; }
@media (min-width: 761px) {
  .hand__an { display: block; left: -0.60em; top: -0.95em; width: 1.02em; height: auto; }
}
/* Mobile headline is smaller; the caret tracks the text via the em-sized anchor,
   so the same proportional offsets hold. (max-width:100% gotcha already handled
   by max-width:none on .hand__an.) */
@media (max-width: 760px) {
  .hand__an { display: block; left: -0.55em; top: -0.92em; width: 0.98em; height: auto; }
}

/* --- Layer B: the stage --------------------------------------------------- */
.stage {
  position: relative; z-index: 2;
  background: var(--stage-bg); color: #fff;
  margin-bottom: var(--endmark-h);
  padding-block: clamp(80px, 12vh, 180px) 0;
  padding-inline: clamp(16px, 3vw, 40px);
}
.stage__in { max-width: 1120px; margin-inline: auto; position: relative; }
/* The intro block carries the gap that used to sit on the lead alone. That
   gap is what the pile rests in: the heap stands 82px off the rule, and
   14.5vh leaves about 100px of clear black above it, now measured from the
   foot of the About line below. Held to the old value below 760px, where
   there is no pile (toys() is desktop-pointer only) and the page has been
   shortened anyway. */
.stage__intro { margin: 0 0 clamp(56px, 14.5vh, 180px); max-width: 52ch; }
.stage__kicker {
  margin: 0 0 clamp(14px, 1.6vh, 22px) !important;
  color: rgba(255,255,255,.5) !important;
}
.stage__lead {
  margin: 0 0 clamp(16px, 2.2vh, 28px); max-width: 22ch;
  font-size: clamp(24px, 3vw, 42px); font-weight: 400;
  line-height: 1.2; letter-spacing: -0.02em; color: #fff;
}
.stage__about {
  margin: 0; max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 400;
  line-height: 1.62; letter-spacing: -0.003em;
  color: rgba(255,255,255,.72);
}
.stage__dessert {
  margin: clamp(14px, 1.8vh, 22px) 0 0; max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 400;
  line-height: 1.62; letter-spacing: -0.003em;
  color: rgba(255,255,255,.72);
}
.stage .idx__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: clamp(22px, 3.5vh, 40px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  /* 81px to the first case study was tight for a rule that now has nine
     objects resting on it. 13vh gives about 117px. Same story below 760px:
     restored there, because the pile is not on it and the page is long
     enough on a phone already. */
  margin-bottom: clamp(56px, 13vh, 150px);
}
.stage .idx__head .label, .stage .idx__count { color: rgba(255,255,255,.6) !important; font-size: 12px; }
/* 2026-10-31: "See all" is out of this sub-head, his call, so the two rules
   that styled it go with it. The Desserts page is still reached from the nav
   and from the DESSERTS endmark at the foot. */
.idx__head--sub { margin-top: 0; margin-bottom: clamp(32px, 5vh, 56px); border: 0; padding: 0; }
/* Removing it exposed a hang that "See all" had been hiding. This head is a
   child of .stage__in, so it runs the full 1120px, while the row underneath
   it is 880 centred: with something pinned to the right end of a
   space-between flex you could not see that the left end was 120px outside
   Ezra. Pulled in to the row it heads, and centred, because this is the only
   centred symmetric block on the page and a left-flush label over it would
   just be a different arbitrary edge. Three classes deep on purpose:
   .stage .idx__head sets space-between at equal specificity. */
.stage .dess2 .idx__head--sub { max-width: 880px; margin-inline: auto; justify-content: center; }

/* --- Four full-width feature rows: photo left, details right, centred, with
       heavy side margins from the capped width ----------------------------- */
.feats { display: flex; flex-direction: column; gap: clamp(90px, 15vh, 210px); }
.feat {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 84px); align-items: start;
  max-width: 1040px; margin-inline: auto;
}
/* 2026-10-31: the slot no longer holds a ratio of its own. It was 16/10 with
   object-fit: cover, which meant every cover that was not exactly 1.600 lost
   height off the top and bottom with no say from him — 16.7% on the two 4:3
   crops, and on Hasta that took the "Free reading, full manuscript" line out
   of the frame. The purpose-made covers he supplied are 1165x900 (1.294), so
   the slot takes its height from the image instead and crops nothing. Each
   .feat is its own grid row with align-items: start, so a row is free to be
   as tall as its picture; no card is waiting on another's height. The img
   keeps its width/height attributes, so the box is still reserved before the
   lazy load and nothing reflows. overflow: hidden stays for the hover zoom. */
.feat__shot { display: block; overflow: hidden; background: #141414; border-radius: 14px; }
.feat__shot img { display: block; width: 100%; height: auto; transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.feat__shot:focus-visible img { transform: scale(1.03); }
/* Hover zoom only where a real pointer can hover. On a touch device a :hover
   transform on the tapped element makes iOS Safari treat the first tap as a
   hover-reveal and swallow it, so the image case-study link needed two taps
   while the text link (no self-hover) opened on one. Gating it here fixes the
   image tap. */
@media (hover: hover) {
  .feat:hover .feat__shot img { transform: scale(1.03); }
}
/* What the thing IS, where the 01-04 used to be. 2026-10-27: he asked for
   the numbering out, and for Produsa and Supaca to say what they are. */
.feat__kind { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* 2026-10-28, his note on the description line: "the size of these can be
   small, font. likewise for all. with padding, and breathing space, well
   aligned." Four things, and the last one is the real job.

   SIZE. clamp(15px…18px) -> clamp(14px…16px): one clear step down at both
   ends, and the same step at every width, so all five cards move together.
   Not smaller than 14px on a phone: this sentence is the only thing on the
   card that says what the project WAS, so it has to stay body copy, not a
   caption. Line-height goes the other way, 1.5 -> 1.6, because a smaller
   face across the same measure needs more room between lines, not less.

   MEASURE. 34ch of 18px measured 354px. 34ch of 16px measures 315px — the
   same characters per line, but the block would pull 39px in from where it
   has been sitting and leave the right of the card slack. 38ch holds it at
   ~352px: the optical column stays put while the type shrinks. Below 760px
   the column is the screen, so the cap relaxes rather than disappearing —
   see the media query; an unbounded line at 700px wide runs past 100
   characters, which is the one thing worse than a line that is too short.

   RHYTHM. The six lines carried 16 / 22 / 20 / 22 / -14 / 22, each decided
   on its own day. That is a list, not a scale. One scale now, multiples of
   4, and read as air ABOVE each line:
     4px   bound       the location is an attribute of the role above it
     12px  one unit    the disciplines belong to the name (see home.css 9)
     24px  new unit    name/disciplines -> description -> role
     32px  the action  the link, which gets more air than anything else
   Air above and not below, because then every gap is declared once, by the
   thing underneath it, instead of twice from both sides.

   .feat__meta is a flex column so those numbers ARE the numbers. In normal
   flow two things lied: adjacent margins collapsed to the larger of the
   pair instead of adding (which is why the location needed -14px to sit
   under the role at all), and the link is an inline box that carried ~5px
   of line leading no margin accounted for. Measured: every gap now lands
   on its declared value at 390 / 768 / 1440.

   ALIGNMENT. The children also inherited stray max-widths from style.css —
   369px on the h3, 451px on the role — which are three different right
   edges in one block. Reset to one block, one measure, one ragged edge.
   The "padding" he asked for goes between the photo and its text, not
   inside the text block: a left pad on .feat__meta would knock the column
   out of line with the image it sits under on a phone, and those two left
   edges staying flush is what "well aligned" has to mean here.
   --------------------------------------------------------------------- */
/* The one alignment the grid could not do by itself. align-items: start puts
   the text BOX level with the top of the photo, but a 40px name carries ~12px
   of half-leading above its capitals, so the column read as starting late
   against a hard photo edge. The pull is the name's own leading, so it tracks
   the name's clamp: -11px where the name is 40px, -8px where it has bottomed
   out at 26px. Measured against the photo's top edge, not guessed from the
   font tables. Reset below 760px, where the photo is above the text and the
   gap, not the top edge, is the relationship. 2026-10-28. */
.feat__meta { display: flex; flex-direction: column; align-items: flex-start; margin-top: clamp(-11px, -0.88vw, -8px); }
.feat__meta > * { max-width: none; }
.feat__name { margin: 0; }
.feat__name a { color: #fff; text-decoration: none; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; }
.feat__name a:hover { opacity: .8; }
.feat__problem { margin: 24px 0 0; max-width: 38ch; color: #CDCDD2; font-size: clamp(14px, 0.25vw + 13px, 16px); line-height: 1.6; }
.feat__role { margin: 24px 0 0; color: #8A8A8A; font-size: 13px; letter-spacing: 0.03em; }
/* Quiet location line — e.g. VIST Labs, Illinois. Not loud. Bound to the
   role above it at the tightest step in the scale; it used to reach up with
   a -14px margin to beat margin collapsing, which the flex column retires. */
.feat__loc { margin: 4px 0 0; color: #6E6E72; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
/* line-height 1.25 because the link is a flex item now, not an inline box:
   left at the inherited 1.6 its own box grew 4.8px taller and dragged the
   underline that far off the word. 1.25 puts the rule back where it was. */
.feat__go { margin-top: 32px; line-height: 1.25; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px; }
.feat__go span { display: inline-block; transition: transform .2s; }
.feat:hover .feat__go span { transform: translateX(4px); }

@media (max-width: 760px) {
  /* The two gaps around the rule were opened up for the pile that rests on
     it, and there is no pile at this width. Back to what they were, so the
     phone does not pay for a desktop interaction in scroll length. */
  .stage__intro { margin-bottom: clamp(56px, 9vh, 120px); }
  .stage .idx__head { margin-bottom: clamp(56px, 9vh, 110px); }
  /* One column: the gap is now the photo-to-text gap and nothing else, so
     it takes the 28px that the text block's own rhythm no longer needs to
     borrow. 22px read as the text being stuck to the bottom of the image. */
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat__meta { margin-top: 0; }
  /* 46ch, not none: at phone widths this is wider than the column, so the
     line still runs the full width exactly as before — it only bites in the
     500-760px band, where one column is 700px wide and 38ch would look
     stranded while no cap at all reads as a paragraph of fine print. */
  .feat__problem { max-width: 46ch; }
}

/* --- The compact fifth ---------------------------------------------------- */
.feat-sm {
  display: flex; align-items: baseline; gap: 18px;
  max-width: 1040px; margin: clamp(70px, 11vh, 140px) auto 0;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
  color: #fff; text-decoration: none;
}
.feat-sm__name { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.feat-sm__role { margin-left: auto; color: #8A8A8A; font-size: 13px; }
.feat-sm__go { color: #fff; transition: transform .2s; display: inline-block; }
.feat-sm:hover .feat-sm__go { transform: translateX(4px); }
@media (max-width: 560px) { .feat-sm__role { display: none; } }

/* --- Desserts: two tiles side by side, per the sketch ---------------------- */
.dess2 { margin-top: clamp(110px, 18vh, 240px); }
.dess2__row {
  position: relative;                           /* positioning context for the notes */
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  max-width: 880px; margin-inline: auto;
  align-items: end;                             /* captions sit on a shared baseline */
}

/* Handwritten notes over the tiles. The row is a fixed 880px centred block, so
   these percentages hold; the notes spill into the black margins by design. */
/* The notes sit at z-index 0 and the tiles are lifted above them (.dz below), so
   where a note overlaps Ezra or the phones the artwork stays on top and the ink
   passes behind it — while the note still shows against the black stage. */
.dess2__hand { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dnote { position: absolute; display: none; height: auto; max-width: none; }
@media (min-width: 681px) {
  .dnote { display: block; }
  .dnote--ezra  { left: -2%;  top: 2%;   width: 22%; }
  .dnote--lurch { left: calc(66% + 50px);  top: calc(-2% - 10px);  width: 28%; }
}
/* On wide screens there is room to let them drift into the black margins, the
   way the reference does; below this they tuck in so nothing runs off-screen. */
@media (min-width: 1200px) {
  .dnote--ezra  { left: -12%; }
  .dnote--lurch { left: calc(68% + 50px); }
}
.dz { display: block; color: #fff; text-decoration: none; position: relative; z-index: 1; }

/* Ezra: just the cat, no box, 2026-10-27 his call. The pupils ride over her
   eyes, driven from redo.js. */
.dz__cat2 { position: relative; display: block; }
.dz__cat2 img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.45));
}

/* No lift on hover, 2026-10-27 his call. It moved the picture 8px up and
   left the pupils where they were, since they are siblings of the image and
   not children of it, so on every hover the eyes appeared to drop out of her
   face. The travel the pupils have is correct; this was the bug. */

/* The pupils. Where they sit is in the markup: --ex / --ey place them,
   data-l / data-r / data-u / data-d say how far each may slide. 1.87% is the
   diameter he drew them at, as a percent of the picture. The socket is an
   almond, so they move a little along the eye and barely at all across it:
   --oy is a fraction of --ox. */
.dz__eye {
  position: absolute;
  left: var(--ex, 50%);
  top: var(--ey, 50%);
  width: 1.87%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #47281D;                          /* his pupil brown, sampled */
  transform: translate(-50%, -50%) translate(var(--ox, 0px), var(--oy, 0px));
  transition: transform .18s ease-out;
}

/* Lurch: the screen and nothing else, 2026-10-31 his call. The red panel went
   first, along with the two labels that were set over it, LURCH and YES!, and
   then he supplied this mockup to stand in their place. It is a finished
   picture rather than a cut-out: the two phones are lit and shadowed inside
   it, on its own black ground that falls to #000 at the corners against the
   stage's #0B0B0C, which is near enough that no rectangle shows. So no
   drop-shadow here - the artwork already casts one, and a second cast off
   the bounding box would print a hard edge where the picture has none.
   .dz__stage stays as the element: it is one of the surfaces the ball pit
   lands on, read by name in redo.js. */
.dz__stage { position: relative; display: block; }
.dz__phones { display: block; width: 100%; height: auto; }

/* 2026-10-31, art direction. Three complaints of his turned out to be one
   problem. In the supplied 3:2 mockup the phones fill 59% of the width and
   93% of the height: a tall picture wearing a wide letterbox. At a 398px
   column that left 163px of the tile as empty glow and rendered the phones
   235px wide, against the cat's 295px. So the phones did not read small
   because the tile was small. They read small because 41% of the tile was
   glow, and making the tile bigger without killing the glow would only have
   bought a bigger grey cloud.

   The glow is now alpha, not black. Cropping to the phones and leaving a
   black ground would have CREATED the rectangle the glow was hiding: a
   uniform #000 square with a crisp edge against the stage's #0B0B0C, which
   is visible. Keyed to transparency it reveals --stage-bg instead, and the
   two halves of this row are finally the same kind of object, since Ezra was
   always a cut-out. Nothing of the artwork was lost: the crop took the glow
   falloff and stopped 55px clear of the phones on both sides, and the
   shipped file gives them more air on every side than the source did.

   87% is set on the SUBJECT, not the box. A saturated orange cat and a dark
   phone mockup do not weigh the same per pixel. At 87% the phones' tops land
   58px below the cat's ears, which is what makes "smaller than Ezra" legible
   at a glance; at 95% that step is 28px and they read as a matched pair, at
   100% it is 10px and they read the same size, which he ruled out. justify-self
   is not optional: a block with an explicit width in a grid area falls back
   to start. And it is a percentage rather than a pixel width so the 0.82
   subject ratio holds as the gap closes and the columns widen. */
.dz--lurch { width: 87%; justify-self: center; }

.dz__cap { display: block; margin-top: 18px; font-size: clamp(14px, 0.6vw + 11px, 17px); color: #CDCDD2; }
.dz__wip { color: #8A8A8A; }
.dz:hover .dz__cap { color: #fff; }

@media (max-width: 680px) {
  .dess2__row {
    grid-template-columns: 1fr; max-width: 420px; align-items: stretch;
    /* Lurch first, Ezra second; room above the top tile for its note, and a
       deep gap so Ezra's note has space above the cat. */
    padding-top: clamp(96px, 26vw, 130px);
    gap: clamp(118px, 30vw, 160px);
  }
  .dz--lurch { width: 100%; order: 1; }
  .dz--ezra  { order: 2; }

  /* The two handwritten notes, placed for the stacked layout: Lurch's over the
     space above the phones, Ezra's up-left of the cat with air around it. */
  .dnote { display: block; }
  .dnote--lurch { left: 32%; top: 0.5%; width: 60%; }
  .dnote--ezra  { left: 4%;  top: 53%;  width: 41%; }
}

/* --- Contact / colophon --------------------------------------------------- */
.stage__end { margin-top: clamp(110px, 18vh, 240px); padding-top: clamp(32px, 5vh, 56px); border-top: 1px solid rgba(255,255,255,.14); }
.stage__end h2 { margin: 0 0 clamp(24px, 4vh, 40px); max-width: 20ch; font-size: clamp(28px, 4vw, 54px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.stage__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.stage__mail { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color 200ms ease; }
.stage__mail:hover { border-color: #fff; }
.stage__acts a.stage__link { color: #8A8A8A; text-decoration: none; font-size: 14px; }
.stage__acts a.stage__link:hover { color: #fff; }
.stage__colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(48px, 8vh, 96px); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* The black runs well above DESSERTS; lots of room for elements to come. */
.stage__space { height: clamp(220px, 55vh, 680px); }
/* 2026-10-31: on a phone 55vh of that is most of a screen of nothing sitting
   between the colophon and the reveal, and he was scrolling the whole of it to
   reach Desserts. Narrow screens get a short pause instead: enough to part the
   colophon from the scenery, not enough to be a journey. The room for elements
   to come is a desktop promise, and there is no room for them here anyway. */
@media (max-width: 680px) {
  .stage__space { height: clamp(110px, 18vh, 190px); }
}

.stage a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* 2026-10-28: the stray `.feat__problem { max-width: none }` that used to
   live here at 720px is gone. It dropped the measure 40px AFTER the layout
   went single-column at 760px, so there was a 40-pixel band where the text
   column sat at 34ch beside a full-width image. The relaxed cap now lives in
   the 760px block with the layout flip it belongs to. */


/* --- Layer C: the pixel scenery + DESSERTS link --------------------------- */
.endmark {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 0;
  height: var(--endmark-h); overflow: hidden; pointer-events: none;
  background: #CFE8F2;
}
.scene { position: absolute; inset: 0; z-index: 1; }
.scene__sky { position: absolute; inset: 0; background: linear-gradient(#AFD8EC 0%, #CFE8F2 46%, #E7F3DE 70%, #E7F3DE 100%); }
.scene__sun { position: absolute; top: 14%; right: 15%; width: 46px; height: 46px; background: #FFE07A; box-shadow: 0 0 0 10px rgba(255,224,122,.28); }
/* Mountains: hard-edged peaks (pixel vibe). */
.scene__range {
  position: absolute; left: 0; right: 0; bottom: 30%; height: 42%;
  background: linear-gradient(#9FB2C2, #7E94A6);
  clip-path: polygon(0 100%, 8% 52%, 16% 72%, 28% 22%, 40% 66%, 52% 38%, 63% 70%, 74% 30%, 86% 64%, 95% 44%, 100% 70%, 100% 100%);
}
/* Green land. */
.scene__hills { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(#76B24A, #5E9A3C); }
.scene__hills::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; background: #76B24A; clip-path: polygon(0 100%,10% 20%,22% 100%,34% 10%,46% 100%,58% 30%,70% 100%,82% 15%,94% 100%,100% 40%,100% 100%); }
/* Blocky drifting clouds. */
.scene__clouds { position: absolute; inset: 0; }
/* Drift via transform (compositor-friendly); per-cloud scale kept in a var so
   the transform animation doesn't clobber it. */
.cloud { position: absolute; left: 0; --cs: 1; width: 34px; height: 14px; background: #fff; box-shadow: 14px -7px 0 0 #fff, 28px 0 0 0 #fff, -12px 0 0 0 #fff; opacity: .95; will-change: transform; transform: translateX(-80px) scale(var(--cs)); }
.cloud--a { top: 20%; animation: redo-drift 40s linear infinite; }
.cloud--b { top: 32%; --cs: 1.5; animation: redo-drift 58s linear infinite; animation-delay: -12s; }
.cloud--c { top: 13%; --cs: .8; animation: redo-drift 48s linear infinite; animation-delay: -28s; }
@keyframes redo-drift { from { transform: translateX(-80px) scale(var(--cs)); } to { transform: translateX(calc(100vw + 80px)) scale(var(--cs)); } }

/* A hazier back range behind the front one, for depth. */
.scene__range--back {
  bottom: 34%; height: 40%;
  background: linear-gradient(#B7C6D4, #9FB0C0); opacity: .85;
  clip-path: polygon(0 100%, 12% 56%, 22% 78%, 33% 40%, 45% 70%, 56% 48%, 68% 74%, 80% 46%, 90% 70%, 100% 52%, 100% 100%);
}
.cloud--d { top: 26%; --cs: 1.1; animation: redo-drift 70s linear infinite; animation-delay: -40s; }

/* Pixel pines on the green. */
.scene__trees { position: absolute; inset: 0; }
.tree {
  position: absolute; bottom: 27%; width: 22px; height: 38px;
  background: linear-gradient(#468A39, #356B2C);
  clip-path: polygon(50% 0, 72% 30%, 60% 30%, 80% 58%, 66% 58%, 92% 88%, 8% 88%, 34% 58%, 20% 58%, 40% 30%, 28% 30%);
}
.tree::after { content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 4px; height: 7px; background: #6B4A2A; }
.tree--sm { transform: scale(.66); transform-origin: bottom center; opacity: .92; }

/* Two small birds drifting. */
.bird { position: absolute; width: 11px; height: 5px; }
.bird::before, .bird::after { content: ""; position: absolute; top: 0; width: 5px; height: 2px; background: #51606E; }
.bird::before { left: 0; transform: rotate(18deg); }
.bird::after  { right: 0; transform: rotate(-18deg); }
.bird--a { top: 22%; left: 28%; animation: redo-bird 60s linear infinite; }
.bird--b { top: 15%; left: 58%; width: 9px; animation: redo-bird 80s linear infinite; animation-delay: -34s; }
@keyframes redo-bird { from { transform: translateX(0); } to { transform: translateX(36vw); } }

/* A crooked little slice of cake, sitting on the wordmark. */
.endmark__cake {
  position: absolute; z-index: 3; pointer-events: none;
  left: 50%; bottom: clamp(74px, 15vh, 180px);
  width: clamp(76px, 10vw, 128px); height: auto;
  transform: translateX(-50%) rotate(-11deg);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.28));
}

@media (prefers-reduced-motion: reduce) {
  .bird { animation: none !important; }
}

.endmark__word {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(12px, 3vh, 40px); margin: 0;
  display: block; pointer-events: auto;
  font-family: "Inter Tight", system-ui, sans-serif; font-weight: 900; font-size: 13vw;
  line-height: 0.8; letter-spacing: -0.03em; text-align: center; white-space: nowrap;
  color: #182914; text-decoration: none;
  text-shadow: 0 2px 0 rgba(255,255,255,.28);
  -webkit-user-select: none; user-select: none; transition: opacity 180ms ease;
}
.endmark__chev { display: inline-block; margin-left: 0.12em; font-size: 0.62em; vertical-align: 0.08em; }
/* The three faces of the one link. Above 480px only the first is drawn, so the
   band looks exactly as it did. The echoes are spans inside the link rather
   than three links: one thing in the accessibility tree, one touch target, and
   redo.js still finds the single .endmark__word it fits to the band width. */
.endmark__rep { display: inline; }
.endmark__rep--echo { display: none; }
.endmark__word:hover { opacity: 0.82; }
.endmark__word:focus-visible { outline: 3px solid #182914; outline-offset: 6px; }


/* ---------------------------------------------------------------------------
   4. FLOATING WHITE PILL NAV
   --------------------------------------------------------------------------- */
.fnav__in { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
.fnav__in a, .fnav__tool { color: #111; }
.fnav__in a:hover, .fnav__tool:hover { background: rgba(0,0,0,.06); color: #000; }
.fnav__in a.fnav__cta { background: #111; color: #fff; font-weight: 600; }
.fnav__in a.fnav__cta:hover { background: #000; color: #fff; }
.fnav__in a:focus-visible, .fnav__tool:focus-visible { outline: 2px solid #111 !important; outline-offset: 2px; }


/* ---------------------------------------------------------------------------
   5. CUSTOM CURSOR
   --------------------------------------------------------------------------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .mcard,
.has-cursor .feat__shot, .has-cursor .dz,
.has-cursor [role="button"] { cursor: none; }
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 200ms ease; --cur-accent: #fff; --cur-ink: #111; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; display: grid; place-items: center; background: var(--ink, #111); color: transparent; font-size: 15px; line-height: 1; font-weight: 700; transition: width 220ms cubic-bezier(.22,1,.36,1), height 220ms cubic-bezier(.22,1,.36,1), margin 220ms cubic-bezier(.22,1,.36,1), background-color 200ms ease, color 160ms ease; }
.cursor.on-dark .cursor__dot { background: #fff; }
.cursor.is-link .cursor__dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-card .cursor__dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--cur-accent); color: var(--cur-ink); }
.cursor.is-card .cursor__dot::after { content: "\2192"; }
.cursor__pill { position: absolute; top: 0; left: 0; transform: translate(34px, -13px) scale(0.7); transform-origin: left center; padding: 6px 12px; border-radius: 5px; background: var(--cur-accent); color: var(--cur-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; opacity: 0; transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.cursor.is-card .cursor__pill { opacity: 1; transform: translate(40px, -13px) scale(1); }
/* Case-study rows carry no label, so the cursor shows no text over them. */
.cursor.no-label .cursor__pill { opacity: 0 !important; }


/* ---------------------------------------------------------------------------
   6. CASE PAGES — media gets margins (off the full bleed)
   --------------------------------------------------------------------------- */
:root[data-case] figure.bleed { width: 100% !important; }
:root[data-case] .d-split { width: 100% !important; }
:root[data-case] .media, :root[data-case] .phone { margin-inline: auto; }

/* Sibling case pages (koodaikind/sintero/...) carry a couple of hardcoded
   light values case.css never flips — fix them for dark. */
:root[data-case][data-theme="dark"] .shot { border-color: var(--rule); color: var(--soft); }
:root[data-case][data-theme="dark"] .media--light > img { background: #1C1E24; box-shadow: 0 0 0 1px rgba(255,255,255,.09); }


/* ---------------------------------------------------------------------------
   7. REDUCED MOTION / SMALL
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .feat:hover .feat__shot img { transform: none; }
  .cloud { animation: none !important; }
}
@media (max-width: 768px) { body { overflow-x: clip; } }
@media (max-width: 480px) {
  .stage { padding-inline: 16px; }
  :root { --endmark-h: clamp(220px, 46vh, 380px); }

  /* DESSERTS stacked three times, as a pattern. On a phone the chevron is
     dropped: in the line it set the word left of centre and hung the > off the
     right edge. Without it each line is just the word, fitted to the band and
     centred. The two echoes fade as they drop, so the mark reads as one word
     echoing down into the hills, not three flat copies. redo.js still fits the
     first line to the band width, now measuring the word alone. */
  .endmark__rep, .endmark__rep--echo { display: block; }
  .endmark__word { line-height: 0.84; }
  .endmark__chev { display: none; }
  .endmark__rep--echo:nth-of-type(2) { opacity: 0.74; }
  .endmark__rep--echo:nth-of-type(3) { opacity: 0.5; }

  /* The cake used to rest on the single word at 15vh. Three lines reach that
     high now; it sits on the MIDDLE of the three stacked DESSERTS lines. The
     stack grows upward in line-heights that scale with the viewport WIDTH (the
     wordmark is fitted to the band width), so the offset to the middle line is
     expressed in vw, which tracks that line-height across phone sizes far more
     faithfully than vh. ~38.5vw lands the cake's foot on the second line's
     glyph tops, centred, at 360-480px. */
  .endmark__cake { bottom: clamp(130px, 38.5vw, 190px); }
}


/* ---------------------------------------------------------------------------
   7. THE BALL PIT
   The software logos are little balls resting on the right of the rule under
   "Selected work". Grab one, throw it, and it bounces: off the cards, the
   tiles, the floor, the walls, and off each other. Leave them in the footer
   or the Desserts and a note asks for them back. All built, positioned and
   driven from redo.js; none of it exists for a visitor with no JS, a coarse
   pointer, or reduced motion, so this is the whole surface it needs.
   --------------------------------------------------------------------------- */
.toys { position: absolute; inset: 0; z-index: 40; pointer-events: none; }

.ball {
  position: absolute; top: 0; left: 0; width: var(--d, 30px); height: var(--d, 30px);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, #ededf0 78%);
  box-shadow: 0 3px 8px rgba(0,0,0,.3), 0 1px 1px rgba(255,255,255,.85) inset, 0 -3px 6px rgba(0,0,0,.07) inset;
  display: grid; place-items: center;
  pointer-events: auto; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; will-change: transform;
}
.ball img { width: 54%; height: 54%; pointer-events: none; -webkit-user-drag: none; display: block; }
/* Before its turn in the drop. Not display:none — it is placed and measured,
   it simply is not shown until the frame it is let go on. */
.ball.is-tucked { opacity: 0; }
.ball.is-held { cursor: grabbing; box-shadow: 0 12px 26px rgba(0,0,0,.45), 0 1px 1px rgba(255,255,255,.85) inset; }
/* A smooth glide home when "put them back" is used. */
.ball.is-homing { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.has-cursor .ball { cursor: none; }   /* the custom dot stands in for grab/grabbing */

/* The little nudge a card/tile does when a ball lands on it hard. */
.ball-bonk { animation: ball-bonk .34s ease; }
@keyframes ball-bonk {
  0% { transform: translateY(0); }
  28% { transform: translateY(3px); }
  60% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* The scolding note. */
.toy-note {
  position: absolute; z-index: 60; max-width: 260px;
  padding: 13px 15px 14px; border-radius: 14px;
  background: #fff; color: #141414;
  font-size: 14px; line-height: 1.38; font-weight: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  pointer-events: auto; opacity: 0; transform: translateY(6px) scale(.96);
  transform-origin: left bottom; transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
}
.toy-note.is-on { opacity: 1; transform: translateY(0) scale(1); }
.toy-note::after {           /* the little tail, pointing down toward the mess */
  content: ""; position: absolute; left: 26px; bottom: -8px; width: 16px; height: 16px;
  background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0;
  box-shadow: 4px 4px 10px rgba(0,0,0,.08);
}
.toy-note strong { font-weight: 700; }
.toy-note__put {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 9px;
  padding: 5px 11px; border: 0; border-radius: 999px; cursor: pointer;
  background: #141414; color: #fff; font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .01em;
}
.toy-note__put:hover { background: #000; }
.has-cursor .toy-note__put { cursor: none; }

@media (prefers-reduced-motion: reduce) { .ball-bonk { animation: none; } }

