/* tlctc.net landing hero, "flight" edition (2026-11-19). Made with Gemini 4 Neon (four rounds), finished by hand.
   This file is the source: edit it here, together with js/hero-flight.js and the #home section of index.html.
   Everything is scoped to #home (two ids); the hero's own tokens are --hf-* so they never touch the site's. */

:where(#home, #home *), :where(#home::before, #home *::before), :where(#home::after, #home *::after) { box-sizing: border-box; margin: 0; padding: 0; }

#home {
  --hf-bg: #fafafa;
  --hf-bg-rgb: 250, 250, 250;
  --hf-surface: #ffffff;
  --hf-fg: #0d0e12;
  --hf-fg-rgb: 13, 14, 18;
  --hf-muted: #525763;
  --hf-muted-rgb: 82, 87, 99;
  --hf-border: rgba(13, 14, 18, 0.11);
  --hf-border-strong: rgba(13, 14, 18, 0.24);
  --hf-red: #e5484d;
  --hf-red-rgb: 229, 72, 77;
  --hf-shadow-btn: 0 1px 2px rgba(13, 14, 18, 0.08), 0 10px 26px -10px rgba(13, 14, 18, 0.22);

  --hf-font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --hf-font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --hf-font-serif: 'Source Serif 4', Georgia, serif;
  --hf-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* World-specific splash banner voices */
  --hf-font-strategy: 'Instrument Serif', Georgia, serif;
  --hf-font-operations: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  --hf-font-development: 'Syne', 'Space Grotesk', sans-serif;
}


  .dark #home {
    --hf-bg: #090a0d;
    --hf-bg-rgb: 9, 10, 13;
    --hf-surface: #111319;
    --hf-fg: #f3f4f8;
    --hf-fg-rgb: 243, 244, 248;
    --hf-muted: #9aa0b0;
    --hf-muted-rgb: 154, 160, 176;
    --hf-border: rgba(243, 244, 248, 0.11);
    --hf-border-strong: rgba(243, 244, 248, 0.25);
    --hf-red: #ff5a5f;
    --hf-red-rgb: 255, 90, 95;
    --hf-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -10px rgba(0, 0, 0, 0.65);
  }




#home#home a { color: inherit; }

/* ---------------- Hero Shell & Layering ---------------- */
/* z-index stack:
   1: .hero-stage (WebGL canvas)
   2: .splash-layer (kinetic banners — strictly behind copy veil & copy)
   3: .hero-copy-veil (soft luminance shield under left copy)
   4: .hero-container (pointer-events: none; .hero-copy is pointer-events: auto)
   5: .hero3d-labels (projected 3D HTML labels on stage)
   6: .hero-rail (bottom Free & Open rail) */
#home#home.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hf-bg);
  isolation: isolate;
}

#home#home .hero-stage {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: pan-y;
}
#home#home.hero.stage-on .hero-stage { display: block; }
@media (max-width: 639px) {
  #home#home.hero.stage-on .hero-stage { display: none; }
}

#home#home .hero-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 99%);
}

/* Soft readability shield behind the left column — sits ABOVE splash banners so copy is never obscured */
#home#home .hero-copy-veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 82% at 20% 48%,
    rgba(var(--hf-bg-rgb), 0.92) 0%,
    rgba(var(--hf-bg-rgb), 0.68) 54%,
    rgba(var(--hf-bg-rgb), 0) 100%
  );
}
#home#home.hero.stage-on .hero-copy-veil { display: block; }

/* ---------------- Kinetic Splash Banners Layer (Title + Subtitle Only) ---------------- */
#home#home .splash-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#home#home .splash-band {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--hf-fg-rgb), 0.16) 16%,
    rgba(var(--hf-red-rgb), 0.52) 50%,
    rgba(var(--hf-fg-rgb), 0.16) 84%,
    transparent 100%
  );
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

#home#home .splash-banner {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  padding: 0.5rem 1.4rem;
}

#home#home .splash-banner::before {
  content: '';
  position: absolute;
  inset: -26% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 62% at 50% 50%,
    rgba(var(--hf-bg-rgb), 0.78) 0%,
    rgba(var(--hf-bg-rgb), 0.30) 56%,
    rgba(var(--hf-bg-rgb), 0) 100%
  );
}

#home#home .splash-word {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  line-height: 0.92;
  color: var(--hf-fg);
}

#home#home .sp-ch {
  display: inline-block;
  will-change: transform, opacity;
}

#home#home .splash-rule {
  height: 1.5px;
  width: 100%;
  max-width: 300px;
  margin: 0.45rem 0 0.38rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--hf-red) 18%,
    var(--hf-red) 82%,
    transparent 100%
  );
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

#home#home .splash-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* Voice 01 — STRATEGY: High-contrast boardroom serif (Instrument Serif) + italic outline mix */
#home#home .splash-banner--strategy .splash-word {
  font-family: var(--hf-font-strategy);
  font-weight: 400;
  font-size: clamp(3.6rem, 7.6vw, 7.1rem);
  letter-spacing: 0.04em;
}
#home#home .splash-banner--strategy .sp-ch.is-alt {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hf-fg);
}
#home#home .splash-banner--strategy .sp-ch.is-red {
  font-style: italic;
  color: var(--hf-red);
}
#home#home .splash-banner--strategy .splash-sub {
  font-family: var(--hf-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.45vw, 1.28rem);
  letter-spacing: 0.05em;
  color: var(--hf-fg);
}

/* Voice 02 — OPERATIONS: Hard condensed tactical grotesk (Barlow Condensed) + hollow cut + mono subtitle */
#home#home .splash-banner--operations .splash-word {
  font-family: var(--hf-font-operations);
  font-weight: 800;
  font-size: clamp(4.0rem, 8.4vw, 7.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#home#home .splash-banner--operations .sp-ch.is-alt {
  font-weight: 600;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.7px var(--hf-fg);
}
#home#home .splash-banner--operations .sp-ch.is-red {
  color: var(--hf-red);
}
#home#home .splash-banner--operations .splash-sub {
  font-family: var(--hf-font-mono);
  font-weight: 700;
  font-size: clamp(0.76rem, 1.15vw, 0.98rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hf-fg);
}

/* Voice 03 — DEVELOPMENT: Extended geometric architectural display (Syne) at full splash width */
#home#home .splash-banner--development .splash-word {
  font-family: var(--hf-font-development);
  font-weight: 800;
  font-size: clamp(2.55rem, 5.2vw, 4.95rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
#home#home .splash-banner--development .sp-ch.is-alt {
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.55px var(--hf-fg);
}
#home#home .splash-banner--development .sp-ch.is-red {
  color: var(--hf-red);
}
#home#home .splash-banner--development .splash-sub {
  font-family: var(--hf-font-mono);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.18vw, 1.0rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hf-fg);
}

#home#home .splash-idx {
  font-family: var(--hf-font-mono);
  font-weight: 700;
  font-size: 0.74em;
  color: var(--hf-red);
  letter-spacing: 0.14em;
}

/* ---------------- Two-Column Hero Container ---------------- */
#home#home .hero-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3.6vh, 3.2rem) clamp(1.25rem, 4vw, 3rem) clamp(1.1rem, 2.4vh, 2rem);
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  align-content: center;
}

#home#home.hero.stage-on .hero-container { pointer-events: none; }
#home#home.hero.stage-on .hero-copy, #home#home.hero.stage-on .mobile-stack { pointer-events: auto; }

@media (min-width: 1024px) {
  #home#home .hero-container {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(1.75rem, 3.6vw, 3.75rem);
  }
}

/* ---------------- Left Column: Editorial Copy ---------------- */
#home#home .hero-copy {
  position: relative;
  min-width: 0;
  max-width: 540px;
}

#home#home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--hf-border);
  background: rgba(var(--hf-bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--hf-font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hf-muted);
  margin-bottom: 1.4rem;
}

#home#home .hero-badge-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--hf-red);
  clip-path: polygon(
    50% 0%, 79.4% 9.5%, 97.6% 34.5%, 97.6% 65.5%, 79.4% 90.5%,
    50% 100%, 20.6% 90.5%, 2.4% 65.5%, 2.4% 34.5%, 20.6% 9.5%
  );
}

#home#home .tlctc-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.45rem;
}

#home#home .tlctc-mark {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 11.2vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
  color: var(--hf-fg);
  user-select: none;
}

#home#home.hero.stage-on .tlctc-mark.is-split { white-space: nowrap; }
/* Until the module has booted, the stage shows only its background: the static picture is hidden (hero3d-on),
   the wordmark waits as an outline, the scene's labels are empty. */
#home#home.hero.stage-pending .tlctc-mark { color: transparent; -webkit-text-stroke: 1.45px rgba(var(--hf-fg-rgb), 0.34); }

#home#home .tlctc-mark .tm-l {
  display: inline-block;
  letter-spacing: 0;
  margin: -0.14em -0.055em -0.14em 0;
  padding: 0.14em 0;
  color: transparent;
  -webkit-text-stroke: 1.45px rgba(var(--hf-fg-rgb), 0.34);
  background-image: linear-gradient(
    256deg,
    var(--hf-fg) 0%,
    var(--hf-fg) 43%,
    var(--hf-red) 48.5%,
    transparent 53%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-position: 0% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transform-origin: 50% 58%;
  will-change: transform, background-position;
  transition:
    transform 1.15s cubic-bezier(0.25, 1.15, 0.35, 1),
    background-position 0.78s cubic-bezier(0.2, 0.75, 0.2, 1),
    -webkit-text-stroke-color 0.38s 0.42s ease;
}

#home#home .tlctc-mark.is-loose .tm-l {
  transform: translate(var(--jx, 0), var(--jy, 0)) rotate(var(--jr, 0deg));
}
#home#home .tlctc-mark .tm-l:nth-child(1) { --jx: -0.032em; --jy:  0.055em; --jr: -5.2deg; }
#home#home .tlctc-mark .tm-l:nth-child(2) { --jx: -0.004em; --jy: -0.068em; --jr:  4.1deg; }
#home#home .tlctc-mark .tm-l:nth-child(3) { --jx:  0.018em; --jy:  0.072em; --jr: -3.4deg; }
#home#home .tlctc-mark .tm-l:nth-child(4) { --jx:  0.030em; --jy: -0.054em; --jr:  4.8deg; }
#home#home .tlctc-mark .tm-l:nth-child(5) { --jx:  0.048em; --jy:  0.060em; --jr: -5.8deg; }

#home#home .tlctc-mark.is-loose .tm-l.is-in, #home#home .tlctc-mark .tm-l.is-in {
  transform: none;
  background-position: 100% 0;
  -webkit-text-stroke-color: transparent;
  transition:
    transform 0.56s cubic-bezier(0.26, 1.72, 0.44, 1),
    background-position 0.78s cubic-bezier(0.2, 0.75, 0.2, 1),
    -webkit-text-stroke-color 0.38s 0.42s ease;
}

#home#home .tlctc-expand {
  font-family: var(--hf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.27em;
  font-size: clamp(0.62rem, 1.0vw, 0.77rem);
  line-height: 1.5;
  color: var(--hf-muted);
  padding-left: 0.16em;
  transition: opacity 0.7s ease, letter-spacing 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#home#home .tlctc-expand b { color: var(--hf-fg); font-weight: 700; }

#home#home.hero.stage-on:not(.stage-landed) .tlctc-expand {
  opacity: 0.42;
  letter-spacing: 0.31em;
}
#home#home.hero.stage-on.stage-landed .tlctc-expand {
  opacity: 1;
  letter-spacing: 0.27em;
}

#home#home .hero-lead {
  font-family: var(--hf-font-serif);
  font-size: clamp(1.14rem, 1.65vw, 1.36rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--hf-fg);
  margin-bottom: 0.85rem;
}

#home#home .hero-body {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--hf-muted);
  margin-bottom: 1.75rem;
  max-width: 51ch;
}

#home#home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

#home#home .cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.86rem 1.38rem;
  border-radius: 0.65rem;
  font-family: var(--hf-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: var(--hf-fg);
  color: var(--hf-bg);
  border: 1px solid transparent;
  box-shadow: var(--hf-shadow-btn);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}
#home#home .cmd-btn:hover {
  transform: translateY(-1px);
  background: var(--hf-red);
  color: #ffffff;
}
#home#home .cmd-btn:active { transform: translateY(0); }
#home#home .cmd-btn:focus-visible {
  outline: 2px solid var(--hf-red);
  outline-offset: 3px;
}
#home#home .cmd-glyph {
  font-size: 0.72em;
  color: var(--hf-red);
  transition: color 0.2s, transform 0.2s;
}
#home#home .cmd-btn:hover .cmd-glyph {
  color: #ffffff;
  transform: translateX(2px);
}

/* ---------------- Right Column: Stage Anchor + Fallback + Mobile ---------------- */
#home#home .hero-visual-col {
  position: relative;
  min-width: 0;
  width: 100%;
}

#home#home .position-wrap { position: relative; width: 100%; }
#home#home.hero.stage-on .position-wrap { padding-bottom: 58px; }

#home#home .hero3d {
  display: none;
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 680 / 600;
}

@media (min-width: 640px) {
  #home#home .position-wrap.hero3d-on .hero3d { display: block; }
  #home#home .position-wrap.hero3d-on .bridge-svg { display: none !important; }
}
@media (min-width: 1024px) {
  #home#home.hero.stage-on .hero3d {
    width: min(106%, calc((100svh - 172px) * 680 / 600));
    max-width: 710px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------------- Projected 3D HTML Labels ---------------- */
#home#home .hero3d-labels {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
#home#home.hero.stage-on .hero3d-labels { display: block; }
@media (max-width: 639px) {
  #home#home.hero.stage-on .hero3d-labels { display: none; }
}

#home#home .hero3d-labels > * {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

#home#home .h3-domain, #home#home .h3-hub {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--hf-fg);
  text-decoration: none;
  outline: none;
  width: max-content;
  border-radius: 14px;
  padding: calc(4px * var(--s, 1)) calc(6px * var(--s, 1));
}
#home#home .h3-domain > *, #home#home .h3-hub > * { white-space: nowrap; flex: none; }

/* Normal motion: Title + Subtitle sit in the upper hemisphere so the rotating 3D framework band glides cleanly below */
#home#home .h3-domain { translate: -50% -84%; }
/* Reduced motion: still 3-line framework list sits centered inside the sphere */
#home#home .h3-domain--list { translate: -50% -50%; }
#home#home .h3-hub { translate: -50% -50%; }

/* Cohesive family of resting sphere titles */
#home#home .h3-title {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: calc(17px * var(--s, 1));
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-shadow: 0 0 12px rgba(var(--hf-bg-rgb), 0.92);
}
#home#home .h3-domain--strategy .h3-title {
  font-family: var(--hf-font-strategy);
  font-weight: 400;
  font-size: calc(23.5px * var(--s, 1));
  letter-spacing: 0.055em;
  line-height: 0.98;
}
#home#home .h3-domain--operations .h3-title {
  font-family: var(--hf-font-operations);
  font-weight: 700;
  font-size: calc(22.5px * var(--s, 1));
  letter-spacing: 0.085em;
  line-height: 1.0;
}
#home#home .h3-domain--development .h3-title {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: calc(16.5px * var(--s, 1));
  letter-spacing: 0.045em;
  line-height: 1.12;
}

#home#home .h3-sub {
  font-family: var(--hf-font-sans);
  font-weight: 600;
  font-size: calc(11.6px * var(--s, 1));
  line-height: 1.25;
  margin-top: calc(2.5px * var(--s, 1));
  color: rgba(var(--hf-fg-rgb), 0.84);
  text-shadow: 0 0 10px rgba(var(--hf-bg-rgb), 0.92);
}

#home#home .h3-div {
  width: calc(78px * var(--s, 1));
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  margin: calc(6px * var(--s, 1)) 0 calc(5.5px * var(--s, 1));
}

#home#home .h3-list-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1.5px * var(--s, 1));
}

#home#home .h3-list {
  font-family: var(--hf-font-mono);
  font-weight: 500;
  font-size: calc(9.5px * var(--s, 1));
  line-height: 1.38;
  letter-spacing: 0.005em;
  color: var(--hf-muted);
  text-shadow:
    0 0 8px rgba(var(--hf-bg-rgb), 0.96),
    0 0 3px rgba(var(--hf-bg-rgb), 0.96);
}

#home#home .h3-domain:focus-visible, #home#home .h3-hub:focus-visible {
  outline: 2px solid var(--hf-red);
  outline-offset: 4px;
}

/* Gap labels */
#home#home .h3-gap {
  display: flex;
  flex-direction: column;
  gap: calc(3px * var(--s, 1));
  width: max-content;
  text-shadow: 0 0 18px rgba(var(--hf-bg-rgb), 0.94), 0 0 6px rgba(var(--hf-bg-rgb), 0.94);
}
#home#home .h3-gap > * { position: relative; top: var(--rise, 0px); }

#home#home .h3-gap--left { translate: calc(-100% - 22px * var(--s, 1)) -60%; text-align: right; transform-origin: 100% 50%; }
#home#home .h3-gap--right { translate: calc(22px * var(--s, 1)) -60%;         text-align: left;  transform-origin: 0% 50%; }
#home#home .h3-gap--below { translate: -50% calc(18px * var(--s, 1));         text-align: center; transform-origin: 50% 0%; }

#home#home .h3-gap-title {
  font-family: var(--hf-font-mono);
  font-weight: 700;
  font-size: calc(11.5px * var(--s, 1));
  letter-spacing: 0.14em;
  color: var(--hf-red);
}
#home#home .h3-gap-body { display: grid; }
#home#home .h3-gap-body > * { grid-area: 1 / 1; }

#home#home .h3-gap-q {
  font-family: var(--hf-font-serif);
  font-weight: 600;
  font-size: calc(18.5px * var(--s, 1));
  line-height: 1.15;
  color: var(--hf-red);
}
#home#home .h3-gap-subs {
  display: flex;
  flex-direction: column;
  gap: calc(2px * var(--s, 1));
  opacity: 0;
}
#home#home .h3-gap-sub {
  font-family: var(--hf-font-serif);
  font-style: italic;
  font-size: calc(12.2px * var(--s, 1));
  line-height: 1.24;
  color: var(--hf-muted);
}

/* Centre Three Beats */
#home#home .h3-ask {
  width: max-content;
  translate: -50% calc(-50% + var(--ask-y, 0) * 1px * var(--s, 1));
  filter: blur(var(--ask-b, 0px));
  font-family: var(--hf-font-serif);
  font-weight: 600;
  font-size: calc(30px * var(--s, 1));
  line-height: 1.05;
  color: var(--hf-fg);
  text-shadow: 0 0 22px rgba(var(--hf-bg-rgb), 0.92);
}
#home#home .h3-ask--a {
  font-style: italic;
  font-weight: 500;
  font-size: calc(22px * var(--s, 1));
  color: var(--hf-muted);
}
#home#home .h3-ask--c {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: calc(40px * var(--s, 1));
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: var(--hf-red);
}

/* Rosetta Stone Hub */
#home#home .h3-hub-eyebrow, #home#home .h3-hub-note {
  font-family: var(--hf-font-mono);
  font-weight: 600;
  font-size: calc(10.5px * var(--s, 1));
  letter-spacing: 0.17em;
  color: var(--hf-red);
  text-shadow: 0 0 12px rgba(var(--hf-bg-rgb), 0.9);
}
#home#home .h3-hub-word {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: calc(32px * var(--s, 1));
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 0 16px rgba(var(--hf-bg-rgb), 0.92);
}
#home#home .h3-hub-note {
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}
#home#home .h3-hub-note.is-swap { opacity: 0; }
#home#home .h3-hub-note.is-cluster {
  font-size: calc(9.2px * var(--s, 1));
  letter-spacing: 0.06em;
}

/* 10 Focusable Decagon Vertices */
#home#home .h3-vertex {
  pointer-events: auto;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
#home#home .h3-vertex > span {
  position: absolute;
  left: calc(-11.5px * var(--s, 1));
  top: calc(-11.5px * var(--s, 1));
  width: calc(23px * var(--s, 1));
  height: calc(23px * var(--s, 1));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hf-bg);
  border: 1.65px solid var(--hf-red);
  color: var(--hf-red);
  font-family: var(--hf-font-mono);
  font-weight: 700;
  font-size: calc(10px * var(--s, 1));
  line-height: 1;
  scale: var(--pop, 1);
  box-shadow: 0 2px 8px rgba(var(--hf-fg-rgb), 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.22s cubic-bezier(0.2, 1.4, 0.35, 1), box-shadow 0.2s ease;
}
#home#home .h3-vertex:hover > span, #home#home .h3-vertex:focus-visible > span, #home#home .h3-vertex.is-active > span {
  background: var(--hf-red);
  color: #ffffff;
  transform: scale(1.28);
  box-shadow: 0 0 0 4px rgba(var(--hf-red-rgb), 0.22);
}
#home#home .h3-vertex:focus-visible > span {
  outline: 2px solid var(--hf-fg);
  outline-offset: 2px;
}

/* Quiet Editorial Cluster Readout */
#home#home .hero3d-labels > .h3-readout {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  translate: -50% 14px;
  width: min(500px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 0.25rem 0.6rem;
  transition: opacity 0.24s ease;
  text-shadow: 0 0 18px rgba(var(--hf-bg-rgb), 0.95);
}
#home#home .hero3d-labels > .h3-readout.is-on { opacity: 1; }

#home#home .h3-readout-name {
  font-family: var(--hf-font-mono);
  font-weight: 700;
  font-size: calc(11.5px * var(--s, 1));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-red);
}
#home#home .h3-readout-view {
  font-family: var(--hf-font-serif);
  font-style: italic;
  font-size: calc(14px * var(--s, 1));
  line-height: 1.35;
  color: var(--hf-fg);
}
#home#home .h3-readout-hint {
  font-family: var(--hf-font-serif);
  font-style: italic;
  font-size: calc(12.8px * var(--s, 1));
  color: var(--hf-muted);
  opacity: 0.78;
}

/* Replay Control */
#home#home .hero3d-labels > .h3-replay {
  pointer-events: auto;
  translate: calc(-100% - 10px) 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--hf-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-muted);
  background: rgba(var(--hf-bg-rgb), 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hf-border-strong);
  border-radius: 9999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
#home#home .hero3d-labels > .h3-replay:hover {
  color: var(--hf-fg);
  border-color: var(--hf-red);
}
#home#home .hero3d-labels > .h3-replay:focus-visible {
  outline: 2px solid var(--hf-red);
  outline-offset: 2px;
}

/* ---------------- Static 2D SVG Fallback (No-WebGL, >= 640px) ---------------- */
#home#home .bridge-svg {
  display: none;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  #home#home .bridge-svg { display: block; }
}
#home#home .bridge-svg .svg-edge {
  stroke: rgba(var(--hf-fg-rgb), 0.34);
  stroke-width: 1.75;
  stroke-dasharray: 5 5;
  fill: none;
}
#home#home .bridge-svg .svg-break { stroke: var(--hf-red); stroke-width: 2.5; stroke-linecap: round; }
#home#home .bridge-svg .svg-bridge { stroke: var(--hf-red); stroke-width: 2.4; fill: none; }
#home#home .bridge-svg .svg-halo { fill: none; stroke: rgba(var(--hf-fg-rgb), 0.12); stroke-width: 1; }
#home#home .bridge-svg .svg-bubble { fill: var(--hf-surface); stroke: rgba(var(--hf-fg-rgb), 0.24); stroke-width: 1.5; }
#home#home .bridge-svg .svg-title { font-family: var(--hf-font-display); font-weight: 700; fill: var(--hf-fg); letter-spacing: 0.06em; }
#home#home .bridge-svg .svg-sub { font-family: var(--hf-font-sans); font-weight: 600; fill: var(--hf-fg); opacity: 0.85; }
#home#home .bridge-svg .svg-divider { stroke: rgba(var(--hf-fg-rgb), 0.2); stroke-width: 1; }
#home#home .bridge-svg .svg-list { font-family: var(--hf-font-mono); fill: var(--hf-muted); }
#home#home .bridge-svg .svg-gap-title { font-family: var(--hf-font-mono); font-weight: 700; fill: var(--hf-red); letter-spacing: 0.11em; }
#home#home .bridge-svg .svg-gap-sub { font-family: var(--hf-font-serif); font-style: italic; fill: var(--hf-muted); }
#home#home .bridge-svg .svg-deca-fill { fill: var(--hf-surface); }
#home#home .bridge-svg .svg-deca-stroke { fill: none; stroke: var(--hf-red); stroke-width: 2.5; stroke-linejoin: round; }
#home#home .bridge-svg .svg-v-dot { fill: var(--hf-bg); stroke: var(--hf-red); stroke-width: 1.75; }
#home#home .bridge-svg .svg-v-num { font-family: var(--hf-font-mono); font-weight: 700; fill: var(--hf-red); }
#home#home .bridge-svg .svg-hub-eyebrow, #home#home .bridge-svg .svg-hub-note { font-family: var(--hf-font-mono); font-weight: 600; fill: var(--hf-red); letter-spacing: 0.15em; }
#home#home .bridge-svg .svg-hub-word { font-family: var(--hf-font-display); font-weight: 700; fill: var(--hf-fg); }

/* ---------------- Mobile Stacked Static Layout (< 640px) ---------------- */
#home#home .mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  #home#home .mobile-stack { display: none; }
}

#home#home .mobile-deca-card {
  position: relative;
  margin: 0 auto;
  width: 204px;
  height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
#home#home .mobile-deca-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#home#home .mobile-deca-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
#home#home .mobile-deca-eyebrow {
  font-family: var(--hf-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--hf-red);
}
#home#home .mobile-deca-word {
  font-family: var(--hf-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--hf-fg);
}
#home#home .mobile-deca-note {
  font-family: var(--hf-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--hf-muted);
}
#home#home .mobile-bridge-line {
  text-align: center;
  font-family: var(--hf-font-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hf-muted);
  max-width: 34ch;
  margin: 0 auto 0.25rem;
}
#home#home .mobile-domain-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--hf-border);
  background: var(--hf-surface);
  text-decoration: none;
  transition: border-color 0.2s;
}
#home#home .mobile-domain-row:hover, #home#home .mobile-domain-row:focus-visible {
  border-color: var(--hf-red);
  outline: none;
}
#home#home .mobile-domain-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
#home#home .mobile-domain-title {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--hf-fg);
}
#home#home .mobile-domain-sub { font-size: 0.78rem; font-weight: 500; color: var(--hf-muted); }
#home#home .mobile-domain-list { font-family: var(--hf-font-mono); font-size: 0.69rem; line-height: 1.5; color: var(--hf-muted); }

/* ---------------- Bottom Free & Open Rail ---------------- */
#home#home .hero-rail {
  position: relative;
  z-index: 6;
  border-top: 1px solid var(--hf-border);
  background: rgba(var(--hf-bg-rgb), 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#home#home .hero-rail-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.95rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  #home#home .hero-rail-inner { flex-direction: row; align-items: center; gap: 1.4rem; }
}
#home#home .open-rail-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-family: var(--hf-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-red);
}
#home#home .open-rail-copy { color: rgba(var(--hf-fg-rgb), 0.86); }
#home#home .open-rail-copy strong { font-weight: 600; color: var(--hf-fg); }
#home#home .open-rail-license {
  flex: none;
  color: var(--hf-muted);
  font-family: var(--hf-font-mono);
  font-size: 0.72rem;
}
@media (min-width: 768px) {
  #home#home .open-rail-license { margin-left: auto; text-align: right; }
}
#home#home .open-rail-license a {
  color: var(--hf-fg);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
#home#home .open-rail-license a:hover { color: var(--hf-red); text-decoration-style: solid; }

/* ---------------- Reduced Motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  #home#home .tlctc-mark .tm-l, #home#home .tlctc-expand, #home#home .cmd-btn, #home#home .h3-vertex > span, #home#home .h3-hub-note, #home#home .hero3d-labels > .h3-readout {
    transition: none !important;
  }
  #home#home .h3-replay, #home#home .splash-layer { display: none !important; }
}


/* ---------- Integration with the landing page ---------- */
#home#home.hero { padding-top: 80px; }
/* the site's .cmd-btn (mono, uppercase) would leak into the hero button */
#home#home .cmd-btn { text-transform: none; }
/* restored from the previous hero: the blog search (above the badge) and the two films (under the button) */
#home#home .hero-search { position: relative; z-index: 30; width: 100%; max-width: 30rem; margin-bottom: 1.35rem; }
/* the input's backdrop-filter makes it a layer that would paint over the magnifier */
#home#home .hero-search .lucide, #home#home .hero-search [data-lucide] { z-index: 1; }
#home#home .hero-films { margin-top: 1.6rem; max-width: 30rem; }
#home#home .hero-films-label { margin-bottom: 0.6rem; }
#home#home .open-rail-license p + p { margin-top: 0.2rem; }
