:root {
    --bg: #070a0f;
    --surface: #0c111a;
    --accent: #f0b86e;
    --accent2: #e8a25c;
    --accent3: #d4b48a;
    --text: #f4efe6;
    --muted: #a39e93;
    --border: rgba(240,184,110,0.16);
    --glow: 0 0 30px rgba(240,184,110,0.22);
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-credit: 'DM Sans', sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    scroll-behavior: auto;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  body::before {
    content: ''; position: fixed; inset: 0;
    background-image: linear-gradient(rgba(240,184,110,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(240,184,110,0.025) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none; z-index: 0;
    animation: gridFloat 20s linear infinite;
  }
  @keyframes gridFloat { 0%{background-position:0 0,0 0} 100%{background-position:60px 60px,60px 60px} }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* NAV — floating buttons only (no filled bar) */
  body > nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 16px;
    padding-left: max(4%, env(safe-area-inset-left));
    padding-right: max(4%, env(safe-area-inset-right));
    pointer-events: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    max-width: 1440px;
    margin: 0 auto;
  }
  body > nav > * { pointer-events: auto; }
  body.pd-open body > nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-credit);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    text-decoration: none;
    color: #f2ece1;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: 30px;
    background: rgba(8,12,18,0.55);
    border: 1px solid rgba(240,184,110,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  }
  .nav-logo:hover {
    border-color: rgba(240,184,110,0.7);
    color: #f0b86e;
    background: rgba(240,184,110,0.08);
    box-shadow: 0 0 16px rgba(240,184,110,0.2);
    transform: scale(1.04);
  }
  .nav-logo-icon {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  .nav-logo:hover .nav-logo-icon {
    transform: rotate(8deg) scale(1.08);
  }

  /* ABOUT — legendary systems-builder editorial */
  #about {
    --about-ink: #f4efe6;
    --about-muted: rgba(244, 239, 230, 0.7);
    --about-line: rgba(240, 184, 110, 0.15);
    --about-accent: #f0b86e;
    --about-cyan: #e8a25c;
    background: #06080d;
    color: var(--about-ink);
    position: relative;
    overflow: hidden;
    padding: clamp(88px, 12vh, 130px) 5% clamp(96px, 12vh, 140px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }
  .about-stage {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
  }
  .about-video,
  .about-video-fallback {
    position: absolute; inset: -8%;
    width: 116%; height: 116%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.04);
    filter: contrast(1.08) saturate(0.55) brightness(0.28);
    opacity: 0.55;
    will-change: transform;
  }
  .about-video-fallback {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 45% at 70% 30%, rgba(80, 110, 140, 0.28) 0%, transparent 65%),
      radial-gradient(ellipse 50% 50% at 20% 70%, rgba(30, 45, 70, 0.2) 0%, transparent 60%),
      #06080d;
    opacity: 1;
  }
  .about-video-wash {
    position: absolute; inset: 0; z-index: 2;
    background:
      linear-gradient(90deg, rgba(6,8,13,0.92) 0%, rgba(6,8,13,0.72) 42%, rgba(6,8,13,0.55) 100%),
      linear-gradient(180deg, rgba(6,8,13,0.75) 0%, rgba(6,8,13,0.35) 40%, rgba(6,8,13,0.88) 100%);
  }
  .about-video-grain {
    position: absolute; inset: 0; z-index: 3; opacity: 0.18; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }
  .about-atmosphere {
    position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
  }
  .about-orb {
    position: absolute; border-radius: 50%; filter: blur(80px);
    will-change: transform, opacity;
  }
  .about-orb-a {
    width: min(48vw, 520px); height: min(48vw, 520px);
    top: -12%; right: -8%;
    background: rgba(240, 184, 110, 0.08);
    animation: aboutOrbA 22s ease-in-out infinite;
  }
  .about-orb-b {
    width: min(40vw, 420px); height: min(40vw, 420px);
    left: -10%; bottom: -8%;
    background: rgba(232, 162, 92, 0.06);
    animation: aboutOrbB 26s ease-in-out infinite;
  }
  @keyframes aboutOrbA {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.5; }
    50% { transform: translate(-6%, 8%) scale(1.08); opacity: 0.85; }
  }
  @keyframes aboutOrbB {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.35; }
    50% { transform: translate(8%, -6%) scale(1.1); opacity: 0.65; }
  }
  .about-rule-fade {
    position: absolute;
    left: 5%; right: 5%;
    top: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--about-line) 20%, var(--about-line) 80%, transparent);
    opacity: 0.7;
  }

  .about-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
  }
  .about-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 28px;
    margin-bottom: clamp(36px, 6vh, 64px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--about-line);
  }
  .about-index {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--about-accent);
  }
  .about-index span {
    color: rgba(242, 240, 234, 0.35);
    margin-right: 0.55em;
  }
  .about-role-line {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.68rem, 1.1vw, 0.78rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--about-muted);
  }

  .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
  }
  .about-main { position: relative; min-width: 0; }
  .about-heading {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 5.2vw, 4.1rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
    color: var(--about-ink);
    margin: 0 0 clamp(22px, 3vh, 32px);
    text-wrap: balance;
  }
  .about-heading-line {
    display: block;
    overflow: hidden;
  }
  .about-heading-inner {
    display: block;
    will-change: transform;
  }
  .about-lede {
    margin: 0 0 16px;
    max-width: 38rem;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.02rem, 1.55vw, 1.18rem);
    line-height: 1.65;
    color: rgba(242, 240, 234, 0.88);
    font-weight: 400;
  }
  .about-desc {
    margin: 0 0 clamp(32px, 5vh, 48px);
    max-width: 36rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--about-muted);
  }
  .about-desc strong {
    color: rgba(242, 240, 234, 0.92);
    font-weight: 500;
  }

  .about-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 clamp(28px, 4vh, 40px);
    max-width: 34rem;
    border-top: 1px solid var(--about-line);
    border-bottom: 1px solid var(--about-line);
  }
  .about-proof-item {
    margin: 0;
    padding: 18px 14px 18px 0;
    border-right: 1px solid var(--about-line);
  }
  .about-proof-item:last-child {
    border-right: none;
    padding-right: 0;
  }
  .about-stat-num {
    margin: 0;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--about-ink);
  }
  .about-stat-label {
    margin: 10px 0 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted);
    line-height: 1.35;
  }

  .about-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: none;
    background: none;
    color: var(--about-ink);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
  }
  .about-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--about-accent), transparent 85%);
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(.16,1,.3,1);
  }
  .about-cta:hover { color: #fff; }
  .about-cta:hover::after { transform: scaleX(1); }
  .about-cta-arrow {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(.16,1,.3,1);
    color: var(--about-accent);
  }
  .about-cta:hover .about-cta-arrow { transform: translateX(6px); }
  .about-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
  }
  .about-cta--resume {
    color: #38bdf8;
    gap: 10px;
  }
  .about-cta--resume::after {
    background: linear-gradient(90deg, #38bdf8, transparent 85%);
  }
  .about-cta--resume svg {
    color: #38bdf8;
    transition: transform 0.3s ease;
  }
  .about-cta--resume:hover svg {
    transform: translateY(-2px);
  }

  .about-rail {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-portrait-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.75);
    background: #080c12;
  }
  .about-portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
  }
  .about-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
  }
  .about-portrait-card:hover .about-portrait-img {
    transform: scale(1.02);
  }

  @media (max-width: 900px) {
    .about-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .about-rail { order: 2; max-width: 420px; }
    .about-proof { max-width: none; }
  }
  @media (max-width: 560px) {
    .about-top { flex-direction: column; align-items: flex-start; }
    .about-heading { font-size: clamp(1.85rem, 9vw, 2.4rem); }
    .about-proof-item { padding: 14px 8px 14px 0; }
    .about-stat-num { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
    .about-stat-label { font-size: 0.52rem; letter-spacing: 0.08em; }
  }
  @media (max-width: 360px) {
    .about-stat-num { font-size: 1.35rem; }
    .about-stat-label { font-size: 0.46rem; letter-spacing: 0.04em; }
    .about-proof-item { padding: 10px 4px 10px 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .about-orb-a, .about-orb-b { animation: none; }
    .about-video { display: none; }
  }

  /* HERO — cinematic orbit first page */
  #hero {
    --hero-ink: #f4efe6;
    --hero-muted: rgba(244, 239, 230, 0.75);
    --hero-steel: #f0b86e;
    --hero-steel-dim: rgba(240, 184, 110, 0.55);
    --hero-gold: #f0b86e;
    --hero-deep: #05080f;
    --hero-panel: #0a1018;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: var(--hero-deep);
    color: var(--hero-ink);
  }
  .hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  /* Pro engineer field — blueprint grid + perspective deck */
  .hero-eng-base {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 55% at 50% 38%, rgba(240, 184, 110, 0.06) 0%, transparent 68%),
      radial-gradient(ellipse 45% 40% at 82% 18%, rgba(232, 162, 92, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 40% 36% at 14% 78%, rgba(240, 184, 110, 0.04) 0%, transparent 58%),
      linear-gradient(180deg, #070a0f 0%, #05080f 48%, #03050a 100%);
  }
  .hero-eng-grid {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    background-image:
      linear-gradient(rgba(240, 184, 110, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(240, 184, 110, 0.04) 1px, transparent 1px),
      linear-gradient(rgba(240, 184, 110, 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(240, 184, 110, 0.09) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%);
  }
  .hero-eng-perspective {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -8%;
    height: 48%;
    background:
      linear-gradient(180deg, transparent 0%, rgba(5, 8, 15, 0.15) 30%, rgba(5, 8, 15, 0.85) 100%),
      repeating-linear-gradient(
        90deg,
        rgba(240, 184, 110, 0.06) 0,
        rgba(240, 184, 110, 0.06) 1px,
        transparent 1px,
        transparent 72px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(240, 184, 110, 0.04) 0,
        rgba(240, 184, 110, 0.04) 1px,
        transparent 1px,
        transparent 48px
      );
    transform: perspective(700px) rotateX(58deg);
    transform-origin: center top;
    opacity: 0.55;
  }
  .hero-eng-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
  }
  .hero-eng-glow-a {
    width: min(48vw, 520px);
    height: min(48vw, 520px);
    top: 8%;
    right: -8%;
    background: rgba(240, 184, 110, 0.1);
    animation: heroEngGlowA 18s ease-in-out infinite alternate;
  }
  .hero-eng-glow-b {
    width: min(42vw, 440px);
    height: min(42vw, 440px);
    left: -10%;
    bottom: 10%;
    background: rgba(232, 162, 92, 0.07);
    animation: heroEngGlowB 22s ease-in-out infinite alternate;
  }
  @keyframes heroEngGlowA {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(-4%, 5%) scale(1.08); opacity: 0.7; }
  }
  @keyframes heroEngGlowB {
    0% { transform: translate(0, 0) scale(1); opacity: 0.28; }
    100% { transform: translate(5%, -4%) scale(1.1); opacity: 0.55; }
  }
  .hero-eng-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.55;
  }
  .hero-eng-frame {
    position: absolute;
    inset: clamp(16px, 3vw, 28px);
    border: 1px solid rgba(240, 184, 110, 0.16);
    z-index: 3;
  }
  .hero-eng-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--hero-steel);
    border-style: solid;
  }
  .hero-eng-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .hero-eng-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
  .hero-eng-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
  .hero-eng-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
  .hero-eng-tick--top,
  .hero-eng-tick--left {
    position: absolute;
    background: repeating-linear-gradient(
      90deg,
      rgba(240, 184, 110, 0.45) 0 1px,
      transparent 1px 10px
    );
  }
  .hero-eng-tick--top {
    top: -1px;
    left: 28px;
    right: 28px;
    height: 1px;
  }
  .hero-eng-tick--left {
    left: -1px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: repeating-linear-gradient(
      180deg,
      rgba(240, 184, 110, 0.45) 0 1px,
      transparent 1px 10px
    );
  }
  .hero-eng-hud {
    position: absolute;
    top: clamp(28px, 4.5vh, 48px);
    left: clamp(28px, 4vw, 52px);
    right: clamp(28px, 4vw, 52px);
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hero-steel-dim);
  }
  .hero-eng-hud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hero-eng-hud-item i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f0b86e;
    box-shadow: 0 0 10px rgba(240, 184, 110, 0.7);
    animation: heroEngPulse 1.6s ease-in-out infinite;
  }
  @keyframes heroEngPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  .hero-eng-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 18%;
    top: -20%;
    z-index: 2;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(240, 184, 110, 0.04) 45%,
      transparent 100%
    );
    animation: heroEngScan 9s linear infinite;
    opacity: 0.7;
  }
  @keyframes heroEngScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(620%); }
  }
  .hero-eng-vignette {
    position: absolute;
    inset: 0;
    z-index: 5;
    background:
      radial-gradient(ellipse 70% 60% at 50% 48%, transparent 18%, rgba(3, 5, 10, 0.45) 62%, rgba(3, 5, 10, 0.88) 100%),
      linear-gradient(180deg, rgba(3, 5, 10, 0.35) 0%, transparent 22%, transparent 70%, rgba(3, 5, 10, 0.75) 100%);
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-eng-glow-a,
    .hero-eng-glow-b,
    .hero-eng-scan,
    .hero-eng-hud-item i { animation: none; }
    .hero-eng-nodes { opacity: 0.25; }
  }

  .hero-banner {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 7;
    padding: clamp(72px, 12vh, 110px) 5% 10vh;
  }
  .hero-banner::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    width: min(94vw, 820px);
    height: min(56vh, 400px);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 58% 52% at 50% 48%, rgba(5, 10, 18, 0.72) 0%, rgba(5, 10, 18, 0.28) 55%, transparent 78%);
  }
  .hb-kicker {
    position: relative;
    z-index: 1;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.64rem, 1.05vw, 0.72rem);
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    text-transform: uppercase;
    color: var(--hero-steel);
    margin: 0 0 0.85rem;
  }
  .hb-rule {
    display: block;
    width: min(36vw, 220px);
    height: 1px;
    margin: 0 auto 1.05rem;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(240, 184, 110, 0.2) 14%,
      rgba(240, 184, 110, 0.85) 50%,
      rgba(240, 184, 110, 0.2) 86%,
      transparent 100%
    );
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
  }
  .hb-title {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 100%;
    line-height: 1;
  }
  .hb-title-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 6.2vw, 5rem);
    letter-spacing: clamp(0.12em, 2vw, 0.2em);
    text-indent: clamp(0.12em, 2vw, 0.2em);
    text-transform: uppercase;
    line-height: 1.1;
    color: #f4f7fa;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.45),
      0 12px 40px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
  }
  .hb-role {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin: 1.4rem auto 0;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.98rem, 1.55vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.55;
    color: var(--hero-muted);
  }
  .hb-stack {
    position: relative;
    z-index: 1;
    margin: 0.9rem auto 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 184, 110, 0.72);
  }
  .hb-cta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.7rem;
  }
  .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.4rem;
    border-radius: 2px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(.16,1,.3,1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  .hb-btn--primary {
    color: #14181f;
    background: linear-gradient(135deg, #f0b86e, #e8a25c);
    border: none;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(240, 184, 110, 0.35), 0 16px 36px -16px rgba(240, 184, 110, 0.55);
  }
  .hb-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }
  .hb-btn--ghost {
    color: var(--hero-ink);
    background: rgba(8, 14, 22, 0.45);
    border: 1px solid rgba(240, 184, 110, 0.35);
  }
  .hb-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: #f0b86e;
    color: #f0b86e;
    background: rgba(240, 184, 110, 0.08);
  }
  .hb-btn--resume {
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(8, 20, 36, 0.55);
  }
  .hb-btn--resume:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  }
  .hb-scroll {
    position: absolute;
    left: 50%;
    bottom: 5.5%;
    transform: translateX(-50%);
    z-index: 1;
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    color: rgba(244, 239, 230, 0.5);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hb-scroll .scroll-line {
    order: -1;
    width: 1px;
    height: 28px;
    background: linear-gradient(rgba(240, 184, 110, 0.7), transparent);
  }
  @media (max-width: 700px) {
    .hero-eng-hud { justify-content: flex-start; }
    .hero-eng-hud-item:last-child { display: none; }
    .hero-eng-perspective { opacity: 0.35; }
    .hb-title-text {
      letter-spacing: 0.1em;
      text-indent: 0.1em;
      white-space: normal;
      font-size: clamp(1.85rem, 11vw, 2.6rem);
    }
    .hb-kicker {
      letter-spacing: 0.16em;
      text-indent: 0.16em;
    }
    .hb-role {
      max-width: 22rem;
      padding: 0 4%;
    }
    .hb-cta { width: 100%; padding: 0 0.5rem; }
    .hb-btn { flex: 1 1 auto; min-width: 9.5rem; }
  }
  @media (max-height: 520px) {
    .hero-banner {
      min-height: 100vh;
      min-height: 100dvh;
      padding: 68px 5% 24px;
      justify-content: flex-start;
    }
    .hb-scroll { display: none; }
    .hb-role { margin-top: 0.7rem; font-size: 0.92rem; }
    .hb-cta { margin-top: 1rem; }
  }

  .btn { font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 28px; border-radius: 4px; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; display: inline-flex; align-items: center; gap: 8px; }
  .btn-primary { background: var(--accent); color: #000; font-weight: 700; }
  .btn-primary:hover { background: #fff; box-shadow: 0 0 24px rgba(240,184,110,0.4); }



  /* SECTIONS */
  section { padding: 100px 5%; position: relative; z-index: 1;}
  .section-header { margin-bottom: 60px; }
  .section-tag {
    font-family: var(--font-credit);
    font-weight: 400;
    font-size: clamp(0.62rem, 1.05vw, 0.74rem);
    color: var(--accent);
    letter-spacing: 0.48em;
    text-indent: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.8vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  /* SKILLS — high-tech bento systems stack & interactive spotlight */
  #skills {
    --skills-ink: #f4efe6;
    --skills-muted: rgba(244, 239, 230, 0.7);
    --skills-line: rgba(240, 184, 110, 0.16);
    --skills-accent: #f0b86e;
    --skills-accent2: #e8a25c;
    --skills-accent-soft: rgba(240, 184, 110, 0.12);
    background: #070a0f;
    color: var(--skills-ink);
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vh, 76px) 5% clamp(72px, 10vh, 100px);
  }
  .skills-atmosphere {
    position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  }
  .skills-wash {
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(7,10,15,0.7) 0%, transparent 50%, rgba(7,10,15,0.8) 100%),
      linear-gradient(180deg, rgba(7,10,15,0.85) 0%, rgba(7,10,15,0.2) 45%, rgba(7,10,15,0.92) 100%),
      radial-gradient(ellipse 52% 44% at 82% 16%, rgba(240, 184, 110, 0.08) 0%, transparent 62%),
      radial-gradient(ellipse 48% 40% at 14% 84%, rgba(232, 162, 92, 0.05) 0%, transparent 60%);
  }
  .skills-orb {
    position: absolute; border-radius: 50%; filter: blur(90px);
    will-change: transform, opacity;
  }
  .skills-orb-a {
    width: min(48vw, 500px); height: min(48vw, 500px);
    top: -12%; left: -10%;
    background: rgba(240, 184, 110, 0.07);
    animation: skillsOrbA 24s ease-in-out infinite;
  }
  .skills-orb-b {
    width: min(42vw, 440px); height: min(42vw, 440px);
    right: -10%; bottom: -6%;
    background: rgba(232, 162, 92, 0.06);
    animation: skillsOrbB 28s ease-in-out infinite;
  }
  @keyframes skillsOrbA {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.45; }
    50% { transform: translate(6%, 8%) scale(1.08); opacity: 0.75; }
  }
  @keyframes skillsOrbB {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.35; }
    50% { transform: translate(-7%, -6%) scale(1.1); opacity: 0.65; }
  }
  .skills-grain {
    position: absolute; inset: 0; opacity: 0.14; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }
  .skills-rule-fade {
    position: absolute;
    left: 5%; right: 5%;
    top: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--skills-line) 20%, var(--skills-line) 80%, transparent);
    opacity: 0.6;
  }

  .skills-shell {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
  }

  /* Header */
  .skills-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    margin-bottom: clamp(20px, 3vh, 28px);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--skills-line);
  }
  .skills-index {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--skills-accent);
  }
  .skills-index span {
    color: rgba(244, 239, 230, 0.4);
    margin-right: 0.55em;
  }

  /* Filter Navigation Bar */
  .skills-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(24px, 3.5vh, 36px);
  }
  .skills-filter-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(240, 184, 110, 0.16);
    color: var(--skills-muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .skills-filter-btn:hover {
    background: rgba(240, 184, 110, 0.08);
    border-color: rgba(240, 184, 110, 0.45);
    color: #fdf8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -2px rgba(240, 184, 110, 0.15);
  }
  .skills-filter-btn.is-active {
    background: rgba(240, 184, 110, 0.14);
    border-color: rgba(240, 184, 110, 0.7);
    color: var(--skills-accent);
    box-shadow: 0 0 22px -3px rgba(240, 184, 110, 0.32);
  }
  .skills-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: rgba(240, 184, 110, 0.22);
    color: #fdf8f0;
    font-size: 0.6rem;
    font-weight: 700;
  }

  /* Bento Grid Layout */
  .skills-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
    margin-bottom: clamp(36px, 5vh, 52px);
  }

  /* Bento Card Architecture */
  .skills-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(16, 20, 28, 0.88) 0%, rgba(9, 12, 17, 0.94) 100%);
    border: 1px solid rgba(240, 184, 110, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(24px, 3vw, 30px) clamp(20px, 2.4vw, 26px) clamp(20px, 2.4vw, 24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                opacity 0.4s ease,
                filter 0.4s ease;
    will-change: transform;
  }

  /* Ethereal Cursor Spotlight - Golden aura matching brand theme */
  .skills-card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(
      420px circle at var(--mouse-x) var(--mouse-y),
      rgba(240, 184, 110, 0.14) 0%,
      rgba(232, 162, 92, 0.05) 35%,
      transparent 70%
    );
    transition: opacity 0.35s ease;
    mix-blend-mode: screen;
  }

  .skills-card:hover,
  .skills-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(240, 184, 110, 0.45);
    box-shadow:
      0 20px 42px -15px rgba(0, 0, 0, 0.85),
      0 0 28px -6px rgba(240, 184, 110, 0.22);
  }
  .skills-card:hover .skills-card-spotlight,
  .skills-card:focus-within .skills-card-spotlight {
    opacity: 1;
  }

  /* Filtered out state */
  .skills-card.is-filtered-out {
    opacity: 0.16;
    filter: grayscale(70%) blur(0.5px);
    pointer-events: none;
    transform: scale(0.98);
  }

  /* Card Header */
  .skills-card-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
  .skills-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--skills-accent);
  }
  .skills-card-icon {
    flex-shrink: 0;
    color: var(--skills-accent);
  }
  .skills-card-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    color: rgba(240, 184, 110, 0.3);
    font-weight: 700;
  }

  /* Card Body */
  .skills-card-title {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1.12rem, 1.5vw, 1.3rem);
    letter-spacing: 0.04em;
    line-height: 1.28;
    color: #f8fafc;
    margin: 0 0 10px;
    transition: color 0.3s ease;
  }
  .skills-card:hover .skills-card-title {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(240, 184, 110, 0.28);
  }
  .skills-card-desc {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    line-height: 1.58;
    color: var(--skills-muted);
    margin: 0 0 24px;
    min-height: 48px;
  }

  /* Interactive Tech Pills with Real SVG Logos */
  .skills-pills-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
  }
  .skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 184, 110, 0.12);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    font-weight: 500;
    cursor: default;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .skill-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 1;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  }
  .skill-pill .skill-pill-svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
    opacity: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease, filter 0.25s ease;
  }
  .skill-pill:hover {
    background: rgba(240, 184, 110, 0.12);
    border-color: rgba(240, 184, 110, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(240, 184, 110, 0.25);
  }
  .skill-pill:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(240, 184, 110, 0.8));
    transform: scale(1.15);
  }
  .skill-pill:hover .skill-pill-svg {
    opacity: 1;
    color: var(--skills-accent);
    filter: drop-shadow(0 0 6px rgba(240, 184, 110, 0.8));
    transform: scale(1.15);
  }

  /* Bottom Bar */
  .skills-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--skills-line);
  }
  .skills-bottom-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .skills-stat-val {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--skills-accent);
    line-height: 1;
  }
  .skills-stat-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--skills-muted);
  }

  .skills-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 9999px;
    background: rgba(240, 184, 110, 0.08);
    border: 1px solid rgba(240, 184, 110, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .skills-cta:hover {
    color: #ffffff;
    background: rgba(240, 184, 110, 0.18);
    border-color: rgba(240, 184, 110, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(240, 184, 110, 0.25);
  }
  .skills-cta-arrow {
    color: var(--skills-accent);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .skills-cta:hover .skills-cta-arrow {
    transform: translateX(5px);
  }

  /* Responsive Breakpoints */
  @media (max-width: 1080px) {
    .skills-bento {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 680px) {
    .skills-bento {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .skills-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .skills-card-desc {
      min-height: auto;
    }
    .skills-bottom-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .skills-orb-a, .skills-orb-b {
      animation: none;
    }
    .skills-card:hover,
    .skills-card:focus-within {
      transform: none;
    }
    .skill-pill:hover {
      transform: none;
    }
    .skills-cta:hover {
      transform: none;
    }
  }

  /* Skills — React Bits–style Logo Loop */
  .skills-logo-band {
    margin-top: clamp(48px, 7vh, 72px);
    padding-top: clamp(28px, 4vh, 40px);
    border-top: 1px solid var(--skills-line);
  }
  .skills-logo-band-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
  }
  .skills-logo-kicker,
  .skills-logo-note {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .skills-logo-kicker { color: var(--skills-accent); }
  .skills-logo-note { color: rgba(210, 205, 195, 0.45); }

  .logoloop {
    position: relative;
    overflow-x: hidden;
    --logoloop-gap: 52px;
    --logoloop-logoHeight: 36px;
    --logoloop-fadeColorAuto: #06080d;
  }
  .logoloop--vertical {
    overflow: hidden;
    height: 100%;
    display: inline-block;
  }
  .logoloop--scale-hover {
    padding-top: calc(var(--logoloop-logoHeight) * 0.12);
    padding-bottom: calc(var(--logoloop-logoHeight) * 0.12);
  }
  .logoloop__track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 0;
  }
  .logoloop--vertical .logoloop__track {
    flex-direction: column;
    height: max-content;
    width: 100%;
  }
  .logoloop__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .logoloop--vertical .logoloop__list { flex-direction: column; }
  .logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap);
    font-size: var(--logoloop-logoHeight);
    line-height: 1;
  }
  .logoloop--vertical .logoloop__item {
    margin-right: 0;
    margin-bottom: var(--logoloop-gap);
  }
  .logoloop__item:last-child { margin-right: var(--logoloop-gap); }
  .logoloop--vertical .logoloop__item:last-child {
    margin-right: 0;
    margin-bottom: var(--logoloop-gap);
  }
  .logoloop__item img {
    height: var(--logoloop-logoHeight);
    width: auto;
    display: block;
    object-fit: contain;
    -webkit-user-drag: none;
    pointer-events: none;
    opacity: 0.72;
    /* Monochrome ivory — matches Skills ink on #06080d */
    filter: brightness(0) invert(0.94);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }
  .logoloop__item:hover img { opacity: 0.96; }
  .logoloop--scale-hover .logoloop__item { overflow: visible; }
  .logoloop--scale-hover .logoloop__item:hover img {
    transform: scale(1.18);
    transform-origin: center center;
  }
  .logoloop__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 4px;
  }
  .logoloop__link:focus-visible {
    outline: 2px solid var(--skills-accent, #d4b48a);
    outline-offset: 4px;
  }
  .logoloop--fade::before,
  .logoloop--fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(28px, 9%, 120px);
    pointer-events: none;
    z-index: 10;
  }
  .logoloop--fade::before {
    left: 0;
    background: linear-gradient(
      to right,
      var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .logoloop--fade::after {
    right: 0;
    background: linear-gradient(
      to left,
      var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  @media (prefers-reduced-motion: reduce) {
    .logoloop__track { transform: translate3d(0, 0, 0) !important; }
    .logoloop__item img { transition: none !important; }
  }
  @media (max-width: 560px) {
    .skills-logo-band-head { flex-direction: column; gap: 6px; }
    .logoloop {
      --logoloop-logoHeight: 30px;
      --logoloop-gap: 40px;
    }
  }

  /* PROJECTS — cinematic work */
  #projects {
    --proj-ink: #f4efe6;
    --proj-muted: rgba(244, 239, 230, 0.7);
    --proj-accent: #f0b86e;
    --proj-leaf: #e8a25c;
    background: #05070c;
    color: var(--proj-ink);
    overflow: hidden;
    padding-top: 45px;
  }
  .projects-stage {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
  }
  .projects-video,
  .projects-video-fallback {
    position: absolute; inset: -4%;
    width: 108%; height: 108%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.02);
    filter: contrast(1.12) saturate(0.92) brightness(0.52);
  }
  .projects-video-fallback {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 45% at 50% 40%, rgba(240, 184, 110, 0.12) 0%, transparent 68%),
      radial-gradient(ellipse 50% 40% at 80% 20%, rgba(232, 162, 92, 0.08) 0%, transparent 60%),
      #05070c;
    opacity: 1;
  }
  .projects-video-wash {
    position: absolute; inset: 0; z-index: 2;
    background:
      linear-gradient(140deg, rgba(5,7,12,0.65) 0%, transparent 48%, rgba(5,7,12,0.45) 100%),
      linear-gradient(180deg, rgba(5,7,12,0.78) 0%, rgba(5,7,12,0.28) 34%, rgba(5,7,12,0.4) 70%, rgba(5,7,12,0.88) 100%);
  }
  .projects-video-grain {
    position: absolute; inset: 0; z-index: 3; opacity: 0.18; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }
  .projects-shell { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; }
  #projects .section-header { margin-bottom: 22px; }
  #projects .section-tag { color: var(--proj-accent); margin-bottom: 0; }
  .projects-lead {
    margin-top: 14px; max-width: 520px;
    font-size: 1rem; line-height: 1.65; color: var(--proj-muted);
  }
  .projects-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 28px; position: relative; z-index: 1;
  }
  @media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

  .proj-card {
    position: relative; cursor: pointer;
    padding: 14px;
    background: rgba(12, 16, 24, 0.58);
    border: 1px solid rgba(240, 184, 110, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.3s, box-shadow 0.35s;
  }
  .proj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 184, 110, 0.55);
    box-shadow: 0 22px 48px -28px rgba(0,0,0,0.7), 0 0 24px -6px rgba(240, 184, 110, 0.3);
  }
  .proj-card-media {
    position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
    background: rgba(4,8,10,0.85); border: 1px solid rgba(238,245,242,0.08);
  }
  .proj-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s cubic-bezier(.16,1,.3,1); display: block; }
  .proj-card:hover .proj-card-media img { transform: scale(1.06); }
  .proj-tags {
    margin-top: 16px; font-family: var(--font-credit);
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--proj-leaf);
  }
  .proj-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
  .proj-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--proj-ink);
  }
  .proj-card[data-project="project1"] .proj-title,
  .proj-card[data-project="project2"] .proj-title,
  .proj-card[data-project="project3"] .proj-title,
  .proj-card[data-project="project4"] .proj-title,
  .proj-card[data-project="project5"] .proj-title,
  .proj-card[data-project="project6"] .proj-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.18rem, 1.9vw, 1.45rem);
    letter-spacing: -0.022em;
    text-transform: none;
    line-height: 1.3;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project1"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project2"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #22d3ee;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project3"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10b981;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project4"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c084fc;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project5"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fb7185;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-card[data-project="project6"] .proj-tags {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f59e0b;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
  }
  .proj-arrow {
    font-size: 1.3rem; color: var(--proj-accent); flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  }
  .proj-card:hover .proj-arrow { transform: translateX(6px); }

  /* One card slot — ML + DL as a stacked list */
  .proj-card--duo {
    cursor: default;
  }
  .proj-card--duo:hover {
    transform: none;
    border-color: rgba(238,245,242,0.12);
    box-shadow: none;
  }
  .proj-duo-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    background: rgba(4,8,10,0.85);
    border: 1px solid rgba(238,245,242,0.08);
  }
  .proj-duo-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(238,245,242,0.10);
    border-radius: 10px;
    background: rgba(8,14,16,0.72);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s cubic-bezier(.16,1,.3,1);
  }
  .proj-duo-item:hover,
  .proj-duo-item:focus-visible {
    border-color: rgba(240, 184, 110, 0.5);
    background: rgba(18, 24, 34, 0.9);
    outline: none;
  }
  .proj-duo-item:hover .proj-arrow,
  .proj-duo-item:focus-visible .proj-arrow {
    transform: translateX(6px);
  }
  .proj-duo-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(238,245,242,0.12);
    background: #0a1012;
  }
  .proj-duo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .proj-duo-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
  }
  .proj-duo-num {
    font-family: var(--font-credit);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--proj-leaf);
  }
  .proj-duo-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--proj-ink);
    line-height: 1.2;
  }
  .proj-duo-kicker {
    font-family: var(--font-credit);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--proj-muted);
  }
  .proj-duo-item .proj-arrow {
    font-size: 1.15rem;
    color: var(--proj-accent);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  }
  @media (max-width: 760px) {
    .proj-duo-media { aspect-ratio: auto; min-height: 220px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .projects-video { display: none; }
  }

  #project-detail {
    position: fixed; inset: 0; z-index: 400;
    /* Solid themed plate — hides the portfolio page; animation lives ON TOP of this */
    background: var(--pd-bg, #0a0908);
    transform: translateY(100%);
    transition: transform 0.7s cubic-bezier(.16,1,.3,1), background 0.55s ease;
    overflow: hidden;
  }
  #project-detail.open { transform: translateY(0); }

  .pd-atmosphere {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
  }
  .pd-atmos-base {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 75% 60% at 12% 22%, var(--pd-accent-soft, rgba(240,184,110,0.22)) 0%, transparent 62%),
      radial-gradient(ellipse 60% 50% at 88% 78%, var(--pd-accent2-soft, rgba(232,162,92,0.18)) 0%, transparent 64%),
      linear-gradient(
        155deg,
        var(--pd-base-a, #070a0f) 0%,
        var(--pd-base-b, #0d121c) 48%,
        var(--pd-base-c, #070a0f) 100%
      );
    transition: background 0.55s ease;
  }
  .pd-atmos-orb {
    position: absolute; border-radius: 50%;
    filter: blur(52px);
    opacity: 0.72;
    will-change: transform, opacity;
    mix-blend-mode: screen;
  }
  .pd-atmos-orb-a {
    width: min(58vw, 620px); height: min(58vw, 620px);
    top: -14%; left: -10%;
    background: radial-gradient(circle, var(--pd-accent-glow, rgba(240,184,110,0.65)) 0%, transparent 68%);
    animation: pdOrbA 14s ease-in-out infinite;
  }
  .pd-atmos-orb-b {
    width: min(48vw, 500px); height: min(48vw, 500px);
    bottom: -12%; right: -8%;
    background: radial-gradient(circle, var(--pd-accent2-glow, rgba(232,162,92,0.5)) 0%, transparent 70%);
    animation: pdOrbB 18s ease-in-out infinite;
  }
  .pd-atmos-orb-c {
    width: min(32vw, 320px); height: min(32vw, 320px);
    top: 36%; left: 40%;
    background: radial-gradient(circle, var(--pd-accent-glow, rgba(255,255,255,0.22)) 0%, transparent 70%);
    animation: pdOrbC 11s ease-in-out infinite;
    opacity: 0.45;
  }
  .pd-atmos-sweep {
    position: absolute; inset: -20%;
    background: linear-gradient(
      115deg,
      transparent 28%,
      var(--pd-sweep, rgba(255,255,255,0.07)) 46%,
      transparent 60%
    );
    animation: pdSweep 9s ease-in-out infinite;
    mix-blend-mode: soft-light;
  }
  .pd-atmos-grain {
    position: absolute; inset: 0; opacity: 0.14; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  }
  /* Soft themed veil under the orbs — still fully covers the page behind */
  .pd-atmos-wash {
    position: absolute; inset: 0;
    background: var(--pd-bg-wash, #0a0908);
    transition: background 0.55s ease;
  }
  @keyframes pdOrbA {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.62; }
    50% { transform: translate(12%, 18%) scale(1.14); opacity: 0.9; }
  }
  @keyframes pdOrbB {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate(-14%, -10%) scale(1.2); opacity: 0.82; }
  }
  @keyframes pdOrbC {
    0%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0.32; }
    50% { transform: translate(-8%, 12%) scale(1.18); opacity: 0.55; }
  }
  @keyframes pdSweep {
    0%, 100% { transform: translateX(-8%) rotate(0deg); opacity: 0.35; }
    50% { transform: translateX(10%) rotate(2deg); opacity: 0.7; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pd-atmos-orb-a, .pd-atmos-orb-b, .pd-atmos-orb-c, .pd-atmos-sweep { animation: none; }
  }

  .pd-navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: 16px;
    padding-left: max(4%, env(safe-area-inset-left));
    padding-right: max(4%, env(safe-area-inset-right));
    pointer-events: none;
  }
  .pd-navbar > * { pointer-events: auto; }
  .pd-close {
    background: rgba(13,21,32,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--pd-border, var(--border));
    color: var(--pd-text, var(--text));
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 10px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .pd-close:hover { border-color: var(--pd-accent, var(--accent)); color: var(--pd-accent, var(--accent)); }
  .pd-hint { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--pd-muted, var(--muted)); letter-spacing: 0.08em; text-transform: uppercase; }

  /* Full-page cue when chaining from one project into the next */
  .pd-chapter {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(ellipse 70% 55% at 50% 42%, var(--pd-accent-soft, rgba(232,162,92,0.18)) 0%, transparent 62%),
      var(--pd-bg, #0a0908);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }
  .pd-chapter.is-on {
    opacity: 1;
    visibility: visible;
  }
  .pd-chapter-inner {
    text-align: center;
    max-width: min(90vw, 54rem);
    padding: 2rem;
  }
  .pd-chapter-kicker {
    margin: 0 0 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--pd-muted, rgba(255,255,255,0.42));
  }
  .pd-chapter-num {
    margin: 0 0 0.85rem;
    font-family: var(--font-credit, 'Space Mono', monospace);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--pd-accent, var(--accent));
  }
  .pd-chapter-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.85rem, 5.2vw, 3.6rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.12;
    color: var(--pd-text, #f4f0e6);
  }
  .pd-chapter-rule {
    display: block;
    width: 3.25rem;
    height: 1px;
    margin: 1.55rem auto 0;
    background: var(--pd-accent, var(--accent));
    opacity: 0.7;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  }
  .pd-chapter.is-on .pd-chapter-rule { transform: scaleX(1); }
  .pd-chapter.is-on .pd-chapter-kicker,
  .pd-chapter.is-on .pd-chapter-num,
  .pd-chapter.is-on .pd-chapter-title {
    animation: pdChapterIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .pd-chapter.is-on .pd-chapter-num { animation-delay: 0.05s; }
  .pd-chapter.is-on .pd-chapter-title { animation-delay: 0.1s; }
  @keyframes pdChapterIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .pd-chapter.is-on .pd-chapter-kicker,
    .pd-chapter.is-on .pd-chapter-num,
    .pd-chapter.is-on .pd-chapter-title { animation: none; }
    .pd-chapter-rule { transition: none; }
    .pd-chapter.is-on .pd-chapter-rule { transform: scaleX(1); }
  }

  .pd-track { position: relative; z-index: 2; display: flex; height: 100%; will-change: transform; align-items: center; transition: opacity 0.35s ease; }

  .intro-panel {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 4% 40px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .intro-text {
    width: 46%;
    max-width: 580px;
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .intro-num {
    font-family: 'Space Mono', 'SF Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pd-accent, #38bdf8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .intro-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.7vw, 2.35rem);
    letter-spacing: -0.028em;
    text-transform: none;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--pd-text, #ffffff);
    -webkit-font-smoothing: antialiased;
  }
  .intro-desc {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--pd-muted, #94a3b8);
    margin-bottom: 20px;
  }
  .intro-highlights {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .intro-highlights li {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    padding: 9px 14px 9px 32px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
  }
  .intro-highlights li::before {
    content: '✦';
    position: absolute;
    left: 12px;
    top: 8px;
    font-size: 0.65rem;
    color: var(--pd-accent, #38bdf8);
  }
  .intro-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }
  .intro-tech span {
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    padding: 6px 14px;
    border: 1px solid var(--pd-border, rgba(56, 189, 248, 0.25));
    border-radius: 20px;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
  }
  .intro-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    color: var(--pd-text, #ffffff);
    border: 1px solid var(--pd-border, rgba(255, 255, 255, 0.16));
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.2s ease;
  }
  .intro-link--live {
    border-color: var(--pd-accent, #38bdf8);
    color: #060910;
    background: var(--pd-accent, #38bdf8);
    box-shadow: 0 4px 16px var(--pd-accent-soft, rgba(56, 189, 248, 0.3));
  }
  .intro-link:hover {
    border-color: var(--pd-accent, #38bdf8);
    color: var(--pd-accent, #38bdf8);
    background: rgba(20, 32, 50, 0.6);
  }
  .intro-link--live:hover {
    color: #060910;
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--pd-accent-soft, rgba(56, 189, 248, 0.4));
  }
  .intro-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--pd-muted, #94a3b8);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
  }
  .intro-back:hover {
    border-color: var(--pd-accent, #38bdf8);
    color: var(--pd-accent, #38bdf8);
    background: rgba(255, 255, 255, 0.04);
  }
  .intro-image-frame {
    width: 50%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px -10px var(--pd-accent-soft, rgba(56, 189, 248, 0.2));
    background: #080d13;
    border: 1px solid var(--pd-border, rgba(255, 255, 255, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .intro-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .intro-image-frame:hover img {
    transform: scale(1.02);
  }

  .pd-track {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
  }

  @media (max-width: 860px) {
    .intro-panel {
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      padding-top: max(88px, calc(env(safe-area-inset-top) + 64px));
      padding-bottom: max(32px, env(safe-area-inset-bottom));
      padding-left: max(4%, env(safe-area-inset-left));
      padding-right: max(4%, env(safe-area-inset-right));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .intro-text, .intro-image-frame { width: 92%; margin: 0 auto; flex-shrink: 0; }
    .intro-text { padding: 0 4%; }
    .intro-image-frame { height: min(32vh, 240px); margin-top: 16px; margin-bottom: 20px; }
    .pd-hint { display: none; }
    .pd-hint-mobile {
      display: block;
      font-family: 'Space Mono', monospace;
      font-size: 0.68rem;
      color: var(--pd-muted, var(--muted));
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
  }
  .pd-hint-mobile { display: none; }

  /* project cards use the same reliable fade-in as the rest of the site (see .fade-in below) */

  /* CINEMATIC RUNWAY — shared sticky field for Recognition */
  .ascii-cinema-zone {
    position: relative;
    background: #05070c;
  }
  .ascii-cinema-zone > .ach-sticky-bg {
    z-index: 0;
  }

  /* ACHIEVEMENTS — legendary proof ledger */
  #achievements {
    --ach-ink: #f4efe6;
    --ach-muted: rgba(244, 239, 230, 0.7);
    --ach-line: rgba(240, 184, 110, 0.15);
    --ach-accent: #f0b86e;
    --ach-cyan: #e8a25c;
    --ach-deep: #05070c;
    position: relative;
    padding: 0;
    background: transparent;
    color: var(--ach-ink);
    overflow: visible;
    z-index: 2;
  }

  .ach-sticky-bg {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    margin-bottom: -100vh; margin-bottom: -100dvh;
    z-index: 0; overflow: hidden; pointer-events: none;
  }
  .ach-bg-video,
  .ach-video-fallback {
    position: absolute; inset: -4%;
    width: 108%; height: 108%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.05);
    filter: contrast(1.06) saturate(0.45) brightness(0.26);
    will-change: transform;
  }
  .ach-video-fallback {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 45% at 50% 48%, rgba(180,140,90,0.14) 0%, transparent 65%),
      radial-gradient(ellipse 50% 40% at 80% 80%, rgba(40,60,90,0.18) 0%, transparent 60%),
      #05070c;
    opacity: 1;
  }
  .ach-video-wash {
    position: absolute; inset: 0; z-index: 2;
    background:
      linear-gradient(90deg, rgba(5,7,12,0.82) 0%, rgba(5,7,12,0.55) 48%, rgba(5,7,12,0.72) 100%),
      linear-gradient(180deg, rgba(5,7,12,0.78) 0%, rgba(5,7,12,0.35) 40%, rgba(5,7,12,0.88) 100%);
  }
  .ach-video-grain {
    position: absolute; inset: 0; z-index: 3; opacity: 0.16; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }
  .ach-video-vignette {
    position: absolute; inset: 0; z-index: 4;
    background: radial-gradient(ellipse at 50% 42%, transparent 18%, rgba(5,7,12,0.5) 72%, rgba(5,7,12,0.9) 100%);
  }

  .ach-content {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(88px, 12vh, 130px) 5% clamp(96px, 12vh, 140px);
  }
  .ach-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 28px;
    margin-bottom: clamp(36px, 6vh, 64px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ach-line);
  }
  .ach-index {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ach-accent);
  }
  .ach-index span {
    color: rgba(242, 240, 234, 0.35);
    margin-right: 0.55em;
  }
  .ach-role-line {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.68rem, 1.1vw, 0.78rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ach-muted);
  }

  .ach-heading-wrap {
    margin-bottom: clamp(28px, 4.5vh, 44px);
  }
  .ach-heading {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
    color: var(--ach-ink);
    margin: 0 0 clamp(16px, 2.2vh, 22px);
    text-wrap: balance;
  }
  .ach-heading-line { display: block; overflow: hidden; }
  .ach-heading-inner { display: block; will-change: transform; }
  .ach-lede {
    margin: 0;
    max-width: 44rem;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.7;
    color: var(--ach-muted);
  }

  /* Filter Navigation Bar (interactive, matches skills page) */
  .ach-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(26px, 3.8vh, 38px);
  }
  .ach-filter-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(240, 184, 110, 0.16);
    color: var(--ach-muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ach-filter-btn:hover {
    background: rgba(240, 184, 110, 0.08);
    border-color: rgba(240, 184, 110, 0.45);
    color: #fdf8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -2px rgba(240, 184, 110, 0.15);
  }
  .ach-filter-btn.is-active {
    background: rgba(240, 184, 110, 0.14);
    border-color: rgba(240, 184, 110, 0.7);
    color: var(--ach-accent);
    box-shadow: 0 0 22px -3px rgba(240, 184, 110, 0.32);
  }
  .ach-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: rgba(240, 184, 110, 0.22);
    color: #fdf8f0;
    font-size: 0.6rem;
    font-weight: 700;
  }

  /* Bento Grid for Milestones */
  .ach-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
  }

  /* Bento Milestone Card */
  .ach-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(16, 20, 28, 0.9) 0%, rgba(9, 12, 17, 0.96) 100%);
    border: 1px solid rgba(240, 184, 110, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(26px, 3.2vw, 34px) clamp(22px, 2.8vw, 30px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                opacity 0.4s ease,
                filter 0.4s ease;
    will-change: transform;
  }
  .ach-card:hover,
  .ach-card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(240, 184, 110, 0.45);
    box-shadow:
      0 20px 42px -15px rgba(0, 0, 0, 0.85),
      0 0 28px -6px rgba(240, 184, 110, 0.22);
  }
  .ach-card.is-filtered-out {
    opacity: 0.16;
    filter: grayscale(70%) blur(0.5px);
    pointer-events: none;
    transform: scale(0.98);
  }

  /* Cursor Spotlight for Milestone Card */
  .ach-card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(
      480px circle at var(--mouse-x) var(--mouse-y),
      rgba(240, 184, 110, 0.16) 0%,
      rgba(232, 162, 92, 0.05) 38%,
      transparent 70%
    );
    transition: opacity 0.35s ease;
    mix-blend-mode: screen;
  }
  .ach-card:hover .ach-card-spotlight,
  .ach-card:focus-within .ach-card-spotlight {
    opacity: 1;
  }

  /* Milestone Card Header */
  .ach-card-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .ach-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ach-accent);
  }
  .ach-card-icon {
    flex-shrink: 0;
    color: var(--ach-accent);
  }
  .ach-card-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    color: rgba(240, 184, 110, 0.3);
    font-weight: 700;
  }

  /* Milestone Card Meta */
  .ach-card-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .ach-card-org {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ach-cyan);
    font-weight: 500;
  }
  .ach-card-scope {
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 240, 234, 0.45);
  }

  /* Milestone Card Title & Desc */
  .ach-card-title {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.6vw, 1.38rem);
    letter-spacing: 0.04em;
    line-height: 1.28;
    color: #f8fafc;
    margin: 0 0 12px;
    transition: color 0.3s ease;
  }
  .ach-card:hover .ach-card-title {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(240, 184, 110, 0.28);
  }
  .ach-card-desc {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.64;
    color: var(--ach-muted);
    margin: 0 0 20px;
  }

  /* Milestone Pills */
  .ach-pills-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 22px;
  }
  .ach-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 184, 110, 0.12);
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ach-card:hover .ach-pill {
    border-color: rgba(240, 184, 110, 0.26);
    background: rgba(240, 184, 110, 0.06);
  }
  .ach-pill:hover {
    background: rgba(240, 184, 110, 0.16) !important;
    border-color: rgba(240, 184, 110, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(240, 184, 110, 0.25);
  }

  /* Milestone Card Footer & Actions */
  .ach-card-footer {
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(240, 184, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ach-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 10px;
    background: rgba(240, 184, 110, 0.08);
    border: 1px solid rgba(240, 184, 110, 0.28);
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ach-link-btn svg {
    color: var(--ach-accent);
    transition: transform 0.3s ease;
  }
  .ach-link-arrow {
    color: var(--ach-accent);
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ach-link-btn:hover {
    background: rgba(240, 184, 110, 0.18);
    border-color: rgba(240, 184, 110, 0.65);
    color: #ffffff;
    box-shadow: 0 0 20px -2px rgba(240, 184, 110, 0.3);
    transform: translateY(-1px);
  }
  .ach-link-btn:hover .ach-link-arrow {
    transform: translate(3px, -3px);
  }
  .ach-link-btn:hover svg {
    transform: scale(1.1);
  }

  .ach-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 240, 234, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(240, 184, 110, 0.15);
    padding: 7px 14px;
    border-radius: 9999px;
    transition: border-color 0.3s ease, color 0.3s ease;
  }
  .ach-card:hover .ach-verified-badge {
    border-color: rgba(240, 184, 110, 0.35);
    color: var(--ach-accent);
  }
  .ach-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: achPulse 2.4s ease-in-out infinite;
  }
  @keyframes achPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
  }

  @media (max-width: 900px) {
    .ach-bento {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  @media (max-width: 560px) {
    .ach-top { flex-direction: column; align-items: flex-start; }
    .ach-heading { font-size: clamp(1.85rem, 9vw, 2.4rem); }
    .ach-filter-btn { padding: 7px 14px; font-size: 0.64rem; }
    .ach-card { padding: 22px 18px; border-radius: 16px; }
    .ach-card-footer { flex-wrap: wrap; gap: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ach-bg-video { display: none; }
  }


  /* CONTACT / THANK YOU — cinematic astronaut end card */
  #contact {
    --ty-ink: #f4efe6;
    --ty-muted: rgba(244,239,230,0.68);
    --ty-accent: #f0b86e;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    color: var(--ty-ink);
    background: #05070c;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #contact .section-tag { color: var(--ty-accent); text-align: center; }

  .ty-stage {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
  }
  .ty-video,
  .ty-video-fallback {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.08) brightness(0.72);
  }
  .ty-video-fallback {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 55% 45% at 62% 42%, rgba(240,184,110,0.22) 0%, transparent 58%),
      radial-gradient(ellipse 50% 40% at 20% 70%, rgba(100,60,140,0.15) 0%, transparent 60%),
      linear-gradient(180deg, #070a12 0%, #10182a 48%, #05070c 100%);
    opacity: 1;
  }

  .ty-light {
    position: absolute; border-radius: 50%;
    filter: blur(70px); mix-blend-mode: screen;
    opacity: 0.35; will-change: transform, opacity;
  }
  .ty-light-a {
    width: min(55vw, 520px); height: min(55vw, 520px);
    top: -12%; left: -8%;
    background: rgba(255, 210, 140, 0.45);
    animation: tyDriftA 14s ease-in-out infinite;
  }
  .ty-light-b {
    width: min(42vw, 420px); height: min(42vw, 420px);
    right: -10%; bottom: 8%;
    background: rgba(120, 180, 255, 0.28);
    animation: tyDriftB 18s ease-in-out infinite;
  }
  .ty-light-c {
    width: min(30vw, 280px); height: min(30vw, 280px);
    left: 38%; top: 42%;
    background: rgba(255,255,255,0.16);
    animation: tyPulse 7s ease-in-out infinite;
  }
  @keyframes tyDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.28; }
    50% { transform: translate(8%, 12%) scale(1.12); opacity: 0.48; }
  }
  @keyframes tyDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.22; }
    50% { transform: translate(-10%, -8%) scale(1.18); opacity: 0.4; }
  }
  @keyframes tyPulse {
    0%, 100% { opacity: 0.12; transform: scale(0.9); }
    50% { opacity: 0.32; transform: scale(1.15); }
  }

  .ty-grain {
    position: absolute; inset: 0; z-index: 2; opacity: 0.28; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  }
  .ty-vignette {
    position: absolute; inset: 0; z-index: 3;
    background:
      radial-gradient(ellipse 62% 58% at 58% 46%, transparent 18%, rgba(3,5,10,0.42) 68%, rgba(2,3,6,0.82) 100%),
      linear-gradient(90deg, rgba(4,6,12,0.55) 0%, rgba(4,6,12,0.18) 42%, rgba(4,6,12,0.08) 72%, rgba(4,6,12,0.28) 100%),
      linear-gradient(180deg, rgba(4,6,12,0.5) 0%, transparent 28%, transparent 62%, rgba(4,6,12,0.78) 100%);
  }
  .ty-scan {
    position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.18;
    background: repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,0.035) 3px,
      transparent 4px
    );
    mix-blend-mode: soft-light;
    animation: tyScan 9s linear infinite;
  }
  @keyframes tyScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
  }

  .ty-content {
    position: relative; z-index: 5;
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding-top: max(88px, calc(env(safe-area-inset-top) + 48px));
    padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 32px));
    padding-left: max(3%, env(safe-area-inset-left));
    padding-right: max(3%, env(safe-area-inset-right));
    text-align: left;
  }
  .ty-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
  }
  .ty-left {
    position: relative;
    z-index: 1;
    max-width: 560px;
  }
  .ty-endcard { position: relative; margin: 0 0 8px; }
  .collab-tag {
    font-family: var(--font-credit);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ty-muted);
    margin-bottom: 14px;
  }
  .thank-you-row {
    display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px;
  }
  .thank-you {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    color: var(--ty-ink);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 10px 40px rgba(0,0,0,0.45);
  }
  .ty-subcopy {
    margin: 22px 0 0; max-width: 38ch;
    font-size: 1.02rem; line-height: 1.65; color: var(--ty-muted);
  }

  .contact-pills {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; justify-content: flex-start;
    gap: 12px 12px; margin: 34px 0 26px; max-width: 520px;
  }
  .contact-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px; padding: 10px 16px;
    min-height: 44px;
    max-width: 100%;
    word-break: break-word;
    box-shadow: 0 12px 30px -18px rgba(0,0,0,0.45);
    text-decoration: none; color: var(--ty-ink);
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
  }
  .contact-pill:hover {
    transform: none;
    border-color: rgba(240,184,110,0.55);
    background: rgba(240,184,110,0.12);
    box-shadow: 0 16px 34px -14px rgba(0,0,0,0.55);
  }
  .contact-pill:nth-child(2n),
  .contact-pill:nth-child(3n) { margin-top: 0; }
  .pill-icon-badge {
    width: 26px; height: 26px; border-radius: 7px;
    background: rgba(240,184,110,0.92); color: #14181f;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
  }

  .ty-mail {
    position: relative; z-index: 1;
    width: 100%;
    margin: 0;
    padding: 28px 26px 24px;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(244,239,230,0.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 4px;
    box-shadow: none;
  }
  .ty-mail-head { margin-bottom: 22px; text-align: left; }
  .ty-mail-eyebrow {
    display: block;
    font-family: var(--font-credit);
    font-size: 0.64rem; letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--ty-accent); margin-bottom: 8px;
  }
  .ty-mail-lede {
    font-size: 0.92rem; line-height: 1.55; color: var(--ty-muted);
    max-width: 34ch; margin: 0;
  }
  .ty-mail-honey {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
  }
  .ty-mail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 14px;
  }
  .ty-mail-field { display: block; margin-bottom: 14px; }
  .ty-mail-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(244,239,230,0.55); margin-bottom: 8px;
  }
  .ty-mail input,
  .ty-mail textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(244,239,230,0.18);
    border-radius: 2px;
    color: var(--ty-ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-size: max(16px, 1rem);
    -webkit-appearance: none;
    appearance: none;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    resize: vertical;
  }
  .ty-mail textarea { min-height: 120px; line-height: 1.55; }
  .ty-mail input::placeholder,
  .ty-mail textarea::placeholder { color: rgba(244,239,230,0.32); }
  .ty-mail input:focus,
  .ty-mail textarea:focus {
    border-color: rgba(240,184,110,0.55);
    background: rgba(240,184,110,0.05);
    box-shadow: 0 0 0 3px rgba(240,184,110,0.1);
  }
  .ty-mail-actions {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    margin-top: 6px;
  }
  .ty-mail-send {
    width: 100%;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    justify-content: center;
    background: linear-gradient(135deg, #f0b86e, #e8a25c);
    color: #14181f; border: none; font-weight: 700;
    box-shadow: 0 0 0 1px rgba(240,184,110,0.35), 0 16px 36px -16px rgba(240,184,110,0.55);
  }
  .ty-mail-send:hover { filter: brightness(1.05); }
  .ty-mail-send:disabled {
    opacity: 0.65; cursor: wait; filter: none;
  }
  .ty-mail-status {
    min-height: 1.3em;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.06em;
    text-align: left; color: var(--ty-muted);
  }
  .ty-mail-status.is-ok { color: #9ad7b5; }
  .ty-mail-status.is-err { color: #f0a0a0; }

  .ty-cta { position: relative; z-index: 1; text-align: left; }
  .ty-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0b86e, #e8a25c);
    color: #14181f;
    border: none;
    min-height: 44px;
    padding: 0.72rem 1.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(240,184,110,0.35), 0 18px 40px -18px rgba(240,184,110,0.55);
    transition: transform 0.25s ease, filter 0.2s ease, box-shadow 0.2s ease;
  }
  .ty-resume svg {
    margin-right: 8px;
    transition: transform 0.25s ease;
  }
  .ty-resume:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(240,184,110,0.5), 0 22px 46px -16px rgba(240,184,110,0.7);
  }
  .ty-resume:hover svg {
    transform: translateY(2px);
  }

  @media (max-width: 900px) {
    .ty-layout {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .ty-left { max-width: none; }
    .ty-content { text-align: center; padding: 110px 0 80px; }
    .thank-you-row,
    .contact-pills,
    .ty-cta { justify-content: center; }
    .ty-subcopy { margin-left: auto; margin-right: auto; }
    .ty-mail-head,
    .ty-mail-status { text-align: center; }
    .ty-mail-lede { margin-left: auto; margin-right: auto; }
  }
  @media (max-width: 700px) {
    .ty-subcopy { font-size: 0.95rem; }
    .ty-mail { padding: 22px 18px 20px; }
    .ty-mail-grid { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ty-light-a, .ty-light-b, .ty-light-c, .ty-scan { animation: none; }
    .ty-video { display: none; }
  }

  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-in.visible { opacity: 1; transform: none; }

  /* Cinematic section transitions — seams, veils, title clip reveals */
  .cinematic-seam {
    position: absolute; top: 0; left: 0; right: 0; height: 80px;
    z-index: 6; pointer-events: none; overflow: hidden;
  }
  .cinematic-seam-line {
    position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(240,184,110,0.18) 18%,
      rgba(240,184,110,0.75) 50%,
      rgba(240,184,110,0.18) 82%,
      transparent 100%);
    transform: scaleX(0); transform-origin: center;
    box-shadow: 0 0 14px rgba(240,184,110,0.35);
  }
  .cinematic-seam-glow {
    position: absolute; top: -30px; left: 15%; right: 15%; height: 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(240,184,110,0.2) 0%, rgba(240,184,110,0.06) 40%, transparent 72%);
    opacity: 0; transform: scaleX(0.6);
  }
  #about .cinematic-seam-line,
  #skills .cinematic-seam-line,
  #projects .cinematic-seam-line,
  #contact .cinematic-seam-line {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(240,184,110,0.18) 18%,
      rgba(240,184,110,0.75) 50%,
      rgba(240,184,110,0.18) 82%,
      transparent 100%);
    box-shadow: 0 0 14px rgba(240,184,110,0.35);
  }
  #about .cinematic-seam-glow,
  #skills .cinematic-seam-glow,
  #projects .cinematic-seam-glow,
  #contact .cinematic-seam-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(240,184,110,0.2) 0%, rgba(240,184,110,0.06) 42%, transparent 72%);
  }

  /* Sits behind section content (z-index 1); content children are bumped to 2 in JS */
  .cinematic-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.5) 0%,
      rgba(0,0,0,0.14) 26%,
      transparent 46%,
      transparent 58%,
      rgba(0,0,0,0.22) 100%);
    opacity: 0;
  }
  #about .cinematic-veil {
    background: linear-gradient(180deg,
      rgba(7,9,14,0.75) 0%,
      rgba(7,9,14,0.22) 28%,
      transparent 48%,
      transparent 60%,
      rgba(7,9,14,0.35) 100%);
  }
  #projects .cinematic-veil {
    background: linear-gradient(180deg,
      rgba(8,12,10,0.78) 0%,
      rgba(8,12,10,0.22) 28%,
      transparent 48%,
      transparent 60%,
      rgba(8,12,10,0.4) 100%);
  }
  #skills .cinematic-veil {
    background: linear-gradient(180deg,
      rgba(7,9,14,0.75) 0%,
      rgba(7,9,14,0.22) 28%,
      transparent 48%,
      transparent 60%,
      rgba(7,9,14,0.35) 100%);
  }

  #achievements .cinematic-veil {
    background: linear-gradient(180deg,
      rgba(5,7,12,0.7) 0%,
      rgba(5,7,12,0.18) 28%,
      transparent 48%,
      transparent 60%,
      rgba(5,7,12,0.32) 100%);
  }
  #contact .cinematic-veil {
    background: linear-gradient(180deg,
      rgba(4,6,12,0.75) 0%,
      rgba(4,6,12,0.2) 28%,
      transparent 48%,
      transparent 62%,
      rgba(4,6,12,0.55) 100%);
  }

  .cinematic-title-reveal {
    display: inline-block;
    will-change: clip-path, transform, opacity;
  }

  @media (prefers-reduced-motion: reduce) {
    .cinematic-seam, .cinematic-veil { display: none; }
  }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: rgba(240,184,110,0.3); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(240,184,110,0.55); }



.btn, .contact-pill, .about-links a { will-change: transform; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.preloader-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6%;
  pointer-events: none;
}
.preloader-credit {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(0.62rem, 1.05vw, 0.74rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  color: #f0b86e;
  margin: 0 0 0.95rem;
  opacity: 0;
  will-change: opacity;
}
.preloader-title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 5.2vw, 3.6rem);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #f4efe6;
  opacity: 0;
  will-change: opacity;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .preloader-credit {
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    margin-bottom: 0.75rem;
  }
  .preloader-title-line {
    font-size: clamp(1.15rem, 6.8vw, 1.65rem);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-credit,
  .preloader-title-line { opacity: 1; }
}

/* Hidden by default so there's no flash before GSAP takes over */
.hb-kicker, .hb-rule, .hb-title-text, .hb-role, .hb-scroll { opacity: 0; }

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

.nav-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-credit); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 12px 22px; min-height: 44px; border-radius: 30px; border: none; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s ease, color 0.3s ease; }

.nav-pill-cta { background: rgba(255,255,255,0.04); border: 1px solid rgba(240,184,110,0.28); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-pill-cta:hover { border-color: #f0b86e; color: #f0b86e; background: rgba(240,184,110,0.08); box-shadow: 0 0 16px rgba(240,184,110,0.2); }

.nav-pill-resume {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 184, 110, 0.28);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-pill-resume:hover {
  border-color: #f0b86e;
  color: #f0b86e;
  background: rgba(240, 184, 110, 0.08);
  box-shadow: 0 0 16px rgba(240, 184, 110, 0.2);
}
.nav-pill-resume .nav-pill-icon {
  color: #f0b86e;
  display: inline-block;
  vertical-align: middle;
}

.nav-pill-menu {
  --bubble-size: 44px;
  width: var(--bubble-size);
  height: var(--bubble-size);
  min-width: var(--bubble-size);
  min-height: var(--bubble-size);
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: #0c1018;
  color: #f4efe6;
  border: 1px solid rgba(240, 184, 110, 0.28);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.55);
}
@media (min-width: 768px) {
  .nav-pill-menu { --bubble-size: 44px; }
}
.nav-pill-menu:hover {
  transform: scale(1.06);
  border-color: rgba(240, 184, 110, 0.6);
  color: #f0b86e;
  box-shadow: 0 0 18px rgba(240, 184, 110, 0.25);
}
.nav-pill-menu .menu-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 16px;
}
.nav-pill-menu .menu-line {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-pill-menu.is-open {
  background: linear-gradient(135deg, #f0b86e, #e8a25c);
  border-color: #f0b86e;
  color: #14181f;
  box-shadow: 0 0 20px rgba(240, 184, 110, 0.4);
}
.nav-pill-menu.is-open .menu-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-pill-menu.is-open .menu-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Bubble Menu — floats on the current page (no separate page plate) */
.bubble-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  pointer-events: none;
}
.bubble-menu-overlay.is-open {
  display: block;
  pointer-events: auto;
}
.bubble-menu-bg {
  position: absolute;
  inset: 0;
  /* Keep the live page visible — only a light dim so pills read clearly */
  background: rgba(6, 8, 13, 0.38);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.bubble-menu-overlay.is-open .bubble-menu-bg { opacity: 1; }

.bubble-menu-items {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  z-index: 1;
  pointer-events: none;
  padding-top: max(88px, calc(env(safe-area-inset-top) + 48px));
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.pill-list {
  list-style: none;
  margin: auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  width: 100%;
  max-width: 560px;
  pointer-events: auto;
}
.pill-spacer {
  display: none;
}
.pill-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.pill-link {
  --pill-bg: rgba(14, 18, 26, 0.88);
  --pill-color: #f4efe6;
  --item-rot: 0deg;
  --pill-min-h: 44px;
  --hover-bg: linear-gradient(135deg, #f0b86e, #e8a25c);
  --hover-color: #14181f;
  width: auto;
  min-width: 7.25rem;
  min-height: var(--pill-min-h);
  height: auto;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-color);
  text-decoration: none;
  border: 1px solid rgba(240, 184, 110, 0.25);
  box-shadow:
    0 1px 0 rgba(240, 184, 110, 0.15) inset,
    0 10px 28px -12px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  transform: scale(0);
  transform-origin: 50% 50%;
}
.pill-link .pill-label {
  display: inline-block;
  will-change: transform, opacity;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
}
.pill-link.is-active,
.bubble-menu-overlay.is-open .pill-link:hover {
  background: var(--hover-bg);
  color: var(--hover-color);
  border-color: #f0b86e;
  box-shadow: 0 10px 28px -8px rgba(240, 184, 110, 0.55);
}
@media (min-width: 900px) {
  .pill-link {
    transform: scale(0);
  }
}
@media (max-width: 899px) {
  .bubble-menu-items {
    align-items: safe center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .pill-list {
    max-width: 320px;
    gap: 10px;
    margin: auto;
  }
  .pill-col {
    flex: 0 0 auto;
  }
  .pill-link {
    min-width: 9.5rem;
    font-size: 0.95rem;
    padding: 0.7rem 1.3rem;
    min-height: 46px;
  }
}
@media (max-height: 520px) {
  .bubble-menu-items {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    padding-top: max(70px, calc(env(safe-area-inset-top) + 36px));
  }
  .pill-list {
    max-width: 500px;
    margin: 0 auto;
  }
  .pill-link {
    min-height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 600px) {
  .nav-pill-cta, .nav-pill-resume { padding: 10px 14px; font-size: 0.64rem; }
}
@media (max-width: 380px) {
  .nav-logo { padding: 8px 12px; font-size: 0.62rem; gap: 6px; }
  .nav-pill-cta, .nav-pill-resume { padding: 8px 10px; font-size: 0.6rem; }
  .nav-pills { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill-link,
  .pill-link .pill-label {
    transition: none;
  }
}
