    /* =========================================================
     Design tokens — Mediterranean Bioluminescence
     ========================================================= */
    :root {
      --void: #0d1b3e;
      --deep: #060c1a;
      --surface: #0a1228;
      --raised: #0f1a32;

      --glass-1: rgba(20, 80, 200, 0.05);
      --glass-2: rgba(20, 80, 200, 0.09);
      --glass-3: rgba(30, 100, 220, 0.14);
      --glass-border: rgba(40, 120, 255, 0.16);
      --glass-border2: rgba(60, 140, 255, 0.26);

      --blue-deep: #1a5fa8;
      --blue-mid: #2a7fd4;
      --blue-bright: #4a9eff;
      --blue-light: #7ab8ff;
      --blue-dim: rgba(42, 127, 212, 0.12);

      --gold-dim: rgba(200, 169, 110, 0.12);
      --gold-mid: #c8a96e;
      --gold-bright: #e8c98e;

      --cyan: #4dd9e8;
      --cyan-dim: rgba(77, 217, 232, 0.08);

      --text-primary: #e8eef8;
      --text-secondary: #8898b8;
      --text-muted: #4a5878;

      --nav-height: 72px;

      /* ── Parameterized hardcoded colors ── */
      --nav-scrim: rgba(13, 27, 62, 0.85);
      --nav-overlay-bg: rgba(13, 27, 62, 0.97);
      --blob-1-color: rgba(20, 80, 220, 0.18);
      --blob-2-color: rgba(100, 180, 255, 0.10);
      --blob-3-color: rgba(200, 169, 110, 0.05);
      --footer-bg: rgba(13, 27, 62, 0.70);
      --chrome-bg: rgba(6, 12, 26, 0.55);
      --chrome-bg-2: rgba(6, 12, 26, 0.82);
      --chrome-text: rgba(180, 210, 240, 0.85);
      --caption-grad: rgba(6, 12, 26, 0.86);
    }

    /* ── Mediterranean Daylight — light mode token overrides ── */
    [data-theme="light"] {
      --void: #eef1f7;
      --deep: #f9fafd;
      --surface: #f4f6fb;
      --raised: #ffffff;

      --glass-1: rgba(255, 255, 255, 0.45);
      --glass-2: rgba(255, 255, 255, 0.58);
      --glass-3: rgba(255, 255, 255, 0.74);
      --glass-border: rgba(25, 70, 140, 0.14);
      --glass-border2: rgba(25, 70, 140, 0.22);

      --blue-deep: #0d4a8a;
      --blue-mid: #1f6fd4;
      --blue-bright: #1f6fd4;
      --blue-light: #2a85d8;
      --blue-dim: rgba(31, 111, 212, 0.08);

      --gold-dim: rgba(154, 117, 38, 0.10);
      --gold-mid: #9a7526;
      --gold-bright: #b8912e;

      --cyan: #0c8ba0;
      --cyan-dim: rgba(12, 139, 160, 0.08);

      --text-primary: #131b2b;
      --text-secondary: #495a76;
      --text-muted: #6b7d9a;

      --nav-scrim: rgba(244, 246, 251, 0.82);
      --nav-overlay-bg: rgba(238, 241, 247, 0.97);
      --blob-1-color: rgba(100, 160, 255, 0.10);
      --blob-2-color: rgba(180, 210, 255, 0.07);
      --blob-3-color: rgba(180, 140, 60, 0.06);
      --footer-bg: rgba(238, 241, 247, 0.80);
      --chrome-bg: rgba(255, 255, 255, 0.60);
      --chrome-bg-2: rgba(255, 255, 255, 0.88);
      --chrome-text: rgba(30, 60, 100, 0.85);
      --caption-grad: rgba(240, 244, 252, 0.86);
    }

    /* =========================================================
     Reset
     ========================================================= */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* =========================================================
     Body
     ========================================================= */
    html,
    body {
      min-height: 100%;
    }

    body {
      background: var(--void);
      color: var(--text-primary);
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-weight: 400;
      font-size: 0.95rem;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

    body.menu-open {
      overflow: hidden;
    }

    /* Global interactive transitions */
    a,
    button,
    .glass-card,
    .btn-primary,
    .btn-ghost,
    .tag,
    .mb-mark,
    .nav-link {
      transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* =========================================================
     Core components (carry-over from the system kit)
     ========================================================= */
    .glass-card {
      background: var(--glass-2);
      border: 1px solid var(--glass-border);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4);
      border-radius: 16px;
      padding: 1.5rem;
    }

    .glass-card:hover {
      background: var(--glass-3);
      border-color: var(--glass-border2);
    }

    .btn-primary {
      background: var(--blue-mid);
      color: var(--void);
      border: none;
      border-radius: 30px;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 12px;
      letter-spacing: 0.08em;
      padding: 0.75rem 1.4rem;
      cursor: pointer;
      text-transform: uppercase;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5em;
      white-space: nowrap;
    }

    .btn-primary:hover {
      background: var(--blue-bright);
    }

    .btn-ghost {
      background: var(--glass-1);
      color: var(--blue-bright);
      border: 1px solid var(--glass-border2);
      border-radius: 30px;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 12px;
      letter-spacing: 0.08em;
      padding: 0.75rem 1.4rem;
      cursor: pointer;
      text-transform: uppercase;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5em;
      white-space: nowrap;
    }

    .btn-ghost:hover {
      background: var(--glass-2);
      border-color: var(--blue-bright);
    }

    .sec-eyebrow {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--cyan);
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .sec-heading {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(2rem, 4.5vw, 3.5rem);
      line-height: 1.05;
      color: var(--text-primary);
    }

    .gold-italic {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-style: italic;
      color: var(--gold-mid);
    }

    .tag {
      display: inline-flex;
      align-items: center;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      background: var(--glass-1);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      padding: 0.25rem 0.75rem;
      color: var(--text-muted);
      letter-spacing: 0.06em;
    }

    .divider {
      border: 0;
      border-top: 1px solid var(--glass-border);
      width: 100%;
    }

    /* =========================================================
     .mb-mark — primary lockup (full PNG, includes wordmark)
     ========================================================= */
    .mb-mark {
      display: inline-block;
      line-height: 0;
    }

    .mb-mark img,
    .mb-mark svg {
      height: 120px;
      width: auto;
      display: block;
    }

    .hero-mark img {
      height: 160px;
      width: auto;
      display: block;
    }

    /* =========================================================
     .mb-mark--icon — nav fish-only mark (no wordmark)
     Backed by mb-mark-fish.png (artwork bbox 1004×708).
     Use --h to size by height; width follows the 1.418 aspect.
     ========================================================= */
    .mb-mark--icon {
      --h: 36px;
      display: inline-block;
      height: var(--h);
      width: calc(var(--h) * 1004 / 708);
      background: url('assets/mb-mark-fish.png') center / contain no-repeat;
      flex-shrink: 0;
    }

    .mb-mark--icon-lg {
      --h: 88px;
    }

    /* =========================================================
     Navigation
     ========================================================= */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 1.1rem 0;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition:
        background 0.4s ease,
        border-color 0.4s ease,
        backdrop-filter 0.4s ease;
      animation: fadeIn 0.6s ease-out 0s both;
    }

    .nav.scrolled {
      background: var(--nav-scrim);
      -webkit-backdrop-filter: blur(24px);
      backdrop-filter: blur(24px);
      border-bottom: 1px solid var(--glass-border);
    }

    .nav-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }

    .nav-lockup {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      text-decoration: none;
      color: inherit;
    }

    .nav-wordmark {
      font-family: 'Dancing Script', cursive;
      font-weight: 600;
      font-size: 1rem;
      color: var(--gold-mid);
      line-height: 1;
      white-space: nowrap;
      /* nudge to align with the fish baseline */
      transform: translateY(2px);
    }

    .nav-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 1.75rem;
    }

    .nav-link {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      text-decoration: none;
      text-transform: lowercase;
      position: relative;
      padding: 0.25rem 0;
    }

    .nav-link:hover {
      color: var(--blue-bright);
    }

    .nav-link.is-active {
      color: var(--blue-bright);
    }

    .nav-link.is-active::after {
      content: '';
      position: absolute;
      left: 50%;
      bottom: -6px;
      width: 2px;
      height: 2px;
      border-radius: 50%;
      background: var(--blue-bright);
      transform: translateX(-50%);
    }

    /* Hamburger (mobile only) */
    .nav-burger {
      display: none;
      background: transparent;
      border: 1px solid var(--glass-border);
      border-radius: 30px;
      padding: 0.55rem 0.7rem;
      cursor: pointer;
      align-items: center;
      gap: 4px;
    }

    .nav-burger span {
      display: block;
      width: 16px;
      height: 1px;
      background: var(--text-secondary);
      transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .nav-burger:hover span {
      background: var(--blue-bright);
    }

    body.menu-open .nav-burger span:nth-child(1) {
      transform: translateY(2.5px) rotate(45deg);
    }

    body.menu-open .nav-burger span:nth-child(2) {
      opacity: 0;
    }

    body.menu-open .nav-burger span:nth-child(3) {
      transform: translateY(-2.5px) rotate(-45deg);
    }

    /* Mobile overlay */
    .nav-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      background: var(--nav-overlay-bg);
      -webkit-backdrop-filter: blur(24px);
      backdrop-filter: blur(24px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }

    body.menu-open .nav-overlay {
      opacity: 1;
      pointer-events: auto;
    }

    .nav-overlay-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.25rem;
      text-align: center;
    }

    .nav-overlay-list a {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: 2.5rem;
      line-height: 1.1;
      color: var(--text-primary);
      text-decoration: none;
      opacity: 0;
      transform: translateX(20px);
      transition: color 0.25s ease;
    }

    .nav-overlay-list a:hover {
      color: var(--gold-mid);
    }

    body.menu-open .nav-overlay-list a {
      animation: overlaySlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    body.menu-open .nav-overlay-list li:nth-child(1) a {
      animation-delay: 0.08s;
    }

    body.menu-open .nav-overlay-list li:nth-child(2) a {
      animation-delay: 0.14s;
    }

    body.menu-open .nav-overlay-list li:nth-child(3) a {
      animation-delay: 0.20s;
    }

    body.menu-open .nav-overlay-list li:nth-child(4) a {
      animation-delay: 0.26s;
    }

    body.menu-open .nav-overlay-list li:nth-child(5) a {
      animation-delay: 0.32s;
    }

    body.menu-open .nav-overlay-list li:nth-child(6) a {
      animation-delay: 0.38s;
    }

    body.menu-open .nav-overlay-list li:nth-child(7) a {
      animation-delay: 0.44s;
    }

    body.menu-open .nav-overlay-list li:nth-child(8) a {
      animation-delay: 0.50s;
    }

    @keyframes overlaySlideIn {
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* =========================================================
     Hero
     ========================================================= */
    .hero {
      position: relative;
      min-height: 100vh;
      margin-top: calc(var(--nav-height) * -1);
      /* let hero extend under sticky nav */
      padding-top: var(--nav-height);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding-bottom: 15vh;
      overflow: hidden;
      isolation: isolate;
    }

    /* Atmosphere blobs */
    .hero-atmosphere {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .blob {
      position: absolute;
      border-radius: 50%;
      opacity: 0;
      will-change: transform, opacity;
    }

    .blob-1 {
      top: -20%;
      left: -15%;
      width: 60%;
      height: 60%;
      background: radial-gradient(ellipse, var(--blob-1-color) 0%, transparent 68%);
      animation:
        drift-1 14s ease-in-out 1.4s infinite alternate,
        blobFadeIn 1.4s ease-out 1.4s forwards;
    }

    .blob-2 {
      bottom: -18%;
      right: -15%;
      width: 50%;
      height: 60%;
      background: radial-gradient(ellipse, var(--blob-2-color) 0%, transparent 65%);
      animation:
        drift-2 17s ease-in-out 1.4s infinite alternate,
        blobFadeIn 1.4s ease-out 1.4s forwards;
    }

    .blob-3 {
      top: 25%;
      left: 30%;
      width: 40%;
      height: 45%;
      background: radial-gradient(ellipse, var(--blob-3-color) 0%, transparent 60%);
      animation:
        drift-3 20s ease-in-out 1.4s infinite alternate,
        blobFadeIn 1.4s ease-out 1.4s forwards;
    }

    @keyframes drift-1 {
      from {
        transform: translate(0, 0) scale(1);
      }

      to {
        transform: translate(35px, -25px) scale(1.1);
      }
    }

    @keyframes drift-2 {
      from {
        transform: translate(0, 0) scale(1);
      }

      to {
        transform: translate(-40px, -30px) scale(1.08);
      }
    }

    @keyframes drift-3 {
      from {
        transform: translate(0, 0) scale(0.95);
      }

      to {
        transform: translate(0, 0) scale(1.08);
      }
    }

    @keyframes blobFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* Hero content */
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 1280px;
      width: 100%;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    /* Hero lockup */
    .hero-lockup {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 2rem;
    }

    .hero-wordmark {
      font-family: 'Dancing Script', cursive;
      font-weight: 600;
      font-size: 1.6rem;
      color: var(--gold-mid);
      line-height: 1;
      white-space: nowrap;
      margin-top: 0.25rem;
    }

    .hero-rule {
      width: 180px;
      height: 1px;
      border: 0;
      background: linear-gradient(to right,
          transparent,
          var(--gold-mid) 40%,
          var(--gold-mid) 60%,
          transparent);
      opacity: 0.7;
      margin: 0.5rem 0 0;
    }

    .hero-eyebrow {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 11px;
      color: var(--cyan);
      letter-spacing: 0.22em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero-name {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(3.5rem, 8vw, 7rem);
      line-height: 0.95;
      letter-spacing: -0.02em;
      color: var(--text-primary);
    }

    .hero-name-1 {
      display: block;
    }

    .hero-name-2 {
      display: block;
      font-style: italic;
      color: var(--gold-mid);
    }

    .hero-body {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.05rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 520px;
      margin-top: 2rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem 1.25rem;
      margin-top: 2.25rem;
    }

    .hero-coords {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 11px;
      color: var(--text-muted);
      letter-spacing: 0.14em;
      margin-left: 0.25rem;
    }

    /* =========================================================
     Page-load fade-up sequence
     ========================================================= */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .anim {
      opacity: 0;
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* delays: nav 0, eyebrow 200, h1L1 400, h1L2 600, body 800, btns 1000, coords 1200 */
    .hero-lockup {
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
      opacity: 0;
    }

    .hero-eyebrow {
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both;
      opacity: 0;
    }

    .hero-name-1 {
      animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both;
      opacity: 0;
    }

    .hero-name-2 {
      animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both;
      opacity: 0;
    }

    .hero-body {
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.80s both;
      opacity: 0;
    }

    .hero-actions {
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.00s both;
      opacity: 0;
    }

    .hero-coords {
      animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.20s both;
      opacity: 0;
    }

    /* =========================================================
     Story / Timeline section
     ========================================================= */
    .story {
      position: relative;
      padding: 7rem 0 6rem;
      background: var(--void);
    }

    .story-inner {
      max-width: 920px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .sec-label {
      display: inline-flex;
      align-items: center;
      gap: 0.85rem;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .sec-label::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 1px;
      background: currentColor;
      opacity: 0.6;
    }

    .story-heading {
      margin-bottom: 2.5rem;
    }

    .story-quote {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-style: italic;
      font-size: 1.2rem;
      line-height: 1.7;
      color: var(--text-secondary);
      border-left: 2px solid var(--gold-mid);
      padding-left: 1.5rem;
      margin: 0 0 2rem;
      max-width: 660px;
    }

    .story-intro {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      line-height: 1.8;
      color: var(--text-secondary);
      max-width: 620px;
      margin-bottom: 4.5rem;
    }

    /* =========================================================
     Builder's Arc — scroll-driven dual-spine timeline
     ========================================================= */
    .tl-stage {
      position: relative;
      width: 100%;
      max-width: 860px;
      margin: 0 auto 4rem;
    }

    .tl-stage-inner {
      position: relative;
    }

    .tl-spine-svg {
      display: block;
      width: 100%;
      height: auto;
      overflow: visible;
    }

    .arc-card {
      position: absolute;
      /* width is NOT fixed — determined by left + right anchors per variant */
      background: var(--glass-2);
      border: 1px solid var(--glass-border);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4);
      border-radius: 16px;
      padding: 1.15rem 1.35rem 1.25rem;
      transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      cursor: default;
      z-index: 2;
      min-width: 0;
      /* allow flexbox/grid children to shrink */
      box-sizing: border-box;
    }

    .arc-card:hover,
    .arc-card.is-active {
      background: var(--glass-3);
      border-color: var(--glass-border2);
      box-shadow: 0 4px 24px rgba(74, 158, 255, 0.08);
    }

    /*
   * SVG coordinate space is 1000 units wide.
   *   LX (left branch)  = 380  →  38 % of stage width
   *   CX (centre spine) = 500  →  50 %
   *   RX (right branch) = 620  →  62 %
   *
   * Cards anchor to the OUTER edge and stop ≥ 4 % before the nearest spine
   * so they never overlap the path or the node circles.
   */
    .arc-card--left {
      left: 0.75rem;
      right: 67%;
    }

    /* right edge 33 %, gap 5 % from LX@38 % */
    .arc-card--right {
      left: 67%;
      right: 0.75rem;
    }

    /* left  edge 67 %, gap 5 % from RX@62 % */
    .arc-card--solo {
      left: 56%;
      right: 0.75rem;
    }

    /* left  edge 56 %, gap 6 % from CX@50 % */
    .arc-card--featured {
      background: linear-gradient(rgba(200, 169, 110, 0.05), rgba(200, 169, 110, 0.05)), var(--glass-2);
      border-color: var(--gold-mid);
    }

    .arc-card--featured:hover,
    .arc-card--featured.is-active {
      background: linear-gradient(rgba(200, 169, 110, 0.09), rgba(200, 169, 110, 0.09)), var(--glass-3);
      border-color: var(--gold-bright);
      box-shadow: 0 4px 28px rgba(200, 169, 110, 0.15);
    }

    .arc-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.3rem 0.75rem;
      margin-bottom: 0.45rem;
    }

    .arc-dates {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--blue-bright);
      letter-spacing: 0.1em;
      white-space: nowrap;
    }

    .arc-role {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 500;
      font-size: 0.93rem;
      color: var(--text-primary);
    }

    .arc-org {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.05em;
      width: 100%;
    }

    .arc-body {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.855rem;
      line-height: 1.75;
      color: var(--text-secondary);
    }

    .arc-card--featured .arc-dates {
      color: var(--gold-bright);
    }

    @media (max-width: 700px) {
      .tl-stage-inner {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
      }

      .tl-spine-svg {
        display: none;
      }

      /* Override all positioning anchors so cards stack cleanly */
      .arc-card,
      .arc-card--left,
      .arc-card--right,
      .arc-card--solo {
        position: static;
        left: auto;
        right: auto;
        width: 100%;
        transform: none !important;
      }
    }

    /* Skills row */
    .story-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: 3rem;
    }

    .story-skills .tag {
      opacity: 0;
      transform: translateY(8px);
      transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
      transition-delay: calc(var(--idx, 0) * 40ms);
    }

    .story-skills.is-visible .tag {
      opacity: 1;
      transform: translateY(0);
    }

    .story-skills .tag:hover {
      background: var(--glass-2);
      border-color: var(--glass-border2);
      color: var(--text-secondary);
    }

    .skills-group {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }

    .skills-group-label {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 9px;
      color: var(--text-muted);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      opacity: 0.7;
    }

    .skills-group-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    /* =========================================================
     Vision / Philosophy — 2x2 pod grid
     ========================================================= */
    .vision {
      position: relative;
      padding: 6rem 0 6rem;
      background: var(--void);
    }

    .vision-inner {
      max-width: 1040px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .vision-heading {
      margin-bottom: 3rem;
    }

    .vision-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--glass-border);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      overflow: hidden;
    }

    .pod {
      position: relative;
      background: var(--deep);
      padding: 2.25rem 2rem 2.5rem;
      overflow: hidden;
      transition: background 0.3s ease;
      opacity: 0;
      transform: translateY(16px);
      transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
      transition-delay: calc(var(--idx, 0) * 80ms);
      will-change: opacity, transform;
    }

    .vision-grid.is-visible .pod {
      opacity: 1;
      transform: translateY(0);
    }

    .pod::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
          rgba(42, 127, 212, 0.07),
          transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .pod:hover {
      background: var(--surface);
    }

    .pod:hover::before {
      opacity: 1;
    }

    .pod-num {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.18em;
      margin-bottom: 1rem;
      display: block;
    }

    .pod-title {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
      font-size: 1.25rem;
      line-height: 1.25;
      color: var(--text-primary);
      margin-bottom: 0.85rem;
      letter-spacing: -0.005em;
    }

    .pod-body {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.875rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 36ch;
    }

    /* =========================================================
     Syla feature
     ========================================================= */
    .syla {
      position: relative;
      padding: 4rem 0 7rem;
      background: var(--void);
    }

    .syla-inner {
      max-width: 1040px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .syla-heading {
      margin-bottom: 2.5rem;
    }

    .syla-card {
      position: relative;
      border-radius: 28px;
      padding: 2.5rem 2.4rem 2.4rem;
      background:
        radial-gradient(ellipse at 15% 30%, rgba(20, 80, 220, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(100, 180, 255, 0.06) 0%, transparent 50%),
        var(--glass-2);
      border: 1px solid var(--glass-border2);
      overflow: hidden;
      isolation: isolate;
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4);
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .syla-card.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .syla-watermark {
      position: absolute;
      right: -0.5rem;
      top: 50%;
      transform: translateY(-50%);
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-weight: 300;
      font-size: clamp(6rem, 14vw, 10rem);
      color: var(--blue-deep);
      opacity: 0.04;
      line-height: 1;
      letter-spacing: -0.02em;
      pointer-events: none;
      user-select: none;
      z-index: 0;
    }

    .syla-content {
      position: relative;
      z-index: 1;
      max-width: 660px;
    }

    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: #4ade80;
      background: rgba(74, 222, 128, 0.07);
      border: 1px solid rgba(74, 222, 128, 0.2);
      border-radius: 20px;
      padding: 0.4rem 0.9rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 2rem;
    }

    .live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      flex-shrink: 0;
      animation: bio-pulse 2.2s ease-in-out infinite;
    }

    @keyframes bio-pulse {

      0%,
      100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
      }

      50% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
      }
    }

    .syla-cardtitle {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(1.75rem, 3vw, 2.25rem);
      line-height: 1.15;
      color: var(--text-primary);
      letter-spacing: -0.01em;
      margin-bottom: 1.5rem;
    }

    .syla-body {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      line-height: 1.8;
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
    }

    .syla-body:last-of-type {
      margin-bottom: 1.75rem;
    }

    .syla-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    /* =========================================================
     Journal — stacked card feed
     ========================================================= */
    .journal {
      position: relative;
      padding: 4rem 0 6rem;
      background: var(--void);
    }

    .journal-inner {
      max-width: 1040px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .journal-heading {
      margin-bottom: 1.25rem;
    }

    .journal-intro {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 560px;
      margin-bottom: 3rem;
    }

    .journal-feed {
      border-top: 1px solid var(--glass-border);
    }

    .j-card {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 1.75rem;
      align-items: start;
      background: var(--deep);
      padding: 1.75rem 1.4rem;
      border-bottom: 1px solid var(--glass-border);
      text-decoration: none;
      color: inherit;
      opacity: 0;
      transform: translateY(12px);
      transition:
        background 0.25s ease,
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
      transition-delay: 0s, calc(var(--idx, 0) * 70ms), calc(var(--idx, 0) * 70ms);
    }

    .j-card.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .j-card:hover {
      background: var(--surface);
    }

    .j-date {
      padding-right: 1.5rem;
      border-right: 1px solid var(--glass-border);
      text-align: right;
      min-height: 100%;
    }

    .j-day {
      display: block;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: 2rem;
      color: var(--gold-mid);
      line-height: 1;
      margin-bottom: 0.35rem;
    }

    .j-month {
      display: block;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.1em;
    }

    .j-tag {
      display: block;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 9px;
      color: var(--cyan);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-bottom: 0.6rem;
    }

    .j-badge {
      display: inline-block;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.2rem 0.55rem;
      border-radius: 20px;
      margin-bottom: 0.6rem;
    }

    .j-badge--analysis {
      color: var(--gold-mid);
      border: 1px solid rgba(200, 169, 110, 0.35);
      background: rgba(200, 169, 110, 0.08);
    }

    .j-title {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: 1.3rem;
      line-height: 1.3;
      color: var(--text-primary);
      margin-bottom: 0.65rem;
    }

    .j-excerpt {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.875rem;
      line-height: 1.6;
      color: var(--text-secondary);
      margin-bottom: 0.9rem;
      max-width: 60ch;
    }

    .j-read {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      transition: color 0.25s ease;
    }

    .j-card:hover .j-read {
      color: var(--blue-bright);
    }

    /* Outline/coming-soon variant (cards without full essays yet) */
    .j-card--soon {
      cursor: default;
    }

    .j-card--soon .j-day {
      color: var(--text-muted);
    }

    .j-card--soon:hover {
      background: var(--deep);
    }

    .j-card--soon:hover .j-read {
      color: var(--text-muted);
    }

    .j-card--soon .j-read::after {
      content: ' · draft';
      color: var(--text-muted);
      opacity: 0.7;
    }

    .journal-foot {
      margin-top: 1.75rem;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.12em;
    }

    /* =========================================================
     World map — three design directions
     ========================================================= */
    .world {
      position: relative;
      padding: 4rem 0 6rem;
      background: var(--void);
    }

    .world-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .world-heading {
      margin-bottom: 1.25rem;
    }

    .world-intro {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 560px;
      margin-bottom: 2.5rem;
    }

    .map-style-picker {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }
    .map-style-picker label {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-muted);
    }
    .map-style-picker select {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 11px;
      letter-spacing: 0.08em;
      color: #e8eef8;
      background: rgba(10, 18, 40, 0.85);
      border: 1px solid rgba(200,169,110, 0.3);
      border-radius: 8px;
      padding: 0.5rem 2rem 0.5rem 0.75rem;
      cursor: pointer;
      outline: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.6rem center;
      transition: border-color 0.25s;
    }
    .map-style-picker select:hover,
    .map-style-picker select:focus {
      border-color: rgba(200,169,110, 0.6);
    }

    .map-frame {
      border-radius: 20px;
      overflow: hidden;
      position: relative;
    }

    .map-viewport {
      position: relative;
      width: 100%;
      aspect-ratio: 2 / 1;
      overflow: hidden;
    }

    .map-layer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.6s ease;
    }
    .map-layer.is-active {
      opacity: 1;
      pointer-events: auto;
    }

    /* shared world-map SVG inside each layer */
    .wm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .wm-svg .grat { fill: none; }
    .wm-svg .land { fill-rule: evenodd; }
    .wm-svg .glabel { font-family: 'Cormorant Garamond', serif; font-style: italic; letter-spacing: 0.14em; }

    /* A — VELLUM (Age of Empires) */
    .ml-aoe {
      background:
        radial-gradient(120% 90% at 50% 0%, rgba(30,80,160,0.10), transparent 60%),
        radial-gradient(150% 130% at 50% 130%, rgba(0,0,0,0.5), transparent 55%),
        repeating-linear-gradient(56deg, rgba(122,184,255,0.02) 0 2px, transparent 2px 9px),
        linear-gradient(160deg,#0a1326,#060c1a 70%);
      border: 1px solid rgba(200,169,110,0.28);
      border-radius: 20px;
    }
    .ml-aoe .wm-svg .land { fill: #0c1830; stroke: #c8a96e; stroke-opacity: .5; stroke-width: .8; }
    .ml-aoe .wm-svg .grat { stroke: #c8a96e; stroke-opacity: .12; stroke-width: .6; }
    .ml-aoe .aoe-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 180px 40px rgba(0,0,0,0.55); pointer-events: none; z-index: 6; border-radius: 20px; }
    .ml-aoe .aoe-innerframe { position: absolute; inset: 22px; border: 1px solid rgba(200,169,110,0.30); z-index: 5; pointer-events: none; }
    .ml-aoe .aoe-innerframe::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(200,169,110,0.14); }
    .aoe-corner { position: absolute; width: 30px; height: 30px; z-index: 5; }
    .aoe-corner::before, .aoe-corner::after { content: ''; position: absolute; background: #c8a96e; opacity: .8; }
    .aoe-corner::before { width: 30px; height: 1.5px; } .aoe-corner::after { width: 1.5px; height: 30px; }
    .aoe-corner .dia { position: absolute; width: 7px; height: 7px; background: #c8a96e; transform: rotate(45deg); }
    .ac-tl{left:22px;top:22px;} .ac-tr{right:22px;top:22px;} .ac-bl{left:22px;bottom:22px;} .ac-br{right:22px;bottom:22px;}
    .ac-tr::before{right:0;} .ac-tr::after{right:0;} .ac-bl::before{bottom:0;} .ac-bl::after{bottom:0;}
    .ac-br::before{right:0;bottom:0;} .ac-br::after{right:0;bottom:0;}
    .ac-tl .dia{right:-3.5px;bottom:-3.5px;} .ac-tr .dia{left:-3.5px;bottom:-3.5px;}
    .ac-bl .dia{right:-3.5px;top:-3.5px;} .ac-br .dia{left:-3.5px;top:-3.5px;}
    .aoe-compass { position: absolute; right: 5%; top: 10%; width: 72px; height: 72px; display: grid; place-items: center; z-index: 5; }
    .aoe-compass .ring { position: absolute; inset: 0; border: 1px solid rgba(200,169,110,0.4); border-radius: 50%; }
    .aoe-compass .ring2 { position: absolute; inset: 14px; border: 1px solid rgba(200,169,110,0.22); border-radius: 50%; }
    .aoe-compass .star { position: absolute; width: 0; height: 0; }
    .aoe-compass .star.n{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:30px solid #c8a96e;top:6px;left:50%;transform:translateX(-50%);opacity:.9;}
    .aoe-compass .star.s{border-left:6px solid transparent;border-right:6px solid transparent;border-top:30px solid rgba(200,169,110,0.4);bottom:6px;left:50%;transform:translateX(-50%);}
    .aoe-compass .star.e{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:30px solid rgba(200,169,110,0.4);right:6px;top:50%;transform:translateY(-50%);}
    .aoe-compass .star.w{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:30px solid rgba(200,169,110,0.4);left:6px;top:50%;transform:translateY(-50%);}
    .aoe-compass .lbl { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #c8a96e; }
    .aoe-cartouche { position: absolute; left: 4%; bottom: 7%; padding: 14px 20px; z-index: 5;
      background: linear-gradient(180deg,rgba(10,19,40,0.82),rgba(6,12,26,0.92)); border: 1px solid rgba(200,169,110,0.3); }
    .aoe-cartouche .t { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px,2.2vw,32px); font-weight: 500; letter-spacing: .14em; color: #e8c98e; }
    .aoe-cartouche .s { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .24em; color: #8898b8; margin-top: 4px; text-transform: uppercase; }
    .ml-aoe .focus-ring { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none;
      border: 1px solid rgba(200,169,110,0.3); box-shadow: 0 0 0 1px rgba(200,169,110,0.08), inset 0 0 40px rgba(200,169,110,0.05); }
    .ml-aoe .route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
    .node-aoe { position: absolute; transform: translate(-50%,-50%); z-index: 4; }
    .node-aoe .dot { width: 12px; height: 12px; background: #e8c98e; transform: rotate(45deg); margin: 0 auto; box-shadow: 0 0 0 4px rgba(200,169,110,.16), 0 0 14px rgba(232,201,142,.5); }
    .node-aoe .nm { font-family: 'Cormorant Garamond', serif; font-size: clamp(14px,1.4vw,20px); font-weight: 600; color: #e8eef8; margin-top: 7px; text-align: center; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 1px 8px #060c1a; }
    .node-aoe .co { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #c8a96e; text-align: center; margin-top: 2px; white-space: nowrap; }

    /* B — SANDTABLE (Dune 2000) */
    .ml-dune {
      background:
        linear-gradient(180deg,rgba(8,16,30,0.92),rgba(3,6,15,0.97)),
        repeating-linear-gradient(0deg, rgba(77,217,232,0.045) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(90deg, rgba(77,217,232,0.045) 0 1px, transparent 1px 38px), #04070e;
      border: 1px solid rgba(77,217,232,0.22);
      border-radius: 20px;
    }
    .ml-dune .wm-svg .land { fill: #06121f; stroke: #4dd9e8; stroke-opacity: .45; stroke-width: .8; }
    .ml-dune .wm-svg .grat { stroke: #4dd9e8; stroke-opacity: .14; stroke-width: .6; }
    .dune-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,rgba(0,0,0,0.16) 0 2px,transparent 2px 4px); pointer-events: none; mix-blend-mode: overlay; z-index: 6; border-radius: 20px; }
    .dune-brk { position: absolute; width: 22px; height: 22px; border: 2px solid #4dd9e8; opacity: .85; z-index: 5; }
    .db-tl{left:14px;top:14px;border-right:0;border-bottom:0;} .db-tr{right:14px;top:14px;border-left:0;border-bottom:0;}
    .db-bl{left:14px;bottom:14px;border-right:0;border-top:0;} .db-br{right:14px;bottom:14px;border-left:0;border-top:0;}
    .dune-hud { position: absolute; left: 28px; right: 28px; top: 24px; display: flex; justify-content: space-between; align-items: center; z-index: 5;
      font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #4dd9e8; flex-wrap: wrap; gap: 6px; }
    .dune-hud .live { display: inline-flex; align-items: center; gap: 8px; color: #e8c98e; }
    .dune-hud .blip { width: 8px; height: 8px; border-radius: 50%; background: #e8c98e; box-shadow: 0 0 10px #e8c98e; animation: dpulse 1.4s ease-in-out infinite; }
    @keyframes dpulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }
    .ml-dune .focus-ring { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none;
      border: 1px solid rgba(77,217,232,0.28); background: radial-gradient(circle,rgba(77,217,232,0.05),transparent 70%); }
    .ml-dune .focus-ring::before { content: ''; position: absolute; inset: 24%; border: 1px solid rgba(77,217,232,0.16); border-radius: 50%; }
    .dune-sweep { position: absolute; border-radius: 50%; background: conic-gradient(from 0deg,rgba(77,217,232,0.26),transparent 55%);
      animation: sweep 5.5s linear infinite; pointer-events: none; z-index: 2; }
    @keyframes sweep { to { transform: rotate(360deg); } }
    .dune-panel { position: absolute; right: 28px; bottom: 28px; width: 220px; padding: 14px 16px; background: rgba(4,10,20,0.86);
      border: 1px solid rgba(77,217,232,0.28); font-family: 'JetBrains Mono', monospace; z-index: 5; }
    .dune-panel h4 { font-size: 10px; letter-spacing: .24em; color: #4dd9e8; text-transform: uppercase; margin-bottom: 10px; }
    .dune-panel .row { display: flex; justify-content: space-between; font-size: 10px; padding: 4px 0; border-bottom: 1px solid rgba(77,217,232,0.1); }
    .dune-panel .row span:first-child { color: #4a5878; } .dune-panel .row span:last-child { color: #e8eef8; }
    .dune-panel .ok { color: #e8c98e !important; }
    .ml-dune .route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
    .node-dune { position: absolute; transform: translate(-50%,-50%); z-index: 4; }
    .node-dune .reticle { position: relative; width: 36px; height: 36px; margin: 0 auto; }
    .node-dune .reticle::before { content: ''; position: absolute; inset: 0; border: 1px solid #4dd9e8; border-radius: 50%; }
    .node-dune .reticle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #e8c98e; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 10px #e8c98e; }
    .node-dune .tick { position: absolute; background: #4dd9e8; }
    .tk-t{left:50%;top:-5px;width:1px;height:6px;transform:translateX(-50%);} .tk-b{left:50%;bottom:-5px;width:1px;height:6px;transform:translateX(-50%);}
    .tk-l{top:50%;left:-5px;height:1px;width:6px;transform:translateY(-50%);} .tk-r{top:50%;right:-5px;height:1px;width:6px;transform:translateY(-50%);}
    .node-dune .nm { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; color: #4dd9e8; text-transform: uppercase; text-align: center; margin-top: 6px; white-space: nowrap; }
    .node-dune .co { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #4a5878; text-align: center; margin-top: 1px; white-space: nowrap; }

    /* D — ITINERARIVM (Old World) */
    .ml-old {
      background: radial-gradient(130% 100% at 50% 0%,rgba(30,70,140,0.10),transparent 60%),linear-gradient(165deg,#0b1426,#070d1a);
      border: 1px solid rgba(200,169,110,0.22);
      border-radius: 20px;
    }
    .ml-old .wm-svg .land { fill: #121d31; stroke: #c8a96e; stroke-opacity: .36; stroke-width: .8; }
    .ml-old .wm-svg .grat { stroke: #c8a96e; stroke-opacity: .1; stroke-width: .6; }
    .old-meander { position: absolute; inset: 22px; border: 1px solid rgba(200,169,110,0.18); z-index: 5; pointer-events: none;
      background: repeating-linear-gradient(90deg,transparent 0 14px,rgba(200,169,110,0.14) 14px 16px) top/100% 8px no-repeat,
                  repeating-linear-gradient(90deg,transparent 0 14px,rgba(200,169,110,0.14) 14px 16px) bottom/100% 8px no-repeat; }
    .old-titleblock { position: absolute; left: 4%; top: 7%; z-index: 5; }
    .old-titleblock .kick { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: #c8a96e; }
    .old-titleblock h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(28px,4vw,58px); letter-spacing: .14em; color: #e8c98e; line-height: 0.95; margin-top: 6px; }
    .old-titleblock .sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(13px,1.4vw,20px); color: #8898b8; margin-top: 6px; }
    .old-index { position: absolute; right: 4%; bottom: 7%; text-align: right; z-index: 5; }
    .old-index .ix { font-family: 'Cormorant Garamond', serif; font-size: clamp(13px,1.2vw,17px); color: #8898b8; margin: 6px 0; }
    .old-index .ix b { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #c8a96e; margin-right: 10px; letter-spacing: .1em; }
    .old-index .ix span { color: #e8eef8; }
    .ml-old .focus-ring { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none;
      border: 1px solid rgba(200,169,110,0.22); }
    .ml-old .route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
    .node-old { position: absolute; transform: translate(-50%,-50%); z-index: 4; }
    .node-old .dot { width: 9px; height: 9px; border-radius: 50%; background: #e8c98e; margin: 0 auto; box-shadow: 0 0 0 5px rgba(200,169,110,0.12); }
    .node-old .seq { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(12px,1vw,15px); color: #4a5878; text-align: center; }
    .node-old .nm { font-family: 'Cormorant Garamond', serif; font-size: clamp(15px,1.5vw,22px); font-weight: 600; letter-spacing: .06em; color: #e8eef8; text-align: center; margin-top: 6px; white-space: nowrap; text-shadow: 0 1px 8px #070d1a; }
    .node-old .co { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .08em; color: #c8a96e; text-align: center; margin-top: 2px; white-space: nowrap; }

    /* Label direction system — prevents overlapping labels on close pins */
    [class^="node-"] .lbl { position: absolute; white-space: nowrap; z-index: 1;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 120ms ease, visibility 120ms ease; }

    /* Default / bottom */
    [class^="node-"] .lbl,
    [class^="node-"].ldir-bottom .lbl { top: 100%; left: 50%; transform: translateX(-50%); text-align: center; padding-top: 4px; }

    [class^="node-"].ldir-top .lbl { bottom: 100%; top: auto; left: 50%; transform: translateX(-50%); text-align: center; padding-bottom: 4px; }
    [class^="node-"].ldir-right .lbl { left: 100%; top: 50%; transform: translateY(-50%); text-align: left; padding-left: 10px; }
    [class^="node-"].ldir-left .lbl { right: 100%; left: auto; top: 50%; transform: translateY(-50%); text-align: right; padding-right: 10px; }
    [class^="node-"].ldir-top-right .lbl { bottom: 60%; top: auto; left: 80%; text-align: left; }
    [class^="node-"].ldir-top-left .lbl { bottom: 60%; top: auto; right: 80%; left: auto; text-align: right; }
    [class^="node-"].ldir-bottom-right .lbl { top: 60%; left: 80%; text-align: left; }
    [class^="node-"].ldir-bottom-left .lbl { top: 60%; right: 80%; left: auto; text-align: right; }

    [class^="node-"].ldir-right .nm, [class^="node-"].ldir-right .co,
    [class^="node-"].ldir-top-right .nm, [class^="node-"].ldir-top-right .co,
    [class^="node-"].ldir-bottom-right .nm, [class^="node-"].ldir-bottom-right .co { text-align: left; }
    [class^="node-"].ldir-left .nm, [class^="node-"].ldir-left .co,
    [class^="node-"].ldir-top-left .nm, [class^="node-"].ldir-top-left .co,
    [class^="node-"].ldir-bottom-left .nm, [class^="node-"].ldir-bottom-left .co { text-align: right; }
    [class^="node-"].ldir-top .nm, [class^="node-"].ldir-top .co { text-align: center; }

    /* ── Hover-to-reveal labels ── */

    /* Invisible padded hit circle for small dots */
    [class^="node-"] .hit { position: absolute; width: 28px; height: 28px; top: 50%; left: 50%;
      transform: translate(-50%,-50%); border-radius: 50%; cursor: pointer; z-index: 2; }

    /* Elevate active node so its label renders above everything */
    [class^="node-"].node-reveal,
    [class^="node-"].node-ambient { z-index: 10; }

    /* Show label */
    [class^="node-"].node-reveal .lbl,
    [class^="node-"].node-ambient .lbl { opacity: 1; visibility: visible; pointer-events: auto; }
    [class^="node-"].node-ambient .lbl { transition-duration: 250ms; }

    /* Dot emphasis — hover (stronger) */
    .node-aoe.node-reveal .dot { transform: rotate(45deg) scale(1.25);
      box-shadow: 0 0 0 4px rgba(200,169,110,.28), 0 0 20px rgba(232,201,142,.7); }
    .node-dune.node-reveal .reticle::after { box-shadow: 0 0 16px #e8c98e, 0 0 6px #e8c98e; }
    .node-old.node-reveal .dot { transform: scale(1.3);
      box-shadow: 0 0 0 5px rgba(200,169,110,0.22), 0 0 16px rgba(232,201,142,.6); }

    /* Dot emphasis — ambient (gentle pulse) */
    .node-aoe.node-ambient .dot  { animation: ambPulseAoe 2s ease-in-out infinite; }
    .node-dune.node-ambient .reticle::after { animation: ambPulseDune 2s ease-in-out infinite; }
    .node-old.node-ambient .dot  { animation: ambPulseOld 2s ease-in-out infinite; }
    @keyframes ambPulseAoe {
      0%,100%{ box-shadow: 0 0 0 4px rgba(200,169,110,.16), 0 0 14px rgba(232,201,142,.5); }
      50%{ box-shadow: 0 0 0 6px rgba(200,169,110,.24), 0 0 18px rgba(232,201,142,.65); }
    }
    @keyframes ambPulseDune {
      0%,100%{ box-shadow: 0 0 10px #e8c98e; }
      50%{ box-shadow: 0 0 14px #e8c98e, 0 0 4px #e8c98e; }
    }
    @keyframes ambPulseOld {
      0%,100%{ box-shadow: 0 0 0 5px rgba(200,169,110,0.12); }
      50%{ box-shadow: 0 0 0 6px rgba(200,169,110,0.18), 0 0 12px rgba(232,201,142,.35); }
    }

    /* Dot transition for smooth emphasis */
    .node-aoe .dot { transition: transform 120ms ease, box-shadow 120ms ease; }
    .node-old .dot { transition: transform 120ms ease, box-shadow 120ms ease; }
    .node-dune .reticle::after { transition: box-shadow 120ms ease; }

    /* Leader line (pseudo-element connecting dot to label) */
    [class^="node-"] .lbl::before {
      content: ''; position: absolute; background: rgba(200,169,110,0.4);
      opacity: 0; transition: opacity 120ms ease;
    }
    .ml-dune [class^="node-"] .lbl::before { background: rgba(77,217,232,0.4); }
    [class^="node-"].node-reveal .lbl::before,
    [class^="node-"].node-ambient .lbl::before { opacity: 1; }

    /* Leader line positioning per label direction */
    [class^="node-"] .lbl::before,
    [class^="node-"].ldir-bottom .lbl::before { left: 50%; top: 0; width: 1px; height: 4px; transform: translateX(-50%); }
    [class^="node-"].ldir-top .lbl::before { left: 50%; bottom: 0; top: auto; width: 1px; height: 4px; transform: translateX(-50%); }
    [class^="node-"].ldir-right .lbl::before { top: 50%; left: 0; width: 10px; height: 1px; transform: translateY(-50%); }
    [class^="node-"].ldir-left .lbl::before { top: 50%; right: 0; left: auto; width: 10px; height: 1px; transform: translateY(-50%); }

    /* Reduced motion: disable ambient pulse and auto-cycle dot animations */
    @media (prefers-reduced-motion: reduce) {
      .node-aoe.node-ambient .dot,
      .node-dune.node-ambient .reticle::after,
      .node-old.node-ambient .dot { animation: none; }
    }

    /* ships */
    .ship-canvas { position: absolute; left: 0; top: 0; width: 1600px; height: 800px; transform-origin: 0 0; pointer-events: none; z-index: 3; overflow: hidden; }
    .map-ship { position: absolute; left: 0; top: 0; offset-rotate: 0deg; offset-anchor: 50% 50%; z-index: 4;
      animation-name: sail; animation-timing-function: linear; animation-iteration-count: infinite; will-change: offset-distance; }
    @keyframes sail { from { offset-distance: 0%; } to { offset-distance: 100%; } }
    .map-ship .shp { display: block; overflow: visible; transform-box: fill-box; transform-origin: center; }
    .map-ship.ambient { z-index: 3; }
    @media (prefers-reduced-motion: reduce) { .map-ship, .dune-sweep, .dune-hud .blip { animation: none; } }

    /* =========================================================
     Gallery / Life
     ========================================================= */
    .gallery {
      position: relative;
      padding: 4rem 0 5rem;
      background: var(--void);
    }

    .gallery-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .gallery-heading {
      margin-bottom: 1.25rem;
    }

    .gallery-intro {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 560px;
      margin-bottom: 2.5rem;
    }

    .gallery-tabs {
      display: flex;
      gap: 1px;
      background: var(--glass-border);
      border: 1px solid var(--glass-border);
      border-bottom: none;
      border-radius: 14px 14px 0 0;
      overflow: hidden;
    }

    .gallery-tab {
      flex: 1 1 0;
      padding: 0.95rem 0.85rem;
      background: var(--deep);
      border: none;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.25s ease, color 0.25s ease;
      white-space: nowrap;
    }

    .gallery-tab:hover:not(.is-active) {
      color: var(--text-secondary);
    }

    .gallery-tab.is-active {
      background: var(--surface);
      color: var(--blue-bright);
    }

    .gallery-tab:focus-visible {
      outline: 1px solid var(--blue-bright);
      outline-offset: -1px;
    }

    .gallery-grid {
      display: none;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--glass-border);
      border: 1px solid var(--glass-border);
      border-top: none;
      border-radius: 0 0 14px 14px;
      overflow: hidden;
    }

    .gallery-grid.is-active {
      display: grid;
    }

    .gallery-cell {
      aspect-ratio: 1 / 1;
      background: var(--surface);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 1rem;
      text-align: center;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      transition: background 0.25s ease;
    }

    .gallery-cell:hover {
      background: var(--raised);
    }

    /* SVG icon inside gallery cell */
    .gallery-cell-icon {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(180, 210, 240, 0.75);
      flex-shrink: 0;
      transition: color 0.25s ease;
    }

    .gallery-cell-icon svg {
      width: 32px;
      height: 32px;
    }

    .gallery-cell:hover .gallery-cell-icon {
      color: rgba(122, 179, 212, 1);
    }

    .gallery-cell-label {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      line-height: 1.45;
      text-align: center;
    }

    /* ── Flip-card (album-linked cells) ─────── */
    .gallery-cell {
      position: relative;
      overflow: hidden;
    }

    /* When gallery.js upgrades a cell both layers go inside the cell */
    .cell-icon-layer {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 1rem;
      z-index: 1;
      transition: opacity 0.8s ease;
    }

    .gallery-cell--album.slideshow-active .cell-icon-layer {
      opacity: 0;
      pointer-events: none;
    }

    .cell-photos-layer {
      position: absolute;
      inset: 0;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    .gallery-cell--album.slideshow-active .cell-photos-layer {
      opacity: 1;
    }

    .cell-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    .cell-photo.is-active {
      opacity: 1;
    }

    .cell-photos-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 0.4rem 0.6rem;
      background: linear-gradient(transparent, var(--caption-grad));
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 9px;
      color: rgba(180, 210, 240, 0.9);
      text-align: center;
      letter-spacing: 0.06em;
      z-index: 1;
    }

    .gallery-cell--album {
      cursor: default;
    }

    .gallery-cell--add {
      background: var(--deep);
      outline: 1px dashed var(--glass-border2);
      outline-offset: -10px;
      color: var(--text-muted);
    }

    .gallery-cell--add:hover {
      background: var(--surface);
    }

    /* ── Cell prev / next navigation arrows ─────────────────────── */
    .cell-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: var(--chrome-bg);
      border: none;
      color: var(--chrome-text);
      width: 26px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.2s ease, background 0.2s ease;
      padding: 0;
    }

    /* Show on hover over the active slideshow cell */
    .gallery-cell--album.slideshow-active:hover .cell-nav {
      opacity: 1;
    }

    .cell-nav:hover {
      background: var(--chrome-bg-2);
      color: var(--text-primary);
    }

    .cell-nav--prev {
      left: 0;
      border-radius: 0 5px 5px 0;
    }

    .cell-nav--next {
      right: 0;
      border-radius: 5px 0 0 5px;
    }

    /* Touch devices: always visible since there's no hover */
    @media (hover: none) {
      .gallery-cell--album.slideshow-active .cell-nav {
        opacity: 0.75;
      }
    }

    /* ── Dot progress indicators ─────────────────────────────────── */
    .cell-dots {
      position: absolute;
      bottom: 28px;
      /* sits just above the caption gradient */
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 5px;
      z-index: 2;
      pointer-events: none;
    }

    .cell-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(180, 210, 240, 0.28);
      transition: background 0.35s ease, transform 0.35s ease;
      flex-shrink: 0;
    }

    .cell-dot.is-active {
      background: rgba(74, 158, 255, 0.92);
      transform: scale(1.4);
    }

    /* =========================================================
     Builder Gallery — Option A (featured viewer + rail)
     ========================================================= */
    .bgallery {
      position: relative;
      padding: 4rem 0 6rem;
    }

    .bgallery-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .bgallery-heading {
      margin-bottom: 1.25rem;
    }

    .bgallery-intro {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 560px;
      margin-bottom: 2.5rem;
    }

    /* featured panel */
    .bgallery-feature {
      display: grid;
      grid-template-columns: 1fr 1.15fr;
      gap: 2.5rem;
      align-items: center;
      padding: 2.25rem 2.5rem;
      border-radius: 22px;
      background: var(--glass-2);
      border: 1px solid var(--glass-border);
      -webkit-backdrop-filter: blur(22px);
      backdrop-filter: blur(22px);
      min-height: 380px;
      opacity: 0;
      transform: translateY(16px);
      transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .bgallery-feature.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .bgallery-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.85rem;
    }

    .bgallery-copy[data-anim] {
      animation: bgaFade 0.5s ease;
    }

    .bgallery-livetag {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--cyan);
    }

    .bgallery-livedot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--cyan);
      position: relative;
    }

    .bgallery-livedot::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1.5px solid var(--cyan);
      opacity: 0.5;
      animation: bgaPing 2s ease-out infinite;
    }

    @keyframes bgaPing {
      0% {
        transform: scale(0.6);
        opacity: 0.55;
      }

      70%,
      100% {
        transform: scale(1.7);
        opacity: 0;
      }
    }

    .bgallery-feat-title {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
      font-size: clamp(1.8rem, 3.5vw, 2.75rem);
      line-height: 1.05;
      letter-spacing: -0.015em;
      color: var(--text-primary);
    }

    .bgallery-feat-tagline {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.02em;
      color: var(--blue-mid);
    }

    .bgallery-feat-desc {
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-secondary);
      max-width: 44ch;
    }

    .bgallery-feat-meta {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .bgallery-pages {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-muted);
    }

    /* badges & stack */
    .bg-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.15rem 0.55rem;
      border-radius: 100px;
      border: 1px solid;
      white-space: nowrap;
    }

    .bg-badge.built {
      color: var(--void);
      background: var(--blue-mid);
      border-color: var(--blue-mid);
    }

    .bg-badge.supervised {
      color: var(--gold-mid);
      background: rgba(200, 169, 110, 0.08);
      border-color: rgba(200, 169, 110, 0.35);
    }

    .bg-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
    }

    .bg-stack span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-secondary);
      background: var(--glass-1);
      border: 1px solid var(--glass-border);
      border-radius: 5px;
      padding: 0.15rem 0.5rem;
    }

    /* preview stage */
    .bgallery-stage {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      width: 100%;
    }

    .bgallery-stage-inner {
      width: 100%;
    }

    .bgallery-stage-inner[data-anim] {
      animation: bgaPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes bgaPop {
      from {
        transform: translateY(14px);
        opacity: 0;
      }

      to {
        transform: none;
        opacity: 1;
      }
    }

    @keyframes bgaFade {
      from {
        transform: translateY(8px);
        opacity: 0;
      }

      to {
        transform: none;
        opacity: 1;
      }
    }

    .bgallery-preview {
      position: relative;
      overflow: hidden;
      border-radius: 11px;
      width: 100%;
      aspect-ratio: 640 / 432;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      box-shadow: 0 16px 40px -20px rgba(20, 44, 96, 0.35);
    }

    .bgallery-preview--live {
      padding: 0;
      background: transparent;
      border: none;
      box-shadow: 0 16px 40px -20px rgba(20, 44, 96, 0.35);
    }

    .bgallery-preview--live #bg-react-mount {
      width: 100%;
      height: 100%;
      border-radius: 11px;
      overflow: hidden;
    }

    .bgallery-preview--live .mk-frame {
      width: 100%;
      height: 100%;
      aspect-ratio: auto;
      border-radius: 0;
    }

    .bgallery-preview--live .esim-mini {
      height: 100%;
      border-radius: 0;
    }

    .bgallery-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .bgallery-preview-chrome {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 26px;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 0 10px;
      background: var(--chrome-bg);
      border-bottom: 1px solid var(--glass-border);
      z-index: 1;
    }

    .bgallery-preview-chrome i {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--text-muted);
      opacity: 0.35;
    }

    .bgallery-preview-placeholder {
      position: absolute;
      inset: 0;
      top: 26px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      background: repeating-linear-gradient(135deg, rgba(42, 127, 212, 0.05) 0 8px, transparent 8px 16px);
    }

    .bgallery-preview-placeholder span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      letter-spacing: 0.14em;
      color: var(--blue-mid);
      text-transform: uppercase;
      font-weight: 500;
    }

    .bgallery-preview-placeholder::after {
      content: 'prototype · awaiting screenshot';
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-muted);
      letter-spacing: 0.08em;
    }

    /* rail */
    .bgallery-rail-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin: 2.5rem 0 1rem;
    }

    .bgallery-rail-head h3 {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 400;
    }

    .bgallery-rail-hint {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .bgallery-rail {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
      gap: 0.85rem;
    }

    .bgallery-chip {
      text-align: left;
      cursor: pointer;
      border-radius: 14px;
      padding: 0.75rem 0.8rem 0.85rem;
      background: var(--glass-2);
      border: 1px solid var(--glass-border);
      color: var(--text-primary);
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      position: relative;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
      font-family: 'Space Grotesk', sans-serif;
    }

    .bgallery-chip:hover {
      transform: translateY(-3px);
      border-color: var(--glass-border2);
    }

    .bgallery-chip.on {
      border-color: var(--blue-mid);
      background: var(--glass-3);
      box-shadow: 0 12px 30px -18px rgba(42, 127, 212, 0.4);
    }

    .bgallery-chip-thumb {
      height: 56px;
      border-radius: 8px;
      border: 1px solid var(--glass-border);
      overflow: hidden;
      position: relative;
      background: var(--surface);
    }

    .bgallery-chip-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .bgallery-chip-thumb-bar {
      height: 12px;
      display: flex;
      align-items: center;
      gap: 3px;
      padding: 0 6px;
      background: var(--chrome-bg);
      border-bottom: 1px solid var(--glass-border);
    }

    .bgallery-chip-thumb-bar i {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--text-muted);
      opacity: 0.3;
    }

    .bgallery-chip.on .bgallery-chip-thumb {
      border-color: rgba(42, 127, 212, 0.3);
    }

    .bgallery-chip-thumb-fill {
      position: absolute;
      inset: 0;
      top: 12px;
      display: grid;
      place-items: center;
      background: repeating-linear-gradient(135deg, rgba(42, 127, 212, 0.06) 0 5px, transparent 5px 10px);
    }

    .bgallery-chip.on .bgallery-chip-thumb-fill {
      background: repeating-linear-gradient(135deg, rgba(42, 127, 212, 0.12) 0 5px, transparent 5px 10px);
    }

    .bgallery-chip-thumb-fill span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .bgallery-chip-name {
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }

    .bgallery-chip-foot {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .bgallery-chip-kind {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .bgallery-chip-kind.built {
      color: var(--blue-mid);
    }

    .bgallery-chip-kind.supervised {
      color: var(--gold-mid);
    }

    /* progress bar on active chip */
    .bgallery-prog {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 2px;
      width: 100%;
      background: transparent;
    }

    .bgallery-prog i {
      display: block;
      height: 100%;
      width: 0;
      background: var(--blue-mid);
      border-radius: 0 2px 2px 0;
    }

    .bgallery-chip.on .bgallery-prog i {
      animation: bgaProg 13s linear forwards;
    }

    .bgallery-chip.on.paused .bgallery-prog i {
      animation-play-state: paused;
    }

    @keyframes bgaProg {
      from {
        width: 0;
      }

      to {
        width: 100%;
      }
    }

    /* =========================================================
     Contact
     ========================================================= */
    .contact {
      position: relative;
      padding: 4rem 0 5rem;
      background: var(--void);
    }

    .contact-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .contact-heading {
      margin-bottom: 2.5rem;
    }

    .contact-orb {
      border-radius: 32px;
      padding: 3.5rem 2.5rem;
      text-align: center;
      background:
        radial-gradient(ellipse at 25% 35%, rgba(20, 80, 220, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 78% 70%, rgba(100, 180, 255, 0.07) 0%, transparent 50%),
        var(--glass-2);
      border: 1px solid var(--glass-border2);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      backdrop-filter: blur(24px) saturate(1.4);
    }

    .contact-body {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      line-height: 1.75;
      color: var(--text-secondary);
      max-width: 460px;
      margin: 0 auto 2.25rem;
    }

    .contact-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: center;
    }

    /* =========================================================
     Footer
     ========================================================= */
    .site-footer {
      border-top: 1px solid var(--glass-border);
      padding: 2rem 0;
      background: var(--void);
    }

    .site-footer-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.12em;
    }

    /* =========================================================
     Responsive
     ========================================================= */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .nav-burger {
        display: inline-flex;
      }
    }

    @media (max-width: 960px) {
      .bgallery-feature {
        grid-template-columns: 1fr;
        gap: 1.75rem;
      }

      .bgallery-stage {
        order: -1;
        min-height: auto;
      }
    }

    @media (max-width: 720px) {
      .hero {
        padding-bottom: 12vh;
      }

      .hero-body {
        font-size: 1rem;
      }

      .hero-actions .btn-primary,
      .hero-actions .btn-ghost {
        flex: 0 0 auto;
      }

      .story {
        padding: 5rem 0 4.5rem;
      }

      .timeline {
        padding-left: 44px;
      }

      .tl-node {
        left: -40px;
      }

      .story-quote {
        font-size: 1.1rem;
        padding-left: 1.1rem;
      }

      .vision {
        padding: 4.5rem 0;
      }

      .vision-grid {
        grid-template-columns: 1fr;
      }

      .bgallery {
        padding: 3rem 0 4.5rem;
      }

      .bgallery-feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        border-radius: 16px;
        min-height: auto;
      }

      .bgallery-stage {
        order: -1;
        min-height: auto;
      }

      .bgallery-feat-title {
        font-size: 1.6rem;
      }

      .bgallery-rail {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
      }

      .syla {
        padding: 3rem 0 5rem;
      }

      .syla-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 22px;
      }

      .syla-watermark {
        font-size: 6rem;
        right: -1rem;
      }

      .j-card {
        grid-template-columns: 64px 1fr;
        gap: 1.1rem;
        padding: 1.4rem 0.5rem;
      }

      .j-day {
        font-size: 1.6rem;
      }

      .j-date {
        padding-right: 1rem;
      }

      .j-title {
        font-size: 1.15rem;
      }

      .world {
        padding: 3rem 0 4.5rem;
      }
      .map-style-picker { flex-wrap: wrap; }
      .aoe-compass { width: 52px; height: 52px; }
      .aoe-compass .star.n { border-bottom-width: 20px; border-left-width: 4px; border-right-width: 4px; }
      .aoe-compass .star.s { border-top-width: 20px; border-left-width: 4px; border-right-width: 4px; }
      .aoe-compass .star.e { border-left-width: 20px; border-top-width: 4px; border-bottom-width: 4px; }
      .aoe-compass .star.w { border-right-width: 20px; border-top-width: 4px; border-bottom-width: 4px; }
      .dune-panel { width: 180px; padding: 10px 12px; }
      .dune-panel .row { font-size: 9px; }

      .gallery-tab {
        font-size: 10px;
        padding: 0.8rem 0.5rem;
        letter-spacing: 0.08em;
      }

      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .contact-orb {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
      }

      .site-footer-inner {
        flex-direction: column;
        gap: 0.6rem;
      }
    }

    @media (max-width: 480px) {
      .nav-wordmark {
        display: none;
      }

      .hero-actions {
        flex-direction: column;
        align-items: flex-start;
      }

      .hero-coords {
        margin-left: 0;
      }

      .bgallery {
        padding: 2rem 0 3rem;
      }

      .bgallery-inner {
        padding: 0 1rem;
      }

      .bgallery-intro {
        font-size: 0.82rem;
        margin-bottom: 1.5rem;
      }

      .bgallery-feature {
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
      }

      .bgallery-feat-title {
        font-size: 1.3rem;
      }

      .bgallery-feat-desc {
        font-size: 0.82rem;
      }

      .bgallery-feat-meta {
        gap: 0.5rem;
      }

      .bgallery-pages {
        font-size: 10px;
      }

      .bgallery-rail {
        grid-template-columns: 1fr;
      }

      .bgallery-rail-head {
        margin: 1.5rem 0 0.75rem;
      }

      .bgallery-chip {
        padding: 0.5rem 0.6rem 0.6rem;
        border-radius: 10px;
      }

      .bgallery-chip-thumb {
        height: 40px;
      }

      .bgallery-chip-name {
        font-size: 0.78rem;
      }
    }

    /* Reduced motion — keep opacity fades, drop transforms */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
      }

      .blob {
        opacity: 1 !important;
      }

      .anim,
      .hero-lockup,
      .hero-eyebrow,
      .hero-name-1,
      .hero-name-2,
      .hero-body,
      .hero-actions,
      .hero-coords {
        opacity: 1 !important;
        transform: none !important;
      }

      .arc-card {
        opacity: 1 !important;
        transform: translateY(-50%) !important;
      }

      .story-skills .tag {
        opacity: 1 !important;
        transform: none !important;
      }

      .vision-grid .pod {
        opacity: 1 !important;
        transform: none !important;
      }

      .syla-card {
        opacity: 1 !important;
        transform: none !important;
      }

      .bgallery-feature {
        opacity: 1 !important;
        transform: none !important;
      }

      .bgallery-copy[data-anim],
      .bgallery-stage-inner[data-anim] {
        animation: none !important;
      }

      .bgallery-chip.on .bgallery-prog i {
        animation: none !important;
        width: 100%;
      }

      .live-dot {
        animation: none !important;
      }

      .j-card {
        opacity: 1 !important;
        transform: none !important;
      }
    }

    /* ── Glass-letters integration ──────────────────────────────
     Sections are transparent so the fixed bg layer shows through.
     z-index: 1 ensures they paint above z-index: 0 (#glass-letters-bg).
  ─────────────────────────────────────────────────────────── */
    .hero,
    .story,
    .bgallery,
    .vision,
    .syla,
    .journal,
    .world,
    .gallery,
    .contact {
      background: transparent;
      z-index: 1;
    }

    .site-footer {
      background: var(--footer-bg);
      z-index: 1;
    }

    /* ── Theme toggle button ──────────────────────────────────────── */
    .theme-toggle {
      background: var(--glass-1);
      border: 1px solid var(--glass-border);
      border-radius: 30px;
      padding: 0.5rem 0.6rem;
      cursor: pointer;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }

    .theme-toggle:hover {
      background: var(--glass-2);
      border-color: var(--glass-border2);
      color: var(--blue-bright);
    }

    .theme-icon {
      display: none;
    }

    [data-theme="dark"] .theme-icon--sun,
    html:not([data-theme]) .theme-icon--sun {
      display: block;
    }

    [data-theme="light"] .theme-icon--moon {
      display: block;
    }

    /* ── Light mode: timeline SVG node background ─────────────────── */
    [data-theme="light"] .arc-svg-node {
      fill: var(--deep);
    }

    [data-theme="light"] #tl-dropL,
    [data-theme="light"] #tl-dropR {
      fill: var(--gold-bright);
    }

    /* ── Content-loading guard — hides page until Firebase hydrates ── */
    body.content-loading {
      visibility: hidden;
    }
