  /* ---------------------------------------------------------------
     TOKENS — deliberate single dark world: a light source in a void.
     Prism concept: one beam (ink) refracts into five wavelengths,
     one per research strand. Committing to dark-only per the
     "one visual world" allowance — a beam-in-darkness doesn't have
     a light-mode equivalent worth building.
  ----------------------------------------------------------------- */
  :root{
    color-scheme: dark;

    /* Darkened a notch from the original #0A0D12/#10141B/#141922/#1A2029 — the ambient
       glow (below) was washing the whole page toward a muddier brown/grey than intended,
       flattening the contrast between the dark ground and the accent colours sitting on
       it. Toning the glow down and deepening these blacks together restores that. */
    --ink-950:#07090D;
    --ink-900:#0C0F15;
    --ink-850:#10141B;
    --ink-800:#151A22;
    --border:rgba(237,234,227,.09);
    --border-strong:rgba(237,234,227,.16);

    --text-1:#EDEAE3;
    --text-2:#9AA2B1;
    --text-3:#7A8594;

    --c-amber:#E7A23A;
    --c-cyan:#33B6AE;
    --c-violet:#8177E3;
    --c-sage:#93A85E;
    --c-rose:#E4667F;
    --accent:var(--c-amber);

    --font-display:'Fraunces',ui-serif,Georgia,serif;
    --font-body:'Manrope',ui-sans-serif,system-ui,sans-serif;
    --font-mono:'IBM Plex Mono',ui-monospace,'SF Mono',monospace;

    --fs-hero: clamp(2.75rem, 8.2vw, 7.25rem);
    --fs-h2: clamp(1.9rem, 4.4vw, 3.1rem);
    --fs-h3: clamp(1.25rem, 2.4vw, 1.6rem);
    --fs-lead: clamp(1.05rem, 1.7vw, 1.3rem);
    --fs-body: 1.03rem;
    --fs-sm: .875rem;
    --fs-xs: .74rem;

    --rail-w: 64px;
    --pad: clamp(20px, 5vw, 64px);
    --maxw: 1180px;

    --ease: cubic-bezier(.22,1,.36,1);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; overflow-x:hidden; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

  body{
    margin:0;
    /* The falcon (see .falcon in the contact section) is deliberately anchored so it
       flies in from partly off-canvas — on narrow viewports that can push a few px of
       its transformed, still-transparent resting box past the left edge even before it
       ever animates. overflow-x:hidden here (html carries the same) just guarantees
       that never grows into an actual horizontal scrollbar; it doesn't clip anything
       visually since nothing else on the page relies on horizontal overflow. */
    overflow-x:hidden;
    background:var(--ink-950);
    color:var(--text-1);
    font-family:var(--font-body);
    font-size:var(--fs-body);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3{ font-family:var(--font-display); margin:0; text-wrap:balance; color:var(--text-1); }
  p{ margin:0; }
  a{ color:inherit; }
  ::selection{ background:var(--accent); color:var(--ink-950); }

  a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:3px;
    border-radius:2px;
  }

  .skip-link{
    position:fixed; top:-100px; left:16px; z-index:999;
    background:var(--accent); color:var(--ink-950); padding:10px 16px;
    font-family:var(--font-mono); font-size:var(--fs-xs); text-decoration:none;
    transition:top .2s var(--ease);
  }
  .skip-link:focus{ top:16px; }

  /* film-grain overlay */
  .grain{
    position:fixed; inset:0; z-index:40; pointer-events:none;
    opacity:.035; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* first-load curtain — holds solid for a beat, then lifts, so nothing pops in
     unstyled; pure CSS (no JS dependency) so it can never get stuck covering the page */
  .load-curtain{
    position:fixed; inset:0; z-index:500; background:var(--ink-950); pointer-events:none;
    animation:curtainLift .9s cubic-bezier(.4,0,.2,1) forwards;
  }
  @keyframes curtainLift{ 0%,12%{ opacity:1; } 100%{ opacity:0; } }
  @media (prefers-reduced-motion:reduce){ .load-curtain{ display:none; } }

  /* custom cursor */
  #cursor-ring,#cursor-dot{
    position:fixed; top:0; left:0; z-index:60; pointer-events:none;
    border-radius:50%; transform:translate(-50%,-50%);
    opacity:0; transition:opacity .25s var(--ease), border-color .2s, background .2s;
  }
  #cursor-ring{ width:34px; height:34px; border:1px solid var(--accent); }
  #cursor-dot{ width:5px; height:5px; background:var(--accent); }

  .particle{ position:fixed; top:0; left:0; width:5px; height:5px; margin:-2.5px 0 0 -2.5px; border-radius:50%; pointer-events:none; z-index:55; }
  html.has-cursor #cursor-ring, html.has-cursor #cursor-dot{ opacity:1; }
  html.has-cursor, html.has-cursor a, html.has-cursor button{ cursor:none; }

  /* ---------------- layout shell ---------------- */
  .rail{
    position:fixed; left:0; top:0; bottom:0; width:var(--rail-w);
    z-index:30; display:flex; flex-direction:column; align-items:center;
    padding:28px 0; border-right:1px solid var(--border);
  }
  .rail__track{
    position:relative; flex:1; width:2px; background:var(--border-strong);
    margin:18px 0; border-radius:2px; overflow:hidden;
    transform:scaleY(0); transform-origin:top;
    animation:railDrawIn .8s cubic-bezier(.16,1,.3,1) .22s forwards;
  }
  @keyframes railDrawIn{ to{ transform:scaleY(1); } }
  @media (prefers-reduced-motion:reduce){ .rail__track{ animation:none; transform:none; } }
  .rail__fill{
    position:absolute; left:0; top:0; width:100%; height:0%;
    background:linear-gradient(180deg,var(--c-amber),var(--c-cyan),var(--c-violet),var(--c-sage),var(--c-rose));
    border-radius:2px;
  }
  .rail__mark{ font-family:var(--font-mono); font-size:9px; letter-spacing:.14em; color:var(--text-3); writing-mode:vertical-rl; }
  .rail__dots{ position:absolute; inset:0; }
  .rail__dot{
    position:absolute; left:50%; width:7px; height:7px; border-radius:50%;
    background:var(--ink-800); border:1px solid var(--border-strong); padding:0; cursor:pointer;
    transform:translate(-50%,-50%); transition:background .3s,border-color .3s,box-shadow .3s;
  }
  .rail__dot.is-active{ box-shadow:0 0 10px 1px currentColor; }
  .rail__dot:hover, .rail__dot:focus-visible{ box-shadow:0 0 10px 1px currentColor; }
  .rail__dot:focus-visible{ outline:2px solid var(--text-1); outline-offset:4px; }
  .rail__dot-label{
    position:absolute; left:100%; top:50%; margin-left:12px; transform:translate(0,-50%);
    font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase;
    color:var(--text-1); white-space:nowrap; background:var(--ink-900); border:1px solid var(--border-strong);
    padding:5px 9px; opacity:0; pointer-events:none; transition:opacity .2s var(--ease), transform .2s var(--ease);
  }
  .rail__dot:hover .rail__dot-label, .rail__dot:focus-visible .rail__dot-label{
    opacity:1; transform:translate(4px,-50%);
  }

  @media (max-width:899px){
    .rail{ display:none; }
    .topbar{
      position:fixed; top:0; left:0; right:0; height:3px; z-index:30;
      background:var(--border);
      transform:scaleX(0); transform-origin:left;
      animation:topbarDrawIn .7s cubic-bezier(.16,1,.3,1) .18s forwards;
    }
    @keyframes topbarDrawIn{ to{ transform:scaleX(1); } }
    @media (prefers-reduced-motion:reduce){ .topbar{ animation:none; transform:none; } }
    .topbar__fill{
      height:100%; width:0%;
      background:linear-gradient(90deg,var(--c-amber),var(--c-cyan),var(--c-violet),var(--c-sage),var(--c-rose));
    }
    .mobile-nav{ display:block; position:fixed; top:16px; right:var(--pad); z-index:31; --mnav-accent:var(--c-amber); }
    .mobile-nav__toggle{
      display:flex; align-items:center; gap:10px;
      font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
      color:var(--text-1); background:var(--ink-900); border:1px solid var(--border-strong);
      padding:8px 14px 8px 12px; cursor:pointer;
      transition:border-color .3s var(--ease), box-shadow .3s var(--ease), color .2s;
    }
    .mobile-nav__toggle:hover, .mobile-nav__toggle[aria-expanded="true"]{
      border-color:var(--mnav-accent); box-shadow:0 0 0 1px var(--mnav-accent) inset, 0 0 16px -4px var(--mnav-accent);
    }
    /* three wavelengths at rest; they converge into one accent-lit beam (an "X") when open —
       the same split/converge idea as the hero prism and the "One perception." headline */
    .mobile-nav__icon{ position:relative; width:15px; height:11px; flex:0 0 auto; }
    .mobile-nav__icon span{
      position:absolute; left:0; width:100%; height:1.5px; border-radius:1px;
      transition:transform .38s var(--ease), background-color .38s var(--ease), opacity .22s var(--ease), top .38s var(--ease);
    }
    .mobile-nav__icon span:nth-child(1){ top:0; background:var(--c-amber); }
    .mobile-nav__icon span:nth-child(2){ top:4.75px; background:var(--c-cyan); }
    .mobile-nav__icon span:nth-child(3){ top:9.5px; background:var(--c-violet); }
    .mobile-nav__toggle[aria-expanded="true"] .mobile-nav__icon span{ background-color:var(--mnav-accent); }
    .mobile-nav__toggle[aria-expanded="true"] .mobile-nav__icon span:nth-child(1){ top:4.75px; transform:rotate(45deg); }
    .mobile-nav__toggle[aria-expanded="true"] .mobile-nav__icon span:nth-child(2){ opacity:0; transform:scaleX(0); }
    .mobile-nav__toggle[aria-expanded="true"] .mobile-nav__icon span:nth-child(3){ top:4.75px; transform:rotate(-45deg); }
    @media (prefers-reduced-motion:reduce){ .mobile-nav__icon span{ transition:background-color .2s; } }
    .mobile-nav__panel{
      position:absolute; top:calc(100% + 8px); right:0; min-width:190px;
      background:var(--ink-900); border:1px solid var(--border-strong); border-top:none;
      display:flex; flex-direction:column; padding:7px 6px 6px;
      opacity:0; pointer-events:none; transform:translateY(-6px);
      transition:opacity .2s var(--ease), transform .2s var(--ease);
    }
    .mobile-nav__panel::before{
      content:''; position:absolute; left:0; top:0; right:0; height:2px;
      background:linear-gradient(90deg,var(--c-amber),var(--c-cyan),var(--c-violet),var(--c-sage),var(--c-rose));
    }
    .mobile-nav__panel.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
    .mobile-nav__link{
      position:relative; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
      color:var(--text-2); text-decoration:none; padding:10px 11px; margin-top:1px;
      border-left:2px solid transparent; background:transparent;
      opacity:0; transform:translateX(6px);
      transition:color .2s, border-color .2s, background-color .2s, opacity .3s var(--ease), transform .3s var(--ease);
    }
    .mobile-nav__panel.is-open .mobile-nav__link{ opacity:1; transform:translateX(0); }
    .mobile-nav__link:hover, .mobile-nav__link:focus-visible{
      color:var(--text-1); border-left-color:var(--link-accent, var(--c-amber)); background-color:var(--ink-800);
    }
    @media (prefers-reduced-motion:reduce){
      .mobile-nav__link{ transform:none; transition:color .2s, border-color .2s, background-color .2s, opacity .15s; }
    }
  }
  @media (min-width:900px){ .topbar{ display:none; } .mobile-nav{ display:none; } }

  main{ margin-left:var(--rail-w); }
  @media (max-width:899px){ main{ margin-left:0; } }

  section{ padding:clamp(90px,14vw,150px) var(--pad) ; position:relative; }
  .wrap{ max-width:var(--maxw); margin:0 auto; }

  .eyebrow{
    font-family:var(--font-mono); font-size:var(--fs-xs); letter-spacing:.16em;
    text-transform:uppercase; color:var(--text-2); display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{ content:''; width:22px; height:1px; background:var(--accent); display:inline-block; }

  /* ---------------- hero ---------------- */
  .hero{
    position:relative;
    min-height:100svh; display:flex; flex-direction:column; justify-content:center;
    padding-top:clamp(90px,16vh,160px); padding-bottom:60px;
  }
  /* Faint constellation (see script.js) — a quiet, ambient canvas layer of slowly
     drifting points and the occasional faint connecting line. z-index:1 keeps it under
     `.wrap` (z-index:2) so it always sits behind the actual text. */
  #heroConstellation{ position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
  /* Small citation-style tags beside a handful of constellation points (see script.js).
     Same layer as the canvas (z-index:1) — they're part of that quiet background field,
     not competing with the real hero text at z-index:2 above. Positioned via `transform`
     each frame rather than left/top so moving them doesn't trigger layout. */
  .constellation-labels{ position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
  .constellation-label{
    position:absolute; top:0; left:0; will-change:transform, opacity;
    font-family:var(--font-mono); font-size:11.2px; /* +12%, matching the point size bump */
    letter-spacing:.04em; color:var(--text-2); white-space:nowrap; opacity:0;
  }
  .hero .wrap{ position:relative; z-index:2; }
  .hero__name{
    font-size:var(--fs-hero); font-weight:400; line-height:.94; letter-spacing:-.01em;
    margin:22px 0 10px;
  }
  .hero__name > span{ display:block; }
  .hero__name em{
    font-style:normal; display:inline-block; font-optical-sizing:auto;
    background:linear-gradient(180deg,var(--text-1),var(--text-1) 70%, var(--text-2));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  /* per-character spans for the cursor-dodge effect — same gradient fill so the split is invisible at rest */
  .name-char{
    display:inline-block; transition:transform .5s var(--ease);
    background:linear-gradient(180deg,var(--text-1),var(--text-1) 70%, var(--text-2));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero__role{ font-size:var(--fs-lead); color:var(--text-2); font-weight:400; max-width:44ch; margin-top:18px; }
  .hero__role b{ color:var(--text-1); font-weight:600; }

  /* scroll-to-explore cue — minimal pulsing indicator, fades in once the intro
     settles; scrolls away naturally with the rest of the hero since it isn't fixed */
  .hero__cue{
    position:absolute; left:50%; bottom:clamp(26px,4vh,44px); transform:translateX(-50%);
    z-index:3; display:flex; flex-direction:column; align-items:center; gap:9px;
    opacity:0; pointer-events:none;
  }
  .hero__cue__label{ font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-2); }
  .hero__cue__track{ position:relative; width:1px; height:30px; background:rgba(237,234,227,.15); overflow:hidden; }
  .hero__cue__dot{
    position:absolute; left:50%; top:0; width:5px; height:5px; margin:-2.5px 0 0 -2.5px;
    border-radius:50%; background:var(--c-amber); animation:heroCueTravel 1.9s ease-in-out infinite;
  }
  @keyframes heroCueTravel{
    0%{ top:0%; opacity:0; }
    18%{ opacity:1; }
    82%{ opacity:1; }
    100%{ top:100%; opacity:0; }
  }
  @media (prefers-reduced-motion:reduce){
    .hero__cue__dot{ animation:none; top:50%; opacity:.6; }
  }

  /* ---------------- philosophy ---------------- */
  .lede{
    font-family:var(--font-display); font-size:var(--fs-h2); font-weight:400; line-height:1.22;
    max-width:20ch; margin-top:22px;
  }
  .lede .dim{ color:var(--text-2); }
  .philosophy__grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; margin-top:52px; align-items:start; }
  .philosophy p{ font-size:var(--fs-body); color:var(--text-2); max-width:60ch; }
  .philosophy p + p{ margin-top:20px; }
  .philosophy p b{ color:var(--text-1); font-weight:600; }
  @media (max-width:820px){ .philosophy__grid{ grid-template-columns:1fr; gap:26px; } }

  /* ---------------- word-level micro-interactions in the philosophy copy ---------------- */
  .fx-word{ position:relative; cursor:default; }

  /* "interact" — splits into inter|act as the reader scrolls to it, and stays split */
  .fx-interact{ white-space:nowrap; display:inline-block; }
  .fx-interact__half{ display:inline-block; transition:transform .6s cubic-bezier(.34,1.56,.64,1), color .5s var(--ease); }
  .fx-interact__half--l{ transform-origin:right center; }
  .fx-interact__half--r{ transform-origin:left center; }
  .fx-interact.is-split .fx-interact__half--l{ transform:translate(-.16em,-.05em) rotate(-8deg); color:var(--c-cyan); }
  .fx-interact.is-split .fx-interact__half--r{ transform:translate(.16em,.05em) rotate(8deg); color:var(--c-amber); }

  /* "shape" — dissolves into a morphing blob, then reforms as text */
  .fx-shape{ display:inline-block; }
  .fx-shape__label{ position:relative; z-index:1; display:inline-block; transition:opacity .3s ease, transform .3s ease; }
  .fx-shape__blob{
    position:absolute; z-index:0; left:4%; right:4%; top:2%; bottom:6%;
    background:var(--c-violet); opacity:0; transform:scale(.4); border-radius:50%; pointer-events:none;
  }
  @media (hover:hover) and (pointer:fine){
    .fx-shape:hover .fx-shape__label{ opacity:0; transform:scale(.6); }
    .fx-shape:hover .fx-shape__blob{ animation:fxShapeMorph 1.1s var(--ease) forwards; }
  }
  @keyframes fxShapeMorph{
    0%{ opacity:0; transform:scale(.3); border-radius:50%; }
    20%{ opacity:.92; transform:scale(1); border-radius:50%; }
    45%{ border-radius:38% 62% 55% 45% / 45% 40% 60% 55%; }
    70%{ border-radius:60% 40% 44% 56% / 55% 62% 38% 45%; }
    88%{ opacity:.92; transform:scale(1); border-radius:50%; }
    100%{ opacity:0; transform:scale(.3); border-radius:50%; }
  }

  /* "lingers" — letters slowly drift apart, then settle back */
  .fx-lingers{ display:inline-block; transition:letter-spacing 1.1s var(--ease), color 1.1s var(--ease); }
  @media (hover:hover) and (pointer:fine){
    .fx-lingers:hover{ letter-spacing:.1em; color:var(--c-sage); }
  }

  @media (prefers-reduced-motion: reduce){
    .fx-interact__half, .fx-shape__label, .fx-shape__blob, .fx-lingers{ transition:none !important; animation:none !important; }
  }

  .strand-list{ display:flex; flex-direction:column; gap:0; border-top:1px solid var(--border); }
  .strand-list li{
    list-style:none; display:flex; gap:16px; align-items:baseline;
    padding:16px 0; border-bottom:1px solid var(--border);
    font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--text-2);
  }
  .strand-list b{ color:var(--text-1); font-family:var(--font-body); font-size:var(--fs-sm); font-weight:600; }
  .strand-list .n{ color:var(--text-3); width:1.4em; flex:none; }

  /* ---------------- congruency map (interactive knowledge-map, between Approach and Sensory Lab) ---------------- */
  .cmap{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--ink-950); padding-block:clamp(56px,9vw,96px); }
  .cmap__head{ max-width:var(--maxw); margin:0 auto var(--cmap-head-gap,28px); padding-inline:var(--pad); }
  .cmap__head h2{ font-size:var(--fs-h2); margin-top:14px; max-width:24ch; }
  .cmap__head .note{ margin-top:12px; max-width:56ch; text-align:left; }
  .cmap__stage{ max-width:620px; margin:0 auto; padding-inline:var(--pad); position:relative; perspective:1300px; }
  .cmap__stage::before{
    content:''; position:absolute; inset:-8% -4%; z-index:-1; pointer-events:none; border-radius:50%;
    background:
      radial-gradient(circle at 50% 8%, rgba(231,162,58,.10), transparent 32%),
      radial-gradient(circle at 88% 34%, rgba(51,182,174,.09), transparent 32%),
      radial-gradient(circle at 74% 82%, rgba(129,119,227,.09), transparent 32%),
      radial-gradient(circle at 26% 82%, rgba(147,168,94,.09), transparent 32%),
      radial-gradient(circle at 12% 34%, rgba(228,102,127,.09), transparent 32%);
    filter:blur(20px);
  }
  /* Reveal / fold: starts tilted away in 3D and faded out, swivels to face-on every time
     the section scrolls into view (see script.js) — a "network assembling itself" reveal
     — and folds back the same way in reverse the moment it scrolls back out, in either
     direction. This transform lives on .cmap__fold, a plain wrapper around #cmapSvg,
     rather than on the svg itself: the svg's own transform is reserved for the persistent
     cursor-tilt below, which writes to it directly every animation frame — sharing one
     transform between a CSS-transitioned fold and a JS-driven tilt would mean whichever
     set it last (inline style always wins over a class-driven rule) silently wins,
     breaking one or the other. Two layers, two jobs: perspective sits on both this and
     its parent .cmap__stage so each of them gets its own 3D depth for its own rotation.
     Stays in the finished state (rather than resetting) if JS never runs at all, same as
     the rest of this diagram, which is built by script.js with no no-JS fallback. */
  .cmap__fold{
    perspective:1300px; transform-origin:50% 50%; will-change:transform, opacity;
    opacity:0; transform:rotateY(-26deg) rotateX(9deg) scale(.85);
    transition:transform 1.2s cubic-bezier(.16,1,.3,1), opacity 1.1s cubic-bezier(.16,1,.3,1);
  }
  .cmap.is-revealed .cmap__fold{ opacity:1; transform:none; }
  /* Folding out reuses the exact same properties as revealing in, but NOT the same easing.
     cubic-bezier(.16,1,.3,1) (and the node's own back-out .34,1.56,.64,1) are both "ease
     out" curves — most of the visible change happens in the first fraction of the
     duration, which reads as a snappy *arrival* but, run in reverse for a *departure*,
     reads as an almost-instant vanish with a long, imperceptible tail. A plain "ease in"
     swap turned out to have the mirror-image problem — nearly all of *its* change is
     compressed into the last fraction, so the diagram just sits there looking untouched
     for most of a slow scroll and then vanishes in one late step. What actually reads as
     gradual, at any scroll speed, is linear: opacity and rotation losing the same amount
     of ground every frame, so however slowly someone scrolls past, there's always a
     visibly-further-gone diagram to see mid-scroll rather than a near-constant one that
     snaps. script.js adds .is-folding for the run of the fold-out (removed again at the
     start of the next reveal) — nothing else about the fold (properties, durations' order,
     the hub/leaf/link stagger) changes, just how evenly each step gets there. */
  .cmap.is-folding .cmap__fold{ transition-duration:1.3s, 1.3s; transition-timing-function:linear; }
  #cmapSvg{
    width:100%; height:auto; display:block; overflow:visible;
    transform-origin:50% 50%; will-change:transform;
  }

  .cmap-node{
    opacity:1; cursor:pointer; transform-box:fill-box; transform-origin:center;
    transition:opacity .35s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1);
  }
  /* Pop in with a slight overshoot rather than a plain fade — each node's own
     transition-delay is set from script.js so hubs settle first, their cues just after,
     staggered rather than all landing on the same frame. */
  .cmap:not(.is-revealed) .cmap-node{ opacity:0; transform:scale(.4); }
  /* Same reasoning — and the same linear fix — as .cmap.is-folding .cmap__fold above: the
     pop-in's back-out overshoot curve makes for a near-instant shrink in reverse, so
     folding out gets a plain, evenly-paced shrink instead — no overshoot, since shrinking
     away shouldn't wobble the way settling into place does. */
  .cmap.is-folding .cmap-node{ transition-duration:.5s, .55s; transition-timing-function:linear; }
  .cmap-node circle{
    transition:r .35s var(--ease), stroke-opacity .35s var(--ease), filter .35s var(--ease);
    stroke:var(--text-1); stroke-width:2; stroke-opacity:0;
  }
  .cmap-node--hub circle{ filter:drop-shadow(0 0 7px var(--glow)) drop-shadow(0 0 18px color-mix(in srgb, var(--glow) 65%, transparent)); animation:cmapPulse 5.5s ease-in-out infinite; animation-delay:var(--pulse-delay, 0s); }
  .cmap-node--leaf circle{ fill:color-mix(in srgb, var(--glow) 16%, var(--ink-900)); filter:drop-shadow(0 0 4px color-mix(in srgb, var(--glow) 55%, transparent)); }
  .cmap-node.is-active.cmap-node--hub circle{ filter:drop-shadow(0 0 12px var(--glow)) drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 75%, transparent)); }
  .cmap-node.is-active.cmap-node--leaf circle{ filter:drop-shadow(0 0 9px var(--glow)); fill:color-mix(in srgb, var(--glow) 30%, var(--ink-900)); }
  .cmap-node:focus-visible{ outline:none; }
  .cmap-node:focus-visible circle, .cmap-node.is-focused circle{ stroke-opacity:1; }
  .cmap-node text{ font-family:var(--font-mono); fill:var(--text-2); pointer-events:none; transition:fill .35s var(--ease); }
  .cmap-node--hub text{ font-size:13px; letter-spacing:.03em; text-transform:uppercase; fill:var(--text-1); }
  .cmap-node--leaf text{ font-size:10.5px; }
  .cmap-node.is-active text{ fill:var(--text-1); }

  @keyframes cmapPulse{
    0%, 100%{ filter:drop-shadow(0 0 7px var(--glow)) drop-shadow(0 0 18px color-mix(in srgb, var(--glow) 65%, transparent)); }
    50%{ filter:drop-shadow(0 0 10px var(--glow)) drop-shadow(0 0 26px color-mix(in srgb, var(--glow) 70%, transparent)); }
  }

  .cmap-edge{
    fill:none;
    transition:opacity .35s var(--ease), stroke-width .35s var(--ease), filter .35s var(--ease),
      stroke-dashoffset 1s cubic-bezier(.16,1,.3,1);
  }
  .cmap-edge--spine{ opacity:.28; stroke-width:1; transition-delay:150ms; }
  .cmap:not(.is-revealed) .cmap-edge--spine{ opacity:0; }
  /* Same reasoning again, for the six documented links' draw-in/retract: linear replaces
     the ease-out curve so the line visibly, steadily retracts instead of blinking out (or,
     with a plain ease-in, sitting fully drawn for most of the scroll and blinking out
     late). The list has to repeat a value per property in the shared .cmap-edge transition
     above (opacity, stroke-width, filter, stroke-dashoffset) — only the last (the actual
     line draw) and the first (fade) meaningfully change during a fold, but all four
     positions need a value for the override to line up correctly. */
  .cmap.is-folding .cmap-edge{
    transition-duration:.4s, .35s, .35s, 1.2s;
    transition-timing-function:linear, var(--ease), var(--ease), linear;
  }
  /* The six documented links draw themselves in last, after the hubs/leaves have mostly
     landed — script.js sets each one's stroke-dasharray/dashoffset and reveal delay. */
  .cmap-edge--link{ stroke-width:1.9; opacity:.6; filter:drop-shadow(0 0 3px var(--glowA)) drop-shadow(0 0 3px var(--glowB)); }
  .cmap-edge--link.is-active{ filter:drop-shadow(0 0 6px var(--glowA)) drop-shadow(0 0 6px var(--glowB)); }
  .cmap-edge--hit{ fill:none; stroke:transparent; stroke-width:18; cursor:pointer; }

  .cmap[data-dim="true"] .cmap-node{ opacity:.28; }
  .cmap[data-dim="true"] .cmap-node.is-active{ opacity:1; }
  .cmap[data-dim="true"] .cmap-edge--spine{ opacity:.08; }
  .cmap[data-dim="true"] .cmap-edge--link{ opacity:.16; }
  .cmap[data-dim="true"] .cmap-edge--link.is-active{ opacity:1; stroke-width:2.9; }

  @media (prefers-reduced-motion:reduce){
    .cmap-node--hub circle{ animation:none; }
    /* Belt-and-suspenders alongside the JS reduced-motion check: guarantees the intro
       swivel/pop/draw-in (and, now, the scroll-driven fold) can never be visible even on
       a race between paint and script. */
    .cmap__fold, .cmap-node, .cmap-edge{ transition:none !important; }
    .cmap__fold{ opacity:1 !important; transform:none !important; }
    .cmap-node{ opacity:1 !important; transform:scale(1) !important; }
    .cmap-edge--spine{ opacity:.28 !important; }
    .cmap-edge--link{ stroke-dashoffset:0 !important; }
  }

  .cmap__foot{ max-width:var(--maxw); margin:22px auto 0; padding-inline:var(--pad); }
  .cmap__caption{ font-size:11.5px; color:var(--text-3); line-height:1.6; max-width:58ch; min-height:2.6em; }
  .cmap__caption a{ color:var(--text-2); text-decoration:underline; text-underline-offset:2px; text-decoration-color:var(--border-strong); }
  .cmap__caption a:hover, .cmap__caption a:focus-visible{ color:var(--text-1); text-decoration-color:currentColor; }

  @media (prefers-reduced-motion:reduce){
    .cmap-node, .cmap-node circle, .cmap-node text, .cmap-edge{ transition:none; }
  }

  /* ---------------- contact portrait ---------------- */
  .contact__portrait{
    width:76px; height:76px; border-radius:50%; object-fit:cover; object-position:center 20%;
    border:1px solid var(--border-strong); filter:grayscale(30%) contrast(1.05);
    margin-bottom:22px;
  }

  /* ---------------- ambient glow (bleeds active section's colour into the void) ---------------- */
  /* z-index:45 (up from 1) keeps this above every section-level card's own local
     stacking context — see the git history for why 1 wasn't enough — so it still tints
     the whole page, not just the hero. Opacity has swung back down from .26 to .12: at
     .26 a screen-blended wash that size was doing more than "tint" — it was lifting every
     black on the page toward grey and every accent colour toward whatever hue was active,
     which read as washed-out rather than atmospheric. .12 plus the deepened --ink values
     above keeps it perceptible without costing the page its contrast. */
  .ambient-glow{
    position:fixed; top:-25vh; left:-20vw; width:140vw; height:150vh; z-index:45; pointer-events:none;
    filter:blur(130px); opacity:.12; background:var(--c-amber);
    transition:background-color 1.1s ease; mix-blend-mode:screen;
  }

  /* ---------------- sensory lab ---------------- */
  /* align-items:start matters now that the tiles collapse independently — without it,
     a CSS grid row stretches every item to match its tallest sibling, so opening one
     tile would leave dead space under its still-collapsed neighbours in the same row */
  .senses-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:8px; align-items:start; }
  @media (max-width:980px){ .senses-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:560px){ .senses-grid{ grid-template-columns:1fr; } }

  /* ---------------- tempo module (sixth cue, full-width) ---------------- */
  .tempo-module{ margin-top:16px; border:1px solid var(--border); background:var(--ink-900); padding:28px 26px 26px; }
  .tempo-module__head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:20px; }
  .tempo-module__head h3{ margin:0; font-size:1.1rem; font-weight:700; font-family:var(--font-body); color:var(--text-1); }
  .tempo-module__toggle{ width:auto; align-items:center; gap:10px; }
  .tempo-module__toggle .collapse-chevron{ color:var(--c-cyan); }
  .tempo-module__note{ font-size:11.5px; color:var(--text-3); line-height:1.65; max-width:44ch; }
  .tempo-stage{ position:relative; height:112px; border:1px dashed var(--border-strong); overflow:hidden; background:linear-gradient(180deg, rgba(51,182,174,.05), transparent); }
  #tempoCanvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
  .tempo-controls{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .tempo-controls input[type=range]{ flex:1; min-width:160px; accent-color:var(--c-cyan); }
  .tempo-bpm{ font-family:var(--font-mono); font-size:11px; color:var(--text-2); min-width:64px; text-align:right; font-variant-numeric:tabular-nums; }

  /* ---------------- statistical pattern module (seventh cue: the shape all five share) ---------------- */
  .stat-module{ margin-top:16px; border:1px solid var(--border); background:var(--ink-900); padding:28px 26px 26px; }
  .stat-module__head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:20px; }
  .stat-module__head h3{ font-size:1.1rem; font-weight:700; font-family:var(--font-body); color:var(--text-1); }
  .stat-module__note{ font-size:11.5px; color:var(--text-3); line-height:1.65; max-width:46ch; }
  .stat-stage{
    position:relative; height:clamp(220px,32vw,300px); border:1px dashed var(--border-strong);
    background:linear-gradient(180deg, rgba(51,182,174,.05), transparent);
    cursor:crosshair; margin:0 6px 0 40px;
  }
  @media (max-width:640px){ .stat-stage{ margin-left:30px; } }
  #statCanvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
  .stat-axis{ position:absolute; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--text-3); white-space:nowrap; }
  .stat-axis--x{ left:50%; bottom:8px; transform:translateX(-50%); }
  .stat-axis--y{ left:-38px; top:50%; transform-origin:left center; transform:translateY(-50%) rotate(-90deg); }
  .stat-readout{
    position:absolute; top:14px; right:14px; z-index:2; background:rgba(10,13,18,.82); border:1px solid var(--border-strong);
    padding:10px 14px; font-family:var(--font-mono); font-size:10.5px; color:var(--text-2); min-width:158px;
    opacity:0; transition:opacity .2s ease; pointer-events:none;
  }
  .stat-stage.is-active .stat-readout{ opacity:1; }
  .stat-readout__row{ display:flex; justify-content:space-between; gap:14px; margin-bottom:4px; }
  .stat-readout__row b{ color:var(--text-1); font-weight:600; font-variant-numeric:tabular-nums; }
  .stat-readout__tag{ margin-top:6px; padding-top:6px; border-top:1px solid var(--border); font-size:9.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--c-cyan); }
  .stat-footnote{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; margin:14px 6px 0 40px; font-family:var(--font-mono); font-size:10px; color:var(--text-3); letter-spacing:.02em; }
  @media (max-width:640px){ .stat-footnote{ margin-left:30px; } }

  /* ---------------- smell motes (sharper drifting particles alongside the blurred trail) ---------------- */
  .smell-mote{ position:absolute; border-radius:50%; pointer-events:none; }

  /* ---------------- collapsible disclosure (sense tiles + tempo module) ----------------
     shared by both: a button (nested in the tile's own h3, so it stays in the heading
     outline for screen readers) drives a CSS-only grid-rows collapse — 0fr closed,
     1fr open — so the height animates without any JS measuring real pixel heights.
     Closed by default (no is-open class needed at rest); the regression module below
     doesn't get this treatment at all and stays permanently expanded. */
  .collapse-toggle{
    all:unset; box-sizing:border-box; display:flex; width:100%; cursor:pointer;
    font:inherit; color:inherit; -webkit-tap-highlight-color:transparent;
  }
  .collapse-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }
  .collapse-chevron{ flex:0 0 auto; transition:transform .35s var(--ease); }
  .is-open .collapse-chevron{ transform:rotate(180deg); }
  .collapse-panel{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s var(--ease); }
  .collapse-panel__inner{ overflow:hidden; min-height:0; display:flex; flex-direction:column; gap:13px; }
  .is-open .collapse-panel{ grid-template-rows:1fr; }
  @media (prefers-reduced-motion:reduce){
    .collapse-panel{ transition:none; }
    .collapse-chevron{ transition:none; }
  }

  .sense-tile{
    --s: var(--accent);
    border:1px solid var(--border); background:var(--ink-900); padding:20px 18px 24px;
    display:flex; flex-direction:column; gap:13px;
    transition:border-color .3s, background .3s, transform .35s var(--ease);
  }
  .sense-tile:hover{ border-color:var(--s); background:var(--ink-850); transform:translateY(-3px); }
  .sense-tile__title{ margin:0; }
  .sense-tile__title .collapse-toggle{ flex-direction:column; align-items:stretch; gap:10px; text-align:left; }
  .sense-tile__head{ display:flex; justify-content:space-between; align-items:baseline; }
  .sense-tile__num{ font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--s); }
  .sense-tile__title-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .sense-tile h3, .sense-tile__title{ font-size:.98rem; font-weight:700; font-family:var(--font-body); }
  .sense-tile .collapse-chevron{ color:var(--s); }
  .sense-tile__stage{
    height:112px; border:1px dashed var(--border-strong); position:relative;
    display:flex; align-items:center; justify-content:center; overflow:hidden;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .sense-tile__bg{ position:absolute; inset:-6%; width:112%; height:112%; object-fit:cover; z-index:0; transition:transform .5s var(--ease); }
  .sense-tile__scrim{ position:absolute; inset:0; z-index:0; }
  .sense-tile__caption{ font-size:11.5px; color:var(--text-3); line-height:1.55; min-height:2.6em; }
  .sense-tile__caption b{ color:var(--text-2); font-weight:600; }
  .sense-tile input[type=range]{ width:100%; accent-color:var(--s); }
  .sense-tile__row{ display:flex; gap:8px; }
  .mini-btn{
    font-family:var(--font-mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase;
    padding:7px 10px; border:1px solid var(--border-strong); background:transparent; color:var(--text-2);
    cursor:pointer; transition:all .2s var(--ease); flex:1;
  }
  .mini-btn[data-on="true"]{ background:var(--s); border-color:var(--s); color:var(--ink-950); }
  .mini-btn:hover{ border-color:var(--s); color:var(--text-1); }

  /* sight — shape/taste cross-modal correspondence */
  .shape-round,.shape-spiky{ position:absolute; left:50%; top:42%; width:50px; height:50px; margin:-25px 0 0 -25px; transition:opacity .25s; }
  .shape-round{ border-radius:50%; background:var(--s); }
  .shape-spiky{ background:var(--s); clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
  .sight-word{ position:absolute; left:50%; bottom:7px; transform:translateX(-50%); font-family:var(--font-mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-2); white-space:nowrap; }

  /* sound — pitch/size correspondence */
  .pitch-orb{ width:38px; height:38px; border-radius:50%; background:var(--s); transition:width .12s,height .12s,opacity .12s,transform .12s; }
  .pitch-hz{ position:absolute; top:8px; right:10px; font-family:var(--font-mono); font-size:9.5px; color:var(--text-3); font-variant-numeric:tabular-nums; }

  /* touch — weight/quality inference */
  .touch-puck{ width:32px; height:32px; border-radius:50%; background:var(--s); position:absolute; left:0; top:0; box-shadow:0 6px 18px -4px var(--s); }
  .quality-meter{ height:3px; background:var(--border-strong); position:relative; overflow:hidden; }
  .quality-meter i{ position:absolute; left:0; top:0; height:100%; background:var(--s); transition:width .5s var(--ease); display:block; }
  .quality-label{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:9.5px; color:var(--text-3); }

  /* smell — ambient scent trail */
  .smell-stage{ cursor:crosshair; }
  .smell-trail{ position:absolute; width:8px; height:8px; border-radius:50%; pointer-events:none; filter:blur(5px); background:var(--s); }
  .smell-hint{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-family:var(--font-mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); white-space:nowrap; transition:opacity .3s; }

  /* taste — colour/flavour correspondence */
  .taste-swatches{ display:flex; gap:7px; }
  .taste-swatch{ width:24px; height:24px; border-radius:50%; border:2px solid transparent; cursor:pointer; transition:transform .2s, border-color .2s; }
  .taste-swatch:hover, .taste-swatch[data-active="true"]{ transform:scale(1.18); border-color:var(--text-1); }
  .taste-word{ font-family:var(--font-display); font-size:1.15rem; }

  /* ---------------- research themes ---------------- */
  .section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:52px; }
  .section-head h2{ font-size:var(--fs-h2); margin-top:16px; }
  .section-head .note{ font-size:var(--fs-sm); color:var(--text-3); max-width:32ch; text-align:right; }
  @media (max-width:700px){ .section-head .note{ text-align:left; } }

  .themes{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
  .theme-card{
    grid-column:span 6; position:relative; padding:28px 26px; border:1px solid var(--border);
    background:var(--ink-900); cursor:pointer;
    transition:transform .4s var(--ease), border-color .35s, background .35s, box-shadow .4s var(--ease);
    transform-style:preserve-3d; --glow: var(--accent); overflow:hidden;
  }
  .theme-card__photo{
    position:absolute; inset:-6%; z-index:0; width:112%; height:112%; object-fit:cover;
    opacity:.24; filter:grayscale(55%) contrast(1.08) brightness(.78);
    transition:opacity .4s var(--ease), filter .4s var(--ease), transform .5s var(--ease);
  }
  .theme-card:hover .theme-card__photo, .theme-card:focus-visible .theme-card__photo{
    opacity:.4; filter:grayscale(15%) contrast(1.12) brightness(.85);
  }
  .theme-card::before{
    content:''; position:absolute; inset:0; z-index:0;
    background:linear-gradient(175deg, var(--ink-900) 6%, rgba(16,20,27,.5) 45%, var(--ink-900) 96%);
  }
  .theme-card__idx, .theme-card__wave, .theme-card h3, .theme-card p, .theme-card__meta{ position:relative; z-index:1; }
  .theme-card:hover, .theme-card:focus-visible{
    border-color:var(--glow);
    background:var(--ink-850);
  }
  .theme-card:nth-child(1){ grid-column:span 7; }
  .theme-card:nth-child(2){ grid-column:span 5; }
  .theme-card:nth-child(3){ grid-column:span 5; }
  .theme-card:nth-child(4){ grid-column:span 7; }
  .theme-card:nth-child(5){ grid-column:span 12; }
  @media (max-width:820px){ .theme-card, .theme-card:nth-child(n){ grid-column:span 12; } }

  .theme-card__idx{ font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--glow); }
  .theme-card__wave{ width:36px; height:2px; background:var(--glow); margin:14px 0 16px; }
  .theme-card h3{ font-size:var(--fs-h3); font-weight:500; }
  .theme-card p{ color:var(--text-2); font-size:var(--fs-sm); margin-top:10px; max-width:52ch; }
  .theme-card__meta{
    margin-top:20px; display:flex; justify-content:space-between; align-items:center;
    font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; color:var(--text-3); text-transform:uppercase;
  }
  .theme-card__meta span{ color:var(--glow); }
  .theme-card__arrow{ transition:transform .3s var(--ease); }
  .theme-card:hover .theme-card__arrow{ transform:translateX(4px); }

  /* ---------------- publications ---------------- */
  .filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:34px; }
  .chip{
    font-family:var(--font-mono); font-size:var(--fs-xs); letter-spacing:.04em;
    padding:8px 14px; border:1px solid var(--border-strong); background:transparent; color:var(--text-2);
    cursor:pointer; transition:all .25s var(--ease); border-radius:100px;
  }
  .chip[data-active="true"]{ color:var(--ink-950); background:var(--chip-color,var(--accent)); border-color:transparent; }
  .chip:hover{ border-color:var(--chip-color,var(--accent)); color:var(--text-1); }
  .chip[data-active="true"]:hover{ color:var(--ink-950); }

  .pub-table{ border-top:1px solid var(--border); }
  .pub-row{
    display:grid; grid-template-columns:64px 1fr 150px 110px; gap:22px; align-items:center;
    padding:20px 0; border-bottom:1px solid var(--border);
    transition:max-height .5s var(--ease), opacity .4s var(--ease), padding .5s var(--ease), border-color .4s;
    max-height:140px; overflow:hidden;
  }
  .pub-row.is-hidden{ max-height:0; opacity:0; padding-top:0; padding-bottom:0; border-color:transparent; }
  .pub-row__year{ font-family:var(--font-mono); font-size:var(--fs-sm); color:var(--text-3); font-variant-numeric:tabular-nums; }
  .pub-row__title{ font-size:var(--fs-body); color:var(--text-1); font-weight:500; line-height:1.4; }
  .pub-row__title a{ text-decoration:none; }
  .pub-row__title a:hover{ color:var(--accent); }
  .pub-row__meta{ font-size:var(--fs-xs); color:var(--text-3); margin-top:5px; }
  .pub-row__tag{
    font-family:var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:.08em;
    color:var(--tag-color); border:1px solid var(--tag-color); border-radius:100px; padding:5px 10px;
    justify-self:start; white-space:nowrap;
  }
  .pub-row__cite{ display:flex; align-items:center; gap:8px; justify-content:flex-end; }
  .pub-row__cite b{ font-family:var(--font-mono); font-size:var(--fs-sm); color:var(--text-2); font-variant-numeric:tabular-nums; width:2.2em; text-align:right; }
  .pub-row__bar{ width:38px; height:3px; background:var(--border-strong); position:relative; overflow:hidden; }
  .pub-row__bar i{ position:absolute; left:0; top:0; height:100%; background:var(--accent); }

  @media (max-width:760px){
    .pub-row{ grid-template-columns:1fr; gap:8px; }
    .pub-row__cite{ justify-content:flex-start; }
  }

  .pub-foot{ margin-top:34px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
  .btn{
    display:inline-flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:var(--fs-xs);
    letter-spacing:.06em; text-transform:uppercase; text-decoration:none; color:var(--text-1);
    border:1px solid var(--border-strong); padding:13px 20px; transition:all .25s var(--ease);
  }
  .btn:hover{ border-color:var(--accent); color:var(--accent); gap:14px; }

  /* ---------------- featured book ---------------- */
  .book-module{ display:grid; grid-template-columns:220px 1fr; gap:56px; align-items:center; }
  @media (max-width:760px){
    .book-module{ grid-template-columns:1fr; gap:34px; justify-items:center; text-align:center; }
  }
  .book-module__desc{ color:var(--text-2); font-size:var(--fs-body); line-height:1.65; max-width:58ch; }
  .book-module__body .btn{ margin-top:24px; }

  /* stage is static — the interactive element's box must never move (a moving hit
     target is worse to click/tap for real users, and reads as "not stable" to
     automated tooling for the same reason). the "sensorial" idle motion instead
     lives entirely on a decorative, pointer-events:none glow BEHIND the book —
     a sibling, never an ancestor of the interactive element */
  .book-3d-stage{ position:relative; width:190px; margin:0 auto; }

  .book-3d-glow{
    position:absolute; left:50%; bottom:-16px; width:150px; height:30px;
    transform:translateX(-50%);
    background:radial-gradient(ellipse at center, rgba(231,162,58,.4), transparent 72%);
    filter:blur(7px);
    pointer-events:none;
    animation:bookGlowPulse 4.5s ease-in-out infinite;
  }
  @keyframes bookGlowPulse{
    0%,100%{ opacity:.45; transform:translateX(-50%) scale(1); }
    50%{ opacity:.9; transform:translateX(-50%) scale(1.1); }
  }
  @media (prefers-reduced-motion:reduce){ .book-3d-glow{ animation:none; opacity:.6; } }

  /* the cover swings open on its spine to reveal a page underneath — perspective
     lives on the wrapper, the cover itself is the only piece that rotates */
  .book-3d{
    position:relative; width:190px; height:274px;
    perspective:1400px;
  }
  .book-3d:focus-visible{ outline:2px solid var(--accent); outline-offset:6px; }

  .book-3d__pages{
    position:absolute; inset:7px -5px 7px 9px; border-radius:0 3px 3px 0;
    background:linear-gradient(90deg,#EFEBE1,#DAD5C7 88%,#C9C3B4);
    box-shadow:0 14px 34px rgba(0,0,0,.5);
  }
  .book-3d__leaf{
    position:absolute; inset:0; border-radius:3px 5px 5px 3px;
    background:linear-gradient(160deg,#F3EFE5,#E6E1D3);
    display:flex; align-items:center; justify-content:center; padding:22px;
    box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
  }
  .book-3d__leaf-quote{
    font-family:var(--font-display); font-style:italic; font-size:12.5px; line-height:1.55; color:#332c22;
  }
  .book-3d__cover{
    position:absolute; inset:0; cursor:pointer; border-radius:2px 5px 5px 2px;
    box-shadow:3px 6px 20px rgba(0,0,0,.55);
    transform-origin:left center; transform:rotateZ(-1deg);
    transition:transform .7s var(--ease), box-shadow .7s var(--ease);
  }
  .book-3d__cover img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    border-radius:2px 5px 5px 2px; display:block;
  }
  .book-3d__cover::before{
    /* the spine catches the same five wavelengths as the rail and topbar */
    content:''; position:absolute; left:0; top:0; bottom:0; width:4px; z-index:1;
    background:linear-gradient(180deg,var(--c-amber),var(--c-cyan),var(--c-violet),var(--c-sage),var(--c-rose));
    border-radius:2px 0 0 2px;
  }
  .book-3d.is-open .book-3d__cover{
    transform:rotateY(-30deg) rotateZ(-1deg);
    box-shadow:16px 10px 34px rgba(0,0,0,.6);
  }

  /* ---------------- teaching: course tags ---------------- */
  /* Third attempt at this spot: a looping marquee ticker (dated), then a bold pulsing
     diagram borrowed from the congruency map (too much presence for what's really just a
     course list). Settling on the plainest option — static bordered tags, no motion, no
     colour-coding, no glow — so it reads as content and gets out of the way. */
  .course-tags{
    border-top:1px solid var(--border); border-bottom:1px solid var(--border);
    margin-top:8px; padding:22px 0;
    display:flex; flex-wrap:wrap; gap:10px 12px;
  }
  .course-tag{
    font-family:var(--font-mono); font-size:var(--fs-sm); color:var(--text-2);
    border:1px solid var(--border); border-radius:999px; padding:7px 14px;
    white-space:nowrap; transition:color .2s ease, border-color .2s ease;
  }
  .course-tag:hover{ color:var(--text-1); border-color:var(--border-strong); }

  /* ---------------- projects ---------------- */
  /* its own small head — separates this from the course marquee above so it
     reads as "also happening" rather than more teaching content */
  .projects-head{ margin-top:52px; max-width:52ch; }
  .projects-head h3{ font-size:1.35rem; font-weight:500; margin-top:10px; color:var(--text-1); }

  /* Same card type as the theme cards above (see .theme-card): background photo, gradient
     scrim, a coloured accent line, glow-on-hover border — reused directly rather than a
     second card language, per the same "one system, not two" reasoning as the course map
     that preceded it. Two equal-width cards rather than the theme grid's asymmetric spans,
     since there are only ever two of these. */
  .projects{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:26px; }
  .project{
    position:relative; padding:28px 26px; border:1px solid var(--border);
    background:var(--ink-900); overflow:hidden; --glow:var(--c-sage);
    transition:transform .4s var(--ease), border-color .35s, background .35s, box-shadow .4s var(--ease);
    transform-style:preserve-3d;
  }
  .project__photo{
    position:absolute; inset:-6%; z-index:0; width:112%; height:112%; object-fit:cover;
    opacity:.24; filter:grayscale(55%) contrast(1.08) brightness(.78);
    transition:opacity .4s var(--ease), filter .4s var(--ease), transform .5s var(--ease);
  }
  .project:hover .project__photo, .project:focus-within .project__photo{
    opacity:.4; filter:grayscale(15%) contrast(1.12) brightness(.85);
  }
  .project::before{
    content:''; position:absolute; inset:0; z-index:0;
    background:linear-gradient(175deg, var(--ink-900) 6%, rgba(16,20,27,.5) 45%, var(--ink-900) 96%);
  }
  .project__status, .project__wave, .project h3, .project p{ position:relative; z-index:1; }
  .project:hover, .project:focus-within{
    border-color:var(--glow);
    background:var(--ink-850);
  }
  .project__status{ display:flex; align-items:center; gap:9px; font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--c-sage); }
  .project__dot{ width:7px; height:7px; border-radius:50%; background:var(--c-sage); animation:pulse 2.2s ease-in-out infinite; }
  @keyframes pulse{ 0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(147,168,94,.5);} 50%{ opacity:.6; box-shadow:0 0 0 6px rgba(147,168,94,0);} }
  @media (prefers-reduced-motion: reduce){ .project__dot{ animation:none; } }
  .project__wave{ width:36px; height:2px; background:var(--glow); margin:14px 0 2px; }
  .project h3{ font-size:1.15rem; font-weight:500; margin-top:12px; transition:color .35s; }
  .project:hover h3{ color:var(--c-sage); }
  .project p{ color:var(--text-2); font-size:var(--fs-sm); margin-top:10px; }
  @media (max-width:700px){ .projects{ grid-template-columns:1fr; } }

  /* ---------------- contact ---------------- */
  .contact{ background:var(--ink-900); border-top:1px solid var(--border); }
  .contact__grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:60px; align-items:start; }
  @media (max-width:820px){ .contact__grid{ grid-template-columns:1fr; gap:36px; } }
  .contact h2{ font-size:var(--fs-h2); max-width:14ch; }
  .contact__lines{ margin-top:26px; display:flex; flex-direction:column; gap:6px; }
  .contact__lines a{ font-family:var(--font-display); font-size:clamp(1.4rem,3vw,2rem); text-decoration:none; width:fit-content; position:relative; }
  .contact__lines a::after{ content:''; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease); }
  .contact__lines a:hover::after{ transform:scaleX(1); }

  .info-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0; border-top:1px solid var(--border); }
  .info-list li{ display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--border); font-size:var(--fs-sm); }
  .info-list span:first-child{ color:var(--text-3); font-family:var(--font-mono); font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.08em; }
  .info-list a{ text-decoration:none; color:var(--text-1); }
  .info-list a:hover{ color:var(--accent); }

  /* ---------------- falcon — mirrored, lands on the copyright year in the footer --------
     Lives in the footer now (markup-wise too — see index.html), gripping the "2026" in
     "© 2026 Miralem Helmefalk". It moved twice before settling here: first from the
     .info-list's top border in the Contact section's right column, then to the
     .eyebrow::before accent line in that section's left column — both were chosen for
     having "a line to land on", but both sit inside .reveal elements whose GSAP-driven
     fade/slide-up runs on its own ScrollTrigger, independent of (and not always in sync
     with) this module's own IntersectionObserver on the section (see the whenSettled()
     note in script.js for the race that caused). The whole flight is horizontally
     mirrored (source frames flipped) so it visibly arrives from the left.

     Positioning used to be computed in JS from getBoundingClientRect() math (footer
     rect, year rect, a hand-tuned px "overhang"/"overlap" constant). That kept coming
     back wrong — one round it hovered above the year, the next it was still off — because
     it depended on exactly when in the load/font-swap/layout sequence it happened to run,
     which is inherently racy and never fully reproducible outside the real browser. The
     resting position is now pure CSS instead: `#yr` is wrapped in `.yr-wrap`
     (position:relative), and `.falcon` is `position:absolute; left:50%; top:0` against
     THAT wrapper — i.e. the falcon is a literal child of the year element in the DOM (see
     index.html), so its position is derived from actual layout, recalculated by the
     browser itself on every reflow/font-swap/resize for free. There is nothing left to
     get out of sync. JS now only sets pixel sizes (place() below) and a small top offset
     so the claws dig slightly into the digits instead of sitting flush on top of them —
     it never has to read or guess where the year currently sits on screen.

     This is real reference footage, not a drawing: falcon_flight.webm/mp4 is that footage,
     composited with mix-blend-mode:screen so its true black background disappears into the
     page. Earlier versions cropped the frame short (top-only) to keep the perch prop out of
     view, but the perch's own gold cap sits in the same vertical band the bird's legs
     occupy once gripping it — no rectangular crop can exclude one without also clipping the
     other, which is exactly what was cutting legs/tail off mid-landing. The fix: the crop
     is tall enough to keep the whole bird in frame at every point in the clip, and the
     static perch prop (camera and perch never move) is painted out per-pixel instead —
     grayish rod/base pixels are matched against the same pixel in frame 0 (perch alone, no
     bird) and painted black; a fixed set of pixels identified as the perch's decorative
     gold rings in that same reference frame are always painted black outright, since a
     naive "does this look like bird-gold" color test alone would otherwise keep them as
     two floating gold blobs. Where the bird's talons actually occlude the rod they're left
     untouched. falcon_landed.png is a single still cut from the true last (already mirrored
     and perch-painted) frame of that footage, alpha-matted from its own luminance and
     tightly cropped around the bird — so the resting pose still carries the source's real
     gradient shading instead of a flat vector fill.

     video and still share one anchor point, chosen at the claws (the point that should
     touch the line) rather than the body — found directly in each asset's own pixel space
     (both are crops of the same source frame, so the same physical point converts cleanly
     between them) and expressed below as a translate() percentage of each asset's own size,
     which is what actually lands the feet on the line instead of somewhere on the chest.

     Two mix-blend-mode/stacking pitfalls apply here exactly as they did in the hero:
     1) never animate opacity on the blended element (or any ancestor) — mid-transition,
     the browser isolates it into an offscreen buffer with nothing behind it to blend
     against, so its blacks come back as a flat opaque box instead of disappearing. The
     entrance below animates `scale`/`translate` instead (see the note on .falcon__video),
     and the crossfade is still the *still* fading in over the paused, still-opaque video.
     2) never put position+z-index on a WRAPPER around the blended element — only on the
     blended element itself, which is why `.falcon` stays position:absolute with no
     z-index of its own, and `.falcon__video`/`.falcon__still` carry z-index:4 directly. */
  .yr-wrap{ position:relative; display:inline-block; }
  .falcon{ position:absolute; left:50%; top:0; pointer-events:auto; } /* clickable — see script.js: it links to 1996.html */
  .falcon__video, .falcon__still{ position:absolute; left:0; top:0; display:block; opacity:0; z-index:4; }
  .falcon__video{
    transform:translate(-50.625%,-74.21%);
    mix-blend-mode:screen;
    /* Entrance: opacity still snaps instantly (see note 1 above), but `scale`/`translate`
       are separate, independently-animatable properties that compose with the fixed
       anchor `transform` above rather than replacing it, and animating them doesn't
       trip the blend-isolation bug the way a mid-flight opacity value does. The offset
       leans left and only slightly up, so the bird visibly eases in from off to the left
       of its landing spot rather than just popping in undersized — matches the mirrored
       footage, which itself already sweeps in from the left. Kept brisk (.185s, tightened
       another 30% alongside the 2.262x playbackRate) to match the sped-up flight itself
       (see script.js's playbackRate) — feels like a snap into motion rather than a slow
       float-in. */
    scale:.7;
    translate:-46px -8px;
    transition:scale .185s var(--ease), translate .185s var(--ease);
  }
  .falcon__still{
    /* Claws, not chest — see block comment above. Do not hand-tune without re-deriving
       the anchor from the actual asset pixels, it's easy to reintroduce a jump or lift
       the claws back off the line. */
    transform:translate(-53.74%,-68.91%);
    filter:drop-shadow(0 0 3px rgba(231,162,58,.35));
    transition:opacity .17s ease;
  }
  .falcon.is-flying .falcon__video{ opacity:1; scale:1; translate:0 0; }
  .falcon.is-landed .falcon__still{ opacity:1; }
  @media (prefers-reduced-motion:reduce){
    .falcon__still{ transition:none; }
    .falcon__video{ transition:none; }
  }

  footer{ position:relative; padding:26px var(--pad); margin-top:28px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-family:var(--font-mono); font-size:10px; color:var(--text-3); letter-spacing:.05em; }

  .reveal{ opacity:0; }
