@scope (.site-nav, .ip-footer) {
/*
 * PRJ-013 B2a - design tokens sampled from the Founder-locked mocks.
 *
 * B1 sampled five single pixels; several of those landed between glyph strokes
 * and came back near-black (e.g. "01 title white" = #000000). B2a re-sampled by
 * REGION instead: the brightest pixel of a text region is its ink colour, the
 * median of a fill region is its fill. Sampling regions and results are in the
 * B2a worker report. Re-run scripts/sample-tokens.mjs for the B1 point method.
 *
 * Ground / fills (median of region, mock image pixel space):
 *   --color-ground          00 @ (20,700,40x60)    => rgb(1,4,9)     #010409
 *   --color-card-fill-top   01 @ (180,380,60x60)   => rgb(5,13,35)   #050d23
 *   --color-card-fill-mid   01 @ (300,500,60x60)   => rgb(3,7,13)    #03070d
 *   --color-card-fill-btm   01 @ (400,650,50x40)   => rgb(11,18,49)  #0b1231
 *   --color-panel-fill      02 @ (150,600,120x80)  => rgb(4,9,20)    #040914
 *   --color-panel-inner     02 @ (250,320,120x20)  => rgb(17,26,44)  #111a2c
 * Ink (brightest pixel of region):
 *   --color-text-primary    01 title  @ (213,525,80x35)  => #ffffff
 *   --color-text-body       01 body   @ (213,568,180x20) => rgb(213,223,239) #d5dfef
 *   --color-text-eyebrow    01 eyebrow@ (755,194,170x12) => rgb(201,208,228) #c9d0e4
 *   --color-text-muted      01 micro  @ (1520,745,120x10)=> rgb(137,142,151) #898e97
 *   --color-link-blue       01 Explore@ (213,648,60x18)  => rgb(134,214,253) #86d6fd
 *   --color-link-violet     02 Explore@ (272,755,100x18) => rgb(183,176,255) #b7b0ff
 *   --color-border-hairline 01 card border left @ (156,450,4x120) => rgb(64,87,140) #40578c
 *   --color-atmosphere      04 earth rim @ (260,720,60x60) => rgb(239,253,255) #effdff
 *
 * Headline gradient, sampled across the ink at 10% steps (brightest pixel per
 * column band). Every scene runs the same ramp, only the white run-in differs:
 *   02 "Powering What's Next"  white to 45%, then #7fccff -> #e3b5ff
 *   01 "Products"              white to 30%, then #8dc9ff -> #ddbbff
 *   03 "Business Nervous..."   white to 40%, then #8cc2ff -> #e5befb
 *   04 "for Real Businesses"   #86caff -> #b7b3ff -> #fed8ff (no white run-in)
 *   00 "BRIGHTER"              cyan-led: #7eeffc -> #6ce6fd -> #8fbdfa
 *
 * Typeface: Figtree (see the B2a report's font comparison - overrides the B1
 * Space Grotesk/Inter/JetBrains Mono default D-7 by Founder direction).
 */
:scope {
  /* ground */
  --color-ground: #010409;
  --color-ground-deep: #000103;

  /* ink */
  --color-text-primary: #ffffff;
  --color-text-body: #d5dfef;
  --color-text-eyebrow: #c9d0e4;
  --color-text-muted: #898e97;
  --color-text-dim: #9599a0;

  /* accents */
  --color-link-blue: #86d6fd;
  --color-link-violet: #b7b0ff;
  --color-accent-blue: #7fccff;
  --color-accent-violet: #e3b5ff;
  --color-accent-cyan: #7eeffc;
  --color-atmosphere: #effdff;

  /* surfaces */
  --color-card-fill-top: #050d23;
  --color-card-fill-mid: #03070d;
  --color-card-fill-btm: #0b1231;
  --color-panel-fill: #040914;
  --color-panel-inner: #111a2c;

  /* lines */
  --color-border-hairline: rgba(64, 87, 140, 0.55);
  --color-border-hairline-soft: rgba(64, 87, 140, 0.3);
  --color-rule: rgba(152, 161, 193, 0.45);

  /* the one headline gradient, reused by every scene */
  --gradient-headline: linear-gradient(90deg, #7fccff 0%, #9bb0fc 40%, #c0bbff 65%, #e3b5ff 100%);

  --font-display: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  --transition-fast: 160ms ease;
}

/* PRJ-013 ROUND A1 - THE site nav. One bar, one look, on every screen.
 *
 * Founder, 25 Sep 2026: the nav bar was not consistent (a different logo on
 * every page) and the home screen's nav bar should persist. So this sheet is
 * the ONLY place the nav bar (header:is(:scope.site-nav, .site-nav): wordmark + tagline, six links,
 * "Let's Build") is laid out, and what it lays out is scene 00's nav exactly as
 * the live build f7a8df9 rendered it. The homepage imports it from
 * src/main.ts; the inner pages @import it from src/pages/inner.css, so it must
 * stay free of JavaScript and of scene selectors. The only homepage hooks it
 * reads are inert on an inner page: body.is-settled (pinned, pointer band),
 * :scope[data-current-scene] (the active item, bottom of this sheet) and the
 * transition runner's --tx-nav-o / data-tx-active (pinned opacity, indicator
 * crossfade).
 *
 * Tiers are the homepage's: fit >= 1280 (stage-fit.ts FLOW_MAX_WIDTH 1279),
 * tablet flow 768-1279, phone flow <= 767. They are plain media queries - no
 * data-stage-mode - so a page without JavaScript gets the same bar.
 *
 * FIT GEOMETRY. On the homepage scene 00 is composed at 1536 x 977 page px and
 * scaled by s = min(W / 1536, H / 977), the page growing to W / s wide; the
 * old nav was positioned in those page px, so it changed size and place with
 * every scene's own page size and scale. Here it is sized from scene 00's fit
 * alone, whatever the current scene: one scene-00 page px is
 *   --nav-u = min(100vh / 977, 100cqw / 1536)
 * and each horizontal anchor keeps scene 00's proportional shift
 * (scene-00.css --s00-shift-*: left + anchor * spread, then * s, where
 * spread * s = W / 1536 - s):
 *   wordmark left = 91 / 1536 * W
 *   links left    = 887.5 / 1536 * W - 269.5 * s   (width 539 * s)
 *   CTA left      = 1446 / 1536 * W - 180 * s      (width 180 * s)
 * W is 100cqw - the bar is its own inline-size container - rather than 100vw,
 * so on an inner page with a scrollbar the bar measures the content box (the
 * CTA keeps scene 00's distance from the right edge of what is visible).
 * --nav-u is an unregistered custom property on purpose: it is substituted as
 * tokens and resolved in each child, where cqw means this bar's width.
 */

/* ---------------------------------------------------------------------- */
/* Component - identical on every tier                                     */
/* ---------------------------------------------------------------------- */

:is(:scope.site-nav, .site-nav) {
  /* No JavaScript: the linear homepage stacks the scenes from the top of the
     document, and the bar sits over scene 00's top band as it always has. The
     settled homepage pins it (below); inner pages make it sticky (inner.css). */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 120px;
  container-type: inline-size;
  /* The homepage's body metrics, restated so inner pages (body.ip: 1.5,
     optimizeLegibility) cannot shift anything inside the bar. */
  line-height: 1.4;
  text-rendering: auto;
  /* THE TRANSITION NEVER FADES THE BAR (ROUND A1 N3). transition-spec.ts pins
     navOpacity to 1 on every frame and the runner writes it here; the
     variable stays the single knob so tests/e2e/nav-persist.spec.ts and
     tests/unit/transition-spec.test.ts can prove it is never anything else.
     No opacity transition either: a settled screenshot must never race one. */
  opacity: var(--tx-nav-o, 1);
}

body.is-settled :is(:scope.site-nav, .site-nav) {
  position: fixed;
}

.nav-wordmark {
  position: absolute;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.nav-wordmark__text {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.nav-wordmark__submark {
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.nav-links {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 400;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--color-text-body);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text-primary);
}

/* Scene 00's active item: brighter text, a soft gradient underline and the
   glowing dot below it. Pseudo elements do not enlarge the link's box, so the
   active item cannot move anything. Which item is active is set once, at the
   bottom of this sheet. */
.nav-links a::after,
.nav-links a::before {
  content: '';
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-links a::after {
  left: -2px;
  right: -2px;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(127, 204, 255, 0), #7fccff 22%, #9bb0fc 78%, rgba(155, 176, 252, 0));
}

.nav-links a::before {
  left: 50%;
  bottom: -25px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #9bc8ff;
  box-shadow: 0 0 8px 2px rgba(120, 180, 255, 0.7);
}

.nav-cta {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(126, 180, 255, 0.75);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  color: var(--color-text-primary);
  white-space: nowrap;
  background: rgba(8, 16, 38, 0.35);
  box-shadow:
    0 0 22px rgba(70, 130, 255, 0.22),
    inset 0 0 14px rgba(80, 140, 255, 0.12);
}

/* The inner pages' pill feedback (inner.css .ip-cta), now the one CTA's. */
.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgb(171, 199, 247);
  background: rgba(28, 63, 119, 0.3);
}

.nav-cta__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------------- */
/* Fit tier: >= 1280, scene 00's desktop nav in scene-00 page px            */
/* ---------------------------------------------------------------------- */

@media (min-width: 1280px) {
  :is(:scope.site-nav, .site-nav) {
    --nav-u: min(100vh / 977, 100cqw / 1536);
    /* The bar's own box: 120 scene-00 page px. Its own units cannot see the
       container it establishes, so it uses the viewport width - the same as
       100cqw on the homepage, which has no scrollbar. */
    height: calc(120 * min(100vh / 977, 100vw / 1536));
  }

  /* On the settled homepage the bar is transparent over the scene, so only
     its own links and CTA take the pointer; the empty band between them does
     not block the scene underneath. */
  body.is-settled :is(:scope.site-nav, .site-nav) {
    pointer-events: none;
  }

  body.is-settled :is(:scope.site-nav, .site-nav) a {
    pointer-events: auto;
  }

  .nav-wordmark {
    left: calc(100cqw * 91 / 1536);
    top: calc(26 * var(--nav-u));
    width: calc(248 * var(--nav-u));
    height: calc(36 * var(--nav-u));
  }

  .nav-wordmark__text {
    font-size: calc(20 * var(--nav-u));
    line-height: calc(20 * var(--nav-u));
    letter-spacing: 0.49em;
  }

  .nav-wordmark__submark {
    margin-top: calc(8 * var(--nav-u));
    font-size: calc(11.4 * var(--nav-u));
    line-height: calc(11.4 * var(--nav-u));
    letter-spacing: 0.4em;
  }

  .nav-links {
    left: calc(100cqw * 887.5 / 1536 - 269.5 * var(--nav-u));
    top: calc(34 * var(--nav-u));
    width: calc(539 * var(--nav-u));
    height: calc(9 * var(--nav-u));
    font-size: calc(13.5 * var(--nav-u));
    line-height: calc(9 * var(--nav-u));
  }

  .nav-links a::after {
    left: calc(-2 * var(--nav-u));
    right: calc(-2 * var(--nav-u));
    bottom: calc(-9 * var(--nav-u));
    height: calc(2 * var(--nav-u));
    border-radius: calc(2 * var(--nav-u));
  }

  .nav-links a::before {
    bottom: calc(-25 * var(--nav-u));
    width: calc(5 * var(--nav-u));
    height: calc(5 * var(--nav-u));
    margin-left: calc(-2.5 * var(--nav-u));
    box-shadow: 0 0 calc(8 * var(--nav-u)) calc(2 * var(--nav-u)) rgba(120, 180, 255, 0.7);
  }

  .nav-cta {
    left: calc(100cqw * 1446 / 1536 - 180 * var(--nav-u));
    top: calc(20 * var(--nav-u));
    width: calc(180 * var(--nav-u));
    height: calc(42 * var(--nav-u));
    gap: calc(10 * var(--nav-u));
    font-size: calc(14.5 * var(--nav-u));
    box-shadow:
      0 0 calc(22 * var(--nav-u)) rgba(70, 130, 255, 0.22),
      inset 0 0 calc(14 * var(--nav-u)) rgba(80, 140, 255, 0.12);
  }

  .nav-cta__icon {
    width: calc(18 * var(--nav-u));
    height: calc(18 * var(--nav-u));
  }
}

/* ---------------------------------------------------------------------- */
/* Tablet flow tier: 768-1279 (scene 00's tablet nav, fixed px)            */
/* ---------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1279px) {
  :is(:scope.site-nav, .site-nav) {
    height: 88px;
    background: var(--color-ground);
  }

  .nav-wordmark {
    left: 40px;
    top: 24px;
    width: 210px;
    height: 34px;
  }

  .nav-wordmark__text {
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.42em;
  }

  .nav-wordmark__submark {
    margin-top: 7px;
    font-size: 9px;
    line-height: 9px;
    letter-spacing: 0.32em;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    right: 40px;
    top: 22px;
    width: 150px;
    height: 40px;
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------------- */
/* Phone flow tier: <= 767 (scene 00's phone nav, fixed px)                */
/* ---------------------------------------------------------------------- */

/* ROUND L2a (Founder, 30 Sep 2026: "mobile view is ugly ... enhance it"):
 * nothing on a phone renders under 12 px and every control is a 44 px
 * target. The 7 px tagline under the wordmark is dropped (the hero repeats
 * it at 12 px, and the inner-page footers carry it); the wordmark becomes a
 * 44 px row and "Let's Build" a 44 px pill at 13 px. Same bar height, same
 * places, on the homepage and every inner page. */
@media (max-width: 767px) {
  :is(:scope.site-nav, .site-nav) {
    height: 72px;
    background: var(--color-ground);
  }

  .nav-wordmark {
    left: 24px;
    top: 14px;
    width: 150px;
    height: 44px;
    justify-content: center;
  }

  .nav-wordmark__text {
    font-size: 15px;
    line-height: 15px;
    letter-spacing: 0.38em;
  }

  .nav-wordmark__submark {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    right: 24px;
    top: 14px;
    width: 124px;
    height: 44px;
    gap: 7px;
    font-size: 13px;
  }

  .nav-cta__icon {
    width: 16px;
    height: 16px;
  }
}

/* ---------------------------------------------------------------------- */
/* The same lockup in the footers (ROUND A1 N7)                             */
/* ---------------------------------------------------------------------- */

/* Scene 00's wordmark + tagline in its fit proportions (20 : 11.4, gap 8,
   tracking 0.49em / 0.4em, weights 500 / 400), set by one number: the
   wordmark's font size, --lockup-size. The scene 09 footer and the inner-page
   footer each size it to where their brand already sits. */
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.brand-lockup__text {
  font-family: var(--font-display);
  font-size: var(--lockup-size, 20px);
  line-height: var(--lockup-size, 20px);
  font-weight: 500;
  letter-spacing: 0.49em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.brand-lockup__tagline {
  margin-top: calc(var(--lockup-size, 20px) * 0.4);
  font-size: calc(var(--lockup-size, 20px) * 0.57);
  line-height: calc(var(--lockup-size, 20px) * 0.57);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* The active item - the one place it is decided                           */
/* ---------------------------------------------------------------------- */

/* Homepage: by the settled scene (ROUND A1 N5). Inner pages: by
   aria-current="page" in their markup (Solutions). */
:scope[data-current-scene='00'] .nav-links [data-nav-item='home'],
:scope[data-current-scene='01'] .nav-links [data-nav-item='products'],
:scope[data-current-scene='02'] .nav-links [data-nav-item='products'],
:scope[data-current-scene='03'] .nav-links [data-nav-item='products'],
:scope[data-current-scene='04'] .nav-links [data-nav-item='solutions'],
:scope[data-current-scene='05'] .nav-links [data-nav-item='solutions'],
:scope[data-current-scene='07'] .nav-links [data-nav-item='about'],
:scope[data-current-scene='08'] .nav-links [data-nav-item='work'],
:scope[data-current-scene='09'] .nav-links [data-nav-item='contact'],
.nav-links a[aria-current='page'] {
  color: var(--color-text-primary);
}

:scope[data-current-scene='00'] .nav-links [data-nav-item='home']::after,
:scope[data-current-scene='01'] .nav-links [data-nav-item='products']::after,
:scope[data-current-scene='02'] .nav-links [data-nav-item='products']::after,
:scope[data-current-scene='03'] .nav-links [data-nav-item='products']::after,
:scope[data-current-scene='04'] .nav-links [data-nav-item='solutions']::after,
:scope[data-current-scene='05'] .nav-links [data-nav-item='solutions']::after,
:scope[data-current-scene='07'] .nav-links [data-nav-item='about']::after,
:scope[data-current-scene='08'] .nav-links [data-nav-item='work']::after,
:scope[data-current-scene='09'] .nav-links [data-nav-item='contact']::after,
.nav-links a[aria-current='page']::after,
:scope[data-current-scene='00'] .nav-links [data-nav-item='home']::before,
:scope[data-current-scene='01'] .nav-links [data-nav-item='products']::before,
:scope[data-current-scene='02'] .nav-links [data-nav-item='products']::before,
:scope[data-current-scene='03'] .nav-links [data-nav-item='products']::before,
:scope[data-current-scene='04'] .nav-links [data-nav-item='solutions']::before,
:scope[data-current-scene='05'] .nav-links [data-nav-item='solutions']::before,
:scope[data-current-scene='07'] .nav-links [data-nav-item='about']::before,
:scope[data-current-scene='08'] .nav-links [data-nav-item='work']::before,
:scope[data-current-scene='09'] .nav-links [data-nav-item='contact']::before,
.nav-links a[aria-current='page']::before {
  opacity: 1;
}

/* During a scene change the bar holds still; only the indicator moves, as a
   short crossfade at the handover (the runner marks the bar for the length of
   the transition). Reduced motion: an instant switch - the runner marks it
   'reduced' and nothing here matches. */
:is(:scope.site-nav, .site-nav)[data-tx-active='motion'] .nav-links a,
:is(:scope.site-nav, .site-nav)[data-tx-active='motion'] .nav-links a::after,
:is(:scope.site-nav, .site-nav)[data-tx-active='motion'] .nav-links a::before {
  transition:
    color 220ms ease-out,
    opacity 220ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  :is(:scope.site-nav, .site-nav)[data-tx-active] .nav-links a,
  :is(:scope.site-nav, .site-nav)[data-tx-active] .nav-links a::after,
  :is(:scope.site-nav, .site-nav)[data-tx-active] .nav-links a::before {
    transition: none;
  }
}

:is(:scope.ip-footer, .ip-footer) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 0 44px;
}

/* scene-09.css .s09-footer__rule */
.ip-footer__rule {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), 1545px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(42, 52, 72, 0.12), rgb(42, 52, 72) 18%, rgb(42, 52, 72) 82%, rgba(42, 52, 72, 0.12));
}

/* the planet's light low behind the footer, as under scene 09's footer */
.ip-footer__glow {
  position: absolute;
  left: 50%;
  bottom: -70px;
  z-index: -1;
  width: min(1100px, 130%);
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side ellipse, rgba(70, 126, 230, 0.14), rgba(46, 94, 196, 0.06) 55%, rgba(30, 70, 160, 0) 100%);
  pointer-events: none;
}

.ip-footer__inner {
  display: grid;
  gap: 28px;
}

/* ROUND A1 N7 - the nav's text lockup (site-nav.css .brand-lockup), no drawn
 * A, sized like the homepage footer's (17 reference px): about the old
 * brand's 30 px of ink height, one px less. */
.ip-footer__brand {
  --lockup-size: 17px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.ip-footer__legal {
  margin: 0;
  color: rgb(150, 163, 180);
  font-size: 13px;
  line-height: 21px;
  font-weight: 300;
}

.ip-footer__legal > span {
  display: block;
}

/* PRJ-013 NP-R2 - the homepage's "Built with" line (claim H10), on the inner
 * pages. scene-09.css .s09-built-with renders it quiet and small on its own
 * full-width row under the footer row: same colour token as the legal block,
 * one size down (11px/14px against 13px/21px), 0.02em tracking, 0.72 opacity,
 * centred. Copied here value for value - the only difference is the
 * mechanism, because .ip-footer__inner is a grid (so the row is
 * `grid-column: 1 / -1`) where scene 09's footer is absolutely positioned at
 * desktop and a wrapping flex row below it (where it uses
 * `flex-basis: 100%`). On a phone .ip-footer__inner is a single column, so
 * the row spans on its own. */
.ip-footer__built-with {
  grid-column: 1 / -1;
  margin: 0;
  color: rgb(150, 163, 180);
  font-size: 11px;
  line-height: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0.72;
}

@media (min-width: 768px) {
  :is(:scope.ip-footer, .ip-footer) {
    padding: 40px 0 56px;
  }

  .ip-footer__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
  }

  .ip-footer__legal {
    text-align: right;
  }

  /* the grid's own 24px row gap already separates it from the footer row */
  .ip-footer__built-with {
    margin-top: 4px;
  }
}

@media (min-width: 1280px) {
  :is(:scope.ip-footer, .ip-footer) {
    padding: calc(44 * var(--hp)) 0 calc(64 * var(--hp));
  }

  .ip-footer__brand {
    --lockup-size: calc(17 * var(--hp));
  }

  .ip-footer__legal {
    font-size: max(13px, calc(13 * var(--hp)));
  }

  .ip-footer__legal {
    line-height: max(20px, calc(21 * var(--hp)));
  }
}


:is(:scope.ip-footer, .ip-footer) { --gutter: 24px; --hp: 1px; width: 100%; box-sizing: border-box; }
:is(:scope.ip-footer, .ip-footer) .ip-wrap { width: min(calc(100% - 48px), 1400px); margin-inline: auto; }
.ip-footer__contact { margin: 0; text-align: center; font-size: 13px; line-height: 22px; }
.ip-footer__contact a { color: rgb(196, 205, 222); }
.ip-footer__contact { grid-column: 1; grid-row: 2; }
.ip-footer__legal { grid-column: 1; grid-row: 3; }
.ip-footer__built-with { grid-row: 4; }
.ip-footer__consent { grid-column: 1 / -1; grid-row: 5; margin: 0; text-align: center; font-size: 11px; line-height: 14px; }
.ip-footer__consent a, .ip-footer__consent button { padding: 0; border: 0; background: none; color: rgb(150, 163, 180); font: inherit; letter-spacing: 0.02em; text-decoration: underline; cursor: pointer; }
.ip-footer__consent a:hover, .ip-footer__consent a:focus-visible, .ip-footer__consent button:hover, .ip-footer__consent button:focus-visible { color: rgb(196, 205, 222); }
@media (min-width: 768px) {
  .ip-footer__contact { grid-column: 2; grid-row: 1; }
  .ip-footer__legal { grid-column: 3; grid-row: 1; }
  .ip-footer__built-with { grid-row: 2; }
}
:is(:scope.ip-footer, .ip-footer) .seo-footer { width: min(calc(100% - 48px), 1400px); margin: 24px auto 0; padding: 0; }
:is(:scope.ip-footer, .ip-footer) .seo-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
:is(:scope.ip-footer, .ip-footer) .seo-footer a { color: rgb(150, 163, 180); font-size: 12px; line-height: 20px; text-decoration: none; }
.scene-09 :is(:scope.ip-footer, .ip-footer) { position: absolute; top: 704px; left: 0; z-index: 9; }

:scope[data-stage-mode='flow'] .scene-09 :is(:scope.ip-footer, .ip-footer),
:scope[data-stage-mode='scroll'] .scene-09 :is(:scope.ip-footer, .ip-footer) { position: relative; top: auto; left: auto; }
@media (max-width: 767px) { :is(:scope.ip-footer, .ip-footer) a { display: inline-flex; align-items: center; min-height: 44px; } }

/* A compact shared footer fits below the desktop contact strap (704..880). */
@media (min-width: 768px) {
  :is(:scope.ip-footer, .ip-footer) { padding: 12px 0; }
  .ip-footer__inner { gap: 8px; }
  .ip-footer__built-with { margin-top: 0; }
  :is(:scope.ip-footer, .ip-footer) .seo-footer { margin-top: 8px; padding: 0; }
  :is(:scope.ip-footer, .ip-footer) .seo-footer ul { gap: 6px 16px; }
}
:is(:scope.ip-footer, .ip-footer) .seo-footer { box-sizing: border-box; }
.scene-09 :is(:scope.ip-footer, .ip-footer) { grid-column: 1 / -1; flex-shrink: 0; }
@media (min-width: 768px) and (max-width: 1279px) { .scene-09 :is(:scope.ip-footer, .ip-footer) { position: relative; top: auto; } }
@media (max-width: 767px) { .scene-09 :is(:scope.ip-footer, .ip-footer) { position: relative; top: auto; } }

:scope { --gutter: 24px; --wrap-max: 1545px; font-family: Figtree, sans-serif; color: #fff; background: #010409; }
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; }
.site-nav { position: sticky; height: 120px; }
.ip-wrap { width: min(100% - 2 * var(--gutter), var(--wrap-max)); margin-inline: auto; }
}
/* Reserved out of flow before JS; neither the canvas nor its scrim affects CLS. */
.ambient-globe { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #010409; }
.ambient-globe canvas { position: absolute; inset: 0; max-width: 100%; }
.ambient-globe::after { content: ''; position: absolute; inset: 0; background: rgba(1, 4, 9, .65); }
.ip-footer__built-with { opacity: 1; }
body:has(.ambient-globe) > :is(main, #root, .ip-footer, .site-nav) { position: relative; z-index: 1; }
body:has(.ambient-globe) > .site-nav { position: sticky; top: 0; z-index: 40; background: #010409; }
/* Existing static horizons must not mask the shared Earth. */
body:has(.ambient-globe) .ip-horizon { display: none; }
/* The hero sky ends in opaque ground; remove that plate above the canvas. */
body.ip:has(.ambient-globe) > main { background: transparent; }
body.ip:has(.ambient-globe) .ip-hero__sky { background: none; }

/* AlterSync keeps its bundle; only the surrounding site's layout changes. */
body[data-site-sync] { margin: 0; overflow: auto; }
body[data-site-sync] > .site-nav { height: var(--shell-header); flex-shrink: 0; }
body[data-site-sync] > #root .app-shell {
  height: calc(100dvh - var(--shell-header));
  min-height: 560px;
}
@media (min-width: 1280px) {
  body[data-site-sync] { --shell-header: calc(120 * min(100vh / 977, 100vw / 1536)); }
}
@media (max-width: 1279px) {
  body[data-site-sync] { --shell-header: 88px; }
}
@media (max-width: 767px) {
  body[data-site-sync] { --shell-header: 72px; }
  body[data-site-sync] > #root .app-shell { height: auto; min-height: calc(100dvh - var(--shell-header)); }
}

:root { --shell-header: 120px; --shell-footer: 56px; }
body:has(.stage) > .site-nav { background: #010409; }
@media (min-width: 768px) {
  body.is-settled > .ip-footer--slim { position: fixed; inset: auto 0 0; z-index: 40; background: #010409; }
  body.is-settled:has(> .ip-footer) .stage { top: calc(var(--shell-header) + (100dvh - var(--shell-header) - var(--shell-footer)) / 2); }
  html[data-stage-mode='flow'] body.is-settled .stage { inset: var(--shell-header) 0 var(--shell-footer); height: auto; min-height: 0; }
  html[data-stage-mode='flow'] body.is-settled .scene--settled { height: 100%; min-height: 0; }
}
@media (max-width: 767px) {
  body:has(.stage) > .ip-footer--slim { display: none; }
  .scene-09 .ip-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Homepage pinned variant: same partial, reduced presentation only. */
@media (min-width: 768px) {
 .ip-footer--slim { height: 56px; padding: 0; }
 .ip-footer--slim .ip-footer__inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
 .ip-footer--slim .ip-footer__brand { --lockup-size: 13px; }
 .ip-footer--slim .ip-footer__legal { order: 4; font-size: 11px; white-space: nowrap; }
 .ip-footer--slim .ip-footer__contact { font-size: 0; white-space: nowrap; }
 .ip-footer--slim .ip-footer__contact a:first-child { font-size: 12px; }
 .ip-footer--slim .ip-footer__legal > span,
 .ip-footer--slim .ip-footer__built-with,
 .ip-footer--slim .ip-footer__consent,
 .ip-footer--slim .seo-footer,
 .ip-footer--slim .ip-footer__contact a:last-child { display: none; }
}
