/* =====================================================================
   inner-hero.css  (Night Desk v2)
   The inner-page heroes (Immigration, Finance, About, Tools, Contact).
   No card sits on the art any more: the boundary content is staged INSIDE the diagram.
   Volume streams in from the far left, passes the ember line that does not move,
   and leaves as labelled exits. Same grammar everywhere, one composition per page.

   Colour: only custom properties. Defaults are the dark Night Desk; the light theme
   ("Night Desk by day") is the prefers-color-scheme block directly below. The art is
   drawn with classes (no fixed hex), so one drawing serves both themes.
   Geometry blocks between GEN / GENM markers are written by _build/gen_hero_art.py.

   Phones and small tablets (up to 860 px) get a different composition, the rail (see the block headed
   "phones and small tablets"): a spine down the left edge, one connector per labelled row, the checkpoint on the
   ember rule between the two lists. The desktop art above 861 px is untouched.
   ===================================================================== */

:root{
  /* hairline bundle, opacity along its length: far left, under the copy, start of the climb, bright, at the checkpoint */
  --ih-a0:.10; --ih-a1:.075; --ih-a2:.09; --ih-a3:.40; --ih-a4:.62;
  /* labelled streams */
  --ih-n0:.05; --ih-n1:.34; --ih-n2:.50; --ih-n3:.75;
  /* travelling packets (visible only near the checkpoint) */
  --ih-p0:0; --ih-p1:.85; --ih-p2:1;
  --ih-glow:.15;      /* ember rail glow at rest; it breathes up to about twice this */
  --ih-halo:.24;      /* checkpoint outline */
  --ih-tick:.42;      /* ruler ticks on the rail */
  --ih-shadow:0 0 12px var(--bg),0 0 5px var(--bg);   /* soft local scrim under small text, never a box */
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --ih-a0:.11; --ih-a1:.085; --ih-a2:.10; --ih-a3:.40; --ih-a4:.62;
    --ih-n0:.05; --ih-n1:.46; --ih-n2:.62; --ih-n3:.88;
    --ih-p0:0; --ih-p1:.9; --ih-p2:1;
    --ih-glow:.10; --ih-halo:.22; --ih-tick:.5;
  }
}
/* manual override from the toggle */
  :root[data-theme="light"]{
    --ih-a0:.11; --ih-a1:.085; --ih-a2:.10; --ih-a3:.40; --ih-a4:.62;
    --ih-n0:.05; --ih-n1:.46; --ih-n2:.62; --ih-n3:.88;
    --ih-p0:0; --ih-p1:.9; --ih-p2:1;
    --ih-glow:.10; --ih-halo:.22; --ih-tick:.5;
  }

/* ---------------------------------------------------------------- hero shell */
.hero.hero-stage .hero-grid{grid-template-columns:minmax(0,1fr) var(--sw);column-gap:36px;min-height:0;align-items:center}
.hero.hero-stage h1{font-size:clamp(2.4rem,4.2vw,3.85rem)!important}
@media (min-width:1180px){
  .hero-stage .eyebrow{white-space:nowrap}
  .hero.hero-stage .hero-grid{column-gap:28px}
  .hero-stage .hero-cta{gap:10px}
  .hero-stage .hero-cta .btn-lg{padding-inline:19px}
}
.hero.hero-stage::after{background:linear-gradient(180deg,transparent,var(--bg))}

/* ---------------------------------------------------------------- the stage (was the boundary card) */
.hero-stage .boundary.ih{position:relative;z-index:0;isolation:isolate;width:var(--sw);height:var(--sh);margin:0;padding:0;
  background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.hero-stage .ih-band{display:contents}
.hero-stage .ih-art-m{display:none}
.hero-stage .ih-art-d{position:absolute;z-index:1;left:0;top:0;width:var(--sw);height:var(--sh);display:block;overflow:visible;pointer-events:none}

/* the line that does not move: glow, core, ruler ticks. Runs the full height of the hero, fades out below.
   styles.css still draws the old card art with ::before / ::after masks, so every layer resets background and mask in full. */
.hero-stage .boundary.ih::before,
.hero-stage .boundary.ih::after,
.hero-stage .boundary.ih .b-cols::before{content:"";display:block;position:absolute;z-index:0;top:-420px;bottom:-150px;height:auto;right:auto;
  margin:0;border:0;pointer-events:none;background:none;
  -webkit-mask:linear-gradient(180deg,currentColor 0,currentColor calc(100% - 230px),transparent 100%) 0 0/100% 100% no-repeat;
  mask:linear-gradient(180deg,currentColor 0,currentColor calc(100% - 230px),transparent 100%) 0 0/100% 100% no-repeat}
.hero-stage .boundary.ih::before{left:calc(var(--ex) - 23px);width:46px;
  background:linear-gradient(90deg,transparent,var(--ember) 50%,transparent);opacity:var(--ih-glow);animation:ih-breathe 7s ease-in-out infinite}
.hero-stage .boundary.ih::after{left:calc(var(--ex) - 1px);width:2px;background:var(--ember)}
.hero-stage .boundary.ih .b-cols::before{left:calc(var(--ex) + 3px);width:9px;opacity:var(--ih-tick);
  background:
    repeating-linear-gradient(180deg,var(--ember) 0 1px,transparent 1px 14px) 0 0/4.5px 100% no-repeat,
    repeating-linear-gradient(180deg,var(--ember) 0 1px,transparent 1px 70px) 0 0/9px 100% no-repeat}

/* ---------------------------------------------------------------- the text, staged in the diagram */
.hero-stage .boundary.ih .b-cols{position:static;display:block;margin:0;padding:0;gap:0}
.hero-stage .boundary.ih .col{position:static;margin:0;padding:0;min-width:0}
.hero-stage .boundary.ih .col ul{position:static;display:block;list-style:none;margin:0;padding:0}
.hero-stage .boundary.ih .b-tag,
.hero-stage .boundary.ih .col h4,
.hero-stage .boundary.ih .b-foot{position:absolute;z-index:3;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;
  white-space:nowrap;text-shadow:var(--ih-shadow)}
.hero-stage .boundary.ih .b-tag{font-size:.75rem;letter-spacing:.16em}
.hero-stage .boundary.ih .col h4{font-size:.75rem;letter-spacing:.14em;line-height:1.2}
.hero-stage .boundary.ih .col li{position:absolute;z-index:3;display:block;margin:0;padding:0;white-space:nowrap;
  font-size:1.0625rem;line-height:1.25;font-weight:500;letter-spacing:-.005em;text-shadow:var(--ih-shadow)}
.hero-stage .boundary.ih .col li::before{display:none}
.hero-stage .boundary.ih .col.human li{transform:translateY(-50%)}
.hero-stage .boundary.ih .b-foot{white-space:normal;text-align:right;width:190px;font-size:.75rem;letter-spacing:.12em;line-height:1.75;text-wrap:wrap}

/* ---------------------------------------------------------------- the art (classes only, colours from tokens) */
.ih-art .gs{stop-color:var(--text)}
.ih-art .a0{stop-opacity:var(--ih-a0)} .ih-art .a1{stop-opacity:var(--ih-a1)} .ih-art .a2{stop-opacity:var(--ih-a2)}
.ih-art .a3{stop-opacity:var(--ih-a3)} .ih-art .a4{stop-opacity:var(--ih-a4)}
.ih-art .n0{stop-opacity:var(--ih-n0)} .ih-art .n1{stop-opacity:var(--ih-n1)} .ih-art .n2{stop-opacity:var(--ih-n2)} .ih-art .n3{stop-opacity:var(--ih-n3)}
.ih-art .p0{stop-opacity:var(--ih-p0)} .ih-art .p1{stop-opacity:var(--ih-p1)} .ih-art .p2{stop-opacity:var(--ih-p2)}
.ih-art .ih-in path{fill:none;stroke:url(#ihIn);stroke-width:1}
.ih-art .ih-nm path{fill:none;stroke:url(#ihNm);stroke-width:1.4}
.ih-art .ih-pk path{fill:none;stroke-width:1.5;stroke-linecap:round;
  stroke-dasharray:1.5 98.5;stroke-dashoffset:100;animation:ih-flow 30s linear infinite}
.ih-art .ih-pk-b path{stroke:url(#ihPkB)}
.ih-art .ih-pk-n path{stroke:url(#ihPkN)}
.ih-art .ih-twin path{stroke-width:1.1}
.ih-art .ih-node rect{fill:var(--ember)}
.ih-art .ih-cap rect{fill:var(--text)}
.ih-art .ih-port circle{fill:var(--bg);stroke:var(--text);stroke-width:1.5}
.ih-art .ih-out.ih-out-fade path{stroke:url(#ihFade)}
.ih-art .f0{stop-opacity:.9} .ih-art .f1{stop-opacity:.55} .ih-art .f2{stop-opacity:0}
.ih-art .ih-out path{fill:none;stroke:var(--text);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ih-art .ih-out-pk path{fill:none;stroke:var(--pulse,var(--text));stroke-width:2.2;stroke-linecap:round;
  stroke-dasharray:7 93;stroke-dashoffset:100;animation:ih-flow 16s linear infinite}
.ih-art .ih-rej path{fill:none;stroke:var(--ember);stroke-width:1.4;stroke-dasharray:3 4.5;stroke-linecap:round}
.ih-art .ih-x path{fill:none;stroke:var(--ember);stroke-width:1.8;stroke-linecap:round}
.ih-art .ih-halo{fill:none;stroke:var(--ember);stroke-opacity:var(--ih-halo);stroke-width:1}
.ih-art .ih-box{fill:var(--bg);stroke:var(--ember);stroke-width:2}
.ih-art .ih-tick{fill:none;stroke:var(--ember);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes ih-flow{to{stroke-dashoffset:0}}
@keyframes ih-breathe{0%,100%{opacity:var(--ih-glow)}50%{opacity:calc(var(--ih-glow) * 1.9)}}

/* ---------------------------------------------------------------- About: the nameplate hangs on the rail, the systems built are the exits */
.hero-about .boundary.ih .cred{position:static;padding:0;margin:0}
.hero-about .boundary.ih .cred .name,
.hero-about .boundary.ih .cred .row,
.hero-about .boundary.ih .cred .built{position:absolute;z-index:3;margin:0;white-space:nowrap;text-shadow:var(--ih-shadow)}
.hero-about .boundary.ih .cred .name{font-size:1.9rem;line-height:1.1}
.hero-about .boundary.ih .cred .row{display:block;font-size:1rem!important;line-height:1.3}
.hero-about .boundary.ih .cred .row::before{position:absolute;left:-29px;top:.42em;margin:0;width:6px;height:6px}
.hero-about .boundary.ih .cred .built{padding:0;border:0;line-height:1.2;width:max-content}
.hero-about .boundary.ih .cred .built a{position:absolute;left:0;display:block;padding:0;white-space:nowrap;
  transform:translateY(-50%);font-size:.8125rem;letter-spacing:.1em;line-height:1.2}
.hero-about .boundary.ih .cred .built a::after{content:"";position:absolute;inset:-12px -10px}

/* ---------------------------------------------------------------- Tools: three streams, each point sits on its own line */
.hero-tools .boundary.ih .cred{position:static;padding:0;margin:0}
.hero-tools .boundary.ih .cred .row{position:absolute;z-index:3;display:block;width:300px;margin:0;
  font-size:1rem!important;line-height:1.5;color:var(--soft);text-shadow:var(--ih-shadow)}
.hero-tools .boundary.ih .cred .row::before{display:none}
.hero-tools .boundary.ih .cred .row b{color:var(--text);font-weight:600}

/* ---------------------------------------------------------------- Contact: art only, and the line runs on between the form and the booking card */
.hero-contact{padding:78px 0 30px}
.hero-contact::after{display:none}
.hero-contact .hero-grid{display:block;position:relative;min-height:0}
.hero-contact .boundary.ih.ih-deco{position:absolute;z-index:0;top:calc(50% - var(--sh) / 2);width:var(--sw);height:var(--sh);
  left:calc(28px + (100% - 108px) * .625 + 26px - var(--ex))}
.hero-contact .boundary.ih.ih-deco::before,
.hero-contact .boundary.ih.ih-deco::after{bottom:-400px;-webkit-mask:none;mask:none}
/* the line runs on between the form and the booking card, then fades (same x as the hero's rail: the middle of the 52 px gap) */
.contact-grid{position:relative}
.contact-grid::before,.contact-grid::after,.contact-grid>.side::before{content:"";display:block;position:absolute;z-index:0;pointer-events:none;
  top:-28px;height:640px;margin:0;border:0;background:none;
  -webkit-mask:linear-gradient(180deg,currentColor 0,currentColor 38%,transparent 100%) 0 0/100% 100% no-repeat;
  mask:linear-gradient(180deg,currentColor 0,currentColor 38%,transparent 100%) 0 0/100% 100% no-repeat}
.contact-grid::before{left:calc((100% - 52px) * .625 + 26px - 23px);width:46px;
  background:linear-gradient(90deg,transparent,var(--ember) 50%,transparent);opacity:var(--ih-glow);animation:ih-breathe 7s ease-in-out infinite}
.contact-grid::after{left:calc((100% - 52px) * .625 + 26px - 1px);width:2px;background:var(--ember)}
.contact-grid>.side::before{left:calc((100% - 52px) * .625 + 26px + 3px);width:9px;opacity:var(--ih-tick);
  background:
    repeating-linear-gradient(180deg,var(--ember) 0 1px,transparent 1px 14px) 0 0/4.5px 100% no-repeat,
    repeating-linear-gradient(180deg,var(--ember) 0 1px,transparent 1px 70px) 0 0/9px 100% no-repeat}
@media (max-width:860px){.contact-grid::before,.contact-grid::after,.contact-grid>.side::before{display:none}}

/* ---------------------------------------------------------------- per-page geometry (generated) */
/*GEN:immi*/
.hero-immi{--sw:640px;--sh:560px;--ex:334px;--cy:272px;--bh:250;--bc:0.3840}
@media (min-width:861px){
.hero-immi .boundary.ih .b-tag{left:352px;top:30px}
.hero-immi .boundary.ih .col.ai h4{left:0;top:153px}
.hero-immi .boundary.ih .col.ai li:nth-child(1){left:0;bottom:355px}
.hero-immi .boundary.ih .col.ai li:nth-child(2){left:0;bottom:315px}
.hero-immi .boundary.ih .col.ai li:nth-child(3){left:0;bottom:275px}
.hero-immi .boundary.ih .col.ai li:nth-child(4){left:0;bottom:235px}
.hero-immi .boundary.ih .col.human h4{left:424px;top:96px}
.hero-immi .boundary.ih .col.human li:nth-child(1){left:488px;top:140px}
.hero-immi .boundary.ih .col.human li:nth-child(2){left:488px;top:182px}
.hero-immi .boundary.ih .col.human li:nth-child(3){left:488px;top:224px}
.hero-immi .boundary.ih .col.human li:nth-child(4){left:488px;top:266px}
.hero-immi .boundary.ih .b-foot{right:330px;bottom:26px;width:190px}
}
/*END:immi*/
/*GEN:finance*/
.hero-finance{--sw:668px;--sh:520px;--ex:345px;--cy:252px;--bh:250;--bc:0.3840}
@media (min-width:861px){
.hero-finance .boundary.ih .b-tag{left:363px;top:30px}
.hero-finance .boundary.ih .col.ai h4{left:0;top:115px}
.hero-finance .boundary.ih .col.ai li:nth-child(1){left:0;bottom:353px}
.hero-finance .boundary.ih .col.ai li:nth-child(2){left:0;bottom:301px}
.hero-finance .boundary.ih .col.ai li:nth-child(3){left:0;bottom:249px}
.hero-finance .boundary.ih .col.ai li:nth-child(4){left:0;bottom:197px}
.hero-finance .boundary.ih .col.human h4{right:0;top:130px;text-align:right}
.hero-finance .boundary.ih .col.human li:nth-child(1){left:464px;top:174px}
.hero-finance .boundary.ih .col.human li:nth-child(2){left:464px;top:226px}
.hero-finance .boundary.ih .col.human li:nth-child(3){left:464px;top:278px}
.hero-finance .boundary.ih .col.human li:nth-child(4){left:464px;top:330px}
.hero-finance .boundary.ih .b-foot{right:347px;bottom:24px;width:230px}
}
/*END:finance*/
/*GEN:about*/
.hero-about{--sw:640px;--sh:540px;--ex:252px;--cy:200px;--bh:226;--bc:0.4248}
@media (min-width:861px){
.hero-about .boundary.ih .b-tag{left:270px;top:22px}
.hero-about .boundary.ih .cred .built{left:446px;top:82px}
.hero-about .boundary.ih .cred .built a:nth-of-type(1){top:46px}
.hero-about .boundary.ih .cred .built a:nth-of-type(2){top:94px}
.hero-about .boundary.ih .cred .built a:nth-of-type(3){top:142px}
.hero-about .boundary.ih .cred .built a:nth-of-type(4){top:190px}
.hero-about .boundary.ih .cred .name{left:278px;top:350px}
.hero-about .boundary.ih .cred .row:nth-child(2){left:278px;top:408px}
.hero-about .boundary.ih .cred .row:nth-child(3){left:278px;top:439px}
.hero-about .boundary.ih .cred .row:nth-child(4){left:278px;top:470px}
}
/*END:about*/
/*GEN:tools*/
.hero-tools{--sw:660px;--sh:520px;--ex:462px;--cy:236px;--bh:200;--bc:0.4800}
@media (min-width:861px){
.hero-tools .boundary.ih .b-tag{left:480px;top:30px}
.hero-tools .boundary.ih .cred .row:nth-of-type(1){left:0;bottom:394px}
.hero-tools .boundary.ih .cred .row:nth-of-type(2){left:0;bottom:294px}
.hero-tools .boundary.ih .cred .row:nth-of-type(3){left:0;bottom:194px}
}
/*END:tools*/
/*GEN:contact*/
.hero-contact{--sw:600px;--sh:330px;--ex:170px;--cy:165px;--bh:196;--bc:0.5102}
/*END:contact*/


/* ---------------------------------------------------------------- tablet (861 to 1179): the copy, then the stage under it */
@media (min-width:861px) and (max-width:1179px){
  .hero.hero-stage .hero-grid{grid-template-columns:minmax(0,1fr);row-gap:64px}
  .hero.hero-stage{padding-bottom:28px}
  .hero-stage .boundary.ih{margin-inline:auto}
  .hero-stage .boundary.ih::before,
  .hero-stage .boundary.ih::after,
  .hero-stage .boundary.ih .b-cols::before{top:-70px;
    -webkit-mask:linear-gradient(180deg,transparent 0,currentColor 70px,currentColor calc(100% - 230px),transparent 100%) 0 0/100% 100% no-repeat;
    mask:linear-gradient(180deg,transparent 0,currentColor 70px,currentColor calc(100% - 230px),transparent 100%) 0 0/100% 100% no-repeat}
}

/* Contact: the stage beside the copy needs about 1150 px; below that the same art becomes the vertical band under the copy */
@media (max-width:1151px){
  .hero.hero-stage.hero-contact{padding:52px 0 40px}
  .hero-contact .hero-grid{display:block}
  .hero-contact .boundary.ih.ih-deco{display:block;position:relative;left:auto;top:auto;width:auto;height:auto;max-width:560px;margin:36px auto 0}
  .hero-contact .boundary.ih.ih-deco::before,.hero-contact .boundary.ih.ih-deco::after{display:none}
  .hero-contact .ih-art-d{display:none}
  .hero-contact .ih-band{display:block;position:relative;width:100%;aspect-ratio:390 / var(--bh);margin:0}
  .hero-contact .ih-art-m{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
  .contact-grid::before,.contact-grid::after,.contact-grid>.side::before{display:none}
}

/* ---------------------------------------------------------------- the mobile band's drawing (vertical flow) */
.ih-art .z{stop-opacity:0}
.ih-art-m .ih-in path{stroke:url(#ihmIn)}
.ih-art-m .ih-pk-m path{stroke:url(#ihmPk)}
.ih-art-m .ih-out.ih-out-fade path{stroke:url(#ihmFade)}
.ih-art .ih-rule .rg{fill:none;stroke:var(--ember);animation:ih-breathe-g 7s ease-in-out infinite}
.ih-art .ih-rule .rg.w{stroke-width:26;stroke-opacity:calc(var(--ih-glow) * .5)}
.ih-art .ih-rule .rg.n{stroke-width:10;stroke-opacity:calc(var(--ih-glow) * .9)}
.ih-art .ih-core{stroke:var(--ember);stroke-width:2}
.ih-art .ih-t1,.ih-art .ih-t2{stroke:var(--ember);stroke-opacity:var(--ih-tick)}
.ih-art .ih-t1{stroke-width:4.5;stroke-dasharray:1 13}
.ih-art .ih-t2{stroke-width:9;stroke-dasharray:1 69}
.ih-art .ih-dot circle{fill:var(--text)}
@keyframes ih-breathe-g{0%,100%{opacity:.75}50%{opacity:1}}

/* ---------------------------------------------------------------- per-page phone geometry (generated): label x, rule zone height, band padding-bottom */
/*GENM:immi*/
@media (max-width:860px){
.hero-immi{--m-t:92px;--m-rz:122px;--m-bp:108px}
}
/*ENDM:immi*/
/*GENM:finance*/
@media (max-width:860px){
.hero-finance{--m-t:76px;--m-rz:56px;--m-bp:42px}
}
/*ENDM:finance*/
/*GENM:about*/
@media (max-width:860px){
.hero-about{--m-t:58px;--m-rz:88px;--m-bp:88px}
}
/*ENDM:about*/
/*GENM:tools*/
@media (max-width:860px){
.hero-tools{--m-t:64px;--m-rz:170px;--m-bp:170px}
}
/*ENDM:tools*/

/* ---------------------------------------------------------------- phones and small tablets (up to 860): the rail.
   The stage turns into a vertical rail. A spine runs down the left edge through everything: every list row draws its own
   length of it (li::before), so it tiles into one continuous line whatever the text wraps to. Every labelled row owns
   its connector, an inline svg whose origin is the spine at the first-line centre of its row (gen_hero_art.py writes it):
   incoming rows start at an ember node and merge into the spine, outgoing rows leave the spine and end the way the
   desktop ends them (signature, square cap, ring). Between the two lists the spine passes through the checkpoint on
   the ember rule. Nothing here assumes a row height or a font size: the junction hangs off the first line of the row,
   in em of the text itself (padding-top + half a line), and the captions are in flow. The only fixed boxes are the
   rule zone (the art around the checkpoint, no text in it) and the 18 px spine / 10 px fillet themselves. */
.ih-br{display:none}
/* connector strokes: classes only, colours from tokens */
.ih-art .ih-bi path{fill:none;stroke:var(--ih-ln-in);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ih-art .ih-bpk path{fill:none;stroke:var(--pulse,var(--text));stroke-width:2;stroke-linecap:round;
  stroke-dasharray:14 186;stroke-dashoffset:20;animation:ih-zip 15s linear infinite}
.ih-art .ih-spu{fill:none;stroke:var(--ih-ln-hi);stroke-width:2}
.ih-art .ih-spd{fill:none;stroke:var(--text);stroke-width:2}
.ih-art .ih-rej.ih-rej-f path{stroke-dasharray:none}
@keyframes ih-zip{0%{stroke-dashoffset:20}15%,100%{stroke-dashoffset:-125}}   /* a short burst along the whole connector, then rest well clear of both ends */
@keyframes ih-spine{0%{background-position:0 -38px,0 0}14%,100%{background-position:0 calc(100% + 38px),0 0}}   /* a soft highlight slides down this length of the spine, then rests off the end */

@media (max-width:860px){
  /* the shell (shared by all five heroes): one column, the stage under the copy, the desktop rails off */
  .hero.hero-stage .hero-grid{grid-template-columns:minmax(0,1fr);row-gap:48px}
  .hero.hero-stage{padding-bottom:64px}
  .hero-stage .boundary.ih{display:flex;flex-direction:column;width:auto;max-width:560px;height:auto;margin:0 auto;padding:0}
  .hero-stage .boundary.ih::before,.hero-stage .boundary.ih::after,.hero-stage .boundary.ih .b-cols::before{display:none!important}
  .hero-stage .ih-art-d{display:none}
  .hero-stage .ih-band{display:block;position:relative;order:2;width:100%;aspect-ratio:390 / var(--bh);margin:6px 0 4px}
  .hero-stage .ih-art-m{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}

  /* ---- the rail: the four pages that carry labels (Contact keeps the band above) */
  .hero-rail{
    --m-s:18px;                      /* spine x inside the stage: the checkpoint box then sits flush with the left edge of the copy */
    --m-r:10px;                      /* fillet radius (the svg draws the same 10) */
    --m-pt:.65em; --m-pb:.65em; --m-hl:.65em;   /* a row: padding above, padding below, half a line (em of the text of the row) */
    --ih-ln-in:var(--mute); --ih-ln-hi:var(--soft);
  }
  @supports (color:color-mix(in srgb,red,blue)){
    .hero-rail{
      --ih-ln-in:color-mix(in srgb,var(--text) calc(var(--ih-n2) * 100%),var(--bg));   /* opaque, so a branch never doubles up on the spine */
      --ih-ln-hi:color-mix(in srgb,var(--text) 86%,var(--bg));
    }
  }
  .hero-rail .boundary.ih{margin:0}
  .hero-rail::after{height:36px}

  /* the two lists (the .b-cols wrapper dissolves, so the lists, the band and the caption are siblings and can be ordered) */
  .hero-rail .boundary.ih .b-cols{display:contents}
  .hero-rail .boundary.ih .col{position:relative;z-index:2;order:1;min-width:0;margin:0;padding:0}
  .hero-rail .boundary.ih .col.human{order:4}
  .hero-rail .boundary.ih .col.ai{--seg:var(--ih-ln-in)}
  .hero-rail .boundary.ih .col.human{--seg:var(--text)}
  .hero-rail .boundary.ih .col.human li{transform:none}      /* the desktop rule centres each exit on its own line with translateY(-50%); here a row stays in the flow */
  .hero-rail .boundary.ih .col h4{position:relative;margin:0;padding:0 0 .85em var(--m-t);white-space:normal;text-align:left;text-shadow:none;line-height:1.5;text-wrap:balance}
  .hero-rail .boundary.ih .col.human h4{padding:1.3em 0 1.15em var(--m-t)}
  .hero-rail .boundary.ih .col ul{display:block;margin:0;padding:0}
  .hero-rail .boundary.ih .col li{position:relative;display:block;margin:0;padding:var(--m-pt) 0 var(--m-pb) var(--m-t);white-space:normal;transform:none;
    font-size:1.0625rem;line-height:1.3;text-shadow:none}
  /* this length of the spine: the line, and a highlight that slides down it now and then */
  .hero-rail .boundary.ih .col li::before{content:"";display:block;position:absolute;left:calc(var(--m-s) - 1px);top:-1px;bottom:0;width:2px;height:auto;margin:0;
    background:linear-gradient(180deg,transparent,var(--pulse),transparent) 0 -38px/100% 38px no-repeat,linear-gradient(var(--seg),var(--seg));
    animation:ih-spine 15s linear infinite}
  .hero-rail .boundary.ih .col li:nth-child(1)::before{animation-delay:-2.1s}
  .hero-rail .boundary.ih .col li:nth-child(2)::before{animation-delay:-6.3s}
  .hero-rail .boundary.ih .col li:nth-child(3)::before{animation-delay:-10.4s}
  .hero-rail .boundary.ih .col li:nth-child(4)::before{animation-delay:-13.6s}
  .hero-rail .boundary.ih .col.ai li:first-child::before{top:calc(var(--m-pt) + var(--m-hl) + var(--m-r))}      /* starts where the first branch merges */
  .hero-rail .boundary.ih .col.human li:last-child::before{bottom:auto;height:calc(var(--m-pt) + var(--m-hl) - var(--m-r) + 1px)}   /* ends where the last branch leaves */
  .hero-rail .boundary.ih .col.human h4::before,
  .hero-rail .boundary.ih .b-foot::before{content:"";position:absolute;left:calc(var(--m-s) - 1px);top:-1px;bottom:0;width:2px;background:var(--text)}
  .ih-br{display:block;position:absolute;left:var(--m-s);top:calc(var(--m-pt) + var(--m-hl));width:1px;height:1px;overflow:visible;pointer-events:none}

  /* the rule zone: the checkpoint on the ember rule (art only, fixed height), and above it, in flow, the tag that names it */
  .hero-rail .ih-band{order:2;aspect-ratio:auto;height:auto;margin:0;padding:0 0 var(--m-bp)}
  .hero-rail .ih-art-m{top:auto;bottom:0;height:var(--m-rz)}
  .hero-rail .boundary.ih .ih-band .b-tag{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;margin:0;padding:1.5em 0 0 var(--m-t);
    white-space:normal;line-height:1.5;text-wrap:balance;text-shadow:none}
  .hero-rail .boundary.ih .ih-band .b-tag::before{content:"";position:absolute;left:calc(var(--m-s) - 1px);top:-1px;bottom:13px;width:2px;
    background:linear-gradient(180deg,var(--ih-ln-in),var(--ih-ln-hi))}
  .hero-rail .boundary.ih .b-foot{position:relative;order:3;width:auto;margin:0;padding:.9em 0 .75em var(--m-t);text-align:left;white-space:normal;text-shadow:none;line-height:1.5;text-wrap:balance}

  /* About: the tag opens the rail, the name plate hangs on it (the ember squares sit on the spine), the checkpoint, then the four systems as ports */
  .hero-about{--m-pt:.375em;--m-pb:.375em;--m-hl:.6875em}
  .hero-about .boundary.ih .cred{display:contents}
  .hero-about .boundary.ih .b-tag{position:relative;order:1;margin:0;padding:0 0 1.2em var(--m-t);white-space:normal;line-height:1.5;text-shadow:none}
  .hero-about .boundary.ih .cred .name{position:relative;order:2;margin:0;padding:0 0 .4em var(--m-t);white-space:normal;text-shadow:none;
    font-size:clamp(1.4rem,6.4vw,1.9rem);line-height:1.12;text-wrap:balance;
    background:linear-gradient(var(--ih-ln-in),var(--ih-ln-in)) var(--m-s) .56em / calc(var(--m-t) - var(--m-s) - 9px) 1.5px no-repeat}
  .hero-about .boundary.ih .cred .row{position:relative;order:3;display:block;margin:0;padding:var(--m-pt) 0 var(--m-pb) var(--m-t);white-space:normal;text-shadow:none;line-height:1.375;
    background:linear-gradient(var(--ih-ln-in),var(--ih-ln-in)) calc(var(--m-s) + 3px) calc(var(--m-pt) + var(--m-hl) - .75px) / calc(var(--m-t) - var(--m-s) - 11px) 1.5px no-repeat}      /* a tick from the ember square on the spine to the text: the fact is hung on the spine, not just next to it */
  .hero-about .boundary.ih .cred .name::before,
  .hero-about .boundary.ih .cred .row::before{content:"";display:block;position:absolute;left:calc(var(--m-s) - 1px);top:-1px;bottom:0;width:2px;height:auto;margin:0;
    background:linear-gradient(180deg,transparent,var(--pulse),transparent) 0 -38px/100% 38px no-repeat,linear-gradient(var(--ih-ln-in),var(--ih-ln-in));animation:ih-spine 15s linear infinite}
  .hero-about .boundary.ih .cred .name::before{animation-delay:-4.6s}
  .hero-about .boundary.ih .cred .row:nth-child(2)::before{animation-delay:-8.8s}
  .hero-about .boundary.ih .cred .row:nth-child(3)::before{animation-delay:-12.1s}
  .hero-about .boundary.ih .cred .row:nth-child(4)::before{animation-delay:-1.4s}
  .hero-about .boundary.ih .cred .row::after{content:"";display:block;position:absolute;left:calc(var(--m-s) - 3px);top:calc(var(--m-pt) + var(--m-hl) - 3px);width:6px;height:6px;background:var(--ember)}
  .hero-about .ih-band{order:4}
  .hero-about .boundary.ih .cred .built{position:relative;order:5;display:flex;flex-direction:column;align-items:stretch;width:auto;margin:0;padding:0 0 0 var(--m-t);border:0;
    white-space:normal;text-shadow:none;line-height:0}
  .hero-about .boundary.ih .cred .built .bl{display:block;font-size:.75rem;line-height:2;letter-spacing:.12em;color:var(--mute)}
  .hero-about .boundary.ih .cred .built::before{content:"";position:absolute;left:calc(var(--m-s) - 1px);top:-1px;width:2px;height:calc(2em + 1px);background:var(--text)}
  .hero-about .boundary.ih .cred .built a{position:relative;left:auto;display:flex;align-items:flex-start;min-height:44px;margin:0;padding:calc((44px - 1.2em) / 2) 0;transform:none;white-space:normal;
    font-size:.875rem;letter-spacing:.1em;line-height:1.2}
  .hero-about .boundary.ih .cred .built a::after{content:"";display:block;position:absolute;inset:0 0 0 calc(var(--m-s) - var(--m-t) + 2px)}      /* the port and its branch are part of the tap target */
  .hero-about .boundary.ih .cred .built a::before{content:"";display:block;position:absolute;left:calc(var(--m-s) - var(--m-t) - 1px);top:-1px;bottom:0;width:2px;background:var(--text)}
  .hero-about .boundary.ih .cred .built a:last-of-type::before{bottom:auto;height:calc(22px - var(--m-r) + 1px)}
  .hero-about .boundary.ih .cred .built .ih-br{left:calc(var(--m-s) - var(--m-t));top:22px}      /* the junction is the first line of the link, 22 px down: a 44 px target whatever the text does */

  /* Tools: the tag opens the rail, three points merge into it, the checkpoint, four drops toward the suite */
  .hero-tools{--m-pt:.75em;--m-pb:.75em;--m-hl:.75em}
  .hero-tools .boundary.ih .cred{display:contents}
  .hero-tools .boundary.ih .b-tag{position:relative;order:1;margin:0;padding:0 0 1.2em var(--m-t);white-space:normal;line-height:1.5;text-shadow:none}
  .hero-tools .boundary.ih .cred .row{position:relative;order:2;display:block;width:auto;margin:0;padding:var(--m-pt) 0 var(--m-pb) var(--m-t);white-space:normal;text-shadow:none;line-height:1.5}
  .hero-tools .boundary.ih .cred .row::before{content:"";display:block;position:absolute;left:calc(var(--m-s) - 1px);top:-1px;bottom:0;width:2px;height:auto;margin:0;
    background:linear-gradient(180deg,transparent,var(--pulse),transparent) 0 -38px/100% 38px no-repeat,linear-gradient(var(--ih-ln-in),var(--ih-ln-in));animation:ih-spine 15s linear infinite}
  .hero-tools .boundary.ih .cred .row:nth-of-type(1)::before{animation-delay:-3.3s}
  .hero-tools .boundary.ih .cred .row:nth-of-type(2)::before{animation-delay:-8.2s}
  .hero-tools .boundary.ih .cred .row:nth-of-type(3)::before{animation-delay:-12.7s}
  .hero-tools .ih-band{order:3;margin-bottom:-10px}

  /* the tag that opens the rail on About and Tools: an ember node on the spine, the spine starts there */
  .hero-about .boundary.ih .b-tag::before,
  .hero-tools .boundary.ih .b-tag::before{content:"";position:absolute;left:calc(var(--m-s) - 1px);top:.75em;bottom:0;width:2px;background:var(--ih-ln-in)}
  .hero-about .boundary.ih .b-tag::after,
  .hero-tools .boundary.ih .b-tag::after{content:"";position:absolute;left:calc(var(--m-s) - 3px);top:calc(.75em - 3px);width:6px;height:6px;background:var(--ember)}
}

/* ---------------------------------------------------------------- reduced motion: the finished still */
@media (prefers-reduced-motion:reduce){
  .ih-art path{animation:none}
  .ih-art .ih-pk,.ih-art .ih-out-pk,.ih-art .ih-bpk{display:none}
  .ih-art .ih-bpk path{animation:none}
  .hero-rail .boundary.ih .col li::before,.hero-about .boundary.ih .cred .name::before,.hero-about .boundary.ih .cred .row::before,.hero-tools .boundary.ih .cred .row::before{animation:none}
  .hero-stage .boundary.ih::before,.contact-grid::before,.ih-art .ih-rule .rg{animation:none}
}
