    *, *::before, *::after {
      box-sizing: border-box; margin: 0; padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
    }
    /* View Transitions API — smoother same-document navigations in supporting browsers */
    @view-transition { navigation: auto; }
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation-duration: 240ms;
      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    .brand-mark { view-transition-name: brand-mark; }
    .hero-photo { view-transition-name: hero-photo; }
    /* Respect users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }
    }
    /* Improve touch targets on small screens */
    @media (max-width: 1100px) and (pointer: coarse) {
      a, button, .btn, .tab, .m-tab, .pub-tab, .lg-row, .gl-group li {
        min-height: 44px;
      }
    }
    /* Skip-to-content link for keyboard / screen-reader users */
    .skip-link {
      position: absolute; top: -48px; left: 1rem;
      background: var(--amber); color: #07101d;
      padding: 10px 18px;
      font-family: var(--mono); font-size: 12px;
      font-weight: 600; letter-spacing: 0.08em;
      text-transform: uppercase; text-decoration: none;
      z-index: 999;
      transition: top .2s ease;
    }
    .skip-link:focus { top: .75rem; outline: 2px solid var(--text); outline-offset: 2px; }

    /* Visible keyboard focus for all interactive elements (mouse clicks unaffected) */
    a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
    .btn:focus-visible, .tab:focus-visible, .m-tab:focus-visible, .pub-tab:focus-visible {
      outline: 2px solid var(--amber);
      outline-offset: 2px;
      border-radius: 2px;
    }
    /* Don't double-up the ring on mouse focus in browsers without :focus-visible support */
    a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

    /* Print styles */
    @media print {
      .topbar, .mobile-menu, .hamburger, .hero-cta, .copy, .globe-stage,
      .pub-tabs, .proj-grid, footer { display: none !important; }
      body { background: white; color: black; }
      .panel, .log-row, .accred, .edu { background: white; border: 1px solid #ccc; }
      a { color: black; text-decoration: underline; }
      .sect-title, h3 { color: black !important; }
      section { page-break-inside: avoid; padding: 1rem 0; }
    }

    :root {
      /* Deep technical navy + steel */
      --bg-0:       #07101d;
      --bg-1:       #0c1626;
      --bg-2:       #111e33;
      --bg-3:       #182b46;
      --panel:      #0e1a2c;
      --panel-2:    #122036;

      --border:     #1d3251;
      --border-2:   #2a4670;
      --border-hi:  #3a5c8c;

      --text:       #e8eef7;
      --text-dim:   #b4c1d4;
      --muted:      #7a8aa3;
      --faint:      #4d5d76;

      --amber:      #f7a517;    /* primary accent — safety / engineering */
      --amber-d:    #d18908;
      --amber-tint: rgba(247,165,23,0.08);
      --steel-blue: #4a78b8;    /* technical secondary */
      --green:      #5fc88f;    /* status OK */
      --red:        #e25555;    /* status alert */

      --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
      --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
      --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: var(--sans);
      background: var(--bg-0); color: var(--text);
      font-size: 15px; line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }

    /* Subtle global grid overlay — engineering paper feel */
    body::before {
      content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image:
        linear-gradient(rgba(58,92,140,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58,92,140,0.04) 1px, transparent 1px);
      background-size: 40px 40px;
    }
    body::after {
      content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(74,120,184,0.10), transparent 60%),
        radial-gradient(ellipse 800px 500px at 0% 50%, rgba(247,165,23,0.03), transparent 60%);
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    /* iOS Safari button normalization */
    button {
      -webkit-appearance: none; appearance: none;
      background: none; border: none;
      color: inherit; font-family: inherit;
      border-radius: 0;
    }

    /* ──────────────────────────────────────────────────────────
       TOP HEADER BAR — control panel chrome
       ────────────────────────────────────────────────────────── */
    .topbar {
      position: sticky; top: 0; z-index: 100;
      background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
      border-bottom: 1px solid var(--border-2);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 16px rgba(0,0,0,0.5);
      transition: box-shadow .2s;
    }
    .topbar.scrolled {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.7);
      border-bottom-color: var(--border-hi);
    }
    .topbar-strip {
      background: #000;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.04em;
      padding: 4px clamp(1rem, 3vw, 2rem);
      display: flex; justify-content: space-between; align-items: center;
      gap: 1rem; flex-wrap: wrap;
      border-bottom: 1px solid var(--border);
    }
    .topbar-strip .left { display: flex; gap: 1.5rem; }
    .topbar-strip .right { display: flex; gap: 1.25rem; align-items: center; }
    .led {
      display: inline-flex; align-items: center; gap: .35rem;
      color: var(--text-dim);
    }
    .led::before {
      content: ""; width: 7px; height: 7px; border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 6px var(--green), inset 0 0 2px rgba(255,255,255,0.4);
      animation: blink 2.5s ease-in-out infinite;
    }
    @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

    .topbar-main {
      display: grid; grid-template-columns: auto 1fr auto;
      align-items: stretch;
      padding:
        env(safe-area-inset-top)
        max(clamp(0.5rem, 2vw, 1rem), env(safe-area-inset-right))
        0
        max(clamp(0.5rem, 2vw, 1rem), env(safe-area-inset-left));
      min-height: 64px;
    }
    .brand {
      display: flex; align-items: center; gap: .85rem;
      padding: 0 1rem 0 .5rem;
      border-right: 1px solid var(--border);
    }
    .brand-mark {
      width: 38px; height: 38px;
      background: var(--amber);
      color: #07101d;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--cond);
      font-weight: 700; font-size: 18px;
      letter-spacing: -0.02em;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    .brand-text {
      font-family: var(--cond); font-weight: 700;
      font-size: 16px; letter-spacing: 0.02em; line-height: 1.1;
      text-transform: uppercase;
    }
    .brand-text small {
      display: block;
      font-family: var(--mono);
      font-size: 10px; font-weight: 400;
      color: var(--muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-top: 2px;
    }

    /* Tabs */
    .tabs {
      display: flex; align-items: flex-end;
      padding: 0 0.5rem;
      gap: 2px;
    }
    .tab {
      font-family: var(--mono); font-size: 11.5px; font-weight: 500;
      letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--text-dim);
      padding: 10px 14px 8px;
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-bottom: none;
      margin-bottom: -1px;
      position: relative;
      cursor: pointer;
      transition: background .15s, color .15s, transform .15s;
      white-space: nowrap;
    }
    .tab .n { color: var(--amber); margin-right: 4px; font-weight: 600; }
    .tab:hover { background: var(--bg-2); color: var(--text); }
    .tab.active {
      background: var(--panel);
      color: var(--text);
      border-color: var(--border-2);
      border-top: 2px solid var(--amber);
      padding-top: 9px;
    }

    .top-right { display: flex; align-items: center; gap: .5rem; padding: 0 .5rem 0 1rem; border-left: 1px solid var(--border); }
    .top-right .av-open { white-space: nowrap; }
    .m-tab.av-open { text-align: left; width: 100%; }
    .btn-sm {
      display: inline-flex; align-items: center; gap: .4rem;
      font-family: var(--mono); font-size: 11px; font-weight: 500;
      letter-spacing: 0.05em; text-transform: uppercase;
      padding: 7px 12px;
      background: var(--bg-2);
      color: var(--text);
      border: 1px solid var(--border-2);
      cursor: pointer; transition: all .15s;
    }
    .btn-sm:hover { background: var(--bg-3); border-color: var(--border-hi); }
    .btn-sm.amber {
      background: var(--amber);
      color: #07101d;
      border-color: var(--amber-d);
      font-weight: 600;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
    }
    .btn-sm.amber:hover { background: var(--amber-d); }

    /* ──────────────────────────────────────────────────────────
       LAYOUT
       ────────────────────────────────────────────────────────── */
    main { position: relative; z-index: 1; }

    .container {
      max-width: 1320px; margin: 0 auto;
      padding: 0 clamp(1rem, 3vw, 2rem);
    }

    section { padding: clamp(3rem, 6vw, 5rem) 0; scroll-margin-top: 90px; }
    section.compact { padding: clamp(2rem, 4vw, 3rem) 0; }

    /* Panel — the boxy "window" chrome */
    .panel {
      background: var(--panel);
      border: 1px solid var(--border-2);
      box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
    }
    .panel-head {
      display: flex; align-items: center; justify-content: space-between;
      background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
      border-bottom: 1px solid var(--border-2);
      padding: 8px 12px;
      gap: 1rem;
    }
    .panel-head .ttl {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--text);
      display: inline-flex; align-items: center; gap: .55rem;
    }
    .panel-head .ttl::before {
      content: ""; width: 6px; height: 6px; background: var(--amber);
      box-shadow: 0 0 5px var(--amber);
    }
    .panel-head .meta { display: none; }
    .panel-body { padding: 1.25rem; }

    /* Section header (bigger) */
    .sect-head {
      display: grid; grid-template-columns: auto 1fr auto;
      align-items: end;
      gap: 1.5rem;
      padding-bottom: 1rem;
      margin-bottom: 2rem;
      border-bottom: 1px solid var(--border-2);
    }
    .sect-num {
      font-family: var(--cond); font-weight: 700;
      font-size: 60px; line-height: .9;
      color: var(--amber);
      letter-spacing: -0.02em;
    }
    .sect-num .pre { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: .25rem; }
    .sect-title {
      font-family: var(--cond); font-weight: 700;
      font-size: clamp(28px, 4vw, 44px);
      line-height: 1; letter-spacing: -0.015em;
      text-transform: uppercase;
      color: var(--text);
    }
    .sect-title .dim { color: var(--text-dim); font-weight: 500; }
    .sect-meta {
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
      text-align: right; line-height: 1.6;
    }
    .sect-meta b { color: var(--amber); font-weight: 600; }

    .rule { height: 1px; background: var(--border); }
    .rule-amber { height: 2px; background: var(--amber); width: 60px; }

    /* ──────────────────────────────────────────────────────────
       HERO
       ────────────────────────────────────────────────────────── */
    .hero {
      position: relative;
      border-bottom: 1px solid var(--border-2);
      background:
        linear-gradient(180deg, transparent 0%, rgba(7,16,29,0.6) 100%),
        radial-gradient(ellipse 800px 500px at 75% 30%, rgba(74,120,184,0.18), transparent 60%);
      padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 3rem;
      align-items: start;
    }
    .hero-main {}
    .pretitle {
      font-family: var(--mono); font-size: 11.5px; font-weight: 500;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--amber);
      display: inline-flex; align-items: center; gap: .8rem;
      margin-bottom: 1.5rem;
      padding: 4px 0 4px 0;
    }
    .pretitle .bar { width: 32px; height: 1px; background: var(--amber); }
    .pretitle .code { color: var(--muted); }

    h1.hero-title {
      font-family: var(--cond); font-weight: 700;
      font-size: clamp(52px, 9vw, 128px);
      line-height: 0.88;
      letter-spacing: -0.025em;
      text-transform: uppercase;
      color: var(--text);
      margin-bottom: 1.25rem;
    }
    h1.hero-title .row { display: block; }
    h1.hero-title .underline {
      display: inline-block;
      border-bottom: 6px solid var(--amber);
      padding-bottom: 4px;
    }

    .hero-role {
      font-family: var(--mono); font-size: 13px; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 1.5rem;
      display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    }
    .hero-role .sep { color: var(--amber); }

    .hero-desc {
      font-size: 16px; line-height: 1.65;
      color: var(--text-dim);
      max-width: 620px;
      margin-bottom: 2rem;
    }
    .hero-desc b { color: var(--text); font-weight: 600; }
    .hero-desc .hl {
      background: var(--amber-tint);
      color: var(--amber);
      padding: 0 4px;
      font-weight: 500;
    }

    .hero-cta { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
    .btn {
      display: inline-flex; align-items: center; gap: .55rem;
      font-family: var(--mono); font-size: 12px; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      padding: 12px 20px;
      cursor: pointer; transition: all .15s;
      border: 1px solid;
      -webkit-appearance: none; appearance: none;
      border-radius: 0;
      line-height: normal;
    }
    .btn-amber {
      background: var(--amber);
      color: #07101d;
      border-color: var(--amber-d);
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    .btn-amber:hover { background: var(--amber-d); transform: translateY(-1px); }
    .btn-ghost {
      background: transparent;
      color: var(--text);
      border-color: var(--border-2);
    }
    .btn-ghost:hover { background: var(--bg-2); border-color: var(--border-hi); }
    .btn-mail {
      margin: 1.5rem 0 2rem;
      display: inline-block;
      font-size: 15px;
      padding: 14px 28px;
    }

    /* Hero spec card */
    .hero-spec {
      background: var(--panel);
      border: 1px solid var(--border-2);
      align-self: start;
    }
    .hero-spec-head {
      background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
      border-bottom: 1px solid var(--border-2);
      padding: 9px 14px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .hero-spec-head .t {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text);
    }
    .hero-spec-head .t::before {
      content: "■"; color: var(--amber); margin-right: .5rem; font-size: 9px;
    }
    .hero-spec-head .id {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--muted); letter-spacing: 0.06em;
    }
    .hero-photo-wrap {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
    }
    .hero-photo {
      width: 100%; height: 100%;
      object-fit: cover; object-position: 50% 50%;
      filter: contrast(1.05) saturate(0.95);
      display: block;
    }
    .hero-spec-body {
      padding: 0;
      font-family: var(--mono); font-size: 12px;
    }
    .spec-row {
      display: grid; grid-template-columns: 110px 1fr;
      gap: 0;
      padding: 9px 14px;
      border-bottom: 1px solid var(--border);
      align-items: center;
    }
    .spec-row:last-child { border-bottom: none; }
    .spec-row .k {
      color: var(--muted);
      font-size: 10.5px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
    }
    .spec-row .v {
      color: var(--text); font-weight: 500;
      font-size: 12.5px;
      letter-spacing: 0.02em;
    }
    .spec-row .v .ok { color: var(--green); }
    .spec-row .v .pin { color: var(--amber); }

    .hero-meters {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 2.5rem;
      background: var(--border-2);
      border: 1px solid var(--border-2);
    }
    .hm {
      background: var(--panel);
      padding: 1rem 1.25rem;
    }
    .hm .k {
      font-family: var(--mono); font-size: 10.5px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
      margin-bottom: .4rem;
    }
    .hm .v {
      font-family: var(--cond); font-weight: 700;
      font-size: 38px;
      color: var(--amber);
      line-height: 1;
      letter-spacing: -0.02em;
    }
    .hm .v small {
      display: inline-block;
      font-family: var(--mono); font-size: 11px;
      color: var(--text-dim); font-weight: 500;
      margin-left: .35rem;
      letter-spacing: 0.05em;
    }
    .hm .d {
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); margin-top: .25rem;
      letter-spacing: 0.04em; text-transform: uppercase;
    }

    /* ──────────────────────────────────────────────────────────
       ABOUT
       ────────────────────────────────────────────────────────── */
    .about-grid {
      display: grid; grid-template-columns: 1.4fr 1fr;
      gap: 1.5rem;
      align-items: start;
    }
    .about-text { font-size: 15.5px; line-height: 1.7; color: var(--text-dim); }
    .about-text p { margin-bottom: 1.15rem; }
    .about-text p:last-child { margin-bottom: 0; }
    .about-text b { color: var(--text); font-weight: 600; }
    .about-text .hl { color: var(--amber); font-weight: 500; }

    .about-text .lede {
      font-size: 19px; line-height: 1.55; color: var(--text);
      font-weight: 400;
      padding-left: 1.2rem;
      border-left: 3px solid var(--amber);
      margin-bottom: 1.6rem;
    }

    /* Data tables (info rows) */
    .data-table {
      width: 100%; border-collapse: collapse;
      font-family: var(--mono); font-size: 12px;
    }
    .data-table tr { border-bottom: 1px solid var(--border); }
    .data-table tr:last-child { border-bottom: none; }
    .data-table td {
      padding: 9px 0;
      vertical-align: top;
    }
    .data-table td:first-child {
      width: 130px;
      color: var(--muted);
      font-size: 10.5px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding-right: 1rem;
    }
    .data-table td:last-child {
      color: var(--text); font-weight: 500;
      letter-spacing: 0.02em;
    }
    .data-table .amber { color: var(--amber); }
    .data-table .green { color: var(--green); }
    .data-table .v-sub { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; }

    .interests-bar {
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
    }
    .interests-bar .label {
      font-family: var(--mono); font-size: 10.5px; font-weight: 500;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--muted);
    }
    .interests-bar .items {
      font-family: var(--mono); font-size: 12px;
      color: var(--text-dim); letter-spacing: 0.04em;
      display: flex; gap: .35rem; flex-wrap: wrap;
    }
    .interests-bar .items span::after { content: " · "; color: var(--amber); padding: 0 .25rem; }
    .interests-bar .items span:last-child::after { content: ""; }
    .reads {
      display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
      margin-top: 1rem;
    }
    .reads img {
      height: 18px; width: auto; max-width: 80px;
      object-fit: contain;
      filter: grayscale(1) brightness(1.8) opacity(.5);
      transition: filter .2s;
    }
    .reads a:hover img { filter: grayscale(0) opacity(1); }

    /* ──────────────────────────────────────────────────────────
       SKILLS / SYSTEMS
       ────────────────────────────────────────────────────────── */
    .skills-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border-2);
      border: 1px solid var(--border-2);
    }
    .sk {
      background: var(--panel);
      padding: 1.5rem 1.5rem 1.25rem;
      display: flex; flex-direction: column;
      transition: background .2s;
    }
    .sk:hover { background: var(--panel-2); }
    .sk-head {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: .9rem; padding-bottom: .8rem;
      border-bottom: 1px solid var(--border);
    }
    .sk-id {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--amber); font-weight: 600;
      letter-spacing: 0.1em;
    }
    .sk-id::before { content: "#"; color: var(--muted); margin-right: 2px; }
    .sk-status {
      font-family: var(--mono); font-size: 10px; font-weight: 500;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--green);
      padding: 2px 7px;
      border: 1px solid var(--green);
      background: rgba(95,200,143,0.06);
    }
    .sk h3 {
      font-family: var(--cond); font-weight: 700;
      font-size: 22px; line-height: 1.1;
      text-transform: uppercase;
      letter-spacing: -0.005em;
      margin-bottom: .65rem;
    }
    .sk-desc {
      font-size: 13.5px; line-height: 1.55;
      color: var(--text-dim);
      margin-bottom: 1.1rem;
      flex: 1;
    }
    .sk-meter {
      display: flex; align-items: center; gap: .65rem;
      margin-bottom: .85rem;
    }
    .sk-meter .bar {
      flex: 1; height: 8px;
      background: var(--bg-2);
      border: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    .sk-meter .bar::after {
      content: ""; position: absolute; inset: 0;
      background-image: linear-gradient(90deg, transparent 0%, transparent calc(var(--p) - 1px), var(--bg-2) calc(var(--p)));
      background-size: 100% 100%;
    }
    .sk-meter .fill {
      height: 100%;
      background: linear-gradient(90deg, var(--amber-d) 0%, var(--amber) 100%);
      width: var(--p);
      box-shadow: 0 0 8px rgba(247,165,23,0.4);
    }
    .sk-meter .pct {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      color: var(--amber);
      min-width: 36px; text-align: right;
    }
    .sk-tags {
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); letter-spacing: 0.04em;
    }
    .sk-tags span::after { content: " /"; color: var(--border-2); padding: 0 4px; }
    .sk-tags span:last-child::after { content: ""; }

    /* ──────────────────────────────────────────────────────────
       EXPERIENCE — log-style
       ────────────────────────────────────────────────────────── */
    .log {
      border: 1px solid var(--border-2);
      background: var(--panel);
    }
    .log-head {
      display: grid;
      grid-template-columns: 50px 150px 1fr 160px;
      gap: 0;
      background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
      border-bottom: 1px solid var(--border-2);
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
    }
    .log-head > div { padding: 8px 14px; border-right: 1px solid var(--border-2); }
    .log-head > div:last-child { border-right: none; }
    .log-row {
      display: grid;
      grid-template-columns: 50px 150px 1fr 160px;
      gap: 0;
      border-bottom: 1px solid var(--border);
      transition: background .15s;
    }
    .log-row:last-child { border-bottom: none; }
    .log-row:hover { background: var(--panel-2); }
    .log-row > div {
      padding: 1.1rem 14px;
      border-right: 1px solid var(--border);
    }
    .log-row > div:last-child { border-right: none; }
    .log-row .id {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      color: var(--amber);
      letter-spacing: 0.06em;
    }
    .log-row.past .id { color: var(--muted); }
    .log-row .date {
      font-family: var(--mono); font-size: 12px;
      color: var(--text); font-weight: 500;
      letter-spacing: 0.02em;
    }
    .log-row .date small {
      display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px;
      letter-spacing: 0.05em; text-transform: uppercase;
    }
    .log-row .role {
      font-family: var(--cond); font-weight: 600;
      font-size: 17px; line-height: 1.2;
      text-transform: uppercase;
      letter-spacing: 0.005em;
      color: var(--text);
      margin-bottom: .3rem;
    }
    .log-row .org {
      font-family: var(--mono); font-size: 11.5px;
      color: var(--amber); font-weight: 500;
      letter-spacing: 0.04em;
      margin-bottom: .55rem;
      display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    }
    .log-row .org img {
      height: 14px; width: auto; max-width: 50px;
      filter: grayscale(1) brightness(1.5) opacity(.7);
    }
    .log-row .desc {
      font-size: 13.5px; line-height: 1.55;
      color: var(--text-dim);
      max-width: 720px;
    }
    .log-row .desc-chapter {
      display: block;
      margin-top: 1rem;
      padding-top: .85rem;
      border-top: 1px dashed var(--border);
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--amber);
      margin-bottom: .35rem;
    }
    .log-row .loc {
      font-family: var(--mono); font-size: 11px;
      color: var(--text-dim);
      letter-spacing: 0.04em; line-height: 1.5;
    }
    .log-row .loc::before { content: "[ "; color: var(--amber); }
    .log-row .loc::after { content: " ]"; color: var(--amber); }
    .log-row.current .date {
      color: var(--amber);
    }
    .log-row.current .date::before {
      content: "● "; color: var(--green);
      animation: blink 2s infinite;
    }

    /* ──────────────────────────────────────────────────────────
       EDUCATION
       ────────────────────────────────────────────────────────── */
    .accred {
      display: grid; grid-template-columns: 64px 1fr 180px;
      gap: 0;
      background: var(--panel);
      border: 1px solid var(--border-2);
      margin-bottom: 1.5rem;
    }
    .accred .seal {
      background: var(--bg-2);
      color: var(--text-dim);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 1rem .5rem;
      border-right: 1px solid var(--border-2);
    }
    .accred .seal .ico {
      font-family: var(--cond); font-weight: 700;
      font-size: 20px; line-height: 1;
      letter-spacing: -0.02em;
      color: var(--amber);
    }
    .accred .seal .lbl {
      font-family: var(--mono); font-size: 8px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      margin-top: 5px; color: var(--muted);
    }
    .accred .body {
      padding: 1.1rem 1.25rem;
      border-right: 1px solid var(--border-2);
    }
    .accred .body .tag {
      font-family: var(--mono); font-size: 10px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--amber);
      margin-bottom: .3rem;
    }
    .accred .body h3 {
      font-family: var(--cond); font-weight: 700;
      font-size: 18px; line-height: 1.15;
      text-transform: uppercase;
      margin-bottom: .5rem;
    }
    .accred .body p {
      font-size: 12.5px; line-height: 1.55;
      color: var(--text-dim);
      margin-bottom: .65rem;
    }
    .accred .body p b { color: var(--text); }
    .chips { display: flex; flex-wrap: wrap; gap: 4px; }
    .chip {
      font-family: var(--mono); font-size: 10px; font-weight: 600;
      letter-spacing: 0.06em; text-transform: uppercase;
      padding: 4px 9px;
      color: var(--amber);
      border: 1px solid var(--amber);
      background: var(--amber-tint);
    }
    .chip.gray { color: var(--text-dim); border-color: var(--border-2); background: var(--bg-2); }
    .hero-keywords { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
    .hkw {
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      padding: 5px 11px;
      color: var(--text-dim);
      border: 1px solid var(--border-2);
      background: var(--bg-2);
    }
    .hkw.amber { color: var(--amber); border-color: var(--amber); background: var(--amber-tint); }
    .accred .ref {
      padding: 1.5rem;
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); line-height: 1.7;
    }
    .accred .ref .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); }
    .accred .ref .row:last-child { border-bottom: none; }
    .accred .ref .row .k { color: var(--muted); }
    .accred .ref .row .v { color: var(--text); }

    .edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
    .edu {
      background: var(--panel);
      padding: 1.25rem;
      display: flex; flex-direction: column;
      transition: background .2s;
    }
    .edu:hover { background: var(--panel-2); }
    .edu .y { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: 0.08em; margin-bottom: .55rem; }
    .edu .deg {
      font-family: var(--cond); font-weight: 600;
      font-size: 17px; line-height: 1.2;
      text-transform: uppercase;
      margin-bottom: .35rem;
    }
    .edu .school {
      font-size: 13px; color: var(--text-dim); flex: 1; margin-bottom: .7rem;
    }
    .edu .grade {
      font-family: var(--mono); font-size: 11px;
      color: var(--green); font-weight: 600;
      letter-spacing: 0.04em;
      margin-bottom: .55rem;
    }
    .edu .grade::before { content: "✓ "; }
    .edu-note {
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); line-height: 1.6;
      margin-top: .5rem;
    }
    .edu-logo {
      height: 20px; width: auto; max-width: 70px;
      object-fit: contain;
      filter: grayscale(1) brightness(1.6) opacity(.55);
      margin-top: auto;
    }

    /* ──────────────────────────────────────────────────────────
       PUBLICATIONS
       ────────────────────────────────────────────────────────── */
    .pub-tabs {
      display: flex; gap: 0;
      margin-bottom: 1rem;
      border-bottom: 1px solid var(--border-2);
    }
    .pub-tab {
      font-family: var(--mono); font-size: 11px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-dim);
      padding: 10px 16px;
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-bottom: none;
      margin-bottom: -1px;
      cursor: pointer;
      cursor: pointer;
      transition: all .15s;
    }
    .pub-tab .ct { color: var(--muted); margin-left: 6px; font-weight: 400; }
    .pub-tab:hover { color: var(--text); background: var(--bg-2); }
    .pub-tab.active {
      background: var(--panel);
      color: var(--text);
      border-color: var(--border-2);
      border-top: 2px solid var(--amber);
      padding-top: 9px;
    }
    .pub-tab.active .ct { color: var(--amber); }

    .pub-table {
      width: 100%;
      border: 1px solid var(--border-2);
      background: var(--panel);
      border-collapse: collapse;
    }
    .pub-row {
      display: grid;
      grid-template-columns: 70px 110px 1fr;
      gap: 0;
      border-bottom: 1px solid var(--border);
      align-items: stretch;
      transition: background .15s;
    }
    .pub-row.head {
      background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
      border-bottom: 1px solid var(--border-2);
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
    }
    .pub-row.head > div { padding: 8px 14px; border-right: 1px solid var(--border-2); }
    .pub-row.head > div:last-child { border-right: none; }

    .pub-row:not(.head):hover { background: var(--panel-2); }
    .pub-row.hidden { display: none; }
    .pub-row > div {
      padding: 1rem 14px;
      border-right: 1px solid var(--border);
    }
    .pub-row > div:last-child { border-right: none; }

    .pub-id { font-family: var(--mono); font-size: 11px; color: var(--amber); font-weight: 600; letter-spacing: 0.06em; }
    .pub-yr { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
    .pub-cat {
      display: inline-block;
      font-family: var(--mono); font-size: 9.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 3px 7px;
      background: var(--bg-2);
      color: var(--text-dim);
      border: 1px solid var(--border-2);
      margin-top: 5px;
    }
    .pub-cat.arch { color: var(--amber); border-color: var(--amber); background: var(--amber-tint); }
    .pub-cat.hydro { color: var(--steel-blue); border-color: var(--steel-blue); background: rgba(74,120,184,0.08); }
    .pub-cat.gis { color: var(--green); border-color: var(--green); background: rgba(95,200,143,0.08); }

    .pub-title {
      font-family: var(--sans); font-weight: 600;
      font-size: 14.5px; line-height: 1.4;
      color: var(--text); margin-bottom: .3rem;
    }
    .pub-authors {
      font-size: 12.5px; color: var(--text-dim); line-height: 1.45;
      margin-bottom: .2rem;
    }
    .pub-venue {
      font-family: var(--mono); font-size: 11px;
      color: var(--amber); letter-spacing: 0.04em;
    }
    .award-tag {
      display: inline-flex; align-items: center; gap: .3rem;
      margin-left: .55rem;
      font-family: var(--mono); font-size: 9.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 2px 7px;
      background: var(--amber);
      color: #07101d;
    }
    .pub-row .right { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
    .pub-row .right img {
      height: 22px; width: auto; max-width: 70px;
      object-fit: contain;
      filter: grayscale(1) brightness(1.5) opacity(.55);
    }

    .pres-head {
      font-family: var(--cond); font-weight: 700;
      font-size: 22px;
      text-transform: uppercase;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      letter-spacing: -0.005em;
    }
    .pres-head::before { content: "▸ "; color: var(--amber); }
    .pres-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1px;
      background: var(--border-2);
      border: 1px solid var(--border-2);
    }
    .pres {
      background: var(--panel);
      padding: 1.1rem 1.25rem;
      transition: background .2s;
    }
    .pres:hover { background: var(--panel-2); }
    .pres .y {
      font-family: var(--mono); font-size: 11px; color: var(--amber);
      font-weight: 600; letter-spacing: 0.06em; margin-bottom: .35rem;
    }
    .pres .e {
      font-family: var(--cond); font-weight: 600;
      font-size: 15.5px; line-height: 1.2;
      text-transform: uppercase;
      margin-bottom: .35rem;
    }
    .pres .p {
      font-size: 12px; color: var(--text-dim); line-height: 1.45;
    }
    .pres .photo {
      width: 100%; aspect-ratio: 16/10;
      object-fit: cover;
      margin-top: .75rem;
      border: 1px solid var(--border);
      filter: contrast(1.05);
    }

    .rg-strip {
      margin-top: 2rem;
      padding: 1.25rem 1.5rem;
      background: var(--panel);
      border: 1px solid var(--border-2);
      display: flex; justify-content: space-between; align-items: center;
      gap: 1.5rem; flex-wrap: wrap;
    }
    .rg-strip .l {
      font-family: var(--cond); font-weight: 600;
      font-size: 17px;
      text-transform: uppercase;
      color: var(--text);
    }
    .rg-strip .l small {
      display: block;
      font-family: var(--mono); font-size: 11px; color: var(--muted);
      letter-spacing: 0.06em; margin-top: 3px; font-weight: 400;
      text-transform: none;
    }

    /* ──────────────────────────────────────────────────────────
       PROJECTS — modern image-led grid
       ────────────────────────────────────────────────────────── */
    .proj-grid {
      display: grid; grid-template-columns: repeat(12, 1fr);
      gap: 1.25rem;
    }
    .proj {
      grid-column: span 4;
      background: var(--panel);
      border: 1px solid var(--border-2);
      display: flex; flex-direction: column;
      transition: border-color .2s, transform .2s;
      overflow: hidden;
    }
    .proj.wide { grid-column: span 6; }
    .proj.full { grid-column: span 12; }
    .proj.full { display: grid; grid-template-columns: 1.6fr 1fr; }
    .proj.full .proj-thumb { aspect-ratio: 16/9; }

    .proj:hover { border-color: var(--amber); transform: translateY(-2px); }
    .proj-thumb {
      width: 100%; aspect-ratio: 4/3;
      overflow: hidden; position: relative;
      border-bottom: 1px solid var(--border-2);
      background: var(--bg-2);
    }
    .proj.wide .proj-thumb { aspect-ratio: 16/10; }
    .proj.full .proj-thumb { border-right: 1px solid var(--border-2); border-bottom: none; }
    .proj-thumb img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .5s ease, filter .3s;
      filter: contrast(1.05) saturate(0.9);
    }
    .proj:hover .proj-thumb img { transform: scale(1.05); filter: contrast(1.1) saturate(1); }
    .proj-tag {
      position: absolute; top: 8px; left: 8px;
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 3px 9px;
      background: var(--amber);
      color: #07101d;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .proj-yr-tag {
      position: absolute; top: 8px; right: 8px;
      font-family: var(--mono); font-size: 10.5px; font-weight: 500;
      letter-spacing: 0.08em;
      padding: 3px 9px;
      background: rgba(7,16,29,0.85);
      color: var(--text);
      border: 1px solid var(--border-2);
      backdrop-filter: blur(8px);
    }
    .proj-body {
      padding: 1.1rem 1.25rem;
      display: flex; flex-direction: column;
      flex: 1;
    }
    .proj-id {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--amber); font-weight: 600;
      letter-spacing: 0.1em; margin-bottom: .35rem;
    }
    .proj-source {
      font-family: var(--mono); font-size: 10px;
      color: var(--muted); letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: .55rem;
    }
    .proj-title {
      font-family: var(--cond); font-weight: 700;
      font-size: 19px; line-height: 1.15;
      text-transform: uppercase;
      color: var(--text);
      margin-bottom: .55rem;
      letter-spacing: 0.005em;
    }
    .proj.full .proj-title { font-size: 28px; }
    .proj-desc {
      font-size: 13.5px; line-height: 1.55;
      color: var(--text-dim);
      margin-bottom: .9rem;
      flex: 1;
    }
    .proj-tags-row {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--muted); letter-spacing: 0.04em;
      padding-top: .7rem;
      border-top: 1px solid var(--border);
    }
    .proj-tags-row span::after { content: " · "; color: var(--amber); padding: 0 2px; }
    .proj-tags-row span:last-child::after { content: ""; }

    .proj-cta-strip {
      margin-top: 2rem;
      padding: 1.5rem;
      background: var(--panel);
      border: 1px solid var(--border-2);
      display: flex; justify-content: space-between; align-items: center;
      gap: 1.5rem; flex-wrap: wrap;
    }
    .proj-cta-strip .l {
      font-family: var(--cond); font-weight: 600;
      font-size: 22px; text-transform: uppercase;
      color: var(--text);
    }
    .proj-cta-strip .l small {
      display: block;
      font-family: var(--mono); font-size: 11px; color: var(--muted);
      letter-spacing: 0.06em; margin-top: 4px; font-weight: 400; text-transform: none;
    }

    /* ──────────────────────────────────────────────────────────
       CONTACT
       ────────────────────────────────────────────────────────── */
    .contact-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      align-items: start;
    }
    .contact-pitch {
      font-family: var(--cond); font-weight: 600;
      font-size: clamp(24px, 3vw, 32px);
      line-height: 1.15;
      text-transform: uppercase;
      letter-spacing: -0.005em;
      color: var(--text);
      margin-bottom: 1.5rem;
    }
    .contact-pitch .amber { color: var(--amber); }
    .contact-channels {
      display: flex; flex-direction: column; gap: 1px;
      background: var(--border-2);
      border: 1px solid var(--border-2);
    }
    .channel {
      background: var(--panel);
      padding: 1rem 1.25rem;
      display: grid; grid-template-columns: 100px 1fr auto;
      align-items: center; gap: 1rem;
      transition: background .15s;
    }
    .channel:hover { background: var(--panel-2); }
    .channel .k {
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--muted);
    }
    .channel .v {
      font-family: var(--mono); font-size: 13.5px;
      color: var(--text); font-weight: 500;
      letter-spacing: 0.02em;
      word-break: break-all;
    }
    .channel .v a:hover { color: var(--amber); }
    .channel .copy {
      font-family: var(--mono); font-size: 9.5px; font-weight: 600;
      padding: 4px 9px;
      letter-spacing: 0.1em; text-transform: uppercase;
      background: var(--bg-2);
      color: var(--text-dim);
      border: 1px solid var(--border-2);
      cursor: pointer;
      transition: all .15s;
    }
    .channel .copy:hover { background: var(--amber); color: #07101d; border-color: var(--amber); }

    .collab {
      background: var(--panel);
      border: 1px solid var(--border-2);
    }
    .collab-head {
      background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
      border-bottom: 1px solid var(--border-2);
      padding: 8px 14px;
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text);
    }
    .collab-head::before { content: "■ "; color: var(--amber); font-size: 9px; }
    .collab ul { list-style: none; }
    .collab li {
      display: grid; grid-template-columns: 40px 1fr;
      padding: .75rem 1.25rem;
      border-bottom: 1px solid var(--border);
      align-items: center;
      font-size: 14px;
      color: var(--text-dim);
      transition: background .15s, color .15s;
    }
    .collab li:last-child { border-bottom: none; }
    .collab li:hover { background: var(--panel-2); color: var(--text); }
    .collab li .n {
      font-family: var(--mono); font-size: 10.5px;
      color: var(--amber); font-weight: 600;
      letter-spacing: 0.04em;
    }

    /* ──────────────────────────────────────────────────────────
       GLOBE
       ────────────────────────────────────────────────────────── */
    .globe-wrap {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 1px;
      background: var(--border-2);
      border: 1px solid var(--border-2);
    }
    .globe-stage {
      background: var(--panel);
      position: relative;
      padding: 1.5rem;
      min-height: 480px;
      display: flex; align-items: center; justify-content: center;
    }
    .globe-canvas-wrap {
      position: relative;
      width: 100%;
      max-width: 720px;
      touch-action: none;
      -webkit-user-select: none; user-select: none;
    }
    #globe-svg {
      width: 100%; display: block;
      cursor: grab;
    }
    #globe-svg:active { cursor: grabbing; }
    .globe-hint {
      position: absolute; bottom: 8px; left: 12px;
      font-family: var(--mono); font-size: 10.5px;
      color: var(--muted); letter-spacing: 0.08em;
      text-transform: uppercase;
      pointer-events: none;
    }
    .globe-tooltip {
      position: absolute;
      background: var(--bg-1);
      border: 1px solid var(--border-hi);
      padding: 8px 12px;
      font-family: var(--mono); font-size: 11px;
      color: var(--text);
      pointer-events: none;
      z-index: 5;
      max-width: 240px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .globe-tooltip strong {
      display: block;
      color: var(--amber);
      font-weight: 600;
      margin-bottom: 3px;
      letter-spacing: 0.04em;
    }
    .globe-tooltip span {
      display: block;
      color: var(--text-dim);
      font-family: var(--sans);
      font-size: 12px;
      line-height: 1.4;
      letter-spacing: normal;
    }

    .globe-panel {
      background: var(--panel);
      padding: 1.5rem;
      display: flex; flex-direction: column;
      max-height: 620px;
      overflow: hidden;
    }
    .globe-legend {
      display: flex; flex-direction: column;
      gap: 0;
      margin-bottom: 1.25rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .lg-row {
      display: grid; grid-template-columns: 16px 1fr auto;
      align-items: center; gap: .65rem;
      padding: 6px 0;
      font-family: var(--mono); font-size: 12px;
      color: var(--text);
    }
    .lg-dot {
      display: inline-block;
      width: 12px; height: 12px;
      border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 0 8px currentColor;
    }
    .lg-dot.work  { background: #f7a517; color: rgba(247,165,23,0.5); }
    .lg-dot.conf  { background: #5fc88f; color: rgba(95,200,143,0.5); }
    .lg-dot.field { background: #7fb6e8; color: rgba(127,182,232,0.5); }
    .lg-lbl { color: var(--text); }
    .lg-sel { color: var(--muted); font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; }
    .lg-ct {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      color: var(--text-dim);
      padding: 1px 7px;
      background: var(--bg-2);
      border: 1px solid var(--border-2);
    }

    .globe-list {
      flex: 1;
      overflow-y: auto;
      padding-right: 4px;
    }
    .globe-list::-webkit-scrollbar { width: 8px; }
    .globe-list::-webkit-scrollbar-track { background: var(--bg-1); }
    .globe-list::-webkit-scrollbar-thumb { background: var(--border-2); }
    .globe-list::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

    .gl-group { margin-bottom: 1rem; }
    .gl-group-h {
      display: flex; align-items: center; gap: .55rem;
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
      padding-bottom: .5rem;
      border-bottom: 1px dashed var(--border);
      margin-bottom: .35rem;
    }
    .gl-group-h .lg-dot { width: 8px; height: 8px; box-shadow: 0 0 5px currentColor; }
    .gl-group ul { list-style: none; }
    .gl-group li {
      padding: 6px 8px;
      border-left: 2px solid transparent;
      cursor: pointer;
      transition: background .15s, border-color .15s;
    }
    .gl-group li:hover {
      background: var(--panel-2);
      border-left-color: var(--amber);
    }
    .gl-name {
      display: block;
      font-family: var(--sans); font-size: 13.5px; font-weight: 500;
      color: var(--text);
      letter-spacing: 0.01em;
    }
    .gl-note {
      display: block;
      font-family: var(--mono); font-size: 10.5px;
      color: var(--muted); letter-spacing: 0.02em;
      margin-top: 1px;
    }

    .markers .marker { transition: opacity .25s; }

    /* Enlarged tap target: only swallows pointer events on touch (coarse) pointers, so
       the forgiving hit area helps fingers on mobile WITHOUT widening the hover trigger
       on desktop (where a near-miss cursor shouldn't pop a tooltip). */
    .markers .marker .hit { pointer-events: none; }
    @media (pointer: coarse) {
      .markers .marker .hit { pointer-events: all; }
    }

    /* Clicked-selected site: glows red and pulses so it stands out while the
       auto-rotation is locked and the visitor reads its label. CSS `fill`/`stroke`
       override the inline category colour set by JS. */
    .markers .marker.selected { filter: drop-shadow(0 0 5px #ff3b30); }
    .markers .marker.selected circle:nth-of-type(1) {   /* outer pulse */
      fill: #ff3b30; opacity: 0.3;
      animation: globe-marker-pulse 1.4s ease-in-out infinite;
    }
    .markers .marker.selected circle:nth-of-type(2) {   /* ring */
      stroke: #ff3b30; opacity: 1;
    }
    .markers .marker.selected circle:nth-of-type(3) {   /* dot */
      fill: #ff3b30;
    }
    @keyframes globe-marker-pulse {
      0%, 100% { opacity: 0.18; }
      50%      { opacity: 0.45; }
    }
    @media (prefers-reduced-motion: reduce) {
      .markers .marker.selected circle:nth-of-type(1) { animation: none; }
    }

    /* ──────────────────────────────────────────────────────────
       FOOTER + status bar
       ────────────────────────────────────────────────────────── */
    .statusbar {
      background: #000;
      border-top: 1px solid var(--border);
      padding: 4px clamp(1rem, 3vw, 2rem);
      font-family: var(--mono); font-size: 11px;
      color: var(--muted); letter-spacing: 0.04em;
      display: flex; justify-content: space-between; align-items: center;
      gap: 1rem; flex-wrap: wrap;
    }
    .statusbar .l { display: flex; gap: 1.25rem; }
    .statusbar .r { display: flex; gap: 1.25rem; }
    .statusbar .blink::before {
      content: "● "; color: var(--green); animation: blink 2s infinite;
    }

    footer {
      background: var(--bg-1);
      border-top: 1px solid var(--border-2);
      padding: 2.5rem 0 1.5rem;
    }
    .foot-grid {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 2rem;
    }
    .foot-brand {
      display: flex; align-items: center; gap: 1rem;
    }
    .foot-brand .mark {
      width: 44px; height: 44px;
      background: var(--amber);
      color: #07101d;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--cond); font-weight: 700; font-size: 22px;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    .foot-brand .t {
      font-family: var(--cond); font-weight: 700;
      font-size: 18px; text-transform: uppercase;
      line-height: 1.15;
    }
    .foot-brand .t small {
      display: block;
      font-family: var(--mono); font-size: 10.5px; font-weight: 400;
      color: var(--muted); letter-spacing: 0.08em;
      margin-top: 4px; text-transform: uppercase;
    }
    .foot-col h5 {
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--amber);
      margin-bottom: .85rem;
    }
    .foot-col a {
      display: block;
      font-family: var(--mono); font-size: 12px;
      color: var(--text-dim);
      padding: 3px 0;
      transition: color .15s;
    }
    .foot-col a:hover { color: var(--amber); }
    .foot-bottom {
      margin-top: 2.5rem; padding-top: 1.25rem;
      border-top: 1px solid var(--border);
      display: flex; justify-content: space-between; align-items: center;
      gap: 1rem; flex-wrap: wrap;
      font-family: var(--mono); font-size: 10.5px;
      color: var(--muted); letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    /* reveal — only hidden when JS is available (html.js), so no-JS users still see content */
    .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s, transform .55s; }
    .reveal.in { opacity: 1; transform: none; }

    /* RESPONSIVE */
    /* ──────────────────────────────────────────────────────────
       MOBILE HAMBURGER MENU
       ────────────────────────────────────────────────────────── */
    .hamburger {
      display: none;
      width: 40px; height: 40px;
      background: var(--bg-2);
      border: 1px solid var(--border-2);
      cursor: pointer;
      padding: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: background .15s;
    }
    .hamburger:hover { background: var(--bg-3); }
    .hamburger span {
      display: block;
      width: 18px; height: 2px;
      background: var(--amber);
      transition: transform .25s ease, opacity .2s ease;
      transform-origin: center;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 64px; left: 0; right: 0; bottom: 0;
      z-index: 99;
      background: var(--bg-0);
      flex-direction: column;
      padding: 1rem clamp(1rem, 4vw, 2rem) 3rem;
      gap: 2px;
      overflow-y: auto;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity .2s ease, transform .2s ease;
      pointer-events: none;
    }
    .mobile-menu.open {
      display: flex;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .mobile-menu .m-tab {
      display: flex; align-items: center; gap: 1rem;
      font-family: var(--cond); font-weight: 700;
      font-size: 20px; letter-spacing: 0.01em;
      text-transform: uppercase;
      color: var(--text);
      padding: 1rem 1.25rem;
      background: var(--panel);
      border: 1px solid var(--border-2);
      border-left: 3px solid transparent;
      text-decoration: none;
      transition: border-left-color .15s, background .15s;
    }
    .mobile-menu .m-tab:hover,
    .mobile-menu .m-tab.active {
      border-left-color: var(--amber);
      background: var(--panel-2);
    }
    .mobile-menu .m-tab .n {
      font-family: var(--mono);
      font-size: 11px; font-weight: 600;
      color: var(--amber); letter-spacing: 0.1em;
      min-width: 28px;
    }
    body.menu-open { overflow: hidden; }

    @media (max-width: 1100px) {
      .hero-grid { grid-template-columns: 1fr; }
      .hero-spec { max-width: 380px; }
      .about-grid { grid-template-columns: 1fr; }
      .tabs { display: none; }
      .hamburger { display: flex; }
      .top-right { padding: 0 .25rem 0 .5rem; border-left: none; }
      .skills-grid { grid-template-columns: repeat(2, 1fr); }
      .proj { grid-column: span 6; }
      .proj.wide { grid-column: span 6; }
      .proj.full { grid-column: span 12; grid-template-columns: 1fr; }
      .proj.full .proj-thumb { border-right: none; border-bottom: 1px solid var(--border-2); }
      .edu-grid { grid-template-columns: 1fr 1fr; }
      .accred { grid-template-columns: 1fr; }
      .accred .body { border: none; border-bottom: 1px solid var(--border-2); }
      .log-head, .log-row { grid-template-columns: 40px 110px 1fr; }
      .log-head > div:nth-child(4), .log-row > div:nth-child(4) { display: none; }
      .pub-row { grid-template-columns: 50px 90px 1fr; }
      .hero-meters { grid-template-columns: repeat(2, 1fr); }
      .contact-grid { grid-template-columns: 1fr; }
      .channel { grid-template-columns: 90px 1fr auto; }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .globe-wrap { grid-template-columns: 1fr; }
      .globe-panel { max-height: none; }
    }
    @media (max-width: 680px) {
      .topbar-main { min-height: 56px; }
      .mobile-menu { top: 56px; }
      .brand { padding: 0 .65rem 0 .25rem; gap: .55rem; }
      .brand-mark { width: 32px; height: 32px; font-size: 16px; }
      .brand-text { font-size: 13px; }
      .brand-text small { font-size: 9px; margin-top: 1px; }
      .hamburger { width: 36px; height: 36px; }
      .topbar-strip { font-size: 10px; }
      .topbar-strip .right { display: none; }

      h1.hero-title { font-size: 14vw; }
      .hero-desc { font-size: 14.5px; }
      .hero-spec { max-width: 340px; margin: 0 auto; }
      .hero-photo-wrap { aspect-ratio: 3 / 4; }
      .hero-photo { object-position: 50% 20%; }

      .sect-head { grid-template-columns: auto 1fr; gap: .85rem; }
      .sect-num { font-size: 38px; }
      .sect-num .pre { font-size: 10px; }
      .sect-title { font-size: clamp(22px, 6.5vw, 32px); }
      .sect-meta { grid-column: 1 / -1; text-align: left; padding-top: .35rem; }

      section { padding: clamp(2rem, 8vw, 3.5rem) 0; scroll-margin-top: 70px; }
      .container { padding: 0 clamp(.85rem, 4vw, 1.5rem); }

      .skills-grid { grid-template-columns: 1fr; }
      .proj, .proj.wide { grid-column: span 12; }
      .edu-grid { grid-template-columns: 1fr; }
      .pres-grid { grid-template-columns: 1fr; }
      .foot-grid { grid-template-columns: 1fr; }

      /* Career rows — show location inline */
      .log-head, .log-row { grid-template-columns: 30px 90px 1fr; gap: 0; }
      .log-row .id { font-size: 12px; }
      .log-row .date { font-size: 11px; }
      .log-row .date small { font-size: 9.5px; }
      .log-row .role { font-size: 14.5px; }
      .log-row .org { font-size: 12.5px; }
      .log-row .desc { font-size: 12.5px; }
      .log-row .loc {
        display: block !important;
        grid-column: 3;
        font-family: var(--mono);
        font-size: 10px; color: var(--muted);
        letter-spacing: 0.1em;
        padding: .35rem 14px .5rem;
        background: transparent;
        border-right: none !important;
      }
      .log-row .loc br { display: none; }
      .log-row .loc .loc-c::before { content: ", "; }
      .log-row .loc::before { content: "[ "; color: var(--amber); }
      .log-row .loc::after { content: " ]"; color: var(--amber); }
      .log-head > div:nth-child(4) { display: none; }

      /* Personal data table — stack rows on narrow phones */
      .data-table td:first-child { width: 100px; font-size: 9.5px; }
      .data-table td:last-child { font-size: 12px; }

      /* Project chips wrap nicely */
      .proj-tags-row { gap: 4px; flex-wrap: wrap; }

      /* Publications — tighter on narrow phones */
      .pub-row { grid-template-columns: 32px 88px 1fr; gap: .25rem; padding: .85rem .25rem; }
      .pub-row > div { padding: .35rem .35rem; }
      .pub-row > div:nth-child(2) {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        text-align: center; gap: 4px;
      }
      .pub-row > div:nth-child(2) br { display: none; }
      .pub-yr { font-size: 12px; }
      .pub-cat { font-size: 8.5px; padding: 2px 6px; margin-top: 0; letter-spacing: 0.08em; }
      .pub-title { font-size: 12.5px; line-height: 1.35; }
      .pub-authors { font-size: 11px; }
      .pub-venue { font-size: 10.5px; }

      /* Channels stacked */
      .channel { grid-template-columns: 1fr; gap: .35rem; }
      .channel .copy { justify-self: start; }

      /* Globe — taller for touch */
      .globe-stage { min-height: 360px; padding: .85rem; }
      .globe-hint { font-size: 9px; }

      /* Footer */
      .foot-brand { grid-column: 1 / -1; }
      .foot-bottom { flex-direction: column; gap: .5rem; text-align: center; }

      /* Send-email button full-width on mobile */
      .btn-mail { width: 100%; text-align: center; box-sizing: border-box; }
    }
    @media (max-width: 380px) {
      h1.hero-title { font-size: 16vw; }
      .sect-num { font-size: 32px; }
      .log-head, .log-row { grid-template-columns: 26px 72px 1fr; }
      .data-table td:first-child { width: 84px; font-size: 9px; }
    }

    /* ── SHARED CV-PANEL BASE STYLES ──────────────────────────────
       Identity, role, bio, meta-row and section headers. Reused by the
       3D Simplified view's info panel (#av-info-panel). */
    /* Identity */
    .sv-identity {
      display: grid; grid-template-columns: 1fr 155px;
      gap: 2rem; align-items: start;
      padding-bottom: 1.5rem; margin-bottom: 1.5rem;
      border-bottom: 2px solid var(--amber);
    }
    .sv-name {
      font-family: var(--cond); font-weight: 700;
      font-size: clamp(40px, 6vw, 72px);
      line-height: .88; letter-spacing: -0.02em;
      text-transform: uppercase; color: var(--text);
      margin-bottom: .65rem;
    }
    .sv-name .u { border-bottom: 4px solid var(--amber); padding-bottom: 3px; display: inline-block; }
    .sv-role {
      font-family: var(--mono); font-size: 11.5px; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--text-dim);
      display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
      margin-bottom: .85rem;
    }
    .sv-role .sep { color: var(--amber); }
    .sv-bio {
      font-size: 13.5px; line-height: 1.65;
      color: var(--text-dim); max-width: 580px;
      margin-bottom: 1rem;
    }
    .sv-bio b { color: var(--text); }
    .sv-meta-row {
      display: flex; gap: 1.5rem; flex-wrap: wrap;
      font-family: var(--mono); font-size: 11px; color: var(--muted);
    }
    .sv-meta-row span { display: flex; align-items: center; gap: .35rem; }
    .sv-meta-row .k {
      font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 2px 6px;
      background: var(--bg-2); border: 1px solid var(--border);
    }
    .sv-meta-row .val { color: var(--text); }
    /* Shared section header */
    .sv-section { margin-bottom: 1.5rem; }
    .sv-section-head {
      display: flex; align-items: center; gap: .85rem;
      margin-bottom: .75rem; padding-bottom: .4rem;
      border-bottom: 1px solid var(--border-2);
    }
    .sv-section-label {
      font-family: var(--mono); font-size: 10px; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--amber); white-space: nowrap;
    }
    .sv-section-head .ln { flex: 1; height: 1px; background: var(--border); }
    .sv-section-count {
      font-family: var(--mono); font-size: 10px; font-weight: 500;
      color: var(--muted); letter-spacing: 0.06em; white-space: nowrap;
    }

    /* Shared CV-panel responsive — mirrors main page breakpoints */
    @media (max-width: 1100px) {
      .sv-identity { grid-template-columns: 1fr 128px; gap: 1.25rem; }
    }
    @media (max-width: 680px) {
      /* identity — keep side-by-side grid, just shrink the photo column */
      .sv-identity { grid-template-columns: 1fr 96px; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
      .sv-name { font-size: clamp(34px, 10vw, 56px); margin-bottom: .5rem; }
      .sv-role { font-size: 10.5px; gap: .35rem; margin-bottom: .65rem; }
      .sv-bio { font-size: 13px; margin-bottom: .75rem; }
      .sv-meta-row { gap: .65rem; font-size: 10.5px; flex-wrap: wrap; }
      .sv-meta-row .k { font-size: 8.5px; }

      /* section heads — hide count to save space */
      .sv-section-head { flex-wrap: wrap; gap: .5rem .85rem; }
      .sv-section-count { display: none; }
      .sv-section { margin-bottom: 1.25rem; }
    }
    @media (max-width: 380px) {
      .sv-identity { grid-template-columns: 1fr 80px; gap: .75rem; }
      .sv-name { font-size: 11vw; }
    }

    /* ── 3D SIMPLIFIED VIEW OVERLAY (3DGS + CV panel) ─────────────── */
    @keyframes spin { to { transform: rotate(360deg); } }

    #av-overlay {
      position: fixed; inset: 0; z-index: 300;
      background: var(--bg-0);
      display: flex; flex-direction: column;
      opacity: 0; pointer-events: none;
      transition: opacity .25s ease;
    }
    #av-overlay.open { opacity: 1; pointer-events: auto; }
    body.av-open {
      overflow: hidden;
      position: fixed;
      width: 100%;
      touch-action: none;
    }

    .av-topbar {
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between;
      background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
      border-bottom: 2px solid var(--amber);
      box-shadow: 0 2px 20px rgba(0,0,0,.7);
      padding: env(safe-area-inset-top) max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
      min-height: 54px; gap: 1rem;
    }
    .av-topbar-left { display: flex; align-items: center; gap: .85rem; }
    .av-topbar-mark {
      width: 32px; height: 32px;
      background: var(--amber); color: #07101d;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--cond); font-weight: 700; font-size: 16px;
      flex-shrink: 0;
    }
    .av-topbar-title {
      font-family: var(--mono); font-size: 11px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
    }
    .av-topbar-title small {
      display: block; font-size: 9.5px; color: var(--muted);
      font-weight: 400; letter-spacing: 0.08em; margin-top: 1px;
    }
    /* Desktop shows the full header text; the shorter mobile variant is hidden here
       and swapped in within the mobile media query. */
    .av-tt-mob { display: none; }
    .av-close {
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 7px 14px;
      background: transparent; color: var(--text-dim);
      border: 1px solid var(--border-2);
      cursor: pointer; transition: all .15s;
      display: flex; align-items: center; gap: .45rem;
      flex-shrink: 0;
    }
    .av-close:hover { background: var(--amber); color: #07101d; border-color: var(--amber); }

    /* Split-pane body: info left + 3D canvas right */
    #av-body {
      display: flex;
      flex-direction: row;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    #av-info-panel {
      width: 380px;
      flex-shrink: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      border-right: 1px solid var(--border-2);
      background: var(--bg-0);
      padding:
        clamp(1.25rem, 2.5vw, 2rem)
        clamp(1rem, 2vw, 1.5rem)
        max(clamp(1.25rem, 2.5vw, 2rem), env(safe-area-inset-bottom))
        max(clamp(1rem, 2vw, 1.5rem), env(safe-area-inset-left));
    }
    #av-info-panel::-webkit-scrollbar { width: 6px; }
    #av-info-panel::-webkit-scrollbar-track { background: var(--bg-1); }
    #av-info-panel::-webkit-scrollbar-thumb { background: var(--border-2); }
    .av-page { max-width: 100%; }

    /* In the AV panel the 3D canvas IS the photo — single-column identity */
    #av-info-panel .sv-identity { grid-template-columns: 1fr; }

    /* 3D canvas fills the remaining width */
    #av-canvas-panel {
      flex: 1;
      position: relative;
      min-width: 0;
      background: #000;
    }
    #av-canvas-inner {
      position: absolute;
      inset: 0;
      z-index: 1;
      touch-action: none;
      -webkit-tap-highlight-color: transparent;
    }
    #av-loading {
      position: absolute;
      inset: 0;
      background: rgba(7, 16, 29, 0.92);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 10;
      color: var(--text);
      transition: opacity 0.5s ease;
    }
    .av-spinner {
      width: 46px; height: 46px;
      border: 3px solid var(--border-2);
      border-top-color: var(--amber);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
      margin-bottom: 18px;
    }
    #av-status {
      font-family: var(--mono); font-size: 12px;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-dim);
    }

    /* ── 3D canvas HUD overlays (capture EXIF + live camera offset) ── */
    .av-hud {
      position: absolute;
      z-index: 5;
      font-family: var(--mono);
      background: rgba(7, 16, 29, 0.72);
      border: 1px solid var(--border-2);
      border-radius: 6px;
      padding: 11px 13px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: var(--text-dim);
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
      pointer-events: none;
      max-width: min(46%, 320px);
    }
    #av-canvas-panel.av-ready .av-hud { opacity: 1; transform: none; }
    .av-hud-tl { top: 14px; left: 14px; }
    .av-hud-bl { bottom: 14px; left: 14px; }
    .av-hud-title {
      font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--amber); font-weight: 600; white-space: nowrap;
    }
    #av-coords-mode { color: var(--text-dim); font-weight: 400; }
    .av-hud-sub {
      font-size: 9.5px; letter-spacing: 0.04em;
      color: var(--text-dim); opacity: 0.7; margin-top: 3px;
    }
    .av-meta {
      display: grid; grid-template-columns: auto 1fr; gap: 3px 14px;
      margin-top: 9px; font-size: 11px; line-height: 1.3;
    }
    .av-meta .k { color: var(--text-dim); opacity: 0.6; }
    .av-meta .v { color: var(--text); text-align: right; white-space: nowrap; }
    .av-xyz { display: flex; gap: 8px; margin-top: 9px; }
    .av-xyz .ax {
      display: flex; align-items: baseline; gap: 5px;
      background: var(--bg-1); border: 1px solid var(--border-2);
      border-radius: 4px; padding: 4px 8px; min-width: 0;
    }
    .av-xyz .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }
    .av-xyz .val {
      font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .ax-x .lbl { color: #e07a5a; }
    .ax-y .lbl { color: #6cc488; }
    .ax-z .lbl { color: #4a78b8; }
    .av-xyz-foot {
      display: flex; justify-content: space-between; gap: 12px;
      margin-top: 7px; font-size: 9.5px; letter-spacing: 0.04em;
      color: var(--text-dim); opacity: 0.7;
    }
    #av-coords.av-live .av-hud-title { color: var(--amber); }
    #av-coords.av-live #av-dist { color: var(--amber); opacity: 1; }

    /* Frameless, full-width strip pinned to the bottom edge of the canvas so the
       readout sits below the (centred) point cloud instead of floating over it.
       Transparent like #av-capture, with a soft fade-up gradient + text shadow
       to keep the values legible against bright parts of the model. */
    #av-coords {
      left: 0; right: 0; bottom: 0;
      max-width: none;
      display: flex; align-items: center; flex-wrap: wrap;
      gap: 7px 16px;
      padding: 8px 14px max(8px, env(safe-area-inset-bottom));
      background: linear-gradient(to top, rgba(7, 16, 29, 0.55), rgba(7, 16, 29, 0));
      border-color: transparent;
      backdrop-filter: none; -webkit-backdrop-filter: none;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    }
    #av-coords .av-hud-title { margin-right: auto; }
    #av-coords .av-xyz { margin-top: 0; }
    #av-coords .av-xyz-foot { margin-top: 0; white-space: nowrap; }
    #av-coords .av-reset-btn { margin-top: 0; width: auto; }

    /* Capture EXIF: kept faint so it never competes with the 3D view; reveals on hover */
    #av-capture {
      background: transparent;
      border-color: transparent;
      backdrop-filter: none; -webkit-backdrop-filter: none;
      padding: 6px 8px;
      pointer-events: auto;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    }
    #av-canvas-panel.av-ready #av-capture { opacity: 0.32; }
    #av-canvas-panel.av-ready #av-capture:hover {
      opacity: 1;
      background: rgba(7, 16, 29, 0.72);
      border-color: var(--border-2);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      text-shadow: none;
    }
    #av-capture .av-hud-title { font-size: 9px; }
    #av-capture .av-hud-sub { font-size: 8.5px; }
    #av-capture .av-meta { font-size: 9.5px; gap: 2px 12px; margin-top: 6px; }
    /* Touch devices: the hover-reveal is meaningless, and an interactive panel would
       swallow rotate/pan/pinch gestures in the top-left corner — let touches pass through. */
    @media (pointer: coarse) {
      #av-capture { pointer-events: none; }
      #av-canvas-panel.av-ready #av-capture { opacity: 0.4; }
    }

    /* Reset view — snaps the camera back to the opening datum (offset 0,0,0) */
    .av-reset-btn {
      margin-top: 9px; width: 100%;
      font-family: var(--mono); font-size: 10px;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--amber); background: var(--amber-tint);
      border: 1px solid var(--border-2); border-radius: 4px;
      padding: 6px 8px; cursor: pointer; pointer-events: auto;
      transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
    }
    .av-reset-btn:hover { background: rgba(247, 165, 23, 0.16); border-color: var(--amber); }
    .av-reset-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

    /* ── POINT-CLOUD TEXT AESTHETIC (3D Simplified view only) ──────
       Scoped to #av-info-panel + .av-topbar so the standard page is
       never affected. */

    /* Whole panel adopts a technical monospace "data readout" feel */
    #av-info-panel {
      font-family: var(--mono);
    }
    #av-info-panel .sv-bio {
      font-family: var(--mono);
      font-size: 12px; line-height: 1.85; letter-spacing: 0.01em;
    }

    /* ── 3D-SIMPLIFIED-VIEW DATA VISUALISATIONS (scoped to #av-info-panel) ──
       The CV data, presented as compact technical diagrams. */

    /* 1 · Areas of Collaboration → Capability Matrix (node-tile array) */
    .av-cap-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      grid-auto-rows: 1fr;
      gap: 6px;
    }
    .av-cap-node {
      position: relative;
      display: flex; flex-direction: column;
      background:
        radial-gradient(circle at center, rgba(247,165,23,0.06) 0 0.6px, transparent 1px) 0 0 / 5px 5px,
        var(--panel);
      border: 1px solid var(--border-2);
      padding: .65rem .7rem .7rem;
      overflow: hidden;
      transition: border-color .18s, background-color .18s, transform .18s;
    }
    .av-cap-node::before, .av-cap-node::after {
      content: ""; position: absolute; width: 7px; height: 7px;
      border-style: solid; border-color: var(--amber); border-width: 0;
      opacity: .5; transition: opacity .18s;
    }
    .av-cap-node::before { top: 4px; left: 4px; border-top-width: 1px; border-left-width: 1px; }
    .av-cap-node::after  { bottom: 4px; right: 4px; border-bottom-width: 1px; border-right-width: 1px; }
    .av-cap-node:hover {
      border-color: var(--amber);
      background-color: var(--panel-2);
      transform: translateY(-1px);
    }
    .av-cap-node:hover::before, .av-cap-node:hover::after { opacity: 1; }
    .av-cap-top {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: .5rem;
    }
    .av-cap-id {
      font-family: var(--mono); font-size: 10px; font-weight: 600;
      letter-spacing: .12em; color: var(--amber);
    }
    .av-cap-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--green); box-shadow: 0 0 6px var(--green);
      animation: blink 2.4s infinite; flex-shrink: 0;
    }
    .av-cap-label {
      font-family: var(--mono); font-size: 11px; line-height: 1.45;
      color: var(--text-dim);
    }
    .av-cap-node:hover .av-cap-label { color: var(--text); }

    /* 2 · Career → Activity Timeline (axis + nodes + duration bars) */
    .av-tl { position: relative; padding-left: 20px; }
    .av-tl::before {
      content: ""; position: absolute; left: 4px; top: 5px; bottom: 5px;
      width: 2px;
      background: linear-gradient(180deg, var(--amber) 0%, var(--steel-blue) 55%, var(--border-2) 100%);
    }
    .av-tl-item { position: relative; padding-bottom: 1.05rem; }
    .av-tl-item:last-child { padding-bottom: 0; }
    .av-tl-node {
      position: absolute; left: -20px; top: 3px;
      width: 9px; height: 9px; border-radius: 50%;
      background: var(--bg-0); border: 2px solid var(--steel-blue);
    }
    .av-tl-current .av-tl-node {
      border-color: var(--green); background: var(--green);
      box-shadow: 0 0 9px var(--green);
      animation: blink 2s infinite;
    }
    .av-tl-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
    .av-tl-date { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
    .av-tl-current .av-tl-date { color: var(--amber); }
    .av-tl-dur { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    .av-tl-role { font-family: var(--cond); font-weight: 600; font-size: 13.5px; text-transform: uppercase; line-height: 1.2; color: var(--text); margin-top: 2px; }
    .av-tl-org { font-family: var(--mono); font-size: 10.5px; color: var(--amber); margin-top: 1px; }
    .av-tl-loc { font-family: var(--mono); font-size: 10px; color: var(--text-dim); margin-top: 1px; letter-spacing: .03em; }
    .av-tl-bar {
      margin-top: 6px; height: 4px; max-width: 220px;
      background: var(--bg-2); border: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    .av-tl-bar span {
      display: block; height: 100%;
      background: linear-gradient(90deg, var(--steel-blue), var(--amber));
    }
    .av-tl-current .av-tl-bar span { background: linear-gradient(90deg, var(--amber), var(--green)); }
    .av-tl-cap {
      font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
      text-transform: uppercase; color: var(--faint);
      margin: 0 0 .65rem 20px;
    }

    /* 3 · Education → Verified Credentials (cards + accreditation badges) */
    .av-cred-list { display: flex; flex-direction: column; gap: 6px; }
    .av-cred {
      position: relative; display: grid; grid-template-columns: 64px 1fr;
      background: var(--panel); border: 1px solid var(--border-2);
      border-left: 2px solid var(--amber);
      transition: background-color .18s, border-color .18s;
    }
    .av-cred:hover { background: var(--panel-2); border-left-color: var(--green); }
    .av-cred > div { padding: .65rem .7rem; }
    .av-cred-yr {
      font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--amber);
      letter-spacing: .01em; border-right: 1px solid var(--border);
      display: flex; align-items: flex-start; white-space: nowrap;
      padding-left: .55rem; padding-right: .55rem;
    }
    .av-cred-main { min-width: 0; }
    .av-cred-deg { font-family: var(--cond); font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--text); line-height: 1.2; margin-bottom: 3px; }
    .av-cred-school { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); line-height: 1.55; }
    .av-cred-foot { margin-top: 7px; }
    .av-cred-score {
      display: inline-block;
      font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em;
      color: var(--green); border: 1px solid var(--green);
      background: rgba(95,200,143,.08); padding: 2px 7px;
    }
    .av-cred-score::before { content: "✓ "; }
    .av-cred-badge {
      display: inline-flex; align-items: center; gap: .3rem;
      font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .12em;
      text-transform: uppercase; color: var(--steel-blue);
      border: 1px solid var(--steel-blue); background: rgba(74,120,184,.08); padding: 3px 8px;
    }
    .av-cred-badge::before { content: "◆"; font-size: 7px; }

    /* Hero photo 3D-view button */
    .hero-3d-btn {
      width: 100%;
      display: flex; align-items: center; gap: .5rem;
      font-family: var(--mono); font-size: 10.5px; font-weight: 600;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--steel-blue);
      padding: 9px 14px;
      background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
      border: none;
      border-top: 1px solid var(--border-2);
      cursor: pointer; transition: color .15s, background .15s;
      text-align: left;
    }
    .hero-3d-btn:hover { color: var(--amber); background: var(--bg-2); }
    .hero-3d-ico { font-size: 7px; flex-shrink: 0; }

    /* Hide desktop av-open btn at tablet/mobile (visible in mobile drawer instead) */
    @media (max-width: 1100px) {
      .top-right .av-open { display: none; }
    }

    /* Tablet: narrow info panel */
    @media (max-width: 900px) and (min-width: 769px) {
      #av-info-panel { width: 300px; }
      #av-info-panel .sv-name { font-size: clamp(28px, 4vw, 42px); }
    }

    /* Mobile: canvas on top, CV info below. The whole #av-body scrolls as ONE
       unit (not the info panel internally), so scrolling down on iOS/Android
       carries the 3D point-cloud profile up and off-screen — it "disappears" —
       and scrolling back up brings it into view again. */
    @media (max-width: 768px) {
      #av-body {
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
      }
      #av-canvas-panel {
        order: -1;
        height: 70vh;
        min-height: 320px;
        flex-shrink: 0;
      }
      #av-info-panel {
        order: 0;
        width: 100%;
        /* Grow to fill, but let tall content extend #av-body so the page (and the
           canvas above it) scrolls — no nested scroll that would pin the canvas. */
        flex: 1 0 auto;
        overflow: visible;
        border-right: none;
        border-top: 1px solid var(--border-2);
        padding: 1.25rem
          max(1rem, env(safe-area-inset-right))
          max(1.25rem, env(safe-area-inset-bottom))
          max(1rem, env(safe-area-inset-left));
      }
      #av-info-panel .sv-name { font-size: clamp(32px, 9vw, 52px); }
      .av-topbar { min-height: 50px; padding: env(safe-area-inset-top) 1rem 0; gap: .5rem; align-items: center; }
      .av-topbar-mark { width: 28px; height: 28px; font-size: 14px; }
      .av-topbar-title { font-size: 10px; min-width: 0; }
      /* Shorter header text on mobile (full version stays on desktop) */
      .av-tt-full { display: none; }
      .av-tt-mob { display: inline; }
      /* Title + subtitle stay visible on mobile (they never overlap the canvas) but
         each is clamped to one ellipsised line so they can't push the buttons away. */
      .av-topbar-titletext,
      .av-topbar-title small {
        display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      }
      .av-topbar-title small { font-size: 8.5px; margin-top: 0; }
      .av-topbar-left { min-width: 0; }
      .av-close { min-height: 44px; padding: 0 12px; font-size: 10px; }

      /* The capture EXIF table covers too much of the short mobile canvas — hide it.
         The camera-offset strip (#av-coords) stays: it's the transparent bottom bar
         with X/Y/Z + Reset, sitting at the foot of the canvas like on desktop. */
      #av-capture { display: none; }
      #av-coords { gap: 5px 10px; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); }
      #av-coords .av-hud-title { font-size: 9px; }
      #av-coords .av-xyz { gap: 5px; }
      #av-coords .av-xyz .ax { padding: 3px 7px; }
      #av-coords .av-xyz .val { font-size: 11px; }
      #av-coords .av-xyz-foot { font-size: 9px; }
      #av-coords .av-reset-btn { min-height: 36px; padding: 6px 10px; font-size: 9px; }
    }

    @media (max-width: 420px) {
      /* Very narrow: collapse the Close text to the ✕ glyph so the title fits */
      .av-btn-label { display: none; }
      .av-close { padding: 0 11px; }
    }

    @media (max-width: 380px) {
      #av-canvas-panel { height: 62vh; }
      #av-info-panel .sv-name { font-size: 10vw; }
      #av-info-panel .av-cap-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
    }
