﻿    /* ============================================================
       DESIGN TOKENS — LIGHT EDITION
    ============================================================ */
    :root {
      /* ── Light base palette ── */
      --bg:       #FAFAF7;
      --surface:  #FFFFFF;
      --surface2: #F3EFE5;
      --sand:     #EAE3CF;

      /* ── Gold from logo ── */
      --gold:     #C9A84C;
      --gold-d:   #9A7820;
      --gold-l:   #E8C96E;
      --gold-s:   #F7ECBA;

      /* ── Typography (light sections) ── */
      --white:    #0D0C09;   /* main text — near-black */
      --muted:    #7A7570;
      --border:   rgba(13,12,9,0.1);

      /* ── Fonts ── */
      --font-display: 'Fraunces', Georgia, serif;
      --font-body:    'Outfit', system-ui, sans-serif;
      --font-mono:    'Space Mono', monospace;
    }

    /* ── Dark-section local overrides ── */
    #marquee-section,
    #team,
    #contact,
    footer {
      --bg:      #0D0C09;
      --surface: #181510;
      --white:   #F2F2F0;
      --muted:   #8A8580;
      --border:  rgba(201,168,76,0.18);
      --gold-d:  #C9A84C;
    }

    /* ============================================================
       RESET & BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: auto;
      scrollbar-width: none;       /* Firefox */
      -ms-overflow-style: none;    /* IE/Edge */
    }

    html::-webkit-scrollbar {
      display: none;               /* Chrome/Safari */
    }

    body {
      background: var(--bg);
      color: var(--white);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
      cursor: none;
    }

    ::selection { background: var(--gold); color: #FAFAF7; }

    img { max-width: 100%; height: auto; display: block; }
    a { color: inherit; text-decoration: none; }

    /* ============================================================
       CUSTOM CURSOR
    ============================================================ */
    #cursor-dot {
      position: fixed;
      top: 0; left: 0;
      width: 7px; height: 7px;
      background: var(--gold-d);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: width 0.2s, height 0.2s, background 0.2s;
    }

    #cursor-ring {
      position: fixed;
      top: 0; left: 0;
      width: 34px; height: 34px;
      border: 1.5px solid rgba(13,12,9,0.3);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%, -50%);
      opacity: 1;
      transition: width 0.3s cubic-bezier(0.23,1,0.32,1),
                  height 0.3s cubic-bezier(0.23,1,0.32,1),
                  border-color 0.3s,
                  opacity 0.3s;
    }

    body.cursor-hover #cursor-ring {
      width: 52px; height: 52px;
      border-color: var(--gold);
      opacity: 1;
    }

    body.cursor-hover #cursor-dot {
      width: 4px; height: 4px;
      background: var(--gold);
    }

    /* ============================================================
       SECTION WIPE TRANSITION
    ============================================================ */
    #section-wipe {
      position: fixed;
      inset: 0;
      background: #0D0C09;
      z-index: 200;
      transform: scaleY(0);
      transform-origin: top center;
      pointer-events: none;
      will-change: transform;
    }

    /* ============================================================
       PRELOADER — 3D CUBE
    ============================================================ */
    #preloader {
      position: fixed;
      inset: 0;
      background: #0D0C09;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
      color: #F2F2F0;
    }

    #preloader-cube-wrap {
      perspective: 20rem;
      width: 7rem; height: 7rem;
    }

    #preloader-cube {
      height: 7rem; width: 7rem;
      position: relative;
      transform-style: preserve-3d;
      animation: exg-cube 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }

    #preloader-cube div {
      align-items: center;
      display: flex;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 2.8rem;
      font-weight: 300;
      height: 100%; width: 100%;
      position: absolute;
      background: #181510;
      color: #C9A84C;
      border: 1px solid rgba(201,168,76,0.25);
    }

    #preloader-cube div:nth-child(even) {
      background: #EAE3CF;
      color: #0D0C09;
      border-color: rgba(13,12,9,0.08);
    }

    #preloader-cube div:nth-child(1) { transform: rotateY(0deg)   translateZ(3.5rem); }
    #preloader-cube div:nth-child(2) { transform: rotateY(-90deg)  translateZ(3.5rem); }
    #preloader-cube div:nth-child(3) { transform: rotateX(-90deg) rotate(-90deg) translateZ(3.5rem); }
    #preloader-cube div:nth-child(4) { transform: rotateX(180deg) rotate(-90deg) translateZ(3.5rem); }
    #preloader-cube div:nth-child(5) { transform: rotateX(90deg)   translateZ(3.5rem); }
    #preloader-cube div:nth-child(6) { transform: rotateY(90deg)  rotate(90deg)  translateZ(3.5rem); }

    @keyframes exg-cube {
      0%    { transform: rotateY(0)    rotateX(0); }
      16.6% { transform: rotateY(90deg)  rotateX(0); }
      33.3% { transform: rotateY(90deg)  rotateX(0) rotate(90deg); }
      50%   { transform: rotateY(180deg) rotateX(0) rotate(90deg); }
      66.6% { transform: rotateY(180deg) rotateX(-90deg) rotate(90deg); }
      83.3% { transform: rotateY(270deg) rotateX(-90deg) rotate(90deg); }
      100%  { transform: rotateY(270deg) rotateX(-90deg) rotate(90deg) rotateX(90deg); }
    }

    #preloader-title {
      font-family: var(--font-body);
      font-size: 0.95rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #F2F2F0;
      margin-top: 8px;
    }

    #preloader-tagline {
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 300;
      font-size: 1rem;
      color: rgba(242,242,240,0.45);
      letter-spacing: -0.01em;
    }

    /* ── Chromatic aberration glitch ── */
    .glitch-text {
      position: relative;
      display: inline-block;
    }

    .glitch-text::before,
    .glitch-text::after {
      content: attr(data-text);
      position: absolute;
      left: 0; top: 0;
      width: 100%; height: 100%;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
    }

    .glitch-text::before {
      color: #ff0055;
      animation: glitch-before 2.4s steps(1) infinite;
      clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    }

    .glitch-text::after {
      color: #00aaff;
      animation: glitch-after 2.4s steps(1) infinite;
      clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    }

    @keyframes glitch-before {
      0%,  45%  { transform: translate(0, 0); opacity: 0; }
      46%        { transform: translate(-3px, 1px); opacity: 1; }
      48%        { transform: translate(3px, -1px); opacity: 1; }
      50%, 100%  { transform: translate(0, 0); opacity: 0; }
    }

    @keyframes glitch-after {
      0%,  47%  { transform: translate(0, 0); opacity: 0; }
      48%        { transform: translate(3px, 2px); opacity: 1; }
      50%        { transform: translate(-3px, -1px); opacity: 1; }
      52%, 100%  { transform: translate(0, 0); opacity: 0; }
    }

    /* ============================================================
       NOISE GRAIN OVERLAY
    ============================================================ */
    .grain-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      opacity: 0.035;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 200px 200px;
    }

    /* ============================================================
       NAVIGATION
    ============================================================ */
    #navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 500;
      padding: 24px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.4s, padding 0.4s,
                  backdrop-filter 0.4s, box-shadow 0.4s;
    }

    #navbar.scrolled {
      background: rgba(250,250,247,0.92);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      padding: 16px 48px;
      box-shadow: 0 1px 0 var(--border);
    }

    #nav-logo { width: 110px; }

    #hamburger {
      display: flex;
      flex-direction: column;
      gap: 6px;
      cursor: none;
      padding: 8px;
      z-index: 600;
    }

    #hamburger span {
      display: block;
      width: 28px; height: 1.5px;
      background: var(--white);
      transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                  opacity 0.3s;
      transform-origin: center;
    }

    #hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    #hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    #hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Full-screen nav overlay */
    #nav-overlay {
      position: fixed;
      inset: 0;
      background: #F3EFE5;
      z-index: 490;
      display: flex;
      align-items: center;
      justify-content: center;
      clip-path: inset(0 0 100% 0);
      transition: clip-path 0.7s cubic-bezier(0.76,0,0.24,1);
      overflow: hidden;
    }

    #nav-overlay.open {
      clip-path: inset(0 0 0% 0);
    }

    /* Subtle gold bloom in overlay */
    #nav-overlay::before {
      content: '';
      position: absolute;
      width: 700px; height: 700px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 65%);
      left: 60%; top: 40%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    #nav-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }

    #nav-links li {
      overflow: hidden;
    }

    #nav-links a {
      display: flex;
      align-items: baseline;
      gap: 0;
      font-family: var(--font-display);
      font-size: clamp(3rem, 7vw, 6rem);
      font-weight: 300;
      letter-spacing: -0.02em;
      color: #0D0C09;
      transform: translateY(100%);
      opacity: 0;
      transition: color 0.3s;
    }

    #nav-links a .nav-num {
      font-family: var(--font-mono);
      font-size: 0.2em;
      color: var(--gold-d);
      vertical-align: super;
      margin-right: 12px;
      letter-spacing: 0.1em;
      flex-shrink: 0;
    }

    /* Hover-swap: sans → italic serif, slide up */
    .nav-text-wrap {
      position: relative;
      overflow: hidden;
      display: inline-block;
      line-height: 1.1;
    }

    .nav-text-main {
      display: block;
      transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                  opacity 0.3s;
    }

    .nav-text-serif {
      position: absolute;
      left: 0; top: 102%;
      display: block;
      font-style: italic;
      font-size: 1.08em;
      font-weight: 300;
      line-height: 1;
      white-space: nowrap;
      color: var(--gold-d);
      transform: translateY(0%);
      transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                  opacity 0.3s;
      opacity: 0;
    }

    #nav-links a:hover .nav-text-main {
      transform: translateY(-105%);
      opacity: 0;
    }

    #nav-links a:hover .nav-text-serif {
      transform: translateY(-110%);
      opacity: 1;
    }

    #nav-links a:focus-visible { outline: 1px solid var(--gold-d); outline-offset: 4px; }

    #nav-overlay.open #nav-links a {
      transform: translateY(0);
      opacity: 1;
    }

    #nav-links li:nth-child(1) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.1s, opacity 0.4s 0.1s, color 0.3s; }
    #nav-links li:nth-child(2) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.17s, opacity 0.4s 0.17s, color 0.3s; }
    #nav-links li:nth-child(3) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.24s, opacity 0.4s 0.24s, color 0.3s; }
    #nav-links li:nth-child(4) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.31s, opacity 0.4s 0.31s, color 0.3s; }
    #nav-links li:nth-child(5) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.38s, opacity 0.4s 0.38s, color 0.3s; }
    #nav-links li:nth-child(6) a { transition: transform 0.6s cubic-bezier(0.23,1,0.32,1) 0.45s, opacity 0.4s 0.45s, color 0.3s; }

    /* Nav overlay footer */
    #nav-overlay-footer {
      position: absolute;
      bottom: 48px;
      left: 80px;
      right: 80px;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s 0.55s,
                  transform 0.5s cubic-bezier(0.23,1,0.32,1) 0.55s;
    }

    #nav-overlay.open #nav-overlay-footer {
      opacity: 1;
      transform: translateY(0);
    }

    .nav-footer-col {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .nav-footer-label {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold-d);
      margin-bottom: 4px;
    }

    .nav-footer-link {
      font-family: var(--font-body);
      font-size: 13px;
      color: rgba(13,12,9,0.55);
      letter-spacing: 0.01em;
      transition: color 0.25s;
      display: block;
    }

    .nav-footer-link:hover { color: #0D0C09; }

    /* ============================================================
       HERO
    ============================================================ */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      padding: 140px 80px 100px;
    }

    /* Warm gradient mesh background */
    #hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 65% 50% at 92% 10%, rgba(201,168,76,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(201,168,76,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(234,227,207,0.8) 0%, transparent 60%),
        var(--bg);
      animation: hero-pulse 10s ease-in-out infinite alternate;
    }

    @keyframes hero-pulse {
      0%  { opacity: 0.9; }
      100% { opacity: 1; }
    }

    /* ── Cursor-following gradient blob ── */
    #hero-blob {
      position: absolute;
      left: 50%; top: 50%;
      width: 720px; height: 720px;
      margin-left: -360px; margin-top: -360px;
      border-radius: 50%;
      background: radial-gradient(circle,
        rgba(201,168,76,0.22) 0%,
        rgba(201,168,76,0.07) 45%,
        transparent 70%);
      pointer-events: none;
      z-index: 0;
      will-change: transform;
    }

    /* ── Floating portfolio images ── */
    .hero-float {
      position: absolute;
      pointer-events: none;
      border-radius: 10px;
      overflow: hidden;
      background: #FFFFFF;
      box-shadow:
        0 20px 60px rgba(13,12,9,0.12),
        0 4px 14px rgba(13,12,9,0.06);
      opacity: 0;
      z-index: 0;
      will-change: transform;
    }

    .hero-float img {
      display: block;
      width: 100%;
      height: auto;
      filter: saturate(0.72) brightness(0.97);
    }

    /* Float positions — right side + edges only, clear of hero text */
    .hero-float-1 { top: -40px;  left: -60px;   width: 240px; }  /* top-left corner, mostly clipped */
    .hero-float-2 { top:  30px;  right: 0px;    width: 320px; }  /* top-right */
    .hero-float-3 { top:  34%;   right: 20px;   width: 295px; }  /* mid-right */
    .hero-float-4 { bottom: -30px; right: 170px; width: 260px; } /* bottom-center-right */
    .hero-float-5 { bottom: -30px; right: -45px; width: 285px; } /* bottom-right corner */
    .hero-float-6 { top: 58%;   left: -70px;   width: 215px; }  /* left edge, mostly clipped */

    @media (max-width: 1100px) {
      .hero-float, #hero-blob { display: none; }
    }

    #hero-content {
      position: relative;
      z-index: 2;
      max-width: 900px;
    }

    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold-d);
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      gap: 16px;
      opacity: 0;
    }

    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 40px; height: 1px;
      background: var(--gold-d);
    }

    .hero-headline {
      margin-bottom: 32px;
    }

    .headline-serif {
      display: block;
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 300;
      font-size: clamp(2.8rem, 5vw, 5.5rem);
      letter-spacing: -0.02em;
      line-height: 1.0;
      color: var(--white);
      margin-bottom: 0.1em;
    }

    .headline-sans {
      display: block;
      font-family: var(--font-body);
      font-style: normal;
      font-weight: 800;
      font-size: clamp(3.8rem, 7.5vw, 9rem);
      letter-spacing: -0.04em;
      line-height: 0.95;
      color: var(--white);
    }

    .word-wrap {
      display: inline-block;
      overflow: hidden;
      vertical-align: bottom;
      margin-right: 0.22em;
    }

    .word {
      display: inline-block;
      transform: translateY(110%);
      opacity: 0;
    }

    .hero-sub {
      font-family: var(--font-body);
      font-size: 18px;
      font-weight: 300;
      line-height: 1.7;
      color: var(--muted);
      max-width: 520px;
      margin-bottom: 56px;
      opacity: 0;
      transform: translateY(20px);
    }

    .hero-ctas {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      opacity: 0;
      transform: translateY(20px);
    }

    /* CTA buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 36px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-radius: 100px;
      cursor: none;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s cubic-bezier(0.23,1,0.32,1),
                  box-shadow 0.3s;
      will-change: transform;
    }

    /* Slide-up inner text */
    .btn-label {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      height: 1.2em;
      pointer-events: none;
    }

    .btn-label span {
      display: block;
      transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
      white-space: nowrap;
    }

    .btn:hover .btn-label span {
      transform: translateY(-100%);
    }

    .btn-gold {
      background: var(--white);
      color: #FAFAF7;
      box-shadow: 0 4px 20px rgba(13,12,9,0.18),
                  0 1px 4px rgba(13,12,9,0.1);
    }

    .btn-gold:hover {
      background: #2A2520;
      box-shadow: 0 8px 32px rgba(13,12,9,0.28),
                  0 2px 8px rgba(13,12,9,0.14);
      transform: translateY(-2px);
    }

    .btn-gold:active { transform: translateY(0); }
    .btn-gold:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

    .btn-outline {
      background: transparent;
      color: var(--white);
      border: 1.5px solid rgba(13,12,9,0.3);
    }

    .btn-outline:hover {
      border-color: var(--white);
      background: rgba(13,12,9,0.05);
      transform: translateY(-2px);
    }

    .btn-outline:active { transform: translateY(0); }
    .btn-outline:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

    /* Scroll indicator */
    #scroll-indicator {
      position: absolute;
      bottom: 40px;
      left: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      opacity: 0;
      z-index: 2;
    }

    #scroll-indicator span {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--muted);
      writing-mode: vertical-rl;
      text-transform: uppercase;
    }

    #scroll-indicator .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, var(--gold-d), transparent);
      animation: scroll-bounce 1.8s ease-in-out infinite;
    }

    @keyframes scroll-bounce {
      0%,100% { transform: scaleY(1) translateY(0); opacity: 1; }
      50%      { transform: scaleY(0.6) translateY(8px); opacity: 0.5; }
    }

    /* SVG golden lines hero decoration */
    #hero-svg {
      position: absolute;
      right: -80px;
      top: 50%;
      transform: translateY(-50%);
      width: 680px;
      height: 680px;
      opacity: 0.55;
      z-index: 1;
      pointer-events: none;
    }

    /* ============================================================
       MARQUEE
    ============================================================ */
    #marquee-section {
      background: linear-gradient(to right, rgba(201,168,76,0.06), rgba(13,12,9,0.95), rgba(201,168,76,0.06));
      background-color: var(--bg);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 22px 0;
      overflow: hidden;
    }

    .marquee-row {
      display: flex;
      gap: 0;
      white-space: nowrap;
      margin-bottom: 12px;
    }

    .marquee-row:last-child { margin-bottom: 0; }

    .marquee-track {
      display: flex;
      gap: 0;
      animation: marquee-fwd 30s linear infinite;
      will-change: transform;
    }

    .marquee-track.rev {
      animation: marquee-rev 30s linear infinite;
    }

    .marquee-item {
      display: inline-flex;
      align-items: center;
      gap: 24px;
      padding: 0 32px;
      font-family: var(--font-display);
      font-style: italic;
      font-size: 1.4rem;
      font-weight: 300;
      color: var(--gold);
      opacity: 0.85;
    }

    .marquee-item::after {
      content: '·';
      font-style: normal;
      color: var(--gold);
      opacity: 0.4;
    }

    @keyframes marquee-fwd {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    @keyframes marquee-rev {
      from { transform: translateX(-50%); }
      to   { transform: translateX(0); }
    }

    /* ============================================================
       SECTION SHARED STYLES
    ============================================================ */
    .section-label {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--gold-d);
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }

    .section-label::before {
      content: '';
      display: block;
      width: 32px; height: 1px;
      background: var(--gold-d);
    }

    .reveal-up {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1),
                  transform 0.8s cubic-bezier(0.23,1,0.32,1);
    }

    .reveal-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ============================================================
       ABOUT
    ============================================================ */
    #about {
      padding: 120px 80px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      position: relative;
      background: var(--surface2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    #about::before {
      content: '';
      position: absolute;
      right: -100px; top: 50%;
      transform: translateY(-50%);
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
      pointer-events: none;
    }

    .about-left {
      position: sticky;
      top: 140px;
      height: fit-content;
    }

    .about-heading {
      font-family: var(--font-display);
      font-size: clamp(3.5rem, 6vw, 7rem);
      font-weight: 600;
      line-height: 1.0;
      letter-spacing: -0.03em;
      color: var(--white);
      margin-bottom: 24px;
    }

    .gold-underline {
      display: inline-block;
      position: relative;
    }

    .gold-underline::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--gold), transparent);
      width: 0;
      transition: width 1.2s cubic-bezier(0.23,1,0.32,1);
    }

    .gold-underline.drawn::after { width: 100%; }

    .about-body {
      font-size: 17px;
      line-height: 1.75;
      color: var(--muted);
      margin-bottom: 20px;
    }

    /* Stats */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      padding-top: 48px;
      border-top: 1px solid var(--border);
      margin-top: 48px;
      grid-column: 1 / -1;
    }

    .stat-item {
      text-align: center;
    }

    .stat-num {
      font-family: var(--font-mono);
      font-size: clamp(2.5rem, 4vw, 3.5rem);
      font-weight: 700;
      color: var(--gold-d);
      display: block;
      line-height: 1;
    }

    .stat-label {
      font-size: 13px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 8px;
      display: block;
    }

    /* ============================================================
       SERVICES
    ============================================================ */
    #services {
      padding: 120px 0;
      position: relative;
    }

    .services-header {
      padding: 0 80px;
      margin-bottom: 64px;
    }

    .services-heading {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 4.5vw, 5rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.05;
    }

    .service-card {
      padding: 60px 80px;
      display: grid;
      grid-template-columns: 100px 1fr auto;
      gap: 40px;
      align-items: start;
      border-top: 1px solid var(--border);
      position: relative;
      cursor: none;
      transition: background 0.5s;
      overflow: hidden;
    }

    .service-card:last-child { border-bottom: 1px solid var(--border); }

    .service-card::before {
      content: '';
      position: absolute;
      left: 0; bottom: 0;
      width: 4px; height: 0;
      background: linear-gradient(to top, var(--gold), var(--gold-l));
      transition: height 0.5s cubic-bezier(0.23,1,0.32,1);
    }

    .service-card:hover { background: rgba(201,168,76,0.04); }
    .service-card:hover::before { height: 100%; }

    .service-glow {
      position: absolute;
      bottom: -100px; left: -100px;
      width: 350px; height: 350px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 65%);
      opacity: 0;
      transition: opacity 0.5s, transform 0.5s;
      pointer-events: none;
    }

    .service-card:hover .service-glow { opacity: 1; transform: translate(20px, 20px); }

    /* Large watermark number behind service card */
    .service-bg-num {
      position: absolute;
      right: 100px;
      top: 50%;
      transform: translateY(-50%);
      font-family: var(--font-display);
      font-size: clamp(10rem, 18vw, 20rem);
      font-weight: 700;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(201,168,76,0.1);
      pointer-events: none;
      user-select: none;
      letter-spacing: -0.05em;
      transition: -webkit-text-stroke 0.5s, opacity 0.4s;
    }

    .service-card:hover .service-bg-num {
      -webkit-text-stroke: 1.5px rgba(201,168,76,0.22);
    }

    .service-num {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--gold-d);
      letter-spacing: 0.1em;
      padding-top: 6px;
    }

    .service-body {}

    .service-title {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin-bottom: 16px;
      color: var(--white);
    }

    .service-desc {
      font-size: 15px;
      line-height: 1.7;
      color: var(--muted);
      max-width: 560px;
    }

    .service-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 20px;
    }

    .service-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      color: var(--muted);
      border: 1px solid rgba(13,12,9,0.18);
      border-radius: 100px;
      padding: 4px 14px;
      text-transform: uppercase;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .service-card:hover .service-tag {
      background: rgba(201,168,76,0.08);
      border-color: rgba(154,120,32,0.45);
      color: var(--gold-d);
    }

    .service-arrow {
      width: 48px; height: 48px;
      border: 1.5px solid rgba(13,12,9,0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 6px;
      transition: border-color 0.3s, background 0.3s, transform 0.3s;
    }

    .service-arrow svg {
      width: 18px; height: 18px;
      stroke: var(--white);
      transition: stroke 0.3s;
    }

    .service-card:hover .service-arrow {
      border-color: var(--white);
      background: rgba(13,12,9,0.05);
      transform: translateX(4px);
    }

    /* ============================================================
       PORTFOLIO / WORK
    ============================================================ */
    #work {
      padding: 120px 80px;
      position: relative;
      isolation: isolate;
    }

    #work::before {
      content: '';
      position: absolute;
      right: -100px; top: 20%;
      transform: translateY(0);
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(201,168,76,0.09) 0%, transparent 65%);
      pointer-events: none;
    }

    .particles-canvas {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }

    .work-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 48px;
      flex-wrap: wrap;
      gap: 24px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 40px;
    }

    .work-heading {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 5vw, 5.5rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.05;
    }

    .work-sub {
      font-size: 17px;
      color: var(--muted);
      font-style: italic;
      font-family: var(--font-display);
      font-size: 1.4rem;
    }

    /* Filter tabs */
    .filter-tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .filter-tab {
      font-family: var(--font-body);
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 10px 24px;
      border: 1px solid var(--border);
      border-radius: 100px;
      cursor: none;
      color: var(--muted);
      background: transparent;
      transition: color 0.3s, border-color 0.3s, background 0.3s;
    }

    .filter-tab:hover { color: var(--white); border-color: rgba(13,12,9,0.35); }
    .filter-tab:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 2px; }

    .filter-tab.active {
      color: var(--white);
      border-color: var(--white);
      background: rgba(13,12,9,0.06);
    }

    /* Portfolio grid */
    .portfolio-grid {
      columns: 3;
      column-gap: 16px;
    }

    .portfolio-card {
      break-inside: avoid;
      margin-bottom: 16px;
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      cursor: none;
      background: var(--surface);
      transition: opacity 0.4s, transform 0.4s;
    }

    .portfolio-card.hidden {
      display: none;
    }

    .portfolio-card img {
      width: 100%;
      display: block;
      transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
    }

    .portfolio-card:hover img { transform: scale(1.04); }

    .portfolio-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(8,8,15,0.85) 0%, rgba(8,8,15,0.3) 40%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s;
      display: flex;
      align-items: flex-end;
      padding: 24px;
    }

    .portfolio-card:hover .portfolio-card-overlay { opacity: 1; }

    .portfolio-card-info {}

    .portfolio-card-cat {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #E8C96E;
      margin-bottom: 4px;
    }

    .portfolio-card-label {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 600;
      color: #F2F2F0;
    }

    /* ============================================================
       LIGHTBOX
    ============================================================ */
    #lightbox {
      position: fixed;
      inset: 0;
      background: rgba(8,8,15,0.96);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    #lightbox.open {
      opacity: 1;
      pointer-events: all;
    }

    #lightbox img {
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 4px;
    }

    #lightbox-close {
      position: absolute;
      top: 32px; right: 32px;
      width: 48px; height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid rgba(201,168,76,0.4);
      border-radius: 50%;
      cursor: none;
      transition: border-color 0.3s, background 0.3s;
    }

    #lightbox-close:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
    #lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

    #lightbox-close svg { width: 16px; height: 16px; stroke: var(--gold); }

    /* ============================================================
       TEAM
    ============================================================ */
    #team {
      padding: 120px 80px 140px;
      position: relative;
      background: var(--bg);   /* uses dark-section override → #0D0C09 */
    }

    #team::before {
      content: '';
      position: absolute;
      left: 50%; top: 0;
      transform: translateX(-50%);
      width: 100%; height: 1px;
      background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
      pointer-events: none;
    }

    #team::after {
      content: '';
      position: absolute;
      left: 50%; top: 0;
      transform: translateX(-50%);
      width: 700px; height: 400px;
      background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 65%);
      pointer-events: none;
    }

    .team-heading {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 4.5vw, 5rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      text-align: center;
      margin-bottom: 72px;
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .team-card {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 3/4;
      cursor: none;
      box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 4px 16px rgba(0,0,0,0.4);
    }

    .team-card img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
      transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
      filter: grayscale(15%) contrast(1.08) brightness(0.95);
    }

    .team-card:hover img {
      transform: scale(1.06);
      filter: grayscale(0%) contrast(1.12) brightness(1.02);
    }

    .team-card-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to top, rgba(13,12,9,0.92) 0%, rgba(13,12,9,0.55) 35%, rgba(201,168,76,0.08) 65%, transparent 85%);
      transition: background 0.5s;
    }

    .team-card:hover .team-card-overlay {
      background:
        linear-gradient(to top, rgba(13,12,9,0.96) 0%, rgba(201,168,76,0.2) 45%, rgba(201,168,76,0.08) 70%, transparent 90%);
    }

    /* Gold shimmer border */
    .team-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      border: 1px solid rgba(201,168,76,0.12);
      transition: border-color 0.4s, box-shadow 0.4s;
    }

    .team-card:hover::after {
      border-color: rgba(201,168,76,0.45);
      box-shadow: inset 0 0 40px rgba(201,168,76,0.06);
    }

    .team-card-info {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 36px;
    }

    /* Subtle gold line above the name */
    .team-card-info::before {
      content: '';
      display: block;
      width: 40px; height: 1.5px;
      background: var(--gold);
      margin-bottom: 14px;
      opacity: 0.8;
    }

    .team-card-name {
      font-family: var(--font-display);
      font-size: 2.2rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--white);
      line-height: 1.05;
    }

    .team-card-title {
      font-family: var(--font-body);
      font-size: 12px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--gold);
      margin-top: 8px;
      opacity: 0.9;
    }

    /* ============================================================
       RESULTS BAND
    ============================================================ */
    #results {
      padding: 100px 80px;
      background: var(--surface2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      text-align: center;
    }

    #results::before {
      content: '';
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%,-50%);
      width: 700px; height: 350px;
      background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 65%);
      pointer-events: none;
    }

    .results-tagline {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 4.5rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.25;
      max-width: 800px;
      margin: 0 auto 72px;
      color: var(--white);
      position: relative;
      z-index: 1;
    }

    .results-tagline strong {
      font-weight: 700;
      font-style: normal;
      color: var(--gold);
    }

    .results-pillars {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .pillar {
      background: var(--surface);
      padding: 40px 32px;
      transition: background 0.3s;
    }

    .pillar:hover { background: rgba(201,168,76,0.06); }

    .pillar-icon {
      width: 48px; height: 48px;
      margin: 0 auto 20px;
      border: 1px solid rgba(13,12,9,0.15);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .pillar-icon svg {
      width: 20px; height: 20px;
      stroke: var(--gold-d);
    }

    .pillar-title {
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 8px;
    }

    .pillar-sub {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ============================================================
       CONTACT / CTA
    ============================================================ */
    #contact {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      padding: 120px 80px;
      text-align: center;
    }

    /* Background gradient for contact */
    #contact::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 15% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
        var(--bg);
    }

    .contact-content {
      position: relative;
      z-index: 2;
      max-width: 800px;
    }

    .contact-heading {
      font-family: var(--font-display);
      font-size: clamp(4rem, 10vw, 11rem);
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 0.92;
      color: var(--white);
      margin-bottom: 32px;
    }

    .contact-sub {
      font-size: 18px;
      font-weight: 300;
      color: rgba(242,242,240,0.6);
      margin-bottom: 56px;
      font-family: var(--font-display);
      font-style: italic;
    }

    .contact-links {
      display: flex;
      justify-content: center;
      gap: 48px;
      flex-wrap: wrap;
      margin-bottom: 56px;
    }

    .contact-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      cursor: none;
    }

    .contact-link-label {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .contact-link-value {
      font-family: var(--font-body);
      font-size: 15px;
      color: var(--white);
      transition: color 0.3s;
    }

    .contact-link:hover .contact-link-value { color: var(--gold); }
    .contact-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

    .social-pills {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 56px;
      flex-wrap: wrap;
    }

    .social-pill {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold);
      border: 1px solid rgba(201,168,76,0.35);
      border-radius: 100px;
      padding: 8px 20px;
      cursor: none;
      transition: background 0.3s, border-color 0.3s;
    }

    .social-pill:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
    .social-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

    /* Animated gold particles */
    .particle {
      position: absolute;
      width: 3px; height: 3px;
      border-radius: 50%;
      background: var(--gold);
      opacity: 0;
      pointer-events: none;
      animation: particle-float var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
    }

    @keyframes particle-float {
      0%   { opacity: 0; transform: translate(0, 0); }
      20%  { opacity: 0.6; }
      80%  { opacity: 0.3; }
      100% { opacity: 0; transform: translate(var(--tx, 40px), var(--ty, -100px)); }
    }

    /* ============================================================
       FOOTER
    ============================================================ */
    footer {
      background: #0A0A12;
      border-top: 1px solid var(--border);
      padding: 32px 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    .footer-logo { width: 80px; opacity: 0.7; transition: opacity 0.3s; }
    .footer-logo:hover { opacity: 1; }
    .footer-logo:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

    .footer-copy {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.15em;
      color: var(--muted);
    }

    .footer-socials {
      display: flex;
      gap: 20px;
    }

    .footer-social-link {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--muted);
      text-transform: uppercase;
      transition: color 0.3s;
      cursor: none;
    }

    .footer-social-link:hover { color: var(--gold); }
    .footer-social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 1024px) {
      #about { grid-template-columns: 1fr; gap: 48px; }
      .about-left { position: static; }
      .portfolio-grid { columns: 2; }
      .service-card { grid-template-columns: 60px 1fr; }
      .service-arrow { display: none; }
    }

    @media (max-width: 768px) {
      #hero { padding: 120px 24px 80px; }
      #navbar { padding: 20px 24px; }
      #navbar.scrolled { padding: 14px 24px; }
      #about { padding: 80px 24px; }
      #services { padding: 80px 0; }
      .services-header { padding: 0 24px; }
      .service-card { padding: 40px 24px; grid-template-columns: 1fr; }
      .service-num { display: none; }
      #work { padding: 80px 24px; }
      .portfolio-grid { columns: 1; }
      #team { padding: 80px 24px; }
      .team-grid { grid-template-columns: 1fr; max-width: 400px; }
      #results { padding: 80px 24px; }
      .results-pillars { grid-template-columns: 1fr; }
      #contact { padding: 80px 24px; }
      footer { padding: 24px; flex-direction: column; text-align: center; }
      .stats-row { grid-template-columns: 1fr; }
      .contact-links { gap: 32px; }
      #scroll-indicator { left: 24px; }
    }

    /* Loading state for images */
    .portfolio-card img {
      background: var(--surface2);
    }

/* ============================================================
   MULTI-PAGE ADDITIONS
============================================================ */

/* ── Page transition panel ── */
#page-transition {
  position: fixed;
  inset: 0;
  background: #0D0C09;
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: center bottom;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-transition .pt-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: #C9A84C;
  opacity: 0;
  letter-spacing: 0.04em;
}

/* ── Inline nav links (desktop) ── */
#nav-inline {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 28px;
}
#nav-inline a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}
#nav-inline a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
}
#nav-inline a:hover::after,
#nav-inline a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
#nav-inline a.active { color: var(--gold-d); }
@media (max-width: 768px) { #nav-inline { display: none; } }

/* ── Butterfly cursor-trail canvas (work page) ── */
#butterfly-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
}

/* ── Generic inner-page header ── */
.page-header {
  padding: 180px 8vw 40px;
  text-align: center;
  position: relative;
}
.page-header .page-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-d);
  display: block;
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
}
.page-header h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-d);
  letter-spacing: -0.02em;
}

/* ── Work page CTA strip ── */
.work-cta-strip {
  text-align: center;
  padding: 60px 8vw 140px;
}
.work-cta-strip p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 22px;
}

/* ── About page typing intro ── */
#typing-intro {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 8vw 60px;
}
#typing-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 9rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  min-height: 1.1em;
}
#typing-word .ch { opacity: 0; }
#typing-word .ch.on { opacity: 1; }
#typing-sub {
  max-width: 520px;
  margin-top: 40px;
  font-size: 16px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(16px);
}

/* ── Portfolio grid bend (scroll velocity) ── */
.portfolio-grid { will-change: transform; }

/* Arriving mid-transition: keep panel covering until JS reveals */
html.pt-in #page-transition { transform: scaleY(1); }
html.pt-in #page-transition .pt-word { opacity: 1; }

/* ── Dark-page navbar variant (contact page) ── */
body.dark-nav #nav-inline a { color: #F2F2F0; }
body.dark-nav #nav-inline a.active { color: #C9A84C; }
body.dark-nav #hamburger span { background: #F2F2F0; }
body.dark-nav #navbar.scrolled {
  background: rgba(13,12,9,0.9);
  box-shadow: 0 1px 0 rgba(201,168,76,0.18);
}

/* ============================================================
   ONE-PAGE VIDEO HERO (home)
============================================================ */
body.home-fixed {
  --white:  #F2F2F0;
  --muted:  #A8A29A;
  --border: rgba(242,242,240,0.22);
  --gold-d: #C9A84C;
  background: #050507;
  height: 100vh;
  overflow: hidden;
}

#hero.video-hero {
  height: 100vh;
  min-height: 100vh;
  background: #050507;
  overflow: hidden;
}

#hero-video-wrap {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
}
#hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.05);
}

/* vignette + bottom fade for text legibility */
#hero.video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(5,5,7,0.55) 100%),
    linear-gradient(to top, rgba(5,5,7,0.5), transparent 30%);
}

#hero.video-hero #hero-content {
  position: relative;
  z-index: 2;
}

#hero.video-hero .headline-serif,
#hero.video-hero .headline-sans { color: #F2F2F0; }
#hero.video-hero .hero-sub      { color: rgba(242,242,240,0.82); }

/* proximity italic-flip characters (eyebrow) */
.prox-char {
  display: inline-block;
  white-space: pre;
  transition: color 0.25s ease;
}
.prox-char.it {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-l);
}

/* hero bottom corners */
.hero-corner {
  position: absolute;
  bottom: 28px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,242,240,0.55);
}
.hero-corner.left  { left: 48px; }
.hero-corner.right { right: 48px; display: flex; gap: 20px; }
.hero-corner a { color: rgba(242,242,240,0.7); transition: color 0.3s; }
.hero-corner a:hover { color: var(--gold-l); }

/* ============================================================
   GLASSMORPHISM PASS
============================================================ */
.filter-tabs {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 8px 32px rgba(13,12,9,0.07);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
}
.filter-tab {
  background: transparent;
  border: 1px solid transparent;
}
.filter-tab:not(.active):hover {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.portfolio-card-overlay {
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
}

.social-pill,
.contact-link {
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(255,255,255,0.06);
}

#lightbox-close {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
}

.work-cta-strip .btn { box-shadow: 0 12px 40px rgba(201,168,76,0.25); }

/* ============================================================
   REEL CARDS (vertical video, work page)
============================================================ */
.reel-card video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0D0C09;
}
.reel-card .portfolio-card-cat::before {
  content: '▶ ';
  color: var(--gold-l);
  font-size: 0.8em;
}

/* lightbox video */
#lightbox-video {
  max-width: min(420px, 86vw);
  max-height: 84vh;
  border-radius: 8px;
  display: none;
}
#lightbox.video-mode #lightbox-video { display: block; }
#lightbox.video-mode #lightbox-img   { display: none; }

/* ============================================================
   HERO V2 — CENTERED, LIQUID GLASS (iOS-style refraction)
============================================================ */

/* rotating angle for the rainbow refraction rims */
@property --lg-angle {
  syntax: '"'"'<angle>'"'"';
  inherits: false;
  initial-value: 0deg;
}
@keyframes lg-spin { to { --lg-angle: 360deg; } }

/* ── stronger parallax room ── */
#hero-video-wrap { inset: -10%; }

/* ── centered content ── */
#hero.video-hero #hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
#hero.video-hero .hero-eyebrow { justify-content: center; color: #E8C96E; }
#hero.video-hero .hero-eyebrow::before { background: #E8C96E; }
#hero.video-hero .hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: #E8C96E;
}
#hero.video-hero .hero-sub { margin-left: auto; margin-right: auto; }
#hero.video-hero .hero-ctas { justify-content: center; }

/* ── legibility scrim behind content (bg is white/black/gold mix) ── */
#hero.video-hero #hero-content::before {
  content: '';
  position: absolute;
  inset: -16% -22%;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(5,5,7,0.55) 0%, rgba(5,5,7,0.28) 48%, transparent 74%);
  filter: blur(26px);
  pointer-events: none;
}
#hero.video-hero .headline-serif,
#hero.video-hero .headline-sans {
  color: #FFFFFF;
  text-shadow: 0 2px 30px rgba(5,5,7,0.7), 0 1px 5px rgba(5,5,7,0.55);
}
#hero.video-hero .hero-sub {
  color: #EFEDE8;
  text-shadow: 0 1px 16px rgba(5,5,7,0.8), 0 1px 3px rgba(5,5,7,0.6);
}
#hero.video-hero .hero-eyebrow,
#hero.video-hero .hero-corner,
#hero.video-hero .hero-corner a {
  text-shadow: 0 1px 10px rgba(5,5,7,0.8);
}

/* ── EXG logo centerpiece ── */
#hero-logo-wrap {
  opacity: 0;
  transform: scale(0.65);
  margin-bottom: 30px;
  perspective: 900px;
}
#hero-logo-float { animation: logo-float 7s ease-in-out infinite; }
#hero-logo-tilt  { transform-style: preserve-3d; will-change: transform; }
#hero-logo-img {
  width: clamp(130px, 15vw, 210px);
  filter: drop-shadow(0 18px 48px rgba(201,168,76,0.55))
          drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* ── liquid glass CTAs (hero) ── */
#hero.video-hero .btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)),
              rgba(10,10,14,0.45);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  color: #FFFFFF;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45),
              inset 0 -1px 0 rgba(255,255,255,0.08),
              0 14px 44px rgba(0,0,0,0.45);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
#hero.video-hero .btn-gold {
  background: linear-gradient(135deg, rgba(232,201,110,0.38), rgba(201,168,76,0.1)),
              rgba(22,17,8,0.45);
}
#hero.video-hero .btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1)),
              rgba(10,10,14,0.5);
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55),
              0 20px 60px rgba(0,0,0,0.55);
}
#hero.video-hero .btn:active { transform: translateY(-1px) scale(0.99); }

/* ── rainbow refraction rim — all buttons ── */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255, 92, 132, 0.75), rgba(255, 214, 92, 0.7),
    rgba(112, 255, 192, 0.6), rgba(96, 182, 255, 0.75),
    rgba(212, 132, 255, 0.7), rgba(255, 92, 132, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 5s linear infinite;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 1;
}
.btn:hover::before { opacity: 1; }

/* ── nav links: glass pills with refraction (replaces underline) ── */
#nav-inline a {
  position: relative;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.35s, color 0.3s, transform 0.3s, box-shadow 0.35s;
}
#nav-inline a::after { display: none; }
#nav-inline a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255, 92, 132, 0.7), rgba(255, 214, 92, 0.65),
    rgba(112, 255, 192, 0.55), rgba(96, 182, 255, 0.7),
    rgba(212, 132, 255, 0.65), rgba(255, 92, 132, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 5s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
#nav-inline a:hover,
#nav-inline a.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
#nav-inline a:hover::before,
#nav-inline a.active::before { opacity: 0.85; }
#nav-inline a.active { color: var(--gold-l); }
body.dark-nav #nav-inline a:hover,
body.dark-nav #nav-inline a.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
              rgba(10,10,14,0.3);
}

/* ── glass-lens cursor ring with rainbow shimmer ── */
#cursor-ring {
  backdrop-filter: blur(3px) saturate(1.9) brightness(1.05);
  -webkit-backdrop-filter: blur(3px) saturate(1.9) brightness(1.05);
  border-width: 1.3px;
  box-shadow: inset 0 0 14px rgba(255,255,255,0.2),
              0 4px 18px rgba(0,0,0,0.16);
  animation: ring-hue 7s linear infinite;
}
@keyframes ring-hue {
  0%   { border-color: rgba(255,132,160,0.75); }
  20%  { border-color: rgba(255,214,112,0.75); }
  40%  { border-color: rgba(132,255,196,0.75); }
  60%  { border-color: rgba(120,190,255,0.75); }
  80%  { border-color: rgba(216,150,255,0.75); }
  100% { border-color: rgba(255,132,160,0.75); }
}
body.cursor-hover #cursor-ring {
  width: 62px; height: 62px;
  backdrop-filter: blur(4px) saturate(2.1) brightness(1.08);
  -webkit-backdrop-filter: blur(4px) saturate(2.1) brightness(1.08);
}

/* eyebrow inside its own glass pill for legibility over the bright disk */
#hero.video-hero .hero-eyebrow {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
              rgba(10,10,14,0.4);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 30px rgba(0,0,0,0.3);
}

/* ============================================================
   HERO V3 — sample-matched type scale + liquid letters
============================================================ */

/* smaller, tighter headline (matched to reference video) */
#hero.video-hero .headline-serif {
  font-size: clamp(2.3rem, 4.2vw, 4.5rem);
}
#hero.video-hero .headline-sans {
  font-size: clamp(2.9rem, 5.3vw, 5.9rem);
}
#hero.video-hero .hero-headline { margin-bottom: 26px; }
#hero.video-hero .hero-sub {
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 44px;
}
#hero.video-hero #hero-logo-img { width: clamp(110px, 12vw, 170px); }
#hero.video-hero #hero-logo-wrap { margin-bottom: 24px; }

/* only one logo on home — hide the navbar one */
body.home-fixed #navbar > a:first-child { display: none; }

/* ── liquid chrome letters (headline) ── */
.hl-ch {
  display: inline-block;
  position: relative;
  white-space: pre;
  will-change: transform;
}
.hl-s {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(105deg,
    rgba(255,255,255,0) 15%,
    rgba(255,246,222,0.95) 38%,
    rgba(232,201,110,0.95) 50%,
    rgba(255,255,255,1) 62%,
    rgba(255,255,255,0) 85%);
  background-size: 240px 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   WORK PAGE V2 — dynamic light world, separated sections
============================================================ */

body.work-page { background: #F2EFE7; }

/* ── layered parallax background ── */
#work-bg {
  position: fixed;
  inset: -9%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wbg-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.wbg-wash {
  background:
    radial-gradient(58% 48% at 18% 8%,  #FAF5E7 0%, transparent 62%),
    radial-gradient(48% 42% at 86% 16%, #F5EADF 0%, transparent 64%),
    radial-gradient(70% 56% at 50% 104%, #ECE6D8 0%, transparent 72%),
    linear-gradient(180deg, #F6F3EB 0%, #F0EBDF 100%);
}
.wbg-arches { opacity: 0.55; filter: blur(2.5px); }
.wbg-arches svg { width: 100%; height: 100%; }
.wbg-glow {
  background: radial-gradient(40% 34% at 50% 10%, rgba(232,201,110,0.26), transparent 70%);
  background-size: 150% 150%;
  animation: wbg-glow-drift 16s ease-in-out infinite alternate;
}
@keyframes wbg-glow-drift {
  from { background-position: 38% 0%; }
  to   { background-position: 62% 14%; }
}

/* content sits above the background */
body.work-page .page-header,
body.work-page #work-main,
body.work-page footer { position: relative; z-index: 1; }

body.work-page .page-header { padding-bottom: 10px; }

/* ── work sections (Reels / Results) ── */
.work-section { padding: 64px 7vw 36px; }
.work-section-head {
  text-align: center;
  margin-bottom: 34px;
}
.ws-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 14px;
}
.ws-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.ws-heading em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-d);
}
.ws-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}
.work-section-tabs { text-align: center; margin-bottom: 44px; }

/* ── reels grid (vertical 9:16 cards) ── */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  will-change: transform;
}
@media (max-width: 1100px) { .reels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .reels-grid { grid-template-columns: 1fr; } }
.reels-grid .portfolio-card { margin-bottom: 0; }

/* ── light fog transition variant ── */
html.pt-light #page-transition { background: #EFECE3; }
html.pt-light #page-transition .pt-word { color: #9A7820; }

/* entrance pre-state (avoids flash before GSAP takes over) */
html.pt-in body.work-page .page-header,
html.pt-in body.work-page #work-main { opacity: 0; }

/* ============================================================
   SPA SHELL LAYERING
============================================================ */
#app { position: relative; z-index: 1; }
#page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#page-bg #work-bg { position: absolute; }

/* ============================================================
   LIQUID WAVE PAGE TRANSITION (ref: unseen.co 2.mp4)
   A tall body with undulating crests on both edges sweeps
   bottom -> top across the viewport while content warps.
============================================================ */
#wave-transition {
  --wave-color: #F2EFE7;
  position: fixed;
  left: 0;
  width: 100%;
  top: 0;
  height: 160vh;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(105vh);
  will-change: transform;
  visibility: hidden;
}

.wave-body {
  position: absolute;
  inset: 0;
  background: var(--wave-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: 0.04em;
  color: #9A7820;
  opacity: 0.9;
}

/* crests: two stacked drifting wave strips per edge for an
   organic liquid silhouette */
.wave-crest {
  position: absolute;
  left: 0;
  width: 100%;
  height: 16vh;
  overflow: hidden;
}
.wave-crest.top    { top: -15.8vh; }
.wave-crest.bottom { bottom: -15.8vh; transform: scaleY(-1); }

.wave-crest svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 220%;
  height: 100%;
  fill: var(--wave-color);
}
.wave-crest svg.w1 {
  animation: wave-slide 2.6s linear infinite;
  opacity: 0.65;
}
.wave-crest svg.w2 {
  animation: wave-slide 1.9s linear infinite reverse;
}
@keyframes wave-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-45.4545%); }   /* one tile of the repeating wave */
}

/* lingering fog after the wave passes (the bright settle) */
#wave-veil {
  position: fixed;
  inset: 0;
  background: #F2EFE7;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* exact one-period slide (4 periods per tile => 25%) for seamless loop */
@keyframes wave-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ============================================================
   GLASS PUSH TRANSITION (iOS Dynamic-Island feel)
============================================================ */
#glass-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}
#glass-veil .streak {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 40vh;
  top: 28%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6), transparent);
  filter: blur(22px);
  transform: skewY(-7deg);
  will-change: transform;
}

/* incoming page = rounded glass card that springs to full bleed */
#app.glass-push {
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.6),
    inset 0 1px 30px rgba(255,255,255,0.22),
    0 40px 140px rgba(0,0,0,0.45);
  transition: box-shadow 0.45s ease;
}

/* ============================================================
   CRYSTAL REMAKE — white/gray iOS glass theme, rainbow dispersion
   (cascade override block: later rules win)
============================================================ */

/* ── tokens: silver replaces gold, white-gray replaces cream ── */
:root {
  --bg:       #F6F6F8;
  --surface:  #FFFFFF;
  --surface2: #ECECF0;
  --sand:     #E4E5EA;
  --gold:     #9BA0AA;
  --gold-d:   #6E737D;
  --gold-l:   #D6D9E0;
  --gold-s:   #EDEEF3;
  --white:    #141418;
  --muted:    #7C7D85;
  --border:   rgba(20,20,24,0.09);
}
::selection { background: #C7CBD4; color: #141418; }

/* former dark sections become soft gray glass panels */
#marquee-section,
#team,
#contact,
footer {
  --bg:      #ECEDF1;
  --surface: #FFFFFF;
  --white:   #141418;
  --muted:   #7C7D85;
  --border:  rgba(20,20,24,0.08);
  --gold-d:  #6E737D;
}

body { background: var(--bg); }
body.work-page { background: #F5F5F7; }

/* home stays dark over the space video, but silver not gold */
body.home-fixed {
  --gold-d: #D6D9E0;
  --gold-l: #E3E6EC;
}

/* ── work page world: white-gray + rainbow bloom ── */
.wbg-wash {
  background:
    radial-gradient(58% 48% at 18% 8%,  #FFFFFF 0%, transparent 62%),
    radial-gradient(48% 42% at 86% 16%, #EFEFF3 0%, transparent 64%),
    radial-gradient(70% 56% at 50% 104%, #E8E9EE 0%, transparent 72%),
    linear-gradient(180deg, #F7F7F9 0%, #EFEFF3 100%);
}
.wbg-arches { opacity: 0.5; }
.wbg-arches svg path,
.wbg-arches svg ellipse { fill: #DCDEE5; }
.wbg-glow {
  background: radial-gradient(42% 36% at 50% 8%,  rgba(173,196,255,0.22), transparent 70%),
              radial-gradient(30% 26% at 24% 30%, rgba(255,182,205,0.16), transparent 70%),
              radial-gradient(30% 26% at 76% 26%, rgba(186,240,210,0.16), transparent 70%);
  background-size: 150% 150%;
}

/* ── iridescent (light-dispersion) text accent ── */
.page-header h1 em,
.ws-heading em,
#hero.video-hero #line2 .word-wrap:last-child .word {
  background: linear-gradient(104deg, #9CC3FF 0%, #D8B4FF 26%, #FFB7CB 50%, #FFE3A1 74%, #A9EFC9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* hero eyebrow + sheen go silver/rainbow */
#hero.video-hero .hero-eyebrow { color: #E7E9EE; }
#hero.video-hero .hero-eyebrow::before,
#hero.video-hero .hero-eyebrow::after { background: #E7E9EE; }
.prox-char.it { color: #CBD6FF; }
.hl-s {
  background-image: linear-gradient(105deg,
    rgba(255,255,255,0) 15%,
    rgba(156,195,255,0.95) 35%,
    rgba(255,255,255,1) 50%,
    rgba(255,183,203,0.9) 65%,
    rgba(255,255,255,0) 85%);
}

/* ── buttons: frosted crystal everywhere ── */
.btn-gold {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  color: #141418;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95),
              inset 0 -1px 0 rgba(20,20,24,0.05),
              0 10px 36px rgba(20,20,24,0.14);
}
.btn-gold:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 16px 48px rgba(20,20,24,0.18);
}
.btn-outline {
  border-color: rgba(20,20,24,0.16);
  background: rgba(255,255,255,0.35);
}
.work-cta-strip .btn { box-shadow: 0 14px 44px rgba(140,160,255,0.25); }

/* ── nav overlay: frosted light glass ── */
#nav-overlay {
  --white: #141418;
  --muted: #7C7D85;
  background: rgba(246,246,248,0.88);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}
#hamburger.open span { background: #141418; }

/* preloader goes crystal too */
#preloader { background: #F4F4F6; }
#preloader-title { color: #141418; }
#preloader-tagline { color: #7C7D85; }

/* section wipe: light glass instead of black */
#section-wipe { background: #E9EAEE; }

/* portfolio cards: glass edge + rainbow rim on hover */
.portfolio-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,20,24,0.06);
}
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255,140,170,0.8), rgba(255,220,130,0.75),
    rgba(150,255,200,0.7), rgba(140,190,255,0.8),
    rgba(220,160,255,0.75), rgba(255,140,170,0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 5s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.portfolio-card:hover::after { opacity: 1; }

/* glass veil + tap rings */
.tap-ring {
  position: fixed;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  border: 1.6px solid rgba(255,255,255,0.95);
  box-shadow: 0 0 0 1px rgba(20,20,24,0.18), 0 0 18px rgba(160,190,255,0.5);
  will-change: transform, opacity;
}
.tap-ring.r2 {
  border-color: rgba(160,195,255,0.85);
  box-shadow: 0 0 0 1px rgba(255,175,205,0.4);
}
.tap-ring.r3 {
  border-color: rgba(255,183,203,0.8);
  box-shadow: 0 0 0 1px rgba(170,240,205,0.4);
}

/* on the dark home video the dispersion needs near-white pastels */
#hero.video-hero #line2 .word-wrap:last-child .word {
  background-image: linear-gradient(104deg, #D9E7FF 0%, #F1E0FF 26%, #FFE1EB 50%, #FFF4D8 74%, #DDFFEB 100%);
  -webkit-background-clip: text;
          background-clip: text;
  filter: drop-shadow(0 2px 14px rgba(5,5,7,0.6));
}

/* the .word contains composited .hl-ch children, which breaks
   background-clip:text at word level on home — revert to solid
   white fallback and apply the dispersion per glyph instead */
#hero.video-hero #line2 .word-wrap:last-child .word {
  background: none;
  -webkit-text-fill-color: initial;
  color: #FFFFFF;
  filter: none;
}
#hero.video-hero #line2 .word-wrap:last-child .hl-ch > span:first-child {
  background-image: linear-gradient(104deg, #D9E7FF 0%, #F1E0FF 26%, #FFE1EB 50%, #FFF4D8 74%, #DDFFEB 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* butterflies live BEHIND the content: above the page background,
   below text/cards — visible in the open space, never distracting */
#butterfly-canvas { z-index: 1; }
#app { z-index: 2; }

/* perf: live backdrop blur on a constantly-moving ring is expensive —
   paint the glass instead, keep the rainbow rim */
#cursor-ring {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: radial-gradient(circle at 35% 30%,
    rgba(255,255,255,0.28), rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.12));
}
body.cursor-hover #cursor-ring {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   ABOUT PAGE — crystal pass
============================================================ */

/* iridescent dispersion on the big words */
.services-heading em,
.team-heading em {
  font-style: italic;
  background: linear-gradient(104deg, #9CC3FF 0%, #D8B4FF 26%, #FFB7CB 50%, #FFE3A1 74%, #A9EFC9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat-num {
  background: linear-gradient(120deg, #6E737D 0%, #9CC3FF 45%, #C9A0F0 70%, #6E737D 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* "EXG Marketing(R)": brand name picks up the dispersion as it types */
#typing-word .ch:nth-child(n+5) {
  background: linear-gradient(104deg, #8FB8FF, #CFA6FF, #FF9FBC, #FFD98F, #93E9C0);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
#typing-word .ch:nth-child(n+5).on { color: transparent; }

/* "We Are EXG" — EXG goes iridescent, underline becomes a rainbow */
.about-heading .gold-underline {
  background: linear-gradient(104deg, #9CC3FF, #D8B4FF, #FFB7CB, #FFE3A1);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gold-underline::after {
  background: linear-gradient(90deg, #9CC3FF, #D8B4FF, #FFB7CB, #FFE3A1, transparent);
  height: 2.5px;
}

/* service cards: frosted crystal panels */
.service-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.5));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(20,20,24,0.06);
}
.service-card:hover {
  box-shadow: 0 18px 60px rgba(140,160,255,0.18),
              0 6px 24px rgba(255,160,200,0.12);
}
.service-card::before {
  background: linear-gradient(to top, #9CC3FF, #D8B4FF, #FFB7CB);
}
.service-tag {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(20,20,24,0.1);
}
.service-card:hover .service-tag {
  background: rgba(156,195,255,0.14);
  border-color: rgba(156,195,255,0.6);
  color: #4A5568;
}

/* team cards: rainbow glass rim on hover */
.team-card::after {
  border: none;
  padding: 1.6px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255,140,170,0.85), rgba(255,220,130,0.8),
    rgba(150,255,200,0.75), rgba(140,190,255,0.85),
    rgba(220,160,255,0.8), rgba(255,140,170,0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 5s linear infinite;
  opacity: 0;
  transition: opacity 0.45s;
}
.team-card:hover::after { opacity: 1; }

/* footer had a hardcoded dark background — crystal it */
footer {
  background: #ECEDF1;
  border-top: 1px solid rgba(20,20,24,0.08);
}

/* ── bugfixes: about page ── */

/* founder names sit on dark photos — always white, with depth */
.team-card-name {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}
.team-card-title {
  color: #E3E6EC;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* the sticky "We Are EXG" column rode over the stats row — unstick it */
.about-left {
  position: relative;
  top: 0;
}

/* ============================================================
   VORTEX TRANSITION (ref 3.mp4) + DARK CONTACT PAGE
============================================================ */

/* organic ink-blob vortex erupting from the click point */
#vortex {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  filter: url(#vortex-warp);
}
.vx-blob {
  position: absolute;
  width: 124vmax;
  height: 124vmax;
  margin: -62vmax 0 0 -62vmax;
  background: #131316;
  border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
  transform: scale(0);
  will-change: transform;
}
.vx-blob.b2 {
  background: #0E0E12;
  border-radius: 58% 42% 47% 53% / 45% 55% 48% 52%;
}
.vx-blob.b3 {
  background: #17171B;
  border-radius: 50% 50% 62% 38% / 58% 42% 50% 50%;
  opacity: 0.88;
}

/* chromatic glitch-in (UNSEEN WORLD-style text assembly) */
@keyframes glitch-in {
  0%   { opacity: 0; transform: translate(-14px, 5px) skewX(9deg);
         text-shadow: -5px 0 #FF2A6A, 5px 0 #00E5FF;
         clip-path: inset(18% 0 42% 0); }
  18%  { opacity: 1; transform: translate(9px, -4px) skewX(-7deg);
         text-shadow: -7px 0 #FF2A6A, 7px 0 #00E5FF;
         clip-path: inset(52% 0 8% 0); }
  36%  { transform: translate(-6px, 2px) skewX(5deg);
         text-shadow: -4px 0 #FF2A6A, 4px 0 #00E5FF;
         clip-path: inset(0 0 58% 0); }
  54%  { transform: translate(4px, -2px) skewX(-3deg);
         clip-path: inset(32% 0 22% 0); }
  72%  { transform: translate(-2px, 1px) skewX(2deg);
         text-shadow: -2px 0 #FF2A6A, 2px 0 #00E5FF;
         clip-path: none; }
  88%  { transform: translate(1px, 0) skewX(-1deg);
         text-shadow: -1px 0 #FF2A6A, 1px 0 #00E5FF; }
  100% { opacity: 1; transform: none; text-shadow: none; clip-path: none; }
}
.glitch-in {
  animation: glitch-in 0.75s steps(1) both;
}

/* ── dark grayish contact page ── */
body.contact-dark { background: #131316; }
body.contact-dark #contact,
body.contact-dark footer {
  --bg:      #131316;
  --surface: #1B1B1F;
  --white:   #F2F2F0;
  --muted:   #8E8F96;
  --border:  rgba(242,242,240,0.12);
  --gold-d:  #D6D9E0;
  --gold:    #B9BDC7;
}
body.contact-dark footer {
  background: #0F0F13;
  border-top: 1px solid rgba(242,242,240,0.08);
}
body.contact-dark #contact { background: #131316; }
body.contact-dark .contact-heading { color: #F2F2F0; }
body.contact-dark .contact-sub { color: #9A9BA3; }
body.contact-dark .social-pill,
body.contact-dark .contact-link {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
body.contact-dark .btn-gold {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)),
              rgba(16,16,20,0.5);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 44px rgba(0,0,0,0.4);
}

/* ============================================================
   PORTAL VORTEX v2 — true masked reveal (ref 3.mp4 frame study)
   The new page lives INSIDE a growing organic hole; old page
   stays still (subtle blur only); glowing rim around the mouth.
============================================================ */
#portal {
  position: fixed;
  inset: 0;
  z-index: 400;             /* below navbar (500): nav stays visible */
  visibility: hidden;
  pointer-events: none;
  filter: url(#vortex-warp); /* parent filter warps the masked edge organically */
}
.portal-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.portal-inner {
  position: absolute;
  inset: 0;
  background: #131316;
  overflow: hidden;
}
#portal-glow {
  position: fixed;
  inset: 0;
  z-index: 399;
  visibility: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* contact-dark rules must also apply inside the portal preview,
   so they key off the class anywhere (body or wrapper) */
.contact-dark #contact,
.contact-dark footer {
  --bg:      #131316;
  --surface: #1B1B1F;
  --white:   #F2F2F0;
  --muted:   #8E8F96;
  --border:  rgba(242,242,240,0.12);
  --gold-d:  #D6D9E0;
  --gold:    #B9BDC7;
}
.contact-dark #contact { background: #131316; }
.contact-dark .contact-heading { color: #F2F2F0; }
.contact-dark .contact-sub { color: #9A9BA3; }
.contact-dark .social-pill,
.contact-dark .contact-link {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
.contact-dark .btn-gold {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)),
              rgba(16,16,20,0.5);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 44px rgba(0,0,0,0.4);
}

/* ============================================================
   CONTACT LEAD FORM — dark crystal card
============================================================ */
.contact-heading em {
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(104deg, #D9E7FF 0%, #F1E0FF 30%, #FFE1EB 55%, #FFF4D8 80%, #DDFFEB 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead-card {
  position: relative;
  max-width: 560px;
  margin: 10px auto 40px;
  padding: 34px 34px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)),
              rgba(24,24,29,0.65);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
              0 28px 80px rgba(0,0,0,0.45);
  text-align: left;
}
.lead-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255,140,170,0.6), rgba(255,220,130,0.55),
    rgba(150,255,200,0.5), rgba(140,190,255,0.6),
    rgba(220,160,255,0.55), rgba(255,140,170,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 6s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 620px) { .lead-fields { grid-template-columns: 1fr; } }

.lead-field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E8F96;
  margin-bottom: 9px;
}
.lead-field input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: #F2F2F0;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: text;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.lead-field input::placeholder { color: rgba(242,242,240,0.32); }
.lead-field input:focus {
  outline: none;
  border-color: rgba(156,195,255,0.85);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(156,195,255,0.16),
              0 0 28px rgba(156,195,255,0.18);
}

.lead-card .btn {
  width: 100%;
  justify-content: center;
}
.lead-card .btn:disabled { opacity: 0.6; pointer-events: none; }

.form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8E8F96;
}
.form-status.ok { color: #9FE8C4; }

/* ============================================================
   CELESTIAL CRYSTAL PRELOADER
   Deep-space dual tone: dark void + white crystal. You are
   entering the black-hole world.
============================================================ */
#preloader {
  background:
    radial-gradient(52% 40% at 50% 36%, rgba(160,180,235,0.10), transparent 70%),
    radial-gradient(80% 64% at 50% 110%, rgba(120,110,140,0.12), transparent 70%),
    #0A0A10;
  overflow: hidden;
  color: #F2F2F0;
}

/* drifting starfields (two depths) */
.pl-stars {
  position: absolute;
  inset: -30% 0;
  background-image:
    radial-gradient(1px 1px at 22px 34px,   rgba(255,255,255,0.95), transparent 45%),
    radial-gradient(1px 1px at 130px 84px,  rgba(255,255,255,0.6),  transparent 45%),
    radial-gradient(1.6px 1.6px at 202px 158px, rgba(196,214,255,0.85), transparent 45%),
    radial-gradient(1px 1px at 82px 192px,  rgba(255,255,255,0.5),  transparent 45%),
    radial-gradient(1.2px 1.2px at 168px 22px, rgba(255,220,238,0.7), transparent 45%);
  background-size: 240px 240px;
  animation: pl-stars-a 90s linear infinite;
  opacity: 0.85;
}
.pl-stars2 {
  background-size: 380px 380px;
  animation: pl-stars-b 150s linear infinite;
  opacity: 0.5;
  filter: blur(0.5px);
}
@keyframes pl-stars-a { to { transform: translateY(-1200px); } }
@keyframes pl-stars-b { to { transform: translateY(-1140px); } }

/* central nebula bloom — breathes */
.pl-glow {
  position: absolute;
  left: 50%; top: 40%;
  width: 64vmin; height: 64vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255,255,255,0.22) 0%,
    rgba(150,180,255,0.10) 38%,
    rgba(255,180,210,0.05) 58%,
    transparent 72%);
  filter: blur(12px);
  animation: pl-breathe 3.2s ease-in-out infinite alternate;
}
@keyframes pl-breathe {
  from { transform: translate(-50%, -50%) scale(1);    opacity: 0.75; }
  to   { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

/* tilted accretion ring behind the cube */
.pl-ring {
  position: absolute;
  left: 50%; top: 40%;
  width: 78vmin; height: 78vmin;
  margin: -39vmin 0 0 -39vmin;
  background: radial-gradient(circle,
    transparent 44%,
    rgba(255,228,196,0.20) 49%,
    rgba(255,255,255,0.10) 52%,
    transparent 58%);
  transform: scaleY(0.32) rotate(0deg);
  animation: pl-ring-spin 14s linear infinite;
}
@keyframes pl-ring-spin {
  from { transform: scaleY(0.32) rotate(0deg); }
  to   { transform: scaleY(0.32) rotate(360deg); }
}

/* cube wrap floats with weight */
#preloader-cube-wrap {
  position: relative;
  animation: pl-float 4.5s ease-in-out infinite;
}
@keyframes pl-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
#preloader-cube-wrap::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2.4rem;
  width: 9rem; height: 1.2rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(150,180,255,0.35), transparent 70%);
  filter: blur(6px);
  animation: pl-breathe-sm 4.5s ease-in-out infinite;
}
@keyframes pl-breathe-sm {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.5; transform: translateX(-50%) scaleX(0.78); }
}

/* glowing orbit rings circling the cube */
.pl-orbit {
  position: absolute;
  inset: -1.7rem;
  border: 1px solid rgba(176,200,255,0.55);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(160,190,255,0.4), inset 0 0 14px rgba(160,190,255,0.2);
  animation: pl-orbit-a 5s linear infinite;
  pointer-events: none;
}
.pl-orbit.o2 {
  inset: -2.8rem;
  border-color: rgba(255,196,222,0.45);
  box-shadow: 0 0 14px rgba(255,180,210,0.3), inset 0 0 14px rgba(255,180,210,0.15);
  animation: pl-orbit-b 8.5s linear infinite;
}
@keyframes pl-orbit-a {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes pl-orbit-b {
  from { transform: rotateX(78deg) rotateZ(360deg); }
  to   { transform: rotateX(78deg) rotateZ(0deg); }
}

/* ── the crystal cube ── */
#preloader-cube div {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 10px;
  box-shadow: inset 0 0 26px rgba(160,190,255,0.18),
              inset 0 1px 0 rgba(255,255,255,0.5);
  text-shadow: 0 0 16px rgba(255,255,255,0.9), 0 0 40px rgba(160,190,255,0.6);
}
#preloader-cube div:nth-child(even) {
  background: linear-gradient(135deg, rgba(244,246,252,0.94), rgba(222,228,242,0.85));
  color: #14141C;
  border-color: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.6),
              0 0 24px rgba(200,215,255,0.25);
  text-shadow: 0 0 12px rgba(120,150,255,0.35);
}

/* ── glowing title + celestial chromatic flicker ── */
#preloader-title {
  color: #FFFFFF;
  letter-spacing: 0.26em;
  margin-top: 22px;
  animation: pl-title-glow 2.6s ease-in-out infinite alternate;
}
@keyframes pl-title-glow {
  from { text-shadow: 0 0 14px rgba(255,255,255,0.5),  0 0 44px rgba(160,190,255,0.3); }
  to   { text-shadow: 0 0 26px rgba(255,255,255,0.95), 0 0 70px rgba(160,190,255,0.6); }
}
#preloader .glitch-text::before { color: #9CC3FF; }
#preloader .glitch-text::after  { color: #FFB7CB; }

#preloader-tagline {
  color: rgba(214,217,224,0.6);
  letter-spacing: 0.04em;
}

/* shimmering loading filament */
.pl-bar {
  width: 150px;
  height: 1.5px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.95) 50%, transparent 100%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: pl-bar-sweep 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,255,255,0.35);
}
@keyframes pl-bar-sweep {
  0%   { background-position: -90px 0; }
  100% { background-position: 240px 0; }
}

/* ── scrolled navbar on dark pages: soft fade, no hard plate ── */
body.dark-nav #navbar.scrolled,
body.contact-dark #navbar.scrolled {
  background: linear-gradient(180deg, rgba(15,15,19,0.92) 0%, rgba(15,15,19,0.55) 60%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

/* ── hero video: less overscan = less zoom (parallax max pan ~63px,
     5% of 1920 = 96px headroom, still safe) ── */
#hero-video-wrap { inset: -5%; }

/* ============================================================
   MOBILE ADAPTIVE PASS — every page, every component
============================================================ */

/* touch devices: native cursor, no custom ring */
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
  body, a, button, .btn, .portfolio-card, .filter-tab,
  #hamburger, .team-card, .service-card { cursor: auto !important; }
}

@media (max-width: 768px) {

  /* ── navbar ── */
  #navbar { padding: 14px 20px; }
  #navbar.scrolled { padding: 10px 20px; }
  #nav-logo { width: 76px; }

  /* full-screen menu overlay */
  #nav-links a { font-size: 2rem; }
  #nav-overlay-footer {
    left: 24px; right: 24px; bottom: 28px;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  #nav-overlay-footer .nav-footer-col[style] { text-align: left !important; }

  /* ── HOME: one-page hero must FIT a phone screen ── */
  #hero.video-hero { padding: 0 18px; }
  #hero.video-hero #hero-content {
    width: 100%;
    max-width: 100%;
  }
  #hero.video-hero #hero-logo-img { width: 84px; }
  #hero.video-hero #hero-logo-wrap { margin-bottom: 14px; }

  #hero.video-hero .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
    padding: 8px 14px;
    margin-bottom: 18px;
    max-width: 94vw;
    white-space: normal;
    text-align: center;
    line-height: 1.6;
  }
  #hero.video-hero .hero-eyebrow::before,
  #hero.video-hero .hero-eyebrow::after { width: 14px; flex: none; }

  #hero.video-hero .headline-serif { font-size: 1.6rem; letter-spacing: -0.01em; }
  #hero.video-hero .headline-sans  { font-size: 2.35rem; }
  #hero.video-hero .hero-headline  { margin-bottom: 18px; }

  #hero.video-hero .hero-sub {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 320px;
  }

  #hero.video-hero .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  #hero.video-hero .hero-ctas .btn {
    width: min(320px, 88vw);
    padding: 14px 20px;
    font-size: 12px;
  }

  .hero-corner { font-size: 8px; bottom: 12px; letter-spacing: 0.12em; }
  .hero-corner.left  { left: 18px; }
  .hero-corner.right { right: 18px; gap: 12px; }

  /* ── shared page chrome ── */
  .page-header { padding: 120px 20px 24px; }
  .page-eyebrow { font-size: 10px; letter-spacing: 0.26em; }

  /* ── WORK ── */
  .work-section { padding: 44px 18px 24px; }
  .work-section-tabs { margin-bottom: 30px; }
  .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    border-radius: 22px;
  }
  .reels-grid { gap: 14px; }
  .work-cta-strip { padding: 40px 20px 90px; }

  /* ── ABOUT ── */
  #typing-intro { min-height: 56vh; padding: 130px 22px 40px; }
  #typing-sub { font-size: 14px; margin-top: 28px; }
  .ws-heading em { letter-spacing: 0; }
  .work-section-head { margin-bottom: 26px; }

  /* ── CONTACT: clear the navbar, compact the card ── */
  #contact {
    padding: 120px 18px 60px;
    min-height: auto;
  }
  .contact-heading { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .contact-sub { font-size: 14px; }
  .lead-card { padding: 24px 20px 22px; margin: 6px auto 30px; }
  .contact-links {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .social-pills { flex-wrap: wrap; justify-content: center; gap: 10px; }

  /* footer stacks (reinforce) */
  footer { padding: 26px 20px; flex-direction: column; text-align: center; gap: 14px; }
}

/* very small phones */
@media (max-width: 380px) {
  #hero.video-hero .headline-serif { font-size: 1.4rem; }
  #hero.video-hero .headline-sans  { font-size: 2.05rem; }
  #hero.video-hero #hero-logo-img  { width: 72px; }
}

/* mobile eyebrow fix: the pill is a flex row of per-letter spans —
   without flex-wrap it can never break and runs off-screen */
@media (max-width: 768px) {
  #hero.video-hero .hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    max-width: 86vw;
    font-size: 8.5px;
    letter-spacing: 0.14em;
    padding: 9px 16px;
  }
  #hero.video-hero .hero-eyebrow::before,
  #hero.video-hero .hero-eyebrow::after { display: none; }
}

/* word groups inside the eyebrow: letters stay together, breaks at spaces */
.prox-word { display: inline-flex; }
.prox-space { display: inline-block; white-space: pre; width: 0.7em; }

/* ============================================================
   MOBILE QUALITY PASS (user feedback after first deploy)
============================================================ */

/* no blue/grey tap flash, no sticky focus glow on the burger */
* { -webkit-tap-highlight-color: transparent; }
#hamburger:focus,
#hamburger:focus-visible,
#hamburger:active { outline: none; box-shadow: none; }

@media (max-width: 768px) {
  /* bigger presence: logo + headline were too timid on phones */
  #navbar #nav-logo { width: 96px; }
  #hero.video-hero #hero-logo-img { width: 124px; }
  #hero.video-hero #hero-logo-wrap { margin-bottom: 18px; }

  #hero.video-hero .hero-eyebrow { font-size: 9.5px; letter-spacing: 0.18em; }
  #hero.video-hero .headline-serif { font-size: 1.95rem; }
  #hero.video-hero .headline-sans  { font-size: 2.85rem; }
  #hero.video-hero .hero-sub {
    font-size: 14.5px;
    max-width: 340px;
  }
}
@media (max-width: 380px) {
  #hero.video-hero .headline-serif { font-size: 1.7rem; }
  #hero.video-hero .headline-sans  { font-size: 2.5rem; }
  #hero.video-hero #hero-logo-img  { width: 106px; }
}

/* the "glowing burger": the button still had the UA default
   background (#f0f0f0) — strip it everywhere */
#hamburger {
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

/* on mobile home the logo is hidden, so the lone hamburger fell to
   the LEFT (space-between with one child) — keep it on the right */
@media (max-width: 768px) {
  body.home-fixed #navbar { justify-content: flex-end; }
}

/* ============================================================
   HAMBURGER = CRYSTAL GLASS BUTTON (match the other buttons)
============================================================ */
#hamburger {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8),
              inset 0 -1px 0 rgba(20,20,24,0.05),
              0 6px 22px rgba(20,20,24,0.10);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
#hamburger:hover { transform: translateY(-1px); }
#hamburger span { width: 20px; }

/* rotating rainbow rim, same as the buttons */
#hamburger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: conic-gradient(from var(--lg-angle),
    rgba(255,140,170,0.7), rgba(255,220,130,0.65),
    rgba(150,255,200,0.6), rgba(140,190,255,0.7),
    rgba(220,160,255,0.65), rgba(255,140,170,0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lg-spin 5s linear infinite;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s;
}
#hamburger:hover::before { opacity: 1; }

/* dark pages: smoked glass version */
body.dark-nav #hamburger,
body.contact-dark #hamburger {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
              rgba(12,12,16,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35),
              0 8px 26px rgba(0,0,0,0.35);
}

/* menu open: overlay is light — flip to bright glass w/ dark X */
#hamburger.open {
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95),
              0 6px 22px rgba(20,20,24,0.12);
}
