/* ─────────────────────────────────────────────────────────────
   NOUSCERA — the lab's front, 2026-09-20

   Every value tagged. FORCED = nothing else was left once the
   constraint applied. CHOSEN = taste entered, and taste that enters
   is declared so it can be argued with.

   The reference Trevor gave is a contemporary one, and the same rule
   applies to it as to an astrolabe: BORROW STRUCTURAL TRUTH, NOT
   COSTUME (SG8). What is borrowed and why is marked below. What is
   not borrowed: its colours, its typefaces, its wordmark treatment,
   and its hero image — we do not have one and faking it would be the
   costume.

   Nothing here is Locked. All of it is Accepted working.
   ───────────────────────────────────────────────────────────── */

:root {
  /* CHOSEN — a warm ground, not clinical white. Borrowed as
     structure: paper that has a temperature reads as a made thing
     rather than a blank application. The specific value is taste and
     is the first colour this project has ever set. */
  --paper: #FFFFFF;
  --ink:   #16150F;

  /* CHOSEN — 0.62 rather than the arc's 0.55, because this ground is
     darker than white and the same ratio would read heavier. */
  --quiet: 0.62;

  /* TWO FACES, TWO VOICES — and this is the borrow that matters.
     The sensory grammar has required four typographic voices since
     before the first brick, and twenty bricks shipped with ONE. The
     reference solves it with FACE contrast rather than weight, which
     is the correct mechanism: weight answers HOW MUCH, never WHAT
     KIND (R1b). CHOSEN, both of them, as a first pairing to argue
     with rather than a conclusion. */
  --claim: 'Archivo', system-ui, sans-serif;     /* what is being made */
  --read:  'Newsreader', Georgia, serif;         /* what it means      */

  /* FORCED — legibility. Reading serif wants a slightly wider
     measure than the sans-set pages. */
  --measure: 38rem;
  --page: 74rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 1.12rem;
  line-height: 1.55;
  padding: 0 1.5rem 0;
}

a { color: inherit; text-decoration: underline;
    text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* ── the bar ───────────────────────────────────────────────────
   FORCED — hierarchy, not five flat peers. The previous nav put a
   waitlist, a product and the parent lab at the same level, which is
   a list of files rather than an architecture. Here: the name, what
   the lab is about, and ONE way out to the product. */
.bar {
  position: sticky; top: 0.8rem; z-index: 5;
  display: flex; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap;
  width: min(100%, var(--page)); margin: 0.8rem auto 0; padding: 0.68rem 0.9rem 0.68rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.94); border-radius: 1.45rem;
  background: linear-gradient(112deg, rgba(255,255,255,0.70), rgba(255,255,255,0.35) 48%, rgba(244,246,248,0.44) 76%, rgba(255,255,255,0.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(22,21,15,0.05), 0 1.25rem 2.8rem rgba(22,21,15,0.09), 0 0.18rem 0.5rem rgba(22,21,15,0.035);
  -webkit-backdrop-filter: blur(22px) saturate(1.45) contrast(1.04);
  backdrop-filter: blur(22px) saturate(1.45) contrast(1.04);
  isolation: isolate; overflow: hidden;
}
.bar::before {
  content: ""; position: absolute; z-index: 0; inset: -95% -24%;
  background: radial-gradient(ellipse at 31% 45%, rgba(255,255,255,1) 0 8%, transparent 24%), radial-gradient(ellipse at 70% 56%, rgba(224,232,240,0.34) 0 10%, transparent 33%);
  opacity: 0.72; transform: translate3d(-8%, 0, 0) rotate(-8deg);
  animation: liquid-drift 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}
.bar::after {
  content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.30), inset 0 0.85rem 1.5rem rgba(255,255,255,0.16);
  pointer-events: none;
}
.bar > * { position: relative; z-index: 1; }
.nav-toggle { display: none; }
.lab-home .bar nav { order: 1; }
.lab-home .bar .door { order: 2; }
.lab-home .bar a:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
@keyframes liquid-drift {
  0%, 100% { transform: translate3d(-8%, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(8%, 0, 0) rotate(-8deg); }
}
.mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--claim); font-weight: 600;
  /* CHOSEN — the supplied radial mark gives Nouscera one warm, living
     signal. The name stays beside it: the mark identifies; the word
     remains legible at first encounter. */
  letter-spacing: 0.14em; font-size: 0.94rem;
  text-decoration: none; margin-right: auto;
}
.mark img { width: 2rem; height: 2rem; flex: none; }
/* FULL CONTRAST, and this was wrong before. The nav was set at 0.62
   so it would not "compete" with the page — but nothing is competing,
   and navigation's whole job is to be FOUND. Research and Field notes
   are bodies of work, not footnotes, and at 0.62 next to a filled
   pill the only thing the eye landed on was the pill.

   EMPHASIS BY ADDING TO ONE, NOT BY SUBTRACTING FROM THE REST. The
   door is prominent because it is filled, not because everything
   around it was dimmed. Dimming the alternatives to make one thing
   stand out is how a site ends up with a single route. */
.bar nav { display: flex; gap: 0.35rem 1.25rem; flex-wrap: wrap;
           font-family: var(--claim); font-size: 0.98rem; }
.bar nav a { padding: 0.38rem 0.28rem; border-radius: 0.62rem; text-decoration: none; transition: background-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: rgba(22,21,15,0.055); transform: translateY(-1px); }
.bar nav a:hover { text-decoration: underline;
                   text-underline-offset: 0.28em; }

/* CHOSEN — one emphasised destination. Borrowed as structure: a nav
   in which everything is equal tells a first-time visitor nothing
   about what to do. Inverted rather than coloured, because no brand
   colour has been derived and inventing one for a button would be
   exactly backwards. */
.door {
  font-family: var(--claim); font-size: 0.92rem; font-weight: 500;
  background: rgba(22,21,15,0.94); color: var(--paper);
  padding: 0.54rem 1rem; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0.35rem 0.9rem rgba(22,21,15,0.18);
  text-decoration: none; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
}
.door:hover { transform: translateY(-1px) scale(1.02); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0.65rem 1.35rem rgba(22,21,15,0.24); }

main { max-width: var(--page); margin: 0 auto; }

/* ── the home field ────────────────────────────────────────────
   FORCED — on the lab's front, the clear ground is not leftover
   browser height. It is the field in which the single proposition
   stands. Other pages remain document-length; only this threshold
   claims the whole first viewport. */
.lab-home {
  min-block-size: 100svh;
  font-family: var(--claim);
  /* One warm source sits below the combined card/footer field. Both surfaces
     sample the same reflection, so there is no second light or join line. */
  --black-glass:
    radial-gradient(ellipse 58% 24% at 74% 110%, rgba(229,186,133,.105), rgba(172,123,72,.03) 50%, transparent 82%),
    radial-gradient(ellipse 84% 72% at 77% 116%, rgba(192,134,77,.03), transparent 80%),
    #080808;
}
.lab-home > .bar { width: min(100%, var(--page)); }
.lab-home main {
  width: 100%;
}
.lab-home .hero {
  position: relative;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: clamp(2rem, 4.5vh, 4rem) 0;
  width: 100%;
  min-block-size: calc(100svh - 6.75rem);
  align-content: center;
  padding-block: clamp(5rem, 12vh, 9rem) 3rem;
}
.lab-home .hero h1 {
  font-family: var(--read);
  grid-column: 2 / span 10; grid-row: 1; z-index: 1; justify-self: center;
  max-width: 58rem; text-align: center; font-size: clamp(3.25rem, 6.4vw, 5.9rem);
  font-weight: 400; line-height: 1.04; letter-spacing: -0.035em;
}
.hero-prefix, .hero-claim { display: block; }
.hero-prefix {
  max-width: 30rem; margin: 0 auto 0.7em;
  font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.02em;
}
.hero-claim { max-width: 58rem; text-wrap: balance; }
.hero-claim-line { display: block; }
.hero-claim a { text-underline-offset: 0.12em; }
.lab-home .hero .lede {
  grid-column: 4 / span 6; grid-row: 2; z-index: 1; justify-self: center;
  max-width: 39rem; margin: 0; text-align: center;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem); line-height: 1.5;
}
.lab-home .hero .hero-insight {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 500;
  line-height: 1.35; letter-spacing: -0.015em;
}
.lab-home .hero .hero-thoughts { display: grid; gap: 0.4rem; }
.lab-home .lede p + p { margin-top: 1.15rem; }
.lab-home .lede p:last-child { margin-top: 1.65rem; opacity: 1; }

/* Atmospheric study, 2026-10-18.
   DERIVED: text and navigation stay readable; scroll parts the mist and
   reveals contours; the same field reaches the KIRA threshold.
   CHOSEN: white sculptural folds, cool shadows, soft grazing light.
   This layer carries atmosphere, depth, and pace. It makes no claim to
   diagnose a visitor or to reproduce the founder scene's operations. */
.lab-home { overflow-x: clip; }
.lab-home main { position: relative; isolation: isolate; }
.home-atmosphere {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -19rem; width: 100vw;
  height: calc(100svh + 30rem); max-height: 105rem;
  transform: translateX(-50%); overflow: hidden;
}
/* On this white field, a white foreground fade has the same visible blend
   as an alpha mask, without flattening every moving child into a mask. */
.home-atmosphere::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #fff, transparent 10%, transparent 77%, #fff);
}
.atmosphere-relief {
  position: absolute; inset: -8% -7% -2%;
  opacity: calc(.95 + var(--mist-open, 0) * .05);
  transform: translate3d(0, calc(var(--mist-open, 0) * -2.5rem), 0);
  /* Scroll already supplies intermediate positions; easing them again
     makes the field trail behind a finger. The inner pulse stays eased. */
  translate: var(--mist-nudge-x, 0px) var(--mist-nudge-y, 0px);
}
.atmosphere-definitions { position: absolute; overflow: hidden; }
.atmosphere-mist {
  position: absolute; inset: 0;
}
.home-atmosphere[data-mist-wake] .atmosphere-mist {
  -webkit-mask: url('#mist-cursor-mask');
  mask: url('#mist-cursor-mask');
}
.atmosphere-relief picture { display: block; width: 100%; height: 100%; }
.atmosphere-relief img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  animation: relief-breathe 8s cubic-bezier(.45,0,.55,1) -1.3s infinite;
  will-change: transform, opacity;
}
.atmosphere-fog {
  position: absolute; inset: -15%;
}
.atmosphere-fog::before {
  content: ""; position: absolute; inset: -3%;
  background-image: var(--fog-image);
  background-repeat: no-repeat; background-size: cover;
  animation: mist-breathe 8s cubic-bezier(.45,0,.55,1) -1.3s infinite;
  will-change: transform, opacity;
}
.atmosphere-fog-far {
  --fog-image: radial-gradient(ellipse at 72% 43%, rgba(255,255,255,.97), rgba(255,255,255,.74) 29%, transparent 62%), url('/atmosphere-mist.webp');
  opacity: calc(.5 - var(--mist-open, 0) * .17);
  transform: translate3d(calc(var(--mist-open, 0) * 12%), calc(var(--mist-open, 0) * -5%), 0);
}
.atmosphere-fog-near {
  inset: 6% -25% -22%;
  --fog-image: radial-gradient(ellipse at 30% 60%, #fff, rgba(255,255,255,.89) 29%, transparent 66%), url('/atmosphere-mist.webp');
  opacity: calc(.6 - var(--mist-open, 0) * .32);
  transform: translate3d(calc(var(--mist-open, 0) * -17%), calc(var(--mist-open, 0) * 4%), 0);
}
.atmosphere-light {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 26%, rgba(255,255,255,.3), rgba(255,255,255,.16) 24%, transparent 53%);
  animation: light-breathe 8s cubic-bezier(.45,0,.55,1) -1.3s infinite;
}
/* Inner layers breathe independently of the outer scroll transforms.
   The negative delay gives the first view an active pulse immediately.
   Text and navigation never pulse. */
@keyframes relief-breathe {
  0%, 100% { opacity: .82; transform: translate3d(0, .75rem, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(0, -1.5rem, 0) scale(1.055); }
}
@keyframes mist-breathe {
  0%, 100% { opacity: 1; transform: translate3d(-1.5%, 1%, 0) scale(1.01); }
  50% { opacity: .22; transform: translate3d(2.5%, -2%, 0) scale(1.07); }
}
@keyframes light-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.lab-home .hero h1, .lab-home .hero .lede { position: relative; }
.lab-home .kira-threshold {
  --threshold-veil: calc(.65 - var(--mist-open, 0) * .55);
}
.lab-home .kira-threshold > * { position: relative; z-index: 1; }
.lab-home .kira-threshold::before {
  z-index: 0; inset: -16rem -9rem auto; width: auto; height: 28rem;
  aspect-ratio: auto; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 8%, rgba(250,252,253,.8), rgba(231,238,243,.22) 34%, transparent 67%);
  opacity: var(--threshold-veil); filter: blur(22px);
  transform: translate3d(0, calc(var(--mist-open, 0) * -7rem), 0);
  transition: transform 1000ms cubic-bezier(.22,.61,.36,1), opacity 1000ms ease;
}

/* The surface grows behind fixed text; the measured footer gap is bridged
   without changing document geometry or feeding back into scroll progress. */
.lab-home .kira-threshold { overflow: visible; background: transparent; }
.lab-home .kira-threshold > .threshold-surface {
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: calc(-1 * var(--kira-bridge, 0px));
  left: calc(-1 * var(--kira-bleed, 0px));
  right: calc(-1 * var(--kira-bleed, 0px));
  border-radius: calc(clamp(1.7rem, 3vw, 2.75rem) * (1 - var(--kira-expand, 0)));
  background: var(--kira-ground, #16150f);
}
.lab-home .kira-threshold::before, .lab-home .kira-threshold::after { content: none; }
.threshold-surface::before {
  content: ""; position: absolute; pointer-events: none;
  inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 77% 116%, rgba(233,191,139,.085), transparent 65%);
  box-shadow: inset 0 -1px 0 rgba(239,199,148,.145), inset 1px 0 0 rgba(228,174,116,.03);
  opacity: calc(1 - var(--kira-expand, 0));
}

/* Reveal a fixed-size surface instead of relaying out and painting a larger
   rectangle on every scroll frame. The visible edges follow the same path. */
@supports (clip-path: inset(0 round 1px)) {
  .lab-home .kira-threshold > .threshold-surface {
    left: calc(-1 * var(--kira-max-bleed, 0px));
    right: calc(-1 * var(--kira-max-bleed, 0px));
    bottom: calc(-1 * var(--kira-max-bridge, 0px));
    clip-path: inset(0
      calc(var(--kira-max-bleed, 0px) - var(--kira-bleed, 0px))
      calc(var(--kira-max-bridge, 0px) - var(--kira-bridge, 0px))
      round calc(clamp(1.7rem, 3vw, 2.75rem) * (1 - var(--kira-expand, 0))));
    border-radius: 0;
    background: #16150f;
    will-change: clip-path;
  }
  .threshold-surface::after {
    content: ""; position: absolute; inset: 0; background: var(--black-glass);
    background-size: 100% var(--black-field-height, 100%); background-repeat: no-repeat;
    opacity: var(--kira-join, 0);
    will-change: opacity;
  }
}

/* A compositor surface grows as cached layers. Rounded material meets the
   full black ground through opacity; no clip, size or color is repainted. */
.surface-plane { display: none; }
.lab-home .kira-threshold > .threshold-surface[data-compositor] {
  clip-path: none; background: transparent; border-radius: 0; will-change: auto;
}
.threshold-surface[data-compositor]::before,
.threshold-surface[data-compositor]::after { content: none; }
.threshold-surface[data-compositor] > .surface-plane {
  display: block; position: absolute; inset: 0; pointer-events: none;
  transform-origin: 0 0; will-change: transform, opacity;
}
.surface-rounded { background: var(--black-glass); }
.surface-glow {
  background: radial-gradient(ellipse at 77% 116%, rgba(233,191,139,.085), transparent 65%);
  box-shadow: inset 0 -1px 0 rgba(239,199,148,.145), inset 1px 0 0 rgba(228,174,116,.03);
}
.surface-black, .surface-ground { background: var(--black-glass); opacity: 0; }
.surface-rounded, .surface-black, .surface-ground {
  background-size: 100% var(--black-field-height, 100%); background-repeat: no-repeat;
}

/* ── the one KIRA door ─────────────────────────────────────────
   It is a threshold into the fixed founder scene, not an invented
   product surface. Its darker ground marks a change of object while
   the copy keeps the prototype's limits visible. */
.kira-threshold {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem 4rem;
  min-block-size: 29rem; margin: 0 0 clamp(4rem, 9vh, 8rem);
  padding: clamp(2.4rem, 5vw, 5rem);
  background: #16150F; color: var(--paper); border-radius: clamp(1.7rem, 3vw, 2.75rem);
}
.kira-threshold::before {
  content: ""; position: absolute; z-index: -1; inset: -22rem -15rem auto auto;
  width: 44rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 44% 53%, rgba(255,255,255,0.16) 0 2%, rgba(255,255,255,0.075) 13%, rgba(255,255,255,0.035) 26%, transparent 58%);
  filter: blur(2px);
}
.kira-threshold::after {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -55% 18%;
  height: 17rem; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.055), transparent 67%);
}
.threshold-introduction { align-self: end; }
.threshold-name {
  margin-bottom: 1.25rem; font-family: var(--claim); font-size: 0.86rem;
  font-weight: 600; letter-spacing: 0.15em;
}
.threshold-introduction h2 {
  max-width: 40rem; font-family: var(--read); font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.035em;
}
.threshold-copy { align-self: end; max-width: 31rem; font-size: 1.12rem; }
.threshold-copy p + p { margin-top: 1.15rem; }
.threshold-door {
  display: inline-flex; gap: 0.65rem; align-items: center; margin-top: 2.2rem;
  padding: 0.72rem 0.95rem 0.72rem 1rem; border: 1px solid rgba(242,240,234,0.42);
  border-radius: 999px; color: var(--paper); font-family: var(--claim); font-size: 0.94rem;
  text-decoration: none; transition: background-color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.threshold-door:hover { background: rgba(242,240,234,0.12); border-color: rgba(242,240,234,0.82); transform: translateY(-1px); }
.threshold-door span { font-size: 1.15em; line-height: 0; }
.threshold-status { margin-top: 1.25rem !important; font-family: var(--claim); font-size: 0.82rem; line-height: 1.45; opacity: 0.64; }

/* ── the claim ─────────────────────────────────────────────────
   Two columns, unequal, claim left and meaning right. Borrowed as
   structure: it puts the thing being asserted and the thing that
   explains it in ONE glance without either becoming a caption on the
   other. */
.hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem 4rem;
  padding: 5rem 0 6rem; align-items: start;
}
h1 {
  font-family: var(--claim); font-weight: 600;
  /* FORCED to be fluid: a claim this size must not overflow a phone
     and must not shrink to nothing on a wide screen. */
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
}
/* The underline in the claim is a LINK, not decoration. The
   reference underlines words in its headline and those words are
   links; underlining without linking would be the costume. */
h1 a { text-decoration-thickness: 2px; text-underline-offset: 0.1em; }

.lede { font-size: 1.14rem; }
.lede p + p { margin-top: 1.1rem; }
.lede p:last-child { opacity: var(--quiet); }

/* ── bands ─────────────────────────────────────────────────────
   FORCED — a section needs a boundary. A hairline rather than a
   block: S5 says every line must answer what relation it claims, and
   this one claims "a different subject begins here". */
.band { padding: 4.5rem 0; border-top: 1px solid rgba(22,21,15,0.14); }
.band > h2 {
  font-family: var(--claim); font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: var(--quiet); margin-bottom: 2.5rem;
}

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem 4rem; }
.cols h3 {
  font-family: var(--claim); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.cols p { max-width: var(--measure); }

/* ── the doorway ───────────────────────────────────────────────
   KIRA is one of the things the lab makes, so it gets the weight of
   one thing. Not a footnote, not the page. */
.door-block p { max-width: var(--measure); }
.door-block p + p { margin-top: 1.1rem; }
.big {
  font-family: var(--claim); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.go { margin-top: 2rem; font-family: var(--claim); font-size: 1rem; }

/* CHOSEN — the supplied footer reference: a dark closing field,
   identity opposite navigation, then a hairline and circular social marks.
   Full-width ground; content keeps the same measure as the pages above. */
.site-footer {
  margin-inline: -1.5rem;
  padding: 3.5rem 1.5rem 1.5rem;
  background: #080808;
  color: #f2f0ea;
}
.lab-home .site-footer {
  background: var(--black-glass);
  background-size: 100% var(--black-field-height, 100%);
  background-position: 0 var(--black-field-offset, 0px); background-repeat: no-repeat;
}
.footer-inner { max-width: var(--page); margin-inline: auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-name {
  font-family: var(--claim); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.035em; text-decoration: none;
}
.footer-tagline, .footer-nav, .footer-copyright {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem; line-height: 1.7; letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer-tagline { max-width: 38ch; margin-top: 0.65rem; color: #aaa8a2; }
.footer-nav { display: grid; justify-items: end; gap: 0.3rem; }
.footer-nav a { padding-block: 0.25rem; color: #aaa8a2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.25rem;
  border-top: 1px solid #282828; padding-top: 1.4rem;
}
.footer-copyright { color: #aaa8a2; }
.footer-socials { display: flex; align-items: center; gap: 0.6rem; list-style: none; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid #4b4b48;
  border-radius: 50%; color: #bab8b2; text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.footer-social svg { display: block; width: 1rem; height: 1rem; }
a.footer-social:hover { color: #fff; border-color: #aaa8a2; background: #1b1b1b; }
.footer-social[aria-disabled="true"] { color: #8f8d88; }
.site-footer a:focus-visible { outline: 2px solid #f2f0ea; outline-offset: 5px; }
@media (max-width: 30rem) {
  .site-footer { padding-top: 2.75rem; }
  .footer-top { flex-direction: column; gap: 2rem; padding-bottom: 2rem; }
  .footer-nav { justify-items: start; }
  .footer-bottom { align-items: flex-start; flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-social { transition: none; }
}

/* ── an index of real things ───────────────────────────────────
   FORCED by what these pages are. A body of work is a list of
   titles; setting it as prose would make it an argument about the
   work instead of the work. Two columns on one line: the thing, and
   what it is — no bullet, because the alignment already separates
   them and a bullet would claim a relation it does not have (S5). */
.index { list-style: none; max-width: 52rem; }
.index li {
  display: grid; grid-template-columns: 17rem 1fr; gap: 0.35rem 2rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(22,21,15,0.10);
}
.index li:last-child { border-bottom: 1px solid rgba(22,21,15,0.10); }
.index span { font-family: var(--claim); font-weight: 500; font-size: 0.98rem; }
.index em { font-style: normal; opacity: var(--quiet); }

/* a finding is a claim with its evidence, so it is set as reading
   text at full weight and given room */
.note { max-width: var(--measure); margin-bottom: 2.75rem; }
.note:last-child { margin-bottom: 0; }
.note h3 {
  font-family: var(--claim); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.6rem;
}
.std { max-width: var(--measure); }
.std + .std { margin-top: 1.1rem; }

@media (max-width: 40rem) {
  .bar {
    top: 0.5rem; margin-top: 0.5rem; padding: 0.62rem 0.75rem 0.68rem 0.85rem;
    border-radius: 1.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.25rem;
    row-gap: 0.8rem;
  }
  .mark { margin-right: 0; }
  .bar nav { grid-column: 1 / -1; grid-row: 2; gap: 1.5rem; font-size: 0.9rem; }
  .bar .door { grid-column: 2; grid-row: 1; justify-self: end; }
  .index li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* FORCED — two columns do not exist on a phone, and a claim set for
   a wide screen is unreadable on one. */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 4rem; }
  .lab-home .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 1.8rem; min-block-size: calc(100svh - 9rem); padding-block: clamp(3.75rem, 10vh, 5.5rem) 3rem; }
  .lab-home .hero h1 { grid-column: 1; grid-row: 1; max-width: 36rem; font-size: clamp(1.9rem, 9.8vw, 4.1rem); }
  .hero-prefix { max-width: 21rem; font-size: clamp(1.2rem, 3.7vw, 1.6rem); }
  .home-atmosphere { top: -13rem; height: calc(100svh + 25rem); }
  .atmosphere-relief { inset: 0 -52%; }
  .atmosphere-fog-near { inset: 5% -60% -10%; }
  .lab-home .hero .lede { grid-column: 1; grid-row: 2; max-width: 31rem; }
  .kira-threshold { grid-template-columns: 1fr; gap: 2.5rem; min-block-size: auto; }
  .cols { grid-template-columns: 1fr; gap: 2.25rem; }
  .band { padding: 3.25rem 0; }
}

/* A phone gets one predictable navigation row. The links stay available
   without JavaScript; enhancement folds them into an anchored menu. */
@media (max-width: 56rem) {
  .lab-home { --home-gutter: clamp(1rem, 4vw, 1.5rem); padding-inline: var(--home-gutter); }
  .lab-home > .bar {
    top: .5rem; margin-top: .5rem; padding: .5rem .625rem;
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center; gap: 0 .5rem; border-radius: 1.1rem;
    overflow: visible;
    /* Live backdrop blur samples every frame of the page beneath this
       sticky bar. Keep the white glass finish without that mobile cost. */
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(112deg, rgba(255,255,255,.98), rgba(250,251,252,.95) 48%, rgba(244,246,248,.96) 76%, rgba(255,255,255,.98));
  }
  .lab-home > .bar::before {
    inset: 0; border-radius: inherit; transform: none;
    animation: none;
  }
  .lab-home .mark { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; gap: .4rem; font-size: .8rem; letter-spacing: .1em; min-height: 2.75rem; }
  .lab-home .mark img { width: 1.75rem; height: 1.75rem; }
  .lab-home .bar .door { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .875rem; font-size: .8rem; }
  .lab-home .bar nav {
    grid-column: 1 / -1; grid-row: 2; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem;
    margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(22,21,15,.1);
    font-size: 1rem;
  }
  .lab-home .bar nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .625rem .75rem; }
  .lab-home .bar.navigation-ready .nav-toggle {
    grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; padding: .625rem; border: 1px solid rgba(22,21,15,.15);
    border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 1.35rem; height: 1.35rem; }
  .lab-home .bar.navigation-ready nav {
    position: absolute; inset: calc(100% + .5rem) 0 auto;
    grid-template-columns: 1fr; gap: .125rem; margin: 0; padding: .5rem;
    max-height: calc(100svh - 6rem); overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid rgba(22,21,15,.1); border-radius: 1rem; background: #fff;
    box-shadow: 0 .75rem 2rem rgba(22,21,15,.12);
  }
  .lab-home .bar.navigation-ready:not(.nav-open) nav { display: none; }
  .lab-home .bar.nav-open .nav-toggle { background: var(--ink); color: #fff; }
  .lab-home .hero {
    grid-template-columns: minmax(0, 1fr); gap: 2rem;
    min-block-size: calc(100svh - 5rem);
    padding-block: clamp(3rem, 8svh, 5rem) 3.5rem;
  }
  .lab-home .hero h1 {
    grid-column: 1; grid-row: 1; width: 100%; max-width: 38rem;
    font-size: clamp(2.625rem, 11vw, 4.5rem); line-height: 1.01; letter-spacing: -.035em;
  }
  .lab-home .hero-claim { font-weight: 500; }
  .lab-home .hero-prefix { margin-bottom: 1.35rem; font-size: clamp(1.25rem, 3.2vw, 1.7rem); font-weight: 400; }
  .lab-home .hero .lede { grid-column: 1; grid-row: 2; width: 100%; max-width: 32rem; font-size: 1rem; line-height: 1.6; }
  .lab-home .hero .hero-insight { max-width: 27ch; margin-inline: auto; font-size: 1.1875rem; line-height: 1.4; }
  .lab-home .hero .hero-thoughts { gap: .55rem; }
  .lab-home .lede p + p { margin-top: 1.5rem; }
  .lab-home .lede p:last-child { max-width: 36ch; margin: 1.75rem auto 0; }
  .lab-home .kira-threshold {
    grid-template-columns: minmax(0, 1fr); min-block-size: auto; gap: 2rem;
    padding: clamp(1.5rem, 5vw, 3rem); margin-bottom: 3rem;
  }
  .lab-home .threshold-introduction, .lab-home .threshold-copy { min-width: 0; }
  .lab-home .threshold-introduction h2 { font-size: clamp(2rem, 5.6vw, 3rem); text-wrap: balance; }
  .lab-home .threshold-name { margin-bottom: 1rem; }
  .lab-home .threshold-copy { max-width: 34rem; font-size: 1rem; line-height: 1.6; }
  .lab-home .threshold-door { margin-top: 1.75rem; min-height: 2.75rem; }
  .lab-home .site-footer { margin-inline: calc(-1 * var(--home-gutter)); padding-inline: var(--home-gutter); }
  /* Frame the actual hero, including short phone screens and larger text.
     The first fold now moves behind the headline from the initial view. */
  .home-atmosphere { top: -30rem; height: calc(var(--hero-height, 100svh) + 31rem); max-height: none; }
  .atmosphere-relief { inset: 0 -28%; }
  .atmosphere-fog-far {
    --fog-image: radial-gradient(ellipse at 72% 43%, rgba(255,255,255,.97), rgba(255,255,255,.74) 29%, transparent 62%), url('/atmosphere-mist-mobile.webp');
  }
  .atmosphere-fog-near {
    --fog-image: radial-gradient(ellipse at 30% 60%, #fff, rgba(255,255,255,.89) 29%, transparent 66%), url('/atmosphere-mist-mobile.webp');
  }
  .atmosphere-relief img { filter: contrast(1.15); animation: mobile-relief-breathe 7s cubic-bezier(.45,0,.55,1) -1.3s infinite; }
  .atmosphere-fog::before { animation: mobile-mist-breathe 7s cubic-bezier(.45,0,.55,1) -1.3s infinite; }
  .home-atmosphere[data-mist-wake] .atmosphere-mist {
    -webkit-mask-image: radial-gradient(ellipse var(--mist-touch-rx, 130px) var(--mist-touch-ry, 105px) at var(--mist-touch-x, 50%) var(--mist-touch-y, 50%), rgba(0,0,0,calc(1 - var(--mist-touch-strength, 0) * .9)), #000 100%);
    mask-image: radial-gradient(ellipse var(--mist-touch-rx, 130px) var(--mist-touch-ry, 105px) at var(--mist-touch-x, 50%) var(--mist-touch-y, 50%), rgba(0,0,0,calc(1 - var(--mist-touch-strength, 0) * .9)), #000 100%);
  }
}

@keyframes mobile-relief-breathe {
  0%, 100% { opacity: .72; transform: translate3d(-1%, 1.25rem, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(1.5%, -2rem, 0) scale(1.11); }
}
@keyframes mobile-mist-breathe {
  0%, 100% { opacity: 1; transform: translate3d(-4%, 2%, 0) scale(1.01); }
  50% { opacity: .1; transform: translate3d(4%, -3%, 0) scale(1.1); }
}

/* Preserve the headline's presence by giving it another line on phones,
   rather than reducing the whole proposition to supporting-copy scale. */
@media (max-width: 40rem) {
  .lab-home .hero h1 { font-size: clamp(2.625rem, 13vw, 4.5rem); }
  .lab-home .hero-claim-tail { display: block; }
}

@media (max-width: 30rem) {
  .lab-home .hero { min-block-size: auto; padding-block: 3rem 3.5rem; gap: 2.25rem; }
  .lab-home .hero .hero-insight { font-size: 1.125rem; }
  .lab-home .hero .hero-thoughts { font-size: .9375rem; }
  .lab-home .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; width: 100%; }
  .lab-home .footer-nav a { display: flex; align-items: center; min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .bar nav a, .door, .threshold-door { transition: none; }
}
