@font-face {
  /* Newsreader, the same file krystallisjr serves. Deliberately her
     existing family rather than a new one: three sites in one identity
     and the type is the cheapest thing that makes them feel related.
     swap so the line is never invisible while the font arrives. */
  font-family: 'Newsreader';
  src: url('../assets/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

/* Home of Daedalus -- the hero, and nothing else yet.
   "just the swipe. no words no nothing."

   Two stills, one wipe. This replaced a pan across a single 2.79:1
   panorama, which failed repeatedly because how much of the scene a
   given zoom reveals depends on the window's aspect ratio -- a framing
   tuned on one window showed the room on another. The stills are now
   two purpose-made 16:9 renders, each composed for a wide frame from
   the start, so the page just shows them. There is no aspect-ratio
   arithmetic anywhere in the hero. */

:root { --void: #07050A; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--void);
  /* ⚠️ NO overflow-x here. Setting it on html/body makes the other axis
     compute to `auto`, which turns the element into a scroll container
     and silently breaks `position: sticky` on every descendant -- the
     stage unpinned partway down and the rest of the track scrolled past
     as empty void. Nothing overflows sideways anyway: the panels are
     object-fit:cover inside a clipped stage. */
}

/* The scroll track. The stage inside is sticky and one viewport tall, so
   the usable scroll distance is (track - 100svh). 220 was too short --
   the whole thing was over in one flick of a trackpad.

   ★ 260svh -> 220svh: at 260 the wipe finished around 74% of the track
   and the remaining QUARTER was dead scroll -- the room sitting there
   while you kept scrolling at nothing. The tail is cut, not the
   transition. HOLD_UNTIL/WIPE_DONE in js/hero.js were re-solved against
   the new length so the parts you actually feel are unchanged in
   absolute terms:

       opening drift   35.2svh -> 33.6svh
       the wipe        83.2svh -> 80.4svh
       dead tail       ~47svh  -> ~11svh   (measured, not derived)

   ⚠️⚠️ THE TAIL IS NOT (1 - WIPE_DONE) x SCROLLABLE. The easing is
   quartic, so it flattens hard at the end: by t=0.95 the panel is
   within a tenth of a pixel of home. The last ~6% of the wipe window is
   therefore invisible, and it lands EARLY. A first attempt at this cut
   solved the arithmetic, predicted a 15.6svh tail, and measured 21.7 --
   the slack is real and has to be budgeted for. Measure where the
   transform actually reaches 0; do not trust the fractions.

   ⚠️ Change this height and both constants must be re-solved with it,
   or the tail comes straight back. */
.hero {
  position: relative;
  height: 220svh;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background-color: var(--void);
  /* a ~550-byte blurred JPEG of the alley, inlined in index.html, so
     first paint is the scene rather than a black hole */
  background-size: cover;
  background-position: center;
}

.hero__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover, so the composition survives any window shape. The sources
     are 16:9, which matches most desktop windows closely enough that
     very little is given up here. A phone crops hard -- see the note
     on portrait at the bottom of this file. */
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* The second still sits off to the right and wipes across on top of the
   first, driven by scroll from js/hero.js. A crossfade was tried and
   looked wrong -- the two are different compositions, so dissolving one
   into the other ghosts a rainy alley through a dinner table and reads
   as a rendering fault. A hard edge reads as a door opening. */
.hero__layer--inside {
  position: absolute;
  inset: 0;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  z-index: 2;                 /* above the seam glow */

  /* ★ GRADIENT-WIPE SOFTNESS -- the leading edge is feathered, not a
     razor line. This is the real named control from film editing: a
     gradient wipe reveals through a luminance ramp and every
     implementation of it (Premiere, Resolve, Boris) exposes a
     "softness" parameter that feathers the wipe edge, because a hard
     geometric edge is precisely what reads as software rather than as
     something physical moving. It was the one thing about this
     transition that was unmistakably a slide.

     The mask is STATIC and lives in the element's own coordinate space,
     so translating the element carries the feather along with it -- it
     rasterises once and is then just moved, exactly like the panel
     itself. Nothing here is animated per-frame.

     ⚠️ -webkit- prefix is load-bearing: unprefixed mask-image only
     landed in Safari 15.4. And note the failure mode is SAFE -- this
     project has been bitten before by a CSS mask silently not clipping
     on real Safari (the krystallisjr rectangle bug, mask-mode:luminance
     on a WebP). If this one no-ops the same way, the panel paints its
     full rectangle, which is just the hard edge we already had. It
     degrades to the old look, it cannot break the layout.

     ⚠️⚠️ THE FEATHER MUST END UP OFF-FRAME. This shipped broken once and
     read exactly like a rendering fault, because it was one: the panel
     comes to REST covering the whole stage, so its feathered left edge
     stayed feathered -- a ~31px translucent strip down the side of the
     finished room, with the alley (by then drifted 427px left) showing
     through it. A soft edge is only ever correct while that edge is
     LEADING something. The moment it lands, it is a hole.

     Fixed geometrically rather than by fading the mask out: the panel is
     cut wider than the stage and hangs off the left by more than the
     feather is wide, so when it lands the whole soft edge sits outside
     the stage's overflow:hidden and every visible pixel is opaque.
     While it travels, that same soft edge leads the wipe.
     --overhang is deliberately LARGER than --feather: the mask
     percentage resolves against the panel's own width, not the stage's,
     so equal values would leave a sliver of fade on screen. */
  --feather: 2.2%;
  --overhang: 3%;
  left: calc(0px - var(--overhang));
  right: auto;                /* inset:0 set both; left + width must win */
  width: calc(100% + var(--overhang));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--feather));
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--feather));
}

/* ✗ DEAD -- FILM GRAIN AS A RUNTIME LAYER. Do not re-add it here.
   It was a tiled noise SVG across the stage with mix-blend-mode:overlay
   at 0.06, the same layer krystallisjr and softworks both run. On this
   page it measured at ~40% OF THE ENTIRE FRAME BUDGET: roughly 17.5ms
   with it hidden against 28-32ms with it on, reproduced across two
   separate runs, with repeated identical controls to establish that the
   noise floor was only ~4ms.

   ⚠️ The trap worth remembering: it IS free on krystallisjr, and that
   is why it got copied over without checking. A blend mode is
   re-evaluated wherever the backdrop beneath it CHANGES. jr's stage is
   mostly static, so the blended result caches; here the entire viewport
   is in motion for the whole wipe, so it is recomputed every frame. The
   cost of a blend mode is a property of what is under it, not of the
   layer itself -- same shape as the backdrop-filter lesson.

   ✓ The grain is now BAKED INTO THE PLATES at encode time
   (tools/build_hero.py). Zero runtime cost, and about 2% more bytes --
   half-resolution, luminance-weighted noise survives AVIF and WebP far
   better than per-pixel grain would. Adjust it there, not here. */

/* ★ VIGNETTE, also across the whole frame rather than either panel.
   Same argument as the grain, and the same fix that resolved this exact
   "reads like a slide background" complaint on this project's previous
   hero: an untreated full-bleed photograph looks like a photograph
   pasted on a screen, and the cheapest thing that makes it look shot is
   falloff at the edges. Because it sits above both panels it is
   continuous through the wipe -- the frame stays put while the world
   behind it changes, which is what a camera does.

   `farthest-side`, not the default `farthest-corner`: on a non-square
   box the default never reaches full strength before the short axis
   runs out, so the corners get all the darkening and the long edges get
   almost none. Learned the hard way on the krystallisjr ground shadow. */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* ★ Centre pushed LEFT, not just weakened. Her catch: "relax the
     vignette on the left side because you are overshadowing the daedra
     and hes blending into the wall." He sits hard against the left edge,
     which is exactly where a centred vignette is darkest, and he is
     already near-black armour -- so the falloff was burying the one
     figure with the least contrast to spare. Moving the origin to 34%
     puts the left edge closer to the bright centre of the gradient and
     leaves the right, which is mostly empty wall, doing the work. */
  /* ⚠️ Moving the origin off-centre fixed the Daedra and broke the other
     end: "the angel to the left is also caught in the vignette." Of
     course it did -- an off-centre origin does not relax a vignette, it
     TRADES one side for the other, and this room has a figure hard
     against each edge. Both of them are near-black and neither has
     contrast to spare.
     So: back to centre, and genuinely weaker instead. The clear middle
     is much wider (55%) and the corners are less than half what they
     were, which lets the frame still fall off without burying anybody. */
  /* Weakened once more: "less vignette on the angel so he is more
     visible". He sits low and hard right in the alley, which is the
     other place a centred vignette bites.

     ⚠️ Kept SHARED between both panels rather than giving each its own,
     even though a per-panel vignette would let the alley and the room
     be tuned separately. The frame has to be continuous through the
     wipe -- it belongs to the lens, not to either photograph -- and a
     vignette that changed strength mid-transition would read as a
     rendering fault, which is precisely the problem the shared frame
     was introduced to solve. So it gets weaker for both. */
  background: radial-gradient(ellipse farthest-side at center,
              rgba(0, 0, 0, 0) 63%,
              rgba(0, 0, 0, 0.06) 84%,
              rgba(0, 0, 0, 0.18) 100%);
}

/* The alley drifts left while the house arrives -- see PARALLAX in
   js/hero.js. Two layers at different speeds is what makes this read as
   a camera moving through a doorway rather than two slides swapping.

   ★ The transform lives on the LAYER, not on the <img>, because the
   light canvases have to drift with the street they belong to. A glow
   that stayed put while the alley slid out from under it would be worse
   than no glow at all. One transform moves the plate and both canvases
   together, as one object. */
.hero__layer--outside {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* The lights, stacked straight over the plate inside the same layer.
   Never interactive -- the only thing in the hero that takes a click is
   the cue. Both the alley's pair and the room's pair use this. */
.hero__lights {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Shadow riding the leading edge of the wipe. Her ask: something so the
   transition is "not just like a powerpoint presentation."

   ★ BLACK, not warm. This was a warm gold glow first -- light spilling
   out of an opening door -- and she called it: "i dont like the white
   shadow on the transition i prefer if that was black." She is right
   about the read. Warm light leaking out of the house says the house is
   the light source and the alley is being lit by it, which softens the
   one contrast the whole hero is built on. A dark leading edge is the
   opposite and the truer one: the wall of the house arrives as a mass,
   and it throws the alley into shadow just before it covers it. The
   outside stays cold and unlit right up until it is gone.

   Only the colour changed -- the stop positions, the width and the
   opacity hump are exactly the ones that were already on screen, so the
   falloff feels the same, it just goes dark instead of gold.

   ⚠️ A STATIC GRADIENT that is only ever MOVED and FADED. No filter, no
   mix-blend-mode, no box-shadow animation. A full-viewport blur measured
   at ~40% of the whole frame budget on krystallisjr, and a blend mode
   makes the compositor read back what is behind it on every frame.
   Neither is worth paying for decoration. A translate and an opacity are
   free -- the compositor already holds this as a texture, and a
   recolour does not add a layer, a write or a frame's work.

   The dense end is on the RIGHT, falling away to the left, and js places
   its right edge exactly on the seam, so the shadow falls backwards into
   the alley, ahead of the wall that is casting it. Opacity is a hump:
   nothing at either end, deepest mid-swing, so the shadow only exists
   while the door is actually moving. */
.hero__seam {
  position: absolute;
  top: 0;
  left: 0;
  /* Widened 26vw -> 34vw with the drama pass. The shadow has to reach
     far enough ahead of the wall to actually take the alley down, not
     just darken a strip at the edge. */
  width: clamp(240px, 34vw, 620px);
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;                 /* over the alley, under the house */
  will-change: transform, opacity;
  /* Denser than the first pass too -- it reaches full black by the
     leading edge instead of stopping at 0.92, so mid-wipe the street is
     genuinely gone rather than dimmed. */
  background: linear-gradient(90deg,
              rgba(4, 3, 6, 0) 0%,
              rgba(4, 3, 6, 0.14) 40%,
              rgba(4, 3, 6, 0.46) 68%,
              rgba(4, 3, 6, 0.86) 90%,
              rgba(2, 1, 3, 1) 100%);
}

/* The scroll cue. Wordless on purpose -- "no words no nothing" still
   holds for copy; this is an affordance, not a message.

   ★ It points RIGHT, not down. Her catch: "the door is on the right.
   think whats behind the door type thing." The page scrolls vertically
   but the SCENE moves sideways -- the house wipes in from the right,
   through the door she is sitting against. A down arrow describes the
   mechanism; a right arrow describes where you are going, and that is
   the one worth showing. It sits right of centre for the same reason,
   gesturing at the door rather than floating in the middle.

   Placed at 60% rather than pinned to the door itself: object-fit
   cover crops the sides on a narrow window, so anything aligned to a
   feature in the image drifts. 60% reads as "toward the door" on every
   shape without pretending to point at an exact pixel.

   It is a real <button>: clicking it scrolls you in. Someone who hasn't
   realised the page moves is exactly the person who needs it, and a
   hint that looks interactive but does nothing is worse than no hint.

   Fades out over the first stretch of scroll (js/hero.js) -- once the
   house is arriving it has done its job, and leaving it there would be
   furniture sitting on top of the scene. */
.hero__cue {
  position: absolute;
  left: 60%;
  display: flex;
  align-items: center;
  gap: 14px;
  bottom: clamp(20px, 4.5svh, 46px);
  transform: translateX(-50%);  /* centred on the 60% mark. The bob now
                                   lives on the ARROW alone, so this can
                                   safely own the button's transform. */
  z-index: 4;                   /* above the grain and vignette, which
                                   are frame treatment and should not
                                   sit on top of an interactive control */
  width: auto;
  height: auto;
  padding: 10px 18px 10px 20px;
  border: 0;
  border-radius: 40px;
  color: rgba(255, 246, 238, 0.95);
  cursor: pointer;
  /* A soft dark scrim behind the mark, not a visible chip. The cue sits
     low over her boots and the wet stone -- busy, and dark-on-dark
     swallowed a thin pale arrow at first. The radial fades to nothing
     well before its own edge, so it reads as the ground dimming
     slightly rather than as a button. */
  background: radial-gradient(ellipse at center,
              rgba(4, 3, 6, 0.62) 0%,
              rgba(4, 3, 6, 0.34) 55%,
              rgba(4, 3, 6, 0) 78%);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.95));
  -webkit-tap-highlight-color: transparent;
  will-change: opacity;
  transition: color 200ms ease;
}

.hero__cue__line {
  font: 400 clamp(0.95rem, 1.5vw, 1.18rem)/1 'Newsreader', Georgia, serif;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* the invitation is the quiet half; "Come in." is the half that asks */
.hero__cue__line em {
  font-style: italic;
  opacity: 0.72;
}

.hero__cue svg {
  width: 26px;
  height: 26px;
  display: block;
  flex: none;
  animation: cue-bob 2.4s ease-in-out infinite;
}

.hero__cue:hover,
.hero__cue:focus-visible { color: #fff; }

.hero__cue:focus-visible {
  outline: 2px solid rgba(255, 244, 235, 0.7);
  outline-offset: 4px;
}

/* Bobs sideways, toward the door, matching where the arrow points and
   where the scene actually travels. */
@keyframes cue-bob {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(7px); }
}

/* No motion: show the first still, still. The track collapses to one
   screen so there is nothing to scroll through, so the cue would be
   pointing at nothing -- and the bob is exactly the kind of idle
   movement this query exists to stop.
   NOTE portrait/phone IS handled now -- see the 16:9 band above. The old
   note here said it was deferred until purpose-made 9:16 renders existed;
   they never did, and letting the box take the plate's own aspect turned
   out to need no new asset at all. */
/* ── Portrait phones: fill the screen, and FRAME the crop ─────────────
   ✗✗ THE 16:9 LETTERBOX IS REVERTED. It did show the whole room, and she
   looked at it and said no: "make them show some things filling up the
   full screen. not th eultra zoomed out. think like krystallissoftworks
   and krystallisjr on mobile."
   ★ So I went and measured both of those at 390x844, which settles it:
     krystallissoftworks  hero-still-mobile.jpg  780x1328, aspect 0.59 --
                          a PURPOSE-MADE PORTRAIT asset, `cover`, full
                          bleed. Built by bake_real_posters.py, which
                          re-renders the live scene at an iPhone viewport.
     krystallisjr         sky.avif 2.5 aspect at `cover` and cropped
                          freely -- because the figure, city, lamps and
                          arcs are all separate CANVASES composited on
                          top, so the sky is only a backdrop.
   Neither letterboxes. Both fill the screen. The house style is full
   bleed, and this hero should match its own family.

   ⚠️⚠️ BUT THIS HERO CANNOT DO WHAT EITHER OF THEM DOES. They re-render
   or re-composite per viewport; this is two fixed 16:9 stills and there
   are no masters in source/ to re-render from. So with these assets,
   "fills the screen" and "shows the whole group" are mutually exclusive
   -- a 9:19.5 window onto a 16:9 plate is 26% of its width, whichever
   way it is framed. She has now chosen fill. The real fix remains a
   purpose-made portrait render of each scene.

   ✓ WHAT IS LEFT TO DO IS CHOOSE WHERE THE 26% LANDS, and `cover`
   defaults to dead centre, which is the one thing nobody chose. Measured
   off a contact sheet of both plates at 25/40/50/60/75%:
     outside  58%  her whole curled figure AND the full wing arc, which is
                   the signature silhouette. 50% keeps more neon but clips
                   the wing; past 66% she is lost behind it entirely.
     inside   72%  FOUR faces -- the netrunner's screen, the purple hair,
                   the man with the glass, the winged figure at the end.
                   Dead centre lands on the bald man's forearm and a
                   table of candles, which is the emptiest 26% of the
                   whole plate: the most crowded room on the site was
                   being cropped to its one quiet patch. */
@media (max-width: 720px) and (orientation: portrait) {
  .hero__panel--outside { object-position: 58% 50%; }
  .hero__panel--inside  { object-position: 72% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero__layer--inside { display: none; }
  .hero__seam { display: none; }
  .hero__cue { display: none; }
}

/* ── The first-load beat ──────────────────────────────────────────────
   Nothing, then the mark, then the angel at the door. */
/* ⚠️ .boot's own geometry, the veil's fill and pointer-events are INLINE
   in index.html -- they must be right on the first paint, before this
   file has necessarily arrived. What lives here is everything about how
   it MOVES, which can safely be late.

   "slightly biased north": padding on the bottom rather than a translate
   on the mark, because the mark's own transform is carrying the settle
   animation and stacking a translate into it would mean re-deriving the
   offset inside every keyframe. Grid centres within what is left, so
   8svh of floor lifts the mark by half of it -- 4svh, ~36px at 900. */
.boot__veil { transition: opacity 700ms ease; }
.boot.is-open .boot__veil { opacity: 0; }

.boot__mark {
  /* 25% up from 112/17vw/210 */
  width: clamp(140px, 21.25vw, 262px);
  height: auto;
  opacity: 0;
  /* Arrives a touch small and settles. A pure fade reads as an image
     loading; a fade with a hair of scale reads as something opening. */
  transform: scale(0.94);
  transition: opacity 620ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.boot.is-lit .boot__mark { opacity: 1; transform: scale(1); }
/* Beat 4: the mark alone leaves, the black having gone a beat earlier.
   A touch slower than it arrived -- it should feel like it is being
   released rather than switched off. */
.boot.is-done .boot__mark { opacity: 0; transition-duration: 820ms; }

/* ★ The cover runs on BOTH paths now, her call: "back to the house
   should also have black screen and logo... to be smoother."
   She is right and my first instinct was wrong. The return already had
   a black pause -- it has to, because the scroll cannot be positioned
   until layout exists -- so the choice was never "splash or no splash",
   it was "held black or blank black". A blank hold reads as the page
   stalling; the same hold with the mark on it reads as the house
   letting you back in. The beat is shorter coming back than on a first
   arrival: see MARK_MIN_MS in js/hero.js. */

@media (prefers-reduced-motion: reduce) {
  .boot, .boot__mark { transition-duration: 200ms; }
  .boot__mark { transform: none; }
  .boot.is-lit .boot__mark { transform: none; }
}

/* ── The room speaks ──────────────────────────────────────────────────
   Three lines over the interior, run by js/hero.js once the wipe has
   actually landed. Opacity and transform only: this sits on top of a
   full-screen photograph and anything else would cost a repaint of the
   whole plate on every frame.

   ⚠️ Type is NEWSREADER, wide-tracked caps, because she asked for "the
   same font as krystallis softworks". Softworks' wordmark is an image,
   but its whole site is set in Newsreader and the same woff2 is already
   self-hosted here, so this matches at zero extra bytes. */
.room {
  position: absolute;
  inset: 0;
  z-index: 3;                    /* over the plates, under the cue */
  display: grid;
  /* ★ Her call: "at the bottom of the screen not in the middle. where
     the tatami is." Centred, the words sat across the table and the
     faces -- the busiest, most-detailed band of the photograph, and the
     part anyone actually wants to look at. The tatami along the bottom
     is the one genuinely quiet surface in the frame, so the type has
     somewhere to sit instead of competing. */
  align-content: end;
  justify-items: center;
  gap: 0.3em;
  /* ★ "bring the welcome thing a bit lower. all of it... further onto
     the tatami." One value moves the whole block, because the group is
     bottom-aligned: shrinking the floor lowers the welcome line, the
     name and the button together and keeps their spacing exactly as
     tuned. 7svh -> 4svh, so at a 900px window the block drops ~27px. */
  padding: 0 6vw clamp(20px, 4svh, 48px);
  text-align: center;
  pointer-events: none;

  /* ★★ THE ROOM'S WORDS BELONG TO THE ROOM. Hidden unless the wipe is
     actually home, driven from update() in js/hero.js.
     ⚠️ Without this there is a real, reachable bug: the sequence ends
     with `scroll` holding .is-on permanently, so scrolling back UP to
     the alley left a purple button sitting over the rainy street. Her
     words -- "make sure that button never accidentally shows on the
     hero. that would be embarrassing."
     `visibility`, not just opacity: a hidden subtree is removed from
     hit-testing AND from the tab order, so the button cannot be clicked
     or tabbed to while the alley is on screen. Delayed on the way out
     so the fade is seen, instant on the way in. */
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.room.is-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms ease, visibility 0s linear 0s;
  /* The room is warm and busy. Without this the words sit in it rather
     than in front of it. */
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.92), 0 0 60px rgba(0, 0, 0, 0.7);
}

/* ⚠️ A GUTTER, so the name never runs to the edge of the screen. Her
   wider point was "the spacing between borders at a similar ratio" --
   the founder card got the same clamp on the same day, and a title that
   touches the glass is the clearest case of the thing she is describing. */
.room { padding-inline: clamp(16px, 4.5vw, 48px); }

.room__line {
  margin: 0;
  opacity: 0;
  color: rgba(255, 246, 238, 0.96);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  /* Each line starts a hair low and rises as it fades in. A pure
     opacity fade reads as a slideshow; a few pixels of travel reads as
     something arriving. */
  transform: translate3d(0, 10px, 0);
  transition: opacity 900ms ease, transform 900ms ease;
  will-change: opacity, transform;
}
.room__line.is-on { opacity: 1; transform: translate3d(0, 0, 0); }

/* "Welcome to the" -- the quiet half, but it still has to be readable.
   ★ Her note: "make welcome to maybe a bit thicker or something to make
   it more visible."
   Two changes, both small, because the thing she likes about this is
   that it is sleek: weight 300 -> 500, and 0.74 -> 0.88 opacity.
   Weight is the one that matters here. At 0.34em the letters are
   spread far enough apart that a 300 stroke has nothing holding it
   together, and the line reads as a grey smudge over a busy plate;
   filling the strokes fixes it without touching the tracking, which is
   what gives the line its air in the first place.
   ⚠️ Newsreader is variable (200-800), so 500 is a real weight here and
   not a browser-synthesised fake bold. */
.room__line--a {
  /* ⚠️⚠️ THE FLOOR IS SET BY THE TITLE'S FLOOR, NOT CHOSEN ON ITS OWN.
     Her note: "the scale of 'welcome to ... home of daedalus' on the phone
     is not the same scale of ratio as it is on the laptop."
     Measured, and she is exactly right. Both lines are pinned to their
     clamp MINIMUMS on a phone, and the two minimums were picked
     independently, so the relationship between them is whatever fell out:

        1440   welcome 21.6px   title 76.8px   ratio 3.56
         390   welcome 15.2px   title 32.0px   ratio 2.11

     The fluid middle terms agree with each other (5.9vw / 1.7vw = 3.47);
     it is only the floors that disagree. So the hierarchy collapses at
     exactly the size where it matters most, and the two lines read as
     almost the same size instead of a label above a name.
     0.95rem -> 0.82rem, against a title floor raised to 2.5rem, puts the
     phone ratio at 3.05. ★ The general rule she is describing: a clamp
     floor is a DESIGN DECISION about proportion, not a safety net to be
     set per-element. Two lines in one relationship need their floors
     chosen together. */
  font-size: clamp(0.82rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;      /* tracking pads the right only; recentre */
  text-transform: uppercase;
  opacity: 0;
  color: rgba(255, 246, 238, 0.88);
}
.room__line--a.is-on { opacity: 0.88; }

/* The name, on a line of its own, as she asked.
   ⚠️ NOT uppercase -- "Home of Daedalus like that. not in uppercase."
   Set as written, so the descender on the p and the cap heights do the
   work instead of a flat band of caps. Tracking comes down with it:
   0.10em was sized for caps and opens title case up too far. */
.room__line--b {
  /* ⚠️ 2rem -> 2.5rem. See the note on --a: this floor and that one are
     one decision. Measured what actually fits, because `Home&nbsp;of&nbsp;
     Daedalus` is joined by non-breaking spaces and CANNOT wrap -- it
     overflows instead, so the floor is bounded by width and not by taste:
        360px viewport -> fits up to 44px
        390px          -> 48px
        414px          -> 50px
     2.5rem is 40px, which clears the tightest case with the room's new
     gutter still intact. */
  font-size: clamp(2.5rem, 5.9vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
}

/* The way on. A real button now, and the one violet thing on the page.
   ⚠️ Colour MEASURED off the interior plate, not picked: the netrunner's
   visor reads #9040a6 at its median and #d294f9 across its brightest
   decile, so this is that top decile. Her ask was "the same color as
   the netrunner", and the only way to actually be the same colour is to
   go and read it.
   Monospace still, because it hands you to a terminal. */
.room__line--c {
  margin-top: 1.1em;
  /* Lifted off the bottom edge WITHOUT moving the text above it.
     `position: relative` rather than a margin, because the group is
     bottom-aligned and a margin on the last child would push the whole
     block back up -- undoing the drop onto the tatami. And not a
     transform, because the transform on this element is already
     carrying the fade-in travel. */
  position: relative;
  bottom: 24px;
  /* ⚠️ NOT pointer-events:auto by default. This is a real <button>, so
     at opacity 0 it would still be clickable AND in the tab order --
     invisible on the alley, and one Tab keypress from being focused.
     It only becomes live when it is actually on screen. */
  pointer-events: none;
  padding: 0.62em 1.5em;
  border: 1px solid rgba(210, 148, 249, 0.34);
  border-radius: 3px;
  background: rgba(144, 64, 166, 0.14);
  font: 400 clamp(1rem, 1.55vw, 1.32rem)/1 'JetBrains Mono', ui-monospace,
        SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.3em;
  text-indent: 0.3em;            /* recentre: tracking pads only the right */
  text-transform: lowercase;
  color: #d294f9;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(210, 148, 249, 0.55);
  transition: opacity 900ms ease, transform 900ms ease,
              background-color 200ms ease, border-color 200ms ease;
}
.room__line--c.is-on { pointer-events: auto; }

.room__line--c:hover,
.room__line--c:focus-visible {
  background: rgba(144, 64, 166, 0.28);
  border-color: rgba(210, 148, 249, 0.75);
  outline: none;
}
.room__line--c:focus-visible { box-shadow: 0 0 0 2px rgba(210, 148, 249, 0.4); }

@media (prefers-reduced-motion: reduce) {
  /* No travel, no stagger worth the name -- but the words must still
     appear, since they carry the only copy on the page. */
  .room__line { transition: opacity 200ms linear; transform: none; }
  .room__line.is-on { transform: none; }
}

/* Screen-reader-only, shared. The visible title is an animated
   decoration; this is the real <h1>. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ── The gate: the room's exit ────────────────────────────────────────
   Tall on purpose. Passing through into the application should take a
   deliberate scroll, not a stray flick of a trackpad.

   ✗ `.gate__line` IS GONE -- the dim green "keep going" that used to be
   centred in here. Her call: "the green keep scrolling thing is a bug
   and should be removed." It was the one green element outside the
   terminal's own palette, so on the void between the room and the nav it
   read as a leftover from another page rather than as part of this one --
   and it was an instruction, duplicating the pressable `scroll` in the
   room one screen above. The section is empty now and that is the whole
   design: it is a measured height for the IntersectionObserver in
   mountHero/mountGate to cross, not a thing to look at. The grid
   centring went with it, since there is nothing left to centre. */
.gate {
  position: relative;
  min-height: 78svh;
  background: var(--void);
}

/* One fixed layer, faded with opacity. That is the entire effect. */
.gate__veil {
  position: fixed;
  inset: 0;
  background: #040605;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
  z-index: 9;
}
.gate__veil.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .gate__veil { transition: none; }
}

/* ── Coming back from the terminal ────────────────────────────────────
   "the redirect back to house should redirect back to the house. not
   outside." The flag is set by the back link in js/term.js and read
   before paint by the inline script in index.html's <head>; js/hero.js
   then puts the scroll past the wipe and lifts the page.

   The page is held dark for those few milliseconds because the scroll
   cannot be set until layout exists, and without the cover the visitor
   sees one frame of the alley before being snapped into the room.
   Matches the terminal's own arrival fade, which is what it is
   continuing from -- and the background matches the TERMINAL'S black
   rather than --void, so the handoff has no seam in it. */
html.is-returning { background: #040605; }

/* ⚠️ SAFETY NET, not decoration. The cover is now the ONLY thing hiding
   the page while the scroll is positioned, so if the module fails to
   load or throws, nothing would ever take it away and the site would be
   a black rectangle with a logo on it forever. This lifts it regardless
   -- late, but never never. Same reasoning as softworks' poster-reveal
   timeout: a failure must not be able to trap the visitor.
   js/hero.js normally beats this by several seconds. */
.boot { animation: hod-uncover 400ms linear 9000ms forwards; }
.boot.is-open { animation: none; }

@keyframes hod-uncover { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  /* There is no wipe on this path to land on the far side of -- the
     track is one screen and the inside panel is display:none -- so
     "back to the house" has to be a straight swap of which still is
     showing. Without this, reduced-motion visitors are the only ones
     the fix would not reach. */
  html.is-returning .hero__layer--inside {
    display: block;
    transform: none;
  }
  html.is-returning .hero__layer--outside { display: none; }
  html.is-returning body { animation: none; opacity: 1; }
}
