:root {
        --ink: #0a0d12;
        --panel: #12161f;
        --panel-2: #161b25;
        --line: #232a38;
        --paper: #ece8de;
        --slate: #8992a3;
        --cyan: #5fd0de;
        --gold: #c7a15a;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        background: var(--ink);
        color: var(--paper);
        font-family: "Inter", sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      .mono {
        font-family: "IBM Plex Mono", monospace;
        letter-spacing: 0.08em;
      }

      ::selection {
        background: var(--cyan);
        color: var(--ink);
      }

      :focus-visible {
        outline: 2px solid var(--cyan);
        outline-offset: 3px;
      }

      /* background texture: faint grid, like an instrument panel */
      .grid-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        background-image:
          linear-gradient(
            to right,
            rgba(95, 208, 222, 0.035) 1px,
            transparent 1px
          ),
          linear-gradient(
            to bottom,
            rgba(95, 208, 222, 0.035) 1px,
            transparent 1px
          );
        background-size: 64px 64px;
        pointer-events: none;
      }

      .glow {
        position: fixed;
        top: -20%;
        left: 50%;
        transform: translateX(-50%);
        width: 900px;
        height: 900px;
        background: radial-gradient(
          circle,
          rgba(95, 208, 222, 0.09) 0%,
          rgba(199, 161, 90, 0.04) 40%,
          transparent 70%
        );
        z-index: 0;
        pointer-events: none;
      }

      /* ===== NAV ===== */
      nav {
        position: relative;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 32px 6vw;
        max-width: 1400px;
        margin: 0 auto;
      }

      .nav-mark {
        font-family: "Fraunces", serif;
        font-size: 1.05rem;
        font-weight: 500;
        letter-spacing: 0.04em;
      }

      .nav-links {
        display: flex;
        gap: 40px;
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--slate);
      }

      .nav-links a {
        transition: color 0.25s ease;
        border-bottom: 1px solid transparent;
        padding-bottom: 2px;
      }

      .nav-links a:hover {
        color: var(--cyan);
        border-bottom-color: var(--cyan);
      }

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

      /* ===== HERO ===== */
      .hero {
        position: relative;
        z-index: 2;
        max-width: 1400px;
        margin: 0 auto;
        padding: 6vh 6vw 8vh;
      }

      .eyebrow {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.72rem;
        color: var(--slate);
        text-transform: uppercase;
        margin-bottom: 36px;
      }

      .eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
        animation: pulse 2.4s ease-in-out infinite;
      }

      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.35;
        }
      }

      .hero h1 {
        font-family: "Fraunces", serif;
        font-weight: 400;
        font-size: clamp(3.2rem, 8vw, 6.4rem);
        line-height: 0.98;
        letter-spacing: -0.01em;
        max-width: 14ch;
      }

      .hero h1 em {
        font-style: italic;
        font-weight: 300;
        color: var(--cyan);
      }

      .hero-sub {
        margin-top: 32px;
        max-width: 46ch;
        font-size: 1.15rem;
        color: var(--slate);
        font-weight: 400;
      }

      .hero-actions {
        margin-top: 44px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 26px;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-radius: 2px;
        transition: all 0.25s ease;
      }

      .btn-primary {
        background: var(--paper);
        color: var(--ink);
      }
      .btn-primary:hover {
        background: var(--cyan);
      }

      .btn-secondary {
        border: 1px solid var(--line);
        color: var(--paper);
      }
      .btn-secondary:hover {
        border-color: var(--gold);
        color: var(--gold);
      }

      /* readout strip */
      .readout {
        margin-top: 80px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 20px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
      }
      .readout-item {
        flex: 1;
        min-width: 160px;
        padding: 0 28px;
        border-left: 1px solid var(--line);
      }
      .readout-item:first-child {
        border-left: none;
        padding-left: 0;
      }
      .readout-label {
        font-size: 0.68rem;
        color: var(--slate);
        text-transform: uppercase;
        margin-bottom: 8px;
      }
      .readout-value {
        font-family: "IBM Plex Mono", monospace;
        font-size: 1.05rem;
        color: var(--paper);
      }
      .readout-value.accent {
        color: var(--cyan);
      }

      /* ===== LINEAGE (signature) ===== */
      .lineage {
        position: relative;
        z-index: 2;
        max-width: 1400px;
        margin: 0 auto;
        padding: 14vh 6vw 12vh;
      }

      .section-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--slate);
        margin-bottom: 14px;
      }

      .section-title {
        font-family: "Fraunces", serif;
        font-weight: 400;
        font-size: clamp(1.8rem, 3.4vw, 2.6rem);
        max-width: 20ch;
        margin-bottom: 80px;
      }

      .schematic {
        display: flex;
        align-items: stretch;
        gap: 0;
        position: relative;
      }

      .schematic svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: visible;
      }

      .schematic-path {
        stroke: var(--line);
        stroke-width: 1;
        fill: none;
      }

      .schematic-path.live {
        stroke: var(--cyan);
        stroke-dasharray: 6 340;
        stroke-dashoffset: 0;
        opacity: 0;
      }

      .schematic-path.live.animate {
        animation: travel 3.2s ease-in-out infinite;
        opacity: 1;
      }

      @keyframes travel {
        0% {
          stroke-dashoffset: 340;
          opacity: 0.9;
        }
        90% {
          opacity: 0.9;
        }
        100% {
          stroke-dashoffset: -6;
          opacity: 0;
        }
      }

      .lineage-row {
        display: flex;
        align-items: center;
        gap: 0;
        position: relative;
        z-index: 1;
      }

      .node {
        flex: 1;
        background: var(--panel);
        border: 1px solid var(--line);
        padding: 34px 28px;
        opacity: 0;
        transform: translateY(18px);
        transition:
          opacity 0.7s ease,
          transform 0.7s ease;
      }

      .node.visible {
        opacity: 1;
        transform: translateY(0);
      }
      .node:nth-child(1).visible {
        transition-delay: 0s;
      }
      .node:nth-child(3).visible {
        transition-delay: 0.25s;
      }
      .node:nth-child(5).visible {
        transition-delay: 0.5s;
      }

      .node-tier {
        font-size: 0.66rem;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: 18px;
      }
      .node.mid .node-tier {
        color: var(--cyan);
      }

      .node-name {
        font-family: "Fraunces", serif;
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 12px;
      }

      .node-role {
        font-size: 0.78rem;
        color: var(--slate);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 16px;
      }

      .node-desc {
        font-size: 0.92rem;
        color: #b6bac4;
        max-width: 32ch;
      }

      .connector {
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--slate);
        font-family: "IBM Plex Mono", monospace;
        font-size: 1.1rem;
        flex-shrink: 0;
      }

      @media (max-width: 900px) {
        .lineage-row {
          flex-direction: column;
        }
        .connector {
          width: 100%;
          height: 40px;
          transform: rotate(90deg);
        }
        .node {
          width: 100%;
        }
      }

      /* ===== PORTALS ===== */
      .portals {
        position: relative;
        z-index: 2;
        max-width: 1400px;
        margin: 0 auto;
        padding: 4vh 6vw 16vh;
      }

      .portal-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: var(--line);
        border: 1px solid var(--line);
      }

      @media (max-width: 900px) {
        .portal-grid {
          grid-template-columns: 1fr;
        }
      }

      .portal {
        background: var(--ink);
        padding: 44px 36px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 260px;
        transition: background 0.3s ease;
        position: relative;
      }

      .portal:hover {
        background: var(--panel-2);
      }

      .portal-index {
        font-family: "IBM Plex Mono", monospace;
        font-size: 0.72rem;
        color: var(--slate);
      }

      .portal-body h3 {
        font-family: "Fraunces", serif;
        font-weight: 500;
        font-size: 1.5rem;
        margin: 20px 0 10px;
      }

      .portal-body p {
        font-size: 0.92rem;
        color: var(--slate);
        max-width: 34ch;
      }

      .portal-arrow {
        margin-top: 24px;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--paper);
      }

      .portal-arrow span {
        transition: transform 0.25s ease;
        display: inline-block;
      }
      .portal:hover .portal-arrow span {
        transform: translateX(6px);
      }

      .portal.featured .portal-arrow {
        color: var(--cyan);
      }

      /* ===== FOOTER ===== */
      footer {
        position: relative;
        z-index: 2;
        border-top: 1px solid var(--line);
        padding: 60px 6vw 40px;
        max-width: 1400px;
        margin: 0 auto;
      }

      .foot-grid {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 40px;
        margin-bottom: 50px;
      }

      .foot-brand {
        font-family: "Fraunces", serif;
        font-size: 1.2rem;
      }

      .foot-slogan {
        font-size: 0.85rem;
        color: var(--slate);
        margin-top: 10px;
        max-width: 34ch;
      }

      .foot-col-title {
        font-size: 0.68rem;
        text-transform: uppercase;
        color: var(--slate);
        margin-bottom: 14px;
      }

      .foot-col a {
        display: block;
        font-size: 0.88rem;
        color: var(--paper);
        margin-bottom: 10px;
        transition: color 0.2s ease;
      }
      .foot-col a:hover {
        color: var(--cyan);
      }

      .foot-bottom {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 24px;
        border-top: 1px solid var(--line);
        font-size: 0.72rem;
        color: var(--slate);
        text-transform: uppercase;
      }

      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
        }
      }
