:root {
      --bg: #080b12;
      --bg-2: #0d111b;
      --panel: rgba(15, 20, 31, .72);
      --panel-strong: rgba(15, 20, 31, .94);
      --text: #f4f7fb;
      --muted: #9aa6b7;
      --faint: #6f7b8d;
      --line: rgba(157, 180, 215, .16);
      --line-strong: rgba(157, 180, 215, .28);
      --cyan: #73d8ff;
      --blue: #8ea7ff;
      --violet: #b69cff;
      --green: #7de2c4;
      --shadow: 0 20px 80px rgba(0,0,0,.35);
      --radius: 22px;
      --max: 1440px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 72% 14%, rgba(91,117,255,.10), transparent 26rem),
        radial-gradient(circle at 18% 32%, rgba(68,210,255,.06), transparent 22rem),
        linear-gradient(180deg, #070a10 0%, #0a0e16 58%, #070a10 100%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 20;
      opacity: .18;
      background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, black, transparent 72%);
    }

    a { color: inherit; text-decoration: none; }
    button, a { -webkit-tap-highlight-color: transparent; }

    .shell {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
    }

    .topbar {
      height: 84px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 30;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      letter-spacing: .14em;
      text-transform: uppercase;
      font-weight: 720;
    }

    .brand-mark {
      width: 26px;
      height: 26px;
      position: relative;
      border: 1px solid rgba(127, 214, 255, .46);
      transform: rotate(45deg);
      box-shadow: inset 0 0 20px rgba(115,216,255,.12), 0 0 28px rgba(115,216,255,.10);
    }

    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 6px;
      border: 1px solid rgba(182,156,255,.48);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-link,
    .nav-button {
      border: 1px solid var(--line);
      background: rgba(255,255,255,.025);
      color: var(--muted);
      border-radius: 999px;
      padding: 10px 14px;
      font: inherit;
      font-size: 12px;
      cursor: pointer;
      transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
    }

    .nav-link:hover,
    .nav-button:hover {
      color: var(--text);
      border-color: rgba(115,216,255,.38);
      background: rgba(115,216,255,.06);
      transform: translateY(-1px);
    }

    .hero {
      min-height: calc(100vh - 84px);
      display: grid;
      grid-template-columns: minmax(340px, .78fr) minmax(620px, 1.35fr);
      gap: 34px;
      align-items: center;
      padding: 36px 0 72px;
    }

    .hero-copy {
      position: relative;
      z-index: 8;
      padding-bottom: 38px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--cyan);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 22px;
    }

    .eyebrow::before {
      content: "";
      width: 24px;
      height: 1px;
      background: linear-gradient(90deg, var(--cyan), transparent);
    }

    h1 {
      font-size: clamp(48px, 5vw, 78px);
      line-height: .98;
      letter-spacing: -.055em;
      margin: 0;
      max-width: 760px;
      font-weight: 690;
    }

    h1 .ghost {
      color: rgba(244,247,251,.42);
      font-weight: 560;
    }

    .lede {
      margin: 30px 0 0;
      max-width: 650px;
      font-size: clamp(16px, 1.45vw, 20px);
      line-height: 1.58;
      color: #bcc6d5;
    }

    .signal-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 30px;
    }

    .signal {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-left: 1px solid rgba(142,167,255,.32);
      background: linear-gradient(90deg, rgba(142,167,255,.07), transparent);
      color: #9eabba;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 10px;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .signal b { color: #dce5ef; font-weight: 650; }

    .stage {
      position: relative;
      height: min(76vh, 760px);
      min-height: 600px;
      border: 1px solid rgba(151,177,213,.12);
      background:
        radial-gradient(circle at center, rgba(50,70,110,.12), transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,.016), rgba(255,255,255,.005));
      border-radius: 28px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.025), var(--shadow);
      overflow: hidden;
      isolation: isolate;
    }

    .stage::before {
      content: "LIVING SYSTEM / INTERACTIVE";
      position: absolute;
      top: 18px;
      left: 20px;
      z-index: 5;
      color: rgba(184,198,217,.52);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 9px;
      letter-spacing: .14em;
    }

    .stage::after {
      content: "follow the signal · select a node";
      position: absolute;
      bottom: 18px;
      right: 20px;
      z-index: 5;
      color: rgba(184,198,217,.35);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 9px;
      letter-spacing: .08em;
    }

    #atlas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 1;
    }

    .node-layer {
      position: absolute;
      inset: 0;
      z-index: 6;
      pointer-events: none;
    }

    .node-label {
      position: absolute;
      transform: translate(-50%, -50%);
      min-width: 126px;
      padding: 10px 12px;
      border: 1px solid rgba(151,177,213,.16);
      background: rgba(8,12,19,.68);
      backdrop-filter: blur(10px);
      color: #dce4ee;
      text-align: left;
      cursor: pointer;
      pointer-events: auto;
      transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
      clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    }

    .node-label:hover,
    .node-label.active {
      transform: translate(-50%, -50%) translateY(-2px);
      color: white;
      border-color: rgba(115,216,255,.46);
      background: rgba(11,17,28,.88);
    }

    .node-label small {
      display: block;
      margin-bottom: 4px;
      color: rgba(115,216,255,.60);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .12em;
    }

    .node-label span {
      display: block;
      font-size: 12px;
      font-weight: 630;
      letter-spacing: -.01em;
    }

    .core-label {
      min-width: 150px;
      text-align: center;
      border-color: rgba(182,156,255,.28);
      background: rgba(12,15,25,.78);
    }

    .core-label small { color: rgba(182,156,255,.74); }

    .stage-metrics {
      position: absolute;
      left: 18px;
      bottom: 16px;
      z-index: 8;
      display: flex;
      gap: 8px;
      pointer-events: none;
    }

    .metric {
      border: 1px solid rgba(151,177,213,.12);
      background: rgba(6,9,15,.56);
      padding: 7px 9px;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .08em;
      color: rgba(189,202,219,.48);
      text-transform: uppercase;
    }

    .metric b { color: rgba(228,236,246,.88); font-weight: 600; }

    .detail-panel {
      position: absolute;
      z-index: 12;
      right: 18px;
      top: 52px;
      width: min(390px, calc(100% - 36px));
      max-height: calc(100% - 100px);
      overflow: auto;
      padding: 20px;
      background: rgba(9,13,21,.90);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(151,177,213,.17);
      box-shadow: 0 22px 70px rgba(0,0,0,.4);
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
      opacity: 0;
      transform: translateX(16px);
      pointer-events: none;
      transition: opacity .22s ease, transform .22s ease;
    }

    .detail-panel.open {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }

    .detail-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
    }

    .detail-index {
      color: var(--cyan);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 10px;
      letter-spacing: .12em;
      margin-bottom: 10px;
    }

    .detail-panel h2 {
      margin: 0;
      font-size: 27px;
      letter-spacing: -.04em;
      font-weight: 650;
    }

    .detail-panel p {
      margin: 14px 0 0;
      color: #aebaca;
      line-height: 1.55;
      font-size: 14px;
    }

    .close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid var(--line);
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font-size: 18px;
    }

    .tech-list {
      margin: 18px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px;
    }

    .tech-list li {
      padding: 10px 10px 10px 14px;
      border-left: 1px solid rgba(115,216,255,.25);
      background: linear-gradient(90deg, rgba(115,216,255,.055), transparent 86%);
      color: #c8d2df;
      font-size: 12px;
      line-height: 1.45;
    }

    .footer {
      padding: 36px 0 46px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      color: #758195;
      font-size: 11px;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .resume-modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(3,5,9,.78);
      backdrop-filter: blur(16px);
      display: grid;
      place-items: center;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease;
    }

    .resume-modal.open { opacity: 1; pointer-events: auto; }

    .resume-window {
      width: min(1040px, 100%);
      height: min(88vh, 920px);
      background: #0c1018;
      border: 1px solid rgba(151,177,213,.2);
      box-shadow: 0 40px 100px rgba(0,0,0,.55);
      display: grid;
      grid-template-rows: 52px 1fr;
      clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    }

    .resume-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14px 0 18px;
      border-bottom: 1px solid var(--line);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      color: #9eabba;
      font-size: 10px;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .resume-actions { display: flex; gap: 8px; align-items: center; }
    .resume-actions a,
    .resume-actions button {
      border: 1px solid var(--line);
      background: transparent;
      color: #b6c2d2;
      padding: 7px 9px;
      cursor: pointer;
      font: inherit;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .resume-frame-wrap {
      position: relative;
      min-height: 0;
      background: #121722;
    }

    .resume-frame {
      width: 100%;
      height: 100%;
      border: 0;
      background: white;
    }

    .resume-fallback {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: #8f9bad;
      text-align: center;
      padding: 30px;
      pointer-events: none;
      z-index: -1;
    }

    .no-webgl {
      display: none;
      position: absolute;
      inset: 0;
      z-index: 2;
      place-items: center;
      color: rgba(205,215,228,.58);
      text-align: center;
      padding: 40px;
      font-size: 13px;
    }

    @media (max-width: 1100px) {
      .hero {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 56px;
      }
      .hero-copy { max-width: 820px; padding-bottom: 0; }
      .stage { height: 720px; }
    }

    @media (max-width: 700px) {
      .shell { width: min(100% - 28px, var(--max)); }
      .topbar { height: 70px; }
      .brand span:last-child { display: none; }
      .nav-link { display: none; }
      .hero { padding: 30px 0 50px; min-height: auto; }
      h1 { font-size: clamp(42px, 14vw, 64px); }
      .lede { font-size: 16px; }
      .stage { min-height: 600px; height: 72vh; border-radius: 20px; }
      .node-label { min-width: 100px; padding: 8px 9px; }
      .node-label span { font-size: 10px; }
      .node-label small { font-size: 7px; }
      .detail-panel { inset: 48px 12px auto 12px; width: auto; max-height: calc(100% - 80px); }
      .stage-metrics { display: none; }
      .footer { flex-direction: column; align-items: flex-start; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    }
  
    /* Minimal at-a-glance refinement */
    .hero {
      min-height: calc(100vh - 84px);
      padding: 28px 0 34px;
      align-items: center;
    }
    .hero-copy { padding-bottom: 0; align-self: center; }
    .lede { max-width: 610px; margin-top: 26px; }
    .stage {
      height: min(72vh, 690px);
      min-height: 570px;
      background:
        radial-gradient(circle at 50% 46%, rgba(70,93,150,.10), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.004));
    }
    .glance-strip {
      position: relative;
      z-index: 5;
      display: grid;
      grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.5fr);
      grid-template-areas:
        "summary axis"
        "tech tech";
      column-gap: 22px;
      row-gap: 12px;
      align-items: center;
      margin-top: -2px;
      padding: 20px 0 30px;
      border-top: 1px solid rgba(151,177,213,.11);
    }
    .glance-portrait {
      grid-area: portrait;
      width: 78px;
      height: 92px;
      position: relative;
      display: grid;
      place-items: center;
      border: 1px solid rgba(151,177,213,.15);
      background:
        radial-gradient(circle at 35% 24%, rgba(115,216,255,.08), transparent 44%),
        rgba(255,255,255,.012);
      clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
      overflow: hidden;
    }
    .glance-portrait::after {
      content: "";
      position: absolute;
      inset: 10px;
      border: 1px solid rgba(182,156,255,.10);
      pointer-events: none;
    }
    .glance-portrait-inner {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid rgba(115,216,255,.28);
      color: rgba(235,241,248,.86);
      font-size: 14px;
      font-weight: 680;
      letter-spacing: -.03em;
      background: rgba(7,12,19,.52);
    }
    .glance-portrait span {
      position: absolute;
      bottom: 7px;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 7px;
      letter-spacing: .11em;
      text-transform: uppercase;
      color: rgba(176,190,208,.38);
    }
    .glance-summary { grid-area: summary; min-width: 0; }
    .glance-kicker {
      margin-bottom: 7px;
      color: rgba(115,216,255,.64);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .13em;
      text-transform: uppercase;
    }
    .glance-summary p {
      margin: 0;
      max-width: 40ch;
      color: #cbd5e2;
      font-size: 13px;
      line-height: 1.48;
    }
    .glance-axis {
      grid-area: axis;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      align-items: start;
    }
    .glance-axis span {
      position: relative;
      min-width: 0;
      padding-left: 12px;
      color: #8f9cad;
      font-size: 11px;
      line-height: 1.45;
    }
    .glance-axis span::before {
      content: "";
      position: absolute;
      left: 0;
      top: .42em;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(115,216,255,.62);
      box-shadow: 0 0 12px rgba(115,216,255,.20);
    }
    .glance-axis b {
      display: block;
      margin-bottom: 3px;
      color: #d8e2ed;
      font-weight: 620;
      font-size: 11px;
    }
    .glance-tech {
      grid-area: tech;
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      padding-top: 10px;
      border-top: 1px solid rgba(151,177,213,.08);
    }
    .glance-tech span {
      position: relative;
      color: rgba(165,180,198,.66);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .glance-tech span:not(:last-child)::after {
      content: "·";
      position: absolute;
      right: -11px;
      color: rgba(115,216,255,.34);
    }
    .footer {
      margin-top: 0;
      padding-top: 24px;
      padding-bottom: 34px;
      border-top-color: rgba(151,177,213,.08);
    }
    .node-label { background: rgba(8,12,19,.58); }
    .node-label:hover, .node-label.active { background: rgba(10,16,26,.80); }
    @media (max-width: 1100px) {
      .hero { min-height: auto; padding-bottom: 26px; }
      .stage { height: 650px; }
      .glance-strip {
        grid-template-columns: 1fr;
        grid-template-areas:
          "summary"
          "axis"
          "tech";
        row-gap: 14px;
      }
    }
    @media (max-width: 700px) {
      .hero { padding-top: 20px; }
      .stage { min-height: 560px; height: 68vh; }
      .glance-strip {
        grid-template-columns: 1fr;
        grid-template-areas:
          "summary"
          "axis"
          "tech";
        column-gap: 14px;
        padding-top: 18px;
      }
      .glance-portrait { width: 60px; height: 74px; }
      .glance-portrait-inner { width: 38px; height: 38px; font-size: 12px; }
      .glance-axis { grid-template-columns: 1fr; gap: 10px; padding-top: 4px; }
      .glance-tech { gap: 6px 14px; }
    }

  

    /* --- Guided journey through the systems atlas --- */
    .stage.journey-mode::before {
      content: "LIVING SYSTEM / JOURNEY";
    }

    .stage.journey-mode::after {
      content: "trace the system · jump when curiosity wins";
      opacity: .58;
    }

    .stage.journey-mode .stage-metrics {
      opacity: .18;
      transition: opacity .25s ease;
    }

    .stage.journey-mode .node-label {
      opacity: .08;
      pointer-events: none;
      transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
    }

    .stage.journey-mode .node-label.active {
      opacity: .52;
      transform: translate(-50%, -50%) scale(.98);
      border-color: rgba(115,216,255,.22);
      background: rgba(7,11,18,.44);
    }

    .stage.journey-mode .core-label { opacity: .05; }

    .journey-hint {
      position: absolute;
      z-index: 9;
      left: 50%;
      bottom: 52px;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: rgba(181,195,213,.42);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .11em;
      text-transform: uppercase;
      pointer-events: none;
      transition: opacity .22s ease;
      white-space: nowrap;
    }

    .journey-hint::before {
      content: "";
      width: 18px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(115,216,255,.58));
    }

    .stage.journey-mode .journey-hint { opacity: 0; }

    .journey-layer {
      position: absolute;
      inset: 0;
      z-index: 12;
      display: grid;
      grid-template-rows: auto 1fr auto;
      padding: 18px 22px 18px;
      opacity: 0;
      pointer-events: none;
      transform: scale(.992);
      transition: opacity .30s ease, transform .30s ease;
      background:
        linear-gradient(90deg, rgba(6,9,15,.93) 0%, rgba(6,9,15,.78) 34%, rgba(6,9,15,.18) 62%, rgba(6,9,15,.03) 100%),
        linear-gradient(180deg, rgba(6,9,15,.08), transparent 45%, rgba(6,9,15,.35));
    }

    .journey-layer.open {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }

    .journey-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-width: 0;
    }

    .journey-back {
      border: 0;
      background: transparent;
      color: rgba(190,203,219,.62);
      padding: 8px 0;
      font: inherit;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: .10em;
      cursor: pointer;
    }

    .journey-back:hover { color: white; }

    .journey-counter {
      color: rgba(190,203,219,.38);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .12em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .journey-copy {
      align-self: center;
      width: min(49%, 430px);
      min-width: 0;
      padding: 24px 0 20px;
    }

    .journey-kicker {
      margin-bottom: 12px;
      color: rgba(115,216,255,.72);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 9px;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .journey-title {
      margin: 0;
      font-size: clamp(33px, 4.2vw, 55px);
      line-height: .98;
      letter-spacing: -.048em;
      font-weight: 640;
    }

    .journey-body {
      margin: 16px 0 0;
      max-width: 43ch;
      color: rgba(199,210,224,.78);
      font-size: 13px;
      line-height: 1.6;
    }

    .journey-evidence {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 12px;
      margin-top: 20px;
      max-width: 420px;
    }

    .journey-evidence span {
      position: relative;
      padding-left: 10px;
      color: rgba(164,179,198,.56);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .journey-evidence span::before {
      content: "";
      position: absolute;
      left: 0;
      top: .45em;
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: rgba(115,216,255,.52);
    }

    .journey-projects {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid rgba(151,177,213,.10);
      max-width: 440px;
    }

    .journey-projects[hidden] { display: none; }

    .project-switcher {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 14px;
    }

    .project-switcher button {
      border: 1px solid rgba(151,177,213,.12);
      background: rgba(255,255,255,.012);
      color: rgba(177,190,207,.54);
      padding: 7px 8px;
      font: inherit;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 7px;
      letter-spacing: .08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color .18s ease, border-color .18s ease, background .18s ease;
    }

    .project-switcher button:hover,
    .project-switcher button.active {
      color: #edf3fa;
      border-color: rgba(142,167,255,.28);
      background: rgba(142,167,255,.055);
    }

    .journey-project-detail {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px 18px;
      align-items: end;
    }

    .journey-project-status {
      grid-column: 1 / -1;
      color: rgba(142,167,255,.58);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .10em;
      text-transform: uppercase;
    }

    .journey-project-name {
      margin: 0;
      font-size: 19px;
      letter-spacing: -.025em;
      font-weight: 620;
    }

    .journey-project-description {
      grid-column: 1 / -1;
      margin: 0;
      color: #96a4b7;
      font-size: 11px;
      line-height: 1.55;
    }

    .journey-project-link,
    .journey-project-disabled {
      align-self: center;
      justify-self: end;
      white-space: nowrap;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .journey-project-link {
      color: #d4deea;
      border-bottom: 1px solid rgba(115,216,255,.24);
    }

    .journey-project-link:hover { color: white; border-bottom-color: rgba(115,216,255,.68); }
    .journey-project-disabled { color: rgba(164,177,194,.30); }

    .journey-nav {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 16px;
      align-items: center;
      padding-top: 14px;
      border-top: 1px solid rgba(151,177,213,.09);
    }

    .journey-prev,
    .journey-next {
      min-height: 34px;
      border: 0;
      background: transparent;
      color: rgba(197,209,224,.58);
      padding: 6px 0;
      font: inherit;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: .10em;
      cursor: pointer;
    }

    .journey-prev:hover,
    .journey-next:hover { color: white; }
    .journey-prev:disabled { opacity: .18; cursor: default; }

    .journey-rail {
      position: relative;
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      align-items: center;
      min-width: 0;
    }

    .journey-rail::before {
      content: "";
      position: absolute;
      left: 4%;
      right: 4%;
      top: 50%;
      height: 1px;
      background: rgba(151,177,213,.13);
      z-index: 0;
    }

    .journey-stop {
      position: relative;
      z-index: 1;
      justify-self: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(151,177,213,.18);
      background: #0a0f18;
      color: rgba(174,188,206,.46);
      font: inherit;
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 7px;
      cursor: pointer;
      transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
    }

    .journey-stop:hover {
      color: white;
      border-color: rgba(115,216,255,.34);
    }

    .journey-stop.active {
      color: white;
      transform: scale(1.12);
      border-color: rgba(115,216,255,.54);
      background: rgba(15,27,42,.92);
      box-shadow: 0 0 0 4px rgba(115,216,255,.035);
    }

    .journey-stop.visited::after {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 50%;
      background: rgba(115,216,255,.24);
    }

    @media (max-width: 900px) {
      .journey-layer {
        background:
          linear-gradient(180deg, rgba(6,9,15,.20), rgba(6,9,15,.82) 46%, rgba(6,9,15,.96) 100%);
      }
      .journey-copy {
        align-self: end;
        width: min(88%, 560px);
      }
    }

    @media (max-width: 700px) {
      .journey-layer { padding: 14px; }
      .journey-copy { width: 100%; padding: 18px 0 14px; }
      .journey-title { font-size: 34px; }
      .journey-body { font-size: 12px; line-height: 1.52; }
      .journey-evidence { margin-top: 14px; }
      .journey-nav { grid-template-columns: auto auto; gap: 12px; }
      .journey-rail { grid-column: 1 / -1; grid-row: 1; order: -1; }
      .journey-prev { grid-column: 1; }
      .journey-next { grid-column: 2; text-align: right; }
      .journey-project-detail { grid-template-columns: 1fr; }
      .journey-project-link, .journey-project-disabled { justify-self: start; }
      .journey-hint { display: none; }
    }

  

    /* --- Pearl / alien interface pass ------------------------------------ */
    :root {
      --bg: #f5f6f8;
      --bg-2: #eceef2;
      --panel: rgba(250, 251, 253, .72);
      --panel-strong: rgba(248, 249, 251, .94);
      --text: #17181c;
      --muted: #6f6e78;
      --faint: #96929d;
      --line: rgba(38, 38, 46, .12);
      --line-strong: rgba(38, 38, 46, .20);
      --cyan: #3d998f;
      --blue: #7567d8;
      --violet: #8a72c7;
      --green: #81905b;
      --shadow: 0 28px 80px rgba(64, 72, 92, .12);
    }

    body {
      color: var(--text);
      background:
        radial-gradient(circle at 9% 18%, rgba(196,122,162,.06), transparent 24rem),
        radial-gradient(circle at 82% 14%, rgba(117,103,216,.08), transparent 26rem),
        radial-gradient(circle at 74% 78%, rgba(85,185,170,.07), transparent 28rem),
        linear-gradient(180deg, #f8f9fb 0%, #eef1f5 58%, #f6f8fa 100%);
    }

    body::before {
      opacity: .28;
      background-image:
        radial-gradient(circle, rgba(30,30,35,.18) .65px, transparent .75px),
        linear-gradient(rgba(46,44,52,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,44,52,.025) 1px, transparent 1px);
      background-size: 11px 11px, 54px 54px, 54px 54px;
      mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.5) 70%, transparent);
    }

    .brand { color: #23242a; }
    .brand-mark {
      border-color: rgba(61,153,143,.46);
      box-shadow: inset 0 0 18px rgba(85,185,170,.12), 0 0 24px rgba(117,103,216,.07);
      border-radius: 38% 62% 44% 56%;
    }
    .brand-mark::after { border-color: rgba(117,103,216,.38); border-radius: 55% 45% 64% 36%; }

    .nav-button {
      color: #65636d;
      border-color: rgba(37,38,44,.13);
      background: rgba(255,255,255,.30);
      backdrop-filter: blur(12px);
    }
    .nav-button:hover {
      color: #17181c;
      border-color: rgba(117,103,216,.30);
      background: rgba(255,255,255,.56);
    }

    .eyebrow { color: #3d998f; }
    .eyebrow::before { background: linear-gradient(90deg, #3d998f, transparent); }
    h1 { color: #141519; }
    h1 .ghost {
      color: rgba(87,78,111,.48);
      text-shadow: 10px 7px 22px rgba(117,103,216,.055);
    }
    .lede { color: #54545e; }

    .stage {
      border-color: rgba(42,42,50,.13);
      background:
        radial-gradient(circle at 50% 47%, rgba(255,255,255,.72), rgba(255,255,255,.18) 48%, transparent 76%),
        linear-gradient(145deg, rgba(255,255,255,.55), rgba(233,237,242,.26));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.80), var(--shadow);
      border-radius: 38px 22px 44px 28px;
    }

    .stage::before,
    .stage::after { color: rgba(53,53,62,.44); }

    #biofield,
    #atlas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }
    #biofield { z-index: 0; opacity: .95; }
    #atlas { z-index: 1; }

    .node-label {
      color: #2b2c33;
      border-color: rgba(44,44,53,.12);
      background: rgba(250,251,253,.38);
      box-shadow: none;
      backdrop-filter: blur(6px);
      clip-path: none;
      border-radius: 10px;
      min-width: 0;
      padding: 7px 12px 7px 24px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .node-label::before {
      content: "";
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--node, #3d998f);
    }
    .node-label small { color: rgba(61,153,143,.66); margin-bottom: 0; }
    .node-label:hover,
    .node-label.active {
      color: #101115;
      border-color: var(--node, #3d998f);
      background: rgba(255,255,255,.72);
      box-shadow: 0 6px 20px rgba(60,74,96,.08);
    }
    .node-label:hover::before,
    .node-label.active::before {
      box-shadow: 0 0 0 4px rgba(61,153,143,.08);
    }

    /* The face is the origin of the journey. Drop portrait.jpg beside the HTML when ready. */
    .core-label {
      min-width: 118px;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      clip-path: none;
      display: grid;
      justify-items: center;
      gap: 5px;
      overflow: visible;
    }
    .core-label:hover,
    .core-label.active {
      background: transparent;
      border: 0;
      box-shadow: none;
    }
    .core-face {
      position: relative;
      width: 88px;
      height: 88px;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid rgba(117,103,216,.34);
      border-radius: 46% 54% 41% 59% / 58% 42% 58% 42%;
      background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.88), rgba(218,211,228,.72) 56%, rgba(178,198,189,.52));
      box-shadow:
        0 10px 26px rgba(79,72,91,.10),
        inset 0 0 28px rgba(85,185,170,.08);
      animation: coreMorph 9s ease-in-out infinite alternate;
    }
    .core-face::before {
      content: "";
      position: absolute;
      inset: 7px;
      border: 1px solid rgba(61,153,143,.23);
      border-radius: inherit;
      pointer-events: none;
    }
    .core-face-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      filter: saturate(.88) contrast(1.03);
      transition: opacity .25s ease;
    }
    .core-face-fallback {
      color: #3b3944;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -.04em;
    }
    .core-label.has-portrait .core-face-img { opacity: 1; }
    .core-label.has-portrait .core-face-fallback { opacity: 0; }
    .core-name {
      font-size: 12px !important;
      font-weight: 660 !important;
      color: #23242a;
      background: none;
      padding: 0;
      border-radius: 0;
      box-shadow: none;
    }

    @keyframes coreMorph {
      0% { border-radius: 46% 54% 41% 59% / 58% 42% 58% 42%; transform: rotate(-1.1deg); }
      50% { border-radius: 55% 45% 60% 40% / 44% 57% 43% 56%; transform: rotate(.7deg); }
      100% { border-radius: 43% 57% 49% 51% / 61% 39% 52% 48%; transform: rotate(-.3deg); }
    }

    .metric {
      color: rgba(75,73,82,.48);
      border-color: rgba(42,42,50,.10);
      background: rgba(250,251,253,.60);
      backdrop-filter: blur(10px);
    }
    .metric b { color: rgba(42,42,48,.78); }

    .glance-strip { border-top-color: rgba(42,42,50,.10); }
    .glance-summary p { color: #565660; }
    .glance-kicker { color: rgba(61,153,143,.74); }
    .glance-axis span { color: #74727b; }
    .glance-axis b { color: #2c2d33; }
    .glance-axis span::before { background: rgba(61,153,143,.58); box-shadow: none; }
    .glance-tech { border-top-color: rgba(42,42,50,.08); }
    .glance-tech span { color: rgba(82,80,91,.66); }
    .glance-tech span:not(:last-child)::after { color: rgba(117,103,216,.36); }

    .footer { color: #7c7983; border-top-color: rgba(42,42,50,.10); }

    .journey-layer {
      background:
        radial-gradient(circle at 78% 36%, rgba(85,185,170,.08), transparent 28%),
        radial-gradient(circle at 66% 78%, rgba(196,122,162,.07), transparent 34%),
        linear-gradient(90deg, rgba(247,249,251,.96) 0%, rgba(247,249,251,.87) 38%, rgba(247,249,251,.30) 68%, rgba(247,249,251,.04) 100%);
    }
    .journey-back,
    .journey-counter { color: rgba(69,68,76,.55); }
    .journey-back:hover { color: #17181c; }
    .journey-kicker { color: rgba(61,153,143,.82); }
    .journey-title { color: #17181c; }
    .journey-body { color: rgba(63,62,70,.78); }
    .journey-evidence span { color: rgba(75,73,83,.62); }
    .journey-evidence span::before { background: rgba(117,103,216,.54); }
    .journey-projects,
    .journey-nav { border-top-color: rgba(42,42,50,.10); }
    .project-switcher button {
      border-color: rgba(42,42,50,.11);
      color: rgba(75,73,83,.60);
      background: rgba(255,255,255,.24);
    }
    .project-switcher button:hover,
    .project-switcher button.active {
      color: #1f2025;
      border-color: rgba(117,103,216,.28);
      background: rgba(117,103,216,.07);
    }
    .journey-project-status { color: rgba(117,103,216,.70); }
    .journey-project-description { color: #6e6b76; }
    .journey-project-link { color: #34343d; border-bottom-color: rgba(61,153,143,.30); }
    .journey-project-link:hover { color: #111216; border-bottom-color: rgba(61,153,143,.70); }
    .journey-project-disabled { color: rgba(72,70,80,.33); }
    .journey-prev,
    .journey-next { color: rgba(55,54,62,.58); }
    .journey-prev:hover,
    .journey-next:hover { color: #17181c; }
    .journey-rail::before { background: rgba(47,46,55,.13); }
    .journey-stop {
      border-color: rgba(47,46,55,.17);
      background: rgba(247,249,251,.96);
      color: rgba(70,68,78,.55);
    }
    .journey-stop:hover { color: #191a1e; border-color: rgba(61,153,143,.32); }
    .journey-stop.active {
      color: #17181c;
      border-color: rgba(117,103,216,.46);
      background: #fbfcfe;
      box-shadow: 0 0 0 5px rgba(117,103,216,.05);
    }
    .journey-stop.visited::after { background: rgba(61,153,143,.24); }

    .resume-modal { background: rgba(226,230,235,.72); }
    .resume-window { background: #f3f5f8; border-color: rgba(44,44,52,.16); box-shadow: 0 38px 90px rgba(67,61,53,.20); }
    .resume-bar { color: #716e78; border-bottom-color: rgba(44,44,52,.10); }
    .resume-actions a,
    .resume-actions button { color: #56545d; border-color: rgba(44,44,52,.13); }
    .resume-frame-wrap { background: #e6e9ee; }

    .no-webgl {
      inset: auto 18px 18px auto;
      display: none;
      place-items: center;
      max-width: 250px;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid rgba(42,42,50,.10);
      background: rgba(250,251,253,.82);
      color: rgba(68,67,75,.56);
      font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 7px;
      letter-spacing: .04em;
      backdrop-filter: blur(12px);
    }

    /* Minor enhancement on browsers advertising WebGPU; WebGPU itself remains optional. */
    .gpu-modern .stage {
      box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 28px 90px rgba(94,83,115,.13);
    }

    @media (max-width: 900px) {
      .journey-layer {
        background:
          linear-gradient(180deg, rgba(247,249,251,.18), rgba(247,249,251,.90) 48%, rgba(247,249,251,.98) 100%);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .core-face { animation: none; }
    }

/* --- Production/accessibility fixes --- */
:focus-visible {
  outline: 2px solid rgba(61,153,143,.72);
  outline-offset: 3px;
}
body.modal-open { overflow: hidden; }
.footer a { color: inherit; border-bottom: 1px solid rgba(61,153,143,.22); }
.footer a:hover { color: var(--text); border-bottom-color: rgba(61,153,143,.58); }
.resume-modal[aria-hidden="true"] { visibility: hidden; }
.resume-modal[aria-hidden="false"] { visibility: visible; }
.resume-window:focus { outline: none; }
.resume-note {
  color: rgba(86,84,93,.72);
  font-size: 12px;
  line-height: 1.5;
  padding: 18px;
}
@media (max-width: 700px) {
  .resume-modal { padding: 10px; }
  .resume-window { height: 92vh; grid-template-rows: auto 1fr; }
  .resume-bar { min-height: 52px; gap: 8px; }
}

/* --- Single-screen layout (desktop) --- */
@media (min-width: 1101px) and (min-height: 620px) {
  html, body { height: 100%; }
  body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  main#top {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    height: 72px;
    flex: 0 0 auto;
  }
  .hero {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 14px;
    align-items: stretch;
  }
  .hero-copy {
    align-self: center;
    padding-bottom: 0;
  }
  .stage {
    height: 100%;
    min-height: 0;
  }
  .glance-strip {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 14px 0 16px;
  }
  .glance-strip .glance-axis b { margin-bottom: 2px; }
  .footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 10px 0 14px;
    border-top: 0;
  }
}

/* Fit the single-screen desktop layout to shorter viewports so the
   at-a-glance strip and footer stay visible and nothing is clipped. */
@media (min-width: 1101px) and (min-height: 620px) and (max-height: 960px) {
  .hero { padding: 4px 0 8px; }
  h1 { font-size: clamp(38px, 3.9vw, 58px); }
  .eyebrow { margin-bottom: 14px; }
  .lede { margin-top: 18px; font-size: clamp(14px, 1.1vw, 17px); }
  .glance-strip { padding: 10px 0 12px; row-gap: 8px; }
  .glance-summary p { font-size: 11.5px; }
  .glance-axis span { font-size: 10px; }
  .glance-axis b { font-size: 10px; }
  .glance-tech span { font-size: 7.5px; }
  .profile-timeline-story .impact { font-size: 10.5px; }
  .footer { padding: 8px 0 10px; }
}

@media (min-width: 1101px) and (max-height: 619px) {
  body { min-height: 100vh; }
}

/* --- Profile / about overlay --- */
.profile-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(.99);
  transition: opacity .28s ease, transform .28s ease;
  background:
    radial-gradient(circle at 12% 10%, rgba(117,103,216,.05), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(85,185,170,.05), transparent 32%),
    linear-gradient(180deg, rgba(249,250,252,.985), rgba(244,246,249,.985));
}
.profile-layer.open { opacity: 1; transform: none; pointer-events: auto; }

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42,42,50,.08);
}
.profile-back {
  border: 0;
  background: transparent;
  color: rgba(60,59,68,.58);
  padding: 8px 0;
  font: inherit;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
}
.profile-back:hover { color: #17181c; }
.profile-counter {
  color: rgba(60,59,68,.38);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(380px, 1.18fr);
  gap: 34px;
  align-items: start;
  padding: 20px 2px 22px;
}
.profile-identity {
  display: flex;
  flex-direction: column;
}

.profile-kicker {
  margin-bottom: 10px;
  color: rgba(61,153,143,.82);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.profile-name {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.0;
  letter-spacing: -.04em;
  font-weight: 660;
  color: #17181c;
}
.profile-role {
  margin: 12px 0 0;
  color: #2c2d33;
  font-size: 15px;
  font-weight: 620;
}
.profile-years {
  margin: 6px 0 0;
  color: #8f9cad;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-bio {
  margin: 14px 0 0;
  color: #565660;
  font-size: 13px;
  line-height: 1.48;
  max-width: 48ch;
}
.profile-start {
  align-self: flex-start;
  margin-top: 18px;
  border: 1px solid rgba(117,103,216,.30);
  background: rgba(117,103,216,.06);
  color: #2c2d33;
  padding: 11px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.profile-start:hover {
  background: rgba(117,103,216,.12);
  color: #121318;
  border-color: rgba(117,103,216,.5);
}

.profile-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  min-width: 0;
}
.profile-section-title {
  margin: 0 0 12px;
  color: #2c2d33;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.profile-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(42,42,50,.14);
}
.profile-timeline li {
  position: relative;
  padding: 0 0 15px 18px;
}
.profile-timeline li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(117,103,216,.55);
  box-shadow: 0 0 0 3px rgba(117,103,216,.10);
}
.profile-timeline .period {
  display: block;
  color: #8f9cad;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-timeline .org {
  display: block;
  margin-top: 2px;
  color: #23242a;
  font-size: 14px;
  font-weight: 620;
}
.profile-timeline .role {
  display: block;
  margin-top: 2px;
  color: #565660;
  font-size: 12px;
  font-weight: 560;
}
.profile-timeline .impact {
  display: block;
  margin-top: 4px;
  color: #8f9cad;
  font-size: 11.5px;
  line-height: 1.45;
}
.profile-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.profile-highlights li {
  position: relative;
  padding-left: 15px;
  color: #565660;
  font-size: 12.5px;
  line-height: 1.5;
}
.profile-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(117,103,216,.55);
}

@media (max-width: 900px) {
  .profile-body {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .profile-start { margin-top: 16px; }
}
@media (max-width: 700px) {
  .profile-layer { padding: 14px; }
  .profile-detail { gap: 20px; }
}

/* Trust and narrative pass */
.hero {
  grid-template-columns: minmax(360px, .86fr) minmax(620px, 1.34fr);
  gap: clamp(34px, 4vw, 68px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

h1 {
  max-width: 700px;
  font-size: clamp(52px, 5.1vw, 82px);
  line-height: .94;
}

.lede {
  max-width: 660px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.64;
  color: #4f5059;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  max-width: 630px;
  border-top: 1px solid rgba(42,42,50,.11);
  border-bottom: 1px solid rgba(42,42,50,.11);
}

.hero-trust span {
  position: relative;
  padding: 11px 14px 11px 18px;
  color: #55565f;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-trust span:nth-child(odd) {
  border-right: 1px solid rgba(42,42,50,.09);
}

.hero-trust span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: rgba(61,153,143,.72);
  border-radius: 50%;
}

.stage {
  border-radius: 24px;
}

.glance-strip.trust-strip {
  grid-template-columns: minmax(230px, .72fr) minmax(600px, 1.8fr);
  grid-template-areas:
    "summary axis"
    "tech tech";
  column-gap: 38px;
  padding: 26px 0 28px;
}

.trust-strip .glance-summary p {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: #4f5059;
}

.trust-strip .glance-axis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid rgba(42,42,50,.09);
}

.trust-strip .glance-axis span {
  min-height: 102px;
  padding: 3px 18px 4px;
  border-right: 1px solid rgba(42,42,50,.09);
  color: #66656f;
  font-size: 11px;
  line-height: 1.5;
}

.trust-strip .glance-axis span::before {
  display: none;
}

.trust-strip .glance-axis b {
  margin-bottom: 7px;
  color: #202126;
  font-size: 12px;
  font-weight: 670;
  letter-spacing: -.01em;
}

.trust-strip .glance-tech {
  margin-top: 2px;
  padding-top: 12px;
}

.profile-body {
  min-width: 0;
  grid-template-columns: minmax(210px, .34fr) minmax(0, .66fr);
  gap: clamp(32px, 4vw, 56px);
}

.profile-detail {
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 34px;
}

.profile-column,
.profile-story-column,
.profile-trust-column {
  min-width: 0;
}

.profile-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.profile-section-kicker {
  margin-bottom: 7px;
  color: rgba(61,153,143,.78);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.profile-section-title {
  margin: 0;
  color: #202126;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-transform: none;
}

.profile-section-intro {
  margin: 2px 0 0;
  max-width: 60ch;
  color: #74727b;
  font-size: 11.5px;
  line-height: 1.5;
}

.profile-timeline-story {
  padding: 0;
  border-left: 0;
  counter-reset: story;
}

.profile-timeline-story li {
  counter-increment: story;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 3px;
  padding: 9px 0 10px;
  border-top: 1px solid rgba(42,42,50,.10);
}

.profile-timeline-story li:last-child {
  border-bottom: 1px solid rgba(42,42,50,.10);
}

.profile-timeline-story li::before {
  content: "0" counter(story);
  position: static;
  grid-column: 1;
  grid-row: 1 / span 4;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: rgba(117,103,216,.58);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .12em;
}

.profile-timeline-story .period {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: #96929d;
  font-size: 8px;
  letter-spacing: .07em;
}

.profile-timeline-story .chapter {
  grid-column: 2;
  grid-row: 1;
  display: block;
  color: #1f2025;
  font-size: 15px;
  font-weight: 670;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.profile-timeline-story .org {
  grid-column: 2;
  grid-row: 2;
  margin: 1px 0 0;
  color: #7c7983;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.profile-timeline-story .impact {
  grid-column: 2;
  grid-row: 3;
  margin-top: 6px;
  max-width: 58ch;
  color: #55565f;
  font-size: 11.5px;
  line-height: 1.52;
}

.profile-timeline-runtime,
.profile-highlights-runtime {
  display: none !important;
}

.profile-trust-column {
  padding-left: 0;
}

.trust-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.trust-index {
  padding-top: 3px;
  color: rgba(61,153,143,.72);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .10em;
}

.trust-item h4 {
  margin: 0;
  color: #24252a;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.trust-item p {
  margin: 3px 0 0;
  color: #6d6b75;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .glance-strip.trust-strip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "axis"
      "tech";
    row-gap: 20px;
  }

  .trust-strip .glance-summary p {
    max-width: 58ch;
  }

  .profile-detail {
    grid-template-columns: 1fr;
  }
}

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

  .hero-copy {
    max-width: 760px;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-detail {
    grid-template-columns: 1fr;
  }

  .trust-strip .glance-axis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip .glance-axis span:nth-child(2) {
    border-right: 0;
  }

  .trust-strip .glance-axis span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(42,42,50,.09);
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .topbar {
    height: 70px;
  }

  .hero {
    padding: 28px 0 42px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
    line-height: .96;
  }

  .lede {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-trust span {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(42,42,50,.08);
  }

  .hero-trust span:last-child {
    border-bottom: 0;
  }

  .stage {
    min-height: 590px;
    height: 72vh;
    border-radius: 18px;
  }

  .glance-strip.trust-strip {
    padding: 22px 0 26px;
  }

  .trust-strip .glance-axis {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .trust-strip .glance-axis span {
    min-height: auto;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(42,42,50,.09);
  }

  .profile-timeline-story li {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
  }

  .profile-timeline-story .chapter {
    font-size: 14px;
  }

  .profile-timeline-story .impact {
    font-size: 11px;
  }
}

/* Short single-screen desktops: keep the one-screen contract by compressing
   the hero copy as viewport height drops. Placed last so it wins over the
   narrative pass globals that would otherwise keep the headline and lede tall. */
@media (min-width: 1101px) and (min-height: 620px) and (max-height: 960px) {
  h1 { font-size: clamp(38px, 3.7vw, 56px); }
  .eyebrow { margin-bottom: 12px; }
  .lede { margin-top: 16px; font-size: clamp(13px, 1.0vw, 15px); line-height: 1.46; }
  .hero-trust { margin-top: 18px; }
  .hero-trust span { padding: 8px 14px 8px 18px; font-size: 8px; }
  .glance-strip.trust-strip { padding: 12px 0 14px; column-gap: 30px; }
  .trust-strip .glance-axis span { min-height: 64px; padding: 2px 16px 3px; font-size: 10px; line-height: 1.4; }
  .trust-strip .glance-summary p { font-size: 11.5px; line-height: 1.48; }
  .trust-strip .glance-axis b { font-size: 11px; margin-bottom: 5px; }
  .profile-timeline-story .impact { font-size: 10.5px; }
  .footer { padding: 8px 0 10px; }
}

/* Mid-height desktops (e.g. 1080p viewports): a lighter pass so the full-size
   narrative type still fits the one-screen contract. */
@media (min-width: 1101px) and (min-height: 961px) and (max-height: 1160px) {
  h1 { font-size: clamp(48px, 4.4vw, 72px); }
  .lede { font-size: clamp(15px, 1.12vw, 18px); line-height: 1.5; }
  .hero-trust { margin-top: 20px; }
}

/* Trust principles collapse from a 4-across row to 2x2, then stacked, as the
   right column narrows. */
@media (max-width: 1180px) {
  .trust-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .trust-stack { grid-template-columns: 1fr; }
}
