/* 11 Nov, version 2 "the door": few things, a lot of black. Tokens from styles.css only. */

.door .hero-row { border-top-color: var(--rule); }
.door-down { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.door-down:hover { color: var(--ink); }
.door-line { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent);
  animation: door-pull 2.8s cubic-bezier(.6, 0, .2, 1) infinite; transform-origin: left; }
@keyframes door-pull { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* what UNINKD is, read by scroll (harbor.ai pattern): pinned text, every word fills from dim to white */
.read { position: relative; height: 240vh; height: 240svh; }
.read-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column;
  justify-content: center; gap: 1.1em; }
.read-text { margin: 0; max-width: 24em; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.5vw, 38px); line-height: 1.28; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.js-read .read-text .w { color: rgba(237, 237, 237, .4);   /* v0085: readable before it lights (review) */ transition: color .35s ease; }
.js-read .read-text .w.is-read { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .read { height: auto; } .read-pin { position: relative; height: auto; padding: var(--section-pad) 0; } }
/* v0034 (19 Nov, your calls): section 2 carries the mark in grains (mark.js). Longer scroll for the 5 frames; the canvases
   fill the pinned screen behind the text; the paragraphs keep the door's 1.1em gap (the sketch's was ~128 px, your note). */
.read.has-mark { height: 620vh; height: 620svh; }
.has-mark .read-pin { overflow: hidden; gap: 0; }
.has-mark .mark-gl, .has-mark .mark-2d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.has-mark .read-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.1em; }
.has-mark .read-text { text-shadow: 0 0 18px #000, 0 0 4px #000; }
@media (min-width: 900px) { .has-mark .read-text { max-width: min(24em, 46vw); } }
.mark-turn { position: absolute; z-index: 2; top: 50%; left: 54%; right: var(--gutter); margin: 0; opacity: 0;
  transform: translateY(-50%); display: flex; flex-direction: column; gap: .18em;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.1vw, 52px);
  line-height: 1.04; letter-spacing: -0.032em; color: var(--ink); text-shadow: 0 0 24px #000, 0 0 6px #000; }
.turn-line { margin: 0; text-wrap: balance; }
@media (min-width: 900px) { .turn-line { white-space: nowrap; } }
/* v0035: "on you" = the claim's ink bleed (13 Nov v0013, your pick): each word a violet blur that settles into white */
.turn-bleed .ink { display: inline-block; opacity: 0; color: var(--violet-hi); filter: blur(18px);
  text-shadow: 0 0 28px rgba(164, 79, 185, .95), 0 0 60px rgba(164, 79, 185, .55);
  transition-property: opacity, filter, color, text-shadow; transition-duration: 1.1s, 1.7s, 2.4s, 2.6s;
  transition-timing-function: ease-out, cubic-bezier(.2, .7, .2, 1), ease-in-out, ease-out;
  transition-delay: calc(var(--i) * 110ms), calc(var(--i) * 110ms), calc(var(--i) * 110ms + 500ms), calc(var(--i) * 110ms + 300ms); }
.turn-bleed.is-on .ink { opacity: 1; filter: blur(0); color: var(--ink); text-shadow: 0 0 24px #000, 0 0 6px #000; }
@media (max-width: 899px) {
  .has-mark .read-pin { justify-content: flex-start; padding-top: 12vh; padding-top: 12svh; }
  .mark-turn { left: var(--gutter); top: auto; bottom: 14%; transform: none; }
}
/* no grains (reduced motion or no WebGL): normal section, words white, the turn line under the text */
/* v0041 (your call 20 Nov): the hands replace the logo in section 2 (hands.js); the claim sits centred under the
   fingertip gap, in the empty band below the hands */
.has-hands:not(.mark-off) .mark-turn { left: var(--gap-x, 50%); right: auto; top: auto; bottom: 13%; bottom: 13svh;
  text-align: center; font-size: clamp(26px, 2.7vw, 46px); }
@media (max-width: 899px) { .has-hands:not(.mark-off) .mark-turn { bottom: 27%; width: calc(100% - 2 * var(--gutter)); } }
/* v0103 (25 Nov, your OK, phone only): ~60% of the scroll, the claim closer under the smaller hands, the intro under
   the logo instead of over its leaves. html.phone-old = v0102 (?phone=old) */
@media (max-width: 699px) {
  html:not(.phone-old) .read.has-mark.has-hands:not(.mark-off) { height: 1000vh; height: 1000svh; }
  html:not(.phone-old) .has-hands:not(.mark-off) .mark-turn { bottom: 35%; bottom: 35svh; }
  /* v0111 (26 Nov, open item "the claim overlaps the lower hand"): the claim moves to the foot of the screen on its own
     black band (fades in and out with the lines), so it no longer sits on the fingers. The hands are unchanged.
     v0110 = door.css.bak-v0110 */
  html:not(.phone-old) .has-hands:not(.mark-off) .mark-turn { bottom: 7%; bottom: 7svh; }
  html:not(.phone-old) .has-hands:not(.mark-off) .mark-turn::before { content: ""; position: absolute; z-index: -1;
    left: 50%; width: 100vw; transform: translateX(-50%); bottom: -7svh; height: calc(100% + 7svh + 16svh);
    background: linear-gradient(to top, #000 0%, #000 62%, rgba(0,0,0,0) 100%); pointer-events: none; }
  html:not(.phone-old) .has-hands .mark-intro { top: 83%; }
  html.logo-big .has-hands .mark-intro { top: 34%; }   /* v0105: the big logo sits low, the line above it */
  html.logo-right .has-hands .mark-intro { top: 12%; }   /* v0106: the logo cut by the right edge, the line on top */
}
/* v0044: taller for the zoom into the gap + the mark; the intro line under the mark (hands version only) */
.read.has-mark.has-hands:not(.mark-off) { height: 1665vh; height: 1665svh; }   /* v0100: 1500 x 1.11 (hold 1 shorter again) */   /* v0098: 1500 pace (between 1300 and 1750) x 1.2 for the two holds */    /* v0066: +the answers · v0097 (24 Nov, your note "the whole thing is too fast"): 1300 -> 1750 */
/* v0084 (your call): no boxes. The answers are one quiet line of words under the grain sentence, a gallery label,
   not buttons; hovering one puts it into the sentence (hands.js) */
.mark-opts { display: none; }
.has-hands .mark-opts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 0; position: absolute;
  left: var(--gutter, 16px); right: var(--gutter, 16px); top: 62%; z-index: 3; opacity: 0; pointer-events: none; }
.has-hands .mark-opts button { margin: 0; padding: 8px 5px; border: 0; background: transparent; color: #707070;
  font: 400 13px/1.4 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: .08em; text-transform: lowercase;
  cursor: pointer; transition: color .5s; }
.has-hands .mark-opts .mo-dot { color: #333; padding: 8px 7px; }
.has-hands .mark-opts button:hover, .has-hands .mark-opts button:focus-visible { color: var(--ink); }
.has-hands .mark-opts.is-live button { pointer-events: auto; }
.has-hands .mark-opts button[aria-pressed="true"] { color: var(--violet-hi); }
/* v0069: the question lands as crisp type (the grains do the reveal, then hand over) */
.mark-q { display: none; }
.has-hands:not(.mark-off) .mark-q { display: block; position: absolute; z-index: 2; left: 50%; margin: 0; opacity: 0; transform: translate(-50%, -50%);
  white-space: pre; text-align: center; line-height: 1.08; font-family: var(--font-display); font-weight: 500; color: #EDEDED; pointer-events: none; }
.has-hands .mark-opts button:focus-visible { outline: 1px solid var(--violet-hi); outline-offset: 2px; }
.has-hands.mark-off .mark-opts { position: relative; inset: auto; left: auto; right: auto; top: auto; opacity: 1; pointer-events: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 1.2em auto 0; }
.has-hands.mark-off .mark-opts button { position: relative; transform: none; min-height: 40px; border: 1px solid var(--line); padding: 0 12px; }
.mark-intro { display: none; }
.has-hands .mark-intro { display: block; position: absolute; z-index: 2; left: 50%; top: 50%; margin: 0; opacity: 0; /* v0053: centred on the mark */
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.7vw, 46px); line-height: 1.08;
  letter-spacing: -0.032em; color: var(--ink); text-shadow: 0 0 28px #000, 0 0 10px #000, 0 0 3px #000; transform: translate(-50%, -50%); }
.has-hands.mark-off .mark-intro { position: relative; left: auto; bottom: auto; transform: none; opacity: 1; margin: 1.4em auto 0; }
.has-mark.mark-off { height: auto; }
.has-mark.mark-off .read-pin { position: relative; height: auto; padding: var(--section-pad) 0; justify-content: flex-start; }
.has-mark.mark-off .mark-gl, .has-mark.mark-off .mark-2d { display: none; }
.has-mark.mark-off .mark-turn { position: relative; inset: auto; transform: none; opacity: 1; margin: 1.4em auto 0;
  width: min(100% - 2 * var(--gutter), var(--max)); }
@media (prefers-reduced-motion: reduce) { .read.has-mark { height: auto; } }
/* Ascension stagger: the second paragraph steps in, so the block reads as two voices, not one wall */
/* 13 Nov (your call): no stagger, both paragraphs share one left edge. */
/* the claim, 13 Nov v0009 (your call): no numerals, one left edge. Nothing is shown up front: each line comes in
   when its turn arrives (fade + small rise), a line already read steps back to mid-grey, then the mission line. */
.claim { position: relative; height: 220vh; height: 220svh; } /* 14 Nov: a little shorter than 240 (mission line gone); 190 was too short (your call) */
.claim-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column;
  justify-content: center; }
.claim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.18em; }
.claim-line { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.032em;
  font-size: clamp(34px, 4.6vw, 76px); color: var(--ink); text-wrap: balance; }
.claim-after { display: flex; align-items: center; gap: 16px; margin-top: 1.6em; margin-bottom: 0;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.015em; font-size: clamp(20px, 1.9vw, 30px); color: var(--violet-hi); }
/* 13 Nov v0012 (your call): "on you" sits a step to the right again, as before */
@media (min-width: 900px) { .claim-line + .claim-line { margin-left: clamp(48px, 9vw, 180px); } }
/* 13 Nov v0013, ink bleed (your pick): the line holds still; its words do the arriving. Each word: violet haze, wide
   and blurred -> sharpens -> colour drains from violet into white last, so the ink "settles". */
.js-claim .claim-line.is-bleed { opacity: 1; transform: none; filter: none; }
.js-claim .is-bleed .ink { display: inline-block; opacity: 0; color: var(--violet-hi);
  filter: blur(18px);
  text-shadow: 0 0 28px rgba(164, 79, 185, .95), 0 0 60px rgba(164, 79, 185, .55);
  transition-property: opacity, filter, color, text-shadow;
  transition-duration: 1.1s, 1.7s, 2.4s, 2.6s;
  transition-timing-function: ease-out, cubic-bezier(.2, .7, .2, 1), ease-in-out, ease-out;
  transition-delay: calc(var(--i) * 110ms), calc(var(--i) * 110ms),
    calc(var(--i) * 110ms + 500ms), calc(var(--i) * 110ms + 300ms); }
/* v0014: no scale, no letter-spacing move (your call: "remove the vibration"); the words stay put, only the ink settles */
.js-claim .is-bleed.is-on .ink, .js-claim .is-bleed.is-past .ink { opacity: 1; filter: blur(0); color: var(--ink); text-shadow: 0 0 0 rgba(164, 79, 185, 0), 0 0 0 rgba(164, 79, 185, 0); }
.claim-mark { display: block; width: 48px; height: 1px; background: var(--violet); transform-origin: left; flex-shrink: 0; }
.js-claim .claim-line { opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 1s ease, color .9s ease; }
.js-claim .claim-line.is-on, .js-claim .claim-line.is-past { opacity: 1; transform: none; filter: none; }
/* 13 Nov: a line already in stays white (your call: the artist line should not change) */
/* 13 Nov v0011 (your call): the artist line works as before, visible in grey up front, turns white on its turn.
   Only the lines after it come in from nothing. */
.js-claim .claim-line:first-child { opacity: 1; transform: none; filter: none; color: rgba(237, 237, 237, .14); }
.js-claim .claim-line:first-child.is-on, .js-claim .claim-line:first-child.is-past { color: var(--ink); }
.js-claim .claim-after { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js-claim .claim-after .claim-mark { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.6, 0, .2, 1) .15s; }
.js-claim .claim-after.is-on { opacity: 1; transform: none; }
.js-claim .claim-after.is-on .claim-mark { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .claim { height: auto; } .claim-pin { position: relative; height: auto; padding: var(--section-pad) 0; } }

/* the answer, 13 Nov: OFFFORM about row. Small label left, hairlines draw across, the two sentences come out of the
   dark one after the other. Reverses on the way back up. Left column = open visual slot (label holds it for now). */
.answer { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.answer-pin { display: grid; grid-template-columns: 1fr; row-gap: 28px; }
@media (min-width: 900px) { .answer-pin { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; } }
.answer-rule { grid-column: 1 / -1; display: block; height: 1px; background: var(--line); transform-origin: left; }
.answer-label { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); align-self: start; }
.answer-sq { display: block; width: 7px; height: 7px; background: var(--violet); }
.answer-text { margin: 0; max-width: 22em; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.3vw, 36px); line-height: 1.26; letter-spacing: -0.018em; color: var(--ink); text-wrap: pretty; }
.js-answer .answer-rule { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
.js-answer .answer-rule--end { transition-delay: 1.1s; }
.js-answer .answer-label { opacity: 0; transition: opacity .8s ease .35s; }
.js-answer .answer-s { color: rgba(237, 237, 237, .14); transition: color 1.1s cubic-bezier(.2, .7, .2, 1) .45s; }
.js-answer .answer-s + .answer-s { transition-delay: 1.05s; }
.js-answer .answer.is-on .answer-rule { transform: scaleX(1); }
.js-answer .answer.is-on .answer-label { opacity: 1; }
.js-answer .answer.is-on .answer-s { color: var(--ink); }

/* the stages, 17 Nov v0019 (your picks: option A, Consolidator pattern, the hairline cross-section; "build it").
   One tattoo in one piece of skin, travelling through time: the anatomy never changes, only what happens to it.
   Drawn by door.js in code (no AI film; the logo stays in the header). Ink stays in the dermis in every stage (F26). */
.stages { position: relative; height: 560vh; height: 560svh; }
.st-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.st-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 100%; padding: 56px 0 28px; }
@media (min-width: 900px) { .st-grid { grid-template-columns: 4fr 7fr; grid-template-rows: 1fr; gap: 48px; padding: 0; align-items: center; } }
.st-text { position: relative; order: 2; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) { .st-text { order: 1; gap: 28px; } }
.st-label { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); }
.st-intro { margin: 0; max-width: 20em; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.25; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.st-sub { margin: .7em 0 0; max-width: 30em; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.st-list { position: relative; min-height: 12.5em; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .st-list { min-height: 14em; } }
.st-item { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.st-item.is-past { transform: translateY(-16px); }
.st-item.is-on { opacity: 1; transform: none; filter: none; }
.st-num { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-num span { color: var(--line); margin-left: 4px; }
.st-when { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.st-line { margin: 0; max-width: 24em; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; color: #CFCFCF; text-wrap: pretty; }
.st-src { margin: 12px 0 0; font-size: 12px; color: var(--muted); opacity: .8; }
.st-close { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); color: var(--violet-hi);
  opacity: 0; transform: translateY(8px); transition: opacity .9s ease .4s, transform .9s cubic-bezier(.2,.7,.2,1) .4s; }
.stages[data-stage="5"] .st-close { opacity: 1; transform: none; }
.st-rail { position: absolute; left: calc(var(--gutter) / 2 - 2px); top: 50%; transform: translateY(-50%); display: none;
  flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1025px) { .st-rail { display: flex; } }
.st-rail li { width: 3px; height: 3px; background: var(--line); transition: height .5s ease, background .5s ease; }
.st-rail li.is-on { height: 18px; background: var(--ink); }
.st-obj { order: 1; position: relative; min-height: 0; height: 100%; }
@media (min-width: 900px) { .st-obj { order: 2; height: 84vh; height: 84svh; } }

/* the drawing, v0026 (your picks 1+2+3): an engraved atlas plate, a camera that travels through it, every change
   scrubbed by the scroll (door.js). Violet only on ink, the tattoo bracket and the bridge (DIRECTION: under 5%). */
.stages { height: 680vh; height: 680svh; }
.skin { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.skin * { vector-effect: non-scaling-stroke; }
.s-surf { fill: none; stroke: #DADADA; stroke-width: 1; }
.s-border { fill: none; stroke: #7A7A7A; stroke-width: 1; }
.s-fat { fill: none; stroke: #4A4A4A; stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.hatch path { fill: none; stroke: #262626; stroke-width: 1; }
.stip circle { fill: #3A3A3A; }
.mesh path { fill: none; stroke: #232323; stroke-width: 1; }
.fatcells circle { fill: none; stroke: #262626; stroke-width: 1; }
.s-new { fill: none; stroke: #DADADA; stroke-width: 1; }
.s-film { fill: none; stroke: #EDEDED; stroke-width: 1.25; }
.ink circle { fill: var(--violet); }
.ink circle:nth-child(4n) { fill: var(--violet-hi); }
.fluid circle { fill: #000; stroke: #EDEDED; stroke-width: 1.25; }
.c-band { fill: #111; stroke: #EDEDED; stroke-width: 1; stroke-linejoin: round; }
.c-hatch line { stroke: #4A4A4A; stroke-width: 1; }
.c-crack { stroke: #9A9A9A; stroke-width: 1; }
.c-lift { fill: #111; stroke: #EDEDED; stroke-width: 1; stroke-linejoin: round; }
.rays line { stroke: #2A2A2A; stroke-width: 1; }
.rays line.deep { stroke: #5A5A5A; }
.cell-bg { fill: rgba(0,0,0,.78); }
.mac { fill: none; stroke: #CFCFCF; stroke-width: 1; }
.fibro { fill: none; stroke: #7A7A7A; stroke-width: 1; }
.nuc { fill: none; stroke: #5A5A5A; stroke-width: 1; }
.gran { fill: var(--violet-hi); } .gran:nth-child(3n) { fill: var(--violet); }
.bridge { fill: none; stroke: var(--violet-hi); stroke-width: 1; stroke-dasharray: 2 4; }
.tbracket { fill: none; stroke: var(--violet); stroke-width: 1; }
.cells, .fluid, .crust, .bridge { opacity: 0; }

/* HTML labels and caption: constant size at any zoom */
.st-labs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-lab { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; margin-top: -.6em;
  font: 400 12px/1.2 var(--font-body); color: var(--muted); white-space: nowrap; opacity: 0; will-change: transform; }
.st-lab::before { content: ''; width: 12px; height: 1px; background: #4A4A4A; flex-shrink: 0; }
.st-lab.on { color: var(--ink); } .st-lab.on::before { background: #9A9A9A; }
.st-lab.v { color: var(--violet-hi); }
.st-lab.mid { flex-direction: column; gap: 0; } .st-lab.mid::before { display: none; }
.st-lab.mid { translate: -50% 0; }
.st-lab.edge { left: auto; right: 0; flex-direction: row-reverse; padding-left: 6px; background: #000; }
.st-fig { position: absolute; left: 0; top: 0; margin: 0; font: 400 12px/1.3 var(--font-body); color: var(--muted); }
.st-fig b { color: var(--ink); font-weight: 500; margin-right: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .st-lab { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .stages { height: auto; } .st-pin { position: relative; height: auto; padding: var(--section-pad) 0; }
  .st-grid { height: auto; } .st-obj { height: 60vh; } .st-list { min-height: 0; }
  .st-item { position: relative; opacity: 1; transform: none; filter: none; margin-bottom: 40px; }
  .st-close { opacity: 1; transform: none; } }

/* 17 Nov, one label system (your pick: the Enter): 12-13px, 500, caps tracked .24em, muted, plus the violet line.
   Enter keeps the looping pull; every other label draws its line once (on hover, or when its moment arrives).
   The atlas labels inside the drawing stay sentence case: they annotate the figure, they don't label the page. */
.lab-line { display: block; flex-shrink: 0; width: 32px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.nav-join { gap: 10px; }
.nav-join .lab-line { width: 20px; transform-origin: right; background: linear-gradient(270deg, var(--violet), transparent);
  transition-duration: .5s; }
.nav-join:hover .lab-line, .nav-join:focus-visible .lab-line { transform: scaleX(1); }
.joinrow-label .lab-line { width: 56px; transition-delay: .5s; }
.js-join .joinrow.is-on .joinrow-label .lab-line, html:not(.js-join) .joinrow-label .lab-line { transform: scaleX(1); }
.st-num { display: flex; align-items: center; font-size: 12px; letter-spacing: .24em; color: var(--muted); }
.st-num span:not(.lab-line) { color: var(--line); margin-left: .3em; letter-spacing: .24em; }
.st-num .lab-line { margin-left: 10px; transition-delay: .25s; }
.st-item.is-on .st-num .lab-line { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .lab-line { transition: none; } }

/* 17 Nov: ™ on the wordmark (your call), small and raised, out of the letter tracking */
.wordmark .tm { font-size: .42em; font-weight: 500; letter-spacing: 0; margin-left: .2em; position: relative; top: -.6em; }

/* PREVIEW BADGE: remove before any deploy */
.preview-badge { position: fixed; right: 8px; bottom: 8px; z-index: 9999; padding: 3px 7px; font: 500 11px/1 var(--font-body);
  color: #000; background: var(--violet-hi); border-radius: 2px; pointer-events: none; }

/* the welcome: quiet entrance wall between the lobby and the walk */
.welcome { min-height: 80vh; min-height: 80svh; display: flex; align-items: center; }
.welcome-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.welcome-k { font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet-hi); }
.welcome-line { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  font-size: clamp(28px, 3.6vw, 56px); max-width: 18em; text-wrap: balance; color: var(--ink); }
.js-door .welcome-k, .js-door .welcome-line { opacity: 0; transform: translateY(16px); filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(.2, .7, .2, 1), transform 1.4s cubic-bezier(.2, .7, .2, 1), filter 1.4s cubic-bezier(.2, .7, .2, 1); }
.js-door .welcome-line { transition-delay: .2s; }
.js-door .welcome.is-on .welcome-k, .js-door .welcome.is-on .welcome-line { opacity: 1; transform: none; filter: none; }

/* the gallery walk: text works on a black wall. Base = stacked (phone, reduced motion); desktop pins + walks sideways */
.gallery { position: relative; overflow: hidden; }
.wall { display: flex; flex-direction: column; }
.work { position: relative; margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; gap: 40px; padding: 0 var(--gutter); }
/* the spotlight: a cone from the ceiling + a pool of light on the wall */
.work::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 150vw); height: 100%;
  transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1);
  background:
    radial-gradient(ellipse 42% 30% at 50% 50%, rgba(237, 237, 237, .075), rgba(237, 237, 237, 0) 70%),
    radial-gradient(ellipse 30% 12% at 50% 0%, rgba(200, 139, 220, .18), rgba(200, 139, 220, 0) 100%),
    linear-gradient(rgba(237, 237, 237, .06), rgba(237, 237, 237, 0) 75%);
  clip-path: polygon(44% 0, 56% 0, 86% 100%, 14% 100%); }
.work::before, .join::before { -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
.work.is-lit::before { opacity: 1; }
.work-text { position: relative; margin: 0 auto; max-width: 14em; text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-weight: 500; line-height: 1.0; letter-spacing: -0.035em;
  font-size: clamp(40px, 7vw, 112px); color: #1c1c1c; transition: color 1.2s cubic-bezier(.2, .7, .2, 1); }
.work.is-lit .work-text { color: var(--ink); }
.work-label { position: relative; display: flex; flex-direction: column; gap: 2px; align-self: center;
  min-width: 180px; padding: 12px 14px; border-left: 1px solid var(--violet); font-size: 12px; line-height: 18px;
  color: var(--muted); opacity: 0; transform: translateY(8px);
  transition: opacity 1s ease .35s, transform 1s cubic-bezier(.2, .7, .2, 1) .35s; }
.work-label b { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }
.work.is-lit .work-label { opacity: 1; transform: none; }

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .is-walk .gallery { height: 100vh; }
  .is-walk .wall { flex-direction: row; height: 100%; width: max-content; will-change: transform; }
  .is-walk .work { width: 100vw; min-height: 0; height: 100%; flex: 0 0 auto; }
  .is-walk .work-label { position: absolute; left: calc(50% + min(34vw, 520px)); top: 60%; align-self: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .work::before { opacity: 1; } .work-text { color: var(--ink); } .work-label { opacity: 1; transform: none; }
}

/* joining */
.join { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: var(--section-pad) 0;
  position: relative; }
.join::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 150vw); height: 100%;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(ellipse 40% 26% at 50% 34%, rgba(200, 139, 220, .10), rgba(200, 139, 220, 0) 70%),
    radial-gradient(ellipse 30% 10% at 50% 0%, rgba(200, 139, 220, .22), rgba(200, 139, 220, 0) 100%),
    linear-gradient(rgba(237, 237, 237, .06), rgba(237, 237, 237, 0) 70%);
  clip-path: polygon(44% 0, 56% 0, 86% 100%, 14% 100%); }
.join-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.join-title { font-family: var(--font-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.04em;
  font-size: clamp(48px, 9vw, 140px); }
.join-sub { color: var(--muted); max-width: 30em; }
@media (min-width: 1025px) { .join-sub { font-size: 18px; } }
.join-form { margin-top: 32px; text-align: left; }
.opt { color: var(--muted); font-weight: 400; }

/* join row, 17 Nov: basement.studio sign-up (measured) inside the answer's OFFFORM grid.
   Basement: 20px/600 Geist, -0.4px, field 420x24 fill #1A1A1A, placeholder #757575, 1px brand-colour border on focus,
   text link instead of a button, 24px line->form, 4px field->link. Ours: Inter Tight 500, fill = --rule, focus = violet. */
.joinrow { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.joinrow-pin { display: grid; grid-template-columns: 1fr; row-gap: 28px; }
@media (min-width: 900px) { .joinrow-pin { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; } }
.joinrow-label { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); align-self: start; }
.joinrow-body { max-width: 26.25rem; }
.joinrow-line { margin: 0 0 24px; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.joinrow-form { display: flex; flex-direction: column; gap: 4px; }
.joinrow-field { box-sizing: border-box; width: 100%; height: 32px; margin: 0; padding: 0 6px; border: 1px solid var(--rule);
  border-radius: 0; background: var(--rule); color: var(--ink); font: 500 20px/1 var(--font-display); letter-spacing: -0.02em;
  outline: none; transition: border-color .15s linear; -webkit-appearance: none; appearance: none; }
.joinrow-field::placeholder { color: var(--muted); opacity: 1; }
.joinrow-field:hover { border-color: var(--line); }
.joinrow-field:focus-visible { border-color: var(--violet-hi); }
.joinrow-field[aria-invalid="true"] { border-color: var(--violet); }
/* age chips (17 Nov): same fill as the field, tap = violet edge + white text; one tap, optional */
.joinrow-age { margin: 12px 0 4px; padding: 0; border: 0; min-width: 0; }
.joinrow-q { padding: 0 6px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.joinrow-opt { margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); opacity: .7; }
.joinrow-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.joinrow-chips label { position: relative; cursor: pointer; }
.joinrow-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.joinrow-chips span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--rule);
  background: var(--rule); color: var(--muted); font: 500 16px/1 var(--font-display); letter-spacing: -0.01em;
  transition: color .06s linear, border-color .15s linear; }
.joinrow-chips label:hover span { color: var(--ink); border-color: var(--line); }
.joinrow-chips input:checked + span { color: var(--ink); border-color: var(--violet-hi); }
.joinrow-chips input:focus-visible + span { outline: 1px solid var(--violet-hi); outline-offset: 2px; }
.joinrow.is-done .joinrow-age { display: none; }
.joinrow-go { align-self: flex-start; margin: 2px 0 0; padding: 4px 6px; border: 0; background: none; cursor: pointer;
  font: 500 20px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--muted); transition: color .06s linear; }
.joinrow-go:hover, .joinrow-go:focus-visible { color: var(--ink); }
.joinrow-go:focus-visible { outline: 1px solid var(--violet-hi); outline-offset: 2px; }
.joinrow-note { margin: 4px 0 0; min-height: 1.4em; padding: 0 6px; font-size: 14px; color: var(--violet-hi); }
.joinrow-consent { margin: 20px 0 0; padding: 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.joinrow-consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.joinrow-consent a:hover { color: var(--ink); }
.joinrow.is-done .joinrow-form .joinrow-field, .joinrow.is-done .joinrow-go { display: none; }
.joinrow.is-done .joinrow-note { padding: 0; font: 500 20px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.js-join .joinrow-rule { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
.js-join .joinrow-label, .js-join .joinrow-body { opacity: 0; transition: opacity .9s ease .35s; }
.js-join .joinrow.is-on .joinrow-rule { transform: scaleX(1); }
.js-join .joinrow.is-on .joinrow-label, .js-join .joinrow.is-on .joinrow-body { opacity: 1; }
/* header link back (17 Nov) */
.nav-join { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; min-height: 44px; }
.nav-join:hover, .nav-join:focus-visible { color: var(--ink); }

/* footer: one quiet line */
.door-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center;
  border-top: 1px solid var(--rule); padding: 24px 0 32px; font-size: 13px; color: var(--muted); }
.door-foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.door-foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.door-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .door-line { animation: none; } }

/* 19 Nov: the ink as grains (kept, your call), drawn on a canvas over the plate, under the labels */
.st-grains { position: absolute; left: 0; top: 0; pointer-events: none; }

/* v0072 (your pick, option 2): the stages restyled to sit in section 2's world. The plate stays; labels, figure
   captions, numbering, the side rail and the heading go; everything is centred; the engraving steps back.
   Backup: door.css.bak-v0071. */
.st-clean .st-labs, .st-clean .st-fig, .st-clean .st-rail, .st-clean .st-num, .st-clean .st-intro, .st-clean .tbracket { display: none; }
.st-clean .st-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; padding: 6vh 0 9vh; padding: 6svh 0 9svh; align-items: stretch; }
.st-clean .st-obj { order: 1; height: auto; width: min(100%, 980px); margin: 0 auto; }
.st-clean .st-text { order: 2; align-items: center; text-align: center; gap: 0; }
.st-clean .st-list { width: 100%; min-height: 9.5em; }
.st-clean .st-item { left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.st-clean .st-when { font-size: clamp(30px, 3.2vw, 50px); margin-bottom: 12px; }
.st-clean .st-line { max-width: 30em; margin: 0 auto; color: #BDBDBD; }
.st-clean .st-src { opacity: .55; margin-top: 14px; }
.st-clean .hatch path, .st-clean .fatcells circle { stroke: #171717; }
.st-clean .mesh path { stroke: #151515; }
.st-clean .stip circle { fill: #262626; }
.st-clean .s-surf, .st-clean .s-new { stroke: #9C9C9C; }
.st-clean .s-border { stroke: #4A4A4A; }
.st-clean .s-fat { stroke: #303030; }
@media (max-width: 899px) { .st-clean .st-grid { padding: 8svh 0 6svh; } .st-clean .st-list { min-height: 11em; } }

/* v0074: their answer after a pick, big and centred like the claim, over the grain haze */
.mark-answer { display: none; }
.has-hands .mark-answer { display: block; position: absolute; z-index: 3; left: 50%; top: 70%; width: min(92%, 28em); margin: 0;
  opacity: 0; transform: translate(-50%, 0); text-align: center; pointer-events: none; }   /* v0084: under the line of words (top set by hands.js) */
.mark-answer .ma-when { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; text-shadow: 0 0 28px #000, 0 0 8px #000; }
.mark-answer .ma-line { margin: .35em auto 0; max-width: 26em; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; color: #BDBDBD;
  text-wrap: balance; text-shadow: 0 0 18px #000, 0 0 5px #000; }
.has-hands.mark-off .mark-answer { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 1.6em auto 0; }

/* v0076: the join flow. One question per screen, section 2's look: crisp question, dim boxes, violet on hover/focus/pick */
.joinflow { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.jf-haze { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jf-pin { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; min-height: 26em; }
.jf-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; width: 100%;
  opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.jf-step.is-past { transform: translateY(-18px); }
.jf-step.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.jf-q { margin: 0; max-width: 18em; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.08; letter-spacing: -0.032em; color: var(--ink); text-wrap: balance; }
.jf-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; }
.jf-opts button { min-width: 9.5em; min-height: 54px; padding: 0 18px; border: 1px solid #3A3A3A; background: transparent; color: var(--muted);
  font: 500 clamp(15px, 1.3vw, 19px)/1 var(--font-display); letter-spacing: -0.01em; cursor: pointer;
  transition: color .15s linear, border-color .2s linear, background-color .2s linear; }
.jf-opts button:hover, .jf-opts button:focus-visible { color: var(--ink); border-color: var(--violet-hi); outline: none; }
.jf-opts button[aria-pressed="true"] { color: var(--ink); border-color: var(--violet-hi); background: rgba(164, 79, 185, .12); }
@media (max-width: 699px) { .jf-opts { flex-direction: column; width: min(100%, 22em); } .jf-opts button { width: 100%; } }
.jf-sum { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-hi); }
.jf-sum:empty { display: none; }
.jf-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 30em); }
.jf-field { flex: 1 1 16em; min-height: 54px; padding: 0 16px; border: 1px solid #3A3A3A; background: transparent; color: var(--ink);
  font: 500 17px/1 var(--font-display); }
.jf-field:focus { outline: none; border-color: var(--violet-hi); }
.jf-field[aria-invalid="true"] { border-color: #C85A5A; }
.jf-go { min-height: 54px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #000; font: 500 17px/1 var(--font-display); cursor: pointer; }
.jf-go:hover, .jf-go:focus-visible { background: var(--violet-hi); border-color: var(--violet-hi); outline: none; }
.jf-note { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 14px; color: var(--muted); }
.jf-consent { margin: 0; font-size: 13px; color: var(--muted); }
.jf-consent a { color: inherit; }
.jf-back { position: absolute; left: 50%; bottom: -3.2em; transform: translateX(-50%); border: 0; background: none; color: var(--muted);
  font: 500 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.jf-back:hover, .jf-back:focus-visible { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .jf-step { transition: none; } }
@media (max-width: 699px) { .jf-form { width: min(100%, 22em); } .jf-field { flex-basis: 100%; } .jf-go { width: 100%; }
  .jf-consent { max-width: 22em; text-wrap: balance; } }
/* v0084: the line of words fits one row on a phone */
@media (max-width: 520px) { .has-hands .mark-opts button { letter-spacing: .02em; padding: 8px 3px; font-size: 12.5px; } .has-hands .mark-opts .mo-dot { padding: 8px 3px; } }
/* v0085: what they get, above the join (both reviews); the "three questions" line goes once they reach the email */
.jf-promise { grid-area: 1 / 1; width: min(100%, 34em); text-align: center; margin-bottom: 2.6em; }
.jf-p1 { margin: 0; font: 500 clamp(16px, 1.4vw, 20px)/1.35 var(--font-display); color: var(--ink); text-wrap: balance; }
.jf-p2 { margin: .5em 0 0; font-size: 13px; color: var(--muted); transition: opacity .4s; }
.jf-pin:has(.jf-step[data-step="join"].is-on) .jf-p2 { opacity: 0; }
.jf-pin { grid-template-rows: auto auto; place-items: start center; align-content: center; }
.jf-pin > .jf-step { grid-area: 2 / 1; }
.jf-opts button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .jf-opts button:hover:not([aria-pressed="true"]) { color: var(--muted); border-color: #3A3A3A; } }
.jf-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }   /* v0093: honeypot */
