
  :root {
    /* ── Dark theme defaults ───────────────────────────────── */
    --page:    #0a0a0c;
    --surface: #111114;
    --raised:  #18181c;
    --ink:     #f5f5f7;
    --soft:    #b8b8c0;
    --muted:   #6a6a72;
    --border:  #22222a;
    --accent:  #18bfd0;
    --accent-dim: #1194a2;
    --magenta: #ff2bd1;
    --orange:  #ff6b35;
    --grad: linear-gradient(120deg, #18bfd0 0%, #ff2bd1 50%, #ff6b35 100%);
    --logo-filter: invert(1);
  }
  [data-theme="light"] {
    --page:    #ffffff;
    --surface: #f7f7f7;
    --raised:  #ffffff;
    --ink:     #111111;
    --soft:    #2b2b2b;
    --muted:   #767676;
    --border:  #dedede;
    --accent:  #18bfd0;
    --accent-dim: #1194a2;
    --magenta: #d40098;
    --orange:  #d65225;
    --logo-filter: none;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--page); color: var(--ink); }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* ── Nav ────────────────────────────────────────────────── */
  nav.top {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 36px;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(20px);
    background: color-mix(in srgb, var(--page) 70%, transparent);
    border-bottom: 1px solid var(--border);
    transition: all .3s ease;
  }
  .nav-logo img {
    height: 36px;
    filter: var(--logo-filter);
    transition: filter .3s ease;
  }
  nav.top ul { list-style: none; display: flex; gap: 28px; align-items: center; }
  nav.top a {
    font-family: 'Inconsolata', monospace;
    font-size: 13px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soft);
    transition: color .15s ease;
  }
  nav.top a:hover { color: var(--accent); }
  nav.top .cta {
    border: 1px solid var(--accent);
    padding: 8px 16px;
    color: var(--accent);
  }
  nav.top .cta:hover { background: var(--accent); color: var(--page); }

  /* Theme toggle */
  .theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--soft);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: all .2s ease;
  }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .theme-toggle svg { width: 18px; height: 18px; }
  [data-theme="dark"] .theme-toggle .sun-icon { display: block; }
  [data-theme="dark"] .theme-toggle .moon-icon { display: none; }
  [data-theme="light"] .theme-toggle .sun-icon { display: none; }
  [data-theme="light"] .theme-toggle .moon-icon { display: block; }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 140px 36px 80px;
    position: relative;
    overflow: hidden;
  }
  .hero-ambient {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 20% 30%, rgba(24,191,208,.14) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(255,43,209,.10) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 100%, rgba(255,107,53,.06) 0%, transparent 60%);
    animation: ambient 18s ease-in-out infinite alternate;
  }
  [data-theme="light"] .hero-ambient {
    background:
      radial-gradient(ellipse at 20% 30%, rgba(24,191,208,.06) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(212,0,152,.04) 0%, transparent 50%);
  }
  @keyframes ambient {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-30px, 20px); }
  }

  /* Floating art tiles in hero background */
  .hero-tiles {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  .float-art {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    opacity: 0.35;
    filter: saturate(1.1);
    animation: drift 16s ease-in-out infinite;
  }
  [data-theme="light"] .float-art { opacity: 0.18; }
  .float-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .float-art-1 { top:  8%; left: -5%; width: 280px; height: 175px; transform: rotate(-6deg); animation-delay: 0s; }
  .float-art-2 { top: 12%; right: -3%; width: 260px; height: 165px; transform: rotate(4deg); animation-delay: 2s; }
  .float-art-3 { bottom: 18%; left: 3%; width: 220px; height: 140px; transform: rotate(8deg); animation-delay: 4s; }
  .float-art-4 { bottom: 12%; right: 5%; width: 240px; height: 150px; transform: rotate(-4deg); animation-delay: 6s; }
  @keyframes drift {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50%      { transform: rotate(var(--rot, 0deg)) translateY(-14px); }
  }

  .hero-inner {
    position: relative; z-index: 3;
    text-align: center;
    max-width: 1100px;
  }
  .hero-logo {
    margin-bottom: 24px;
    display: flex; justify-content: center;
  }
  .hero-logo img {
    height: 90px;
    filter: var(--logo-filter);
    animation: heroLogoFloat 5s ease-in-out infinite;
  }
  @keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Inconsolata', monospace;
    font-size: 12px; letter-spacing: 0.22em;
    color: var(--soft);
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    border: 1px solid var(--border);
    border-radius: 99px;
  }
  .eyebrow::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.5); }
  }

  h1.hero-h {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(56px, 9vw, 144px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
  }
  h1.hero-h .accent { color: var(--accent); }
  h1.hero-h .gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 8s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }

  .hero-lede {
    font-size: 22px;
    color: var(--soft);
    max-width: 720px;
    margin: 0 auto 48px;
  }
  .hero-lede em { color: var(--ink); font-style: italic; }

  .hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 28px;
    font-family: 'Inconsolata', monospace;
    font-size: 13px; letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all .2s ease;
    border: 1px solid;
    cursor: pointer;
  }
  .btn-primary { background: var(--accent); color: var(--page); border-color: var(--accent); }
  .btn-primary:hover { background: transparent; color: var(--accent); }
  .btn-ghost { border-color: var(--border); color: var(--ink); background: transparent; }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* Scroll indicator */
  .scroll-hint {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: bounceHint 2s ease-in-out infinite;
  }
  @keyframes bounceHint {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 1; transform: translateX(-50%) translateY(4px); }
  }

  /* ── Hero: CUT / WELD / REFLECT ─────────────────────────── */
  .hero {
    --pointer-x: 0;
    --pointer-y: 0;
    min-height: min(960px, 100svh);
    isolation: isolate;
    background: #07090b;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
      linear-gradient(115deg, rgba(1,10,13,.98) 0%, rgba(7,9,11,.74) 34%, rgba(7,9,11,.78) 68%, rgba(1,4,7,.98) 100%),
      radial-gradient(circle at 12% 60%, rgba(24,191,208,.11), transparent 32%),
      radial-gradient(circle at 84% 74%, rgba(255,43,209,.09), transparent 29%);
  }
  .hero-ambient,
  .hero-tiles { display: none; }
  .hero-collage,
  .hero-ink,
  .hero-material {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .hero-collage { z-index: -3; overflow: hidden; }
  .hero-material { display: none; }
  .hero-webgl-ready .hero-material { opacity: 1; }
  .hero-material canvas { width: 100%; height: 100%; display: block; }
  .collage-piece {
    position: absolute;
    overflow: hidden;
    transform: translate3d(calc(var(--pointer-x) * var(--depth-x, 0px)), calc(var(--pointer-y) * var(--depth-y, 0px)), 0) rotate(var(--rotation, 0deg));
    transition: transform .55s cubic-bezier(.16,1,.3,1);
    will-change: transform;
  }
  .collage-piece img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.12); }
  .collage-base { inset: -5% 42% -9% -17%; --depth-x: 6px; --depth-y: 4px; clip-path: polygon(0 2%, 94% 0, 100% 14%, 87% 29%, 100% 47%, 82% 68%, 96% 88%, 76% 100%, 0 94%); opacity: .82; }
  .collage-portrait { left: -4%; bottom: -11%; width: 42vw; height: 48vh; min-width: 390px; --depth-x: 14px; --depth-y: 11px; --rotation: -7deg; clip-path: polygon(0 10%, 91% 0, 100% 83%, 73% 100%, 0 88%); box-shadow: 22px 26px 0 rgba(24,191,208,.12); opacity: .73; }
  .collage-lowpoly { top: 1%; right: -5%; width: min(48vw, 690px); height: 57vh; --depth-x: -12px; --depth-y: 15px; --rotation: 6deg; clip-path: polygon(9% 0, 100% 11%, 89% 94%, 13% 100%, 0 59%); box-shadow: -22px 22px 0 rgba(255,43,209,.11); opacity: .76; }
  .collage-chrome { right: 5%; bottom: -14%; width: min(32vw, 470px); height: 37vh; --depth-x: -20px; --depth-y: -13px; --rotation: -10deg; clip-path: polygon(8% 0, 100% 16%, 91% 87%, 11% 100%, 0 61%); opacity: .72; mix-blend-mode: screen; }
  .collage-cut { top: 22%; right: 31%; width: min(16vw, 250px); height: 24vh; --depth-x: -8px; --depth-y: 9px; --rotation: 13deg; clip-path: polygon(0 0, 96% 18%, 77% 100%, 12% 82%); opacity: .56; }
  .collage-piece::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(2,5,8,.04), rgba(2,5,8,.58)); }
  .hero-ink { display: none; }
  .hero-ink svg { width: 100%; height: 100%; overflow: visible; }
  .ink-spine { transform: translate3d(calc(var(--pointer-x) * 22px), calc(var(--pointer-y) * 15px), 0); transform-origin: center; transition: transform .62s cubic-bezier(.16,1,.3,1); }
  .ink-thread { animation: ink-thread 12s ease-in-out infinite alternate; transform-origin: center; }
  .ink-thread-two { animation-delay: -6s; }
  .ink-light { animation: ink-light 9s ease-in-out infinite alternate; }
  @keyframes ink-thread { to { transform: translate(16px,-9px) rotate(1deg); } }
  @keyframes ink-light { to { opacity: .9; transform: translate(-18px,11px); } }
  .hero-inner { z-index: 4; max-width: 880px; padding: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.52); }
  .hero-inner::before { content: ""; position: absolute; z-index: -1; inset: -90px -130px; background: radial-gradient(ellipse at center, rgba(5,8,10,.69) 0%, rgba(5,8,10,.4) 45%, transparent 74%); pointer-events: none; }
  .hero-logo { margin-bottom: 22px; }
  .hero-logo img { height: clamp(55px, 7vw, 88px); animation: none; }
  .hero-label { color: var(--accent); font: 500 12px/1.2 'Inconsolata', monospace; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 22px; }
  h1.hero-h { font-size: clamp(52px, 8.5vw, 132px); line-height: .89; letter-spacing: -.055em; margin-bottom: 25px; }
  h1.hero-h .gradient { background: linear-gradient(110deg, #dbeff2 3%, #18bfd0 46%, #ff2bd1 100%); background-clip: text; -webkit-background-clip: text; animation: none; }
  .hero-lede { max-width: 610px; font-size: clamp(17px, 2vw, 21px); margin-bottom: 34px; }
  .scroll-hint { display: none; }

  @media (max-width: 760px) {
    .hero { min-height: 780px; padding: 116px 18px 64px; }
    .collage-base { inset: 4% -25% 51% -40%; opacity: .62; }
    .collage-portrait { left: -27%; bottom: -3%; width: 122vw; height: 32vh; min-width: 0; opacity: .48; }
    .collage-lowpoly { top: 1%; right: -39%; width: 97vw; height: 35vh; opacity: .46; }
    .collage-chrome { right: -23%; bottom: 6%; width: 58vw; height: 20vh; opacity: .43; }
    .collage-cut { display: none; }
    .hero-inner { max-width: 650px; }
    .hero-label { font-size: 10px; letter-spacing: .16em; }
    .hero-inner::before { inset: -44px -24px; background: linear-gradient(180deg, rgba(5,8,10,.48), rgba(5,8,10,.78) 40%, rgba(5,8,10,.44)); }
    .btn-ghost { background: rgba(5,8,10,.55); border-color: rgba(220,232,233,.42); }
  }
  @media (pointer: coarse), (max-width: 1023px) { .hero-material { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    .collage-piece, .ink-spine { transform: rotate(var(--rotation, 0deg)); transition: none; }
    .ink-thread, .ink-light { animation: none; }
    .hero-material { display: none; }
  }

  /* ── Marquee ────────────────────────────────────────────── */
  .marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    overflow: hidden;
    background: var(--surface);
  }
  .marquee-track {
    display: flex; gap: 56px;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.01em;
  }
  .marquee-track span:nth-child(even) { color: var(--accent); font-style: italic; font-weight: 300; }
  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ── Gallery ─────────────────────────────────────────── */
  .gallery-section {
    width: 100%;
    max-width: none;
    padding: 120px clamp(18px, 3vw, 56px);
    margin: 0;
  }
  .section-h {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap; gap: 20px;
  }
  .section-h h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.03em;
  }
  .section-h h2 em {
    color: var(--accent);
    font-weight: 300;
    font-style: italic;
  }
  .section-h .label {
    font-family: 'Inconsolata', monospace;
    font-size: 13px; letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
  }
  .filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
  .filters button {
    background: transparent;
    color: var(--soft);
    border: 1px solid var(--border);
    padding: 10px 20px;
    font-family: 'Inconsolata', monospace;
    font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .15s ease;
  }
  .filters button:hover { border-color: var(--accent); color: var(--accent); }
  .filters button.active {
    background: var(--ink); color: var(--page); border-color: var(--ink);
  }
  .grid {
    columns: 4 280px;
    column-gap: 12px;
  }
  .tile {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 5px;
    background: var(--surface);
    cursor: pointer;
  }
  .tile img {
    width: 100%; height: auto;
    object-fit: contain;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
    filter: saturate(0.85);
  }
  .tile:hover img {
    transform: scale(1.06);
    filter: saturate(1.15);
  }
  .tile .label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    transform: translateY(0); opacity: .96;
    transition: all .25s ease;
  }
  .tile .label small {
    display: block;
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .tile:hover .label { opacity: 1; }

  /* ── Featured strip ─────────────────────────────────────── */
  .featured {
    background: var(--surface);
    padding: 100px 36px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .featured-inner {
    max-width: 1600px; margin: 0 auto;
  }
  .featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  @media (max-width: 980px) { .featured-grid { grid-template-columns: 1fr; } }
  .featured-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
  }
  .featured-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.16, 1, .3, 1);
  }
  .featured-card:hover img { transform: scale(1.08); }
  .featured-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
    display: flex; align-items: flex-end;
    padding: 32px;
  }
  .featured-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 26px;
    color: #fff;
    letter-spacing: -0.02em;
  }
  .featured-card h3 small {
    display: block;
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
  }

  /* ── About strip ─────────────────────────────────────────── */
  .about {
    padding: 140px 36px;
  }
  .about-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  @media (max-width: 880px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }
  .about h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 5vw, 72px);
    letter-spacing: -0.03em;
    line-height: 0.98;
  }
  .about h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
  .about p {
    font-size: 18px;
    color: var(--soft);
    margin-bottom: 22px;
  }
  .skill-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 36px;
  }
  .skill {
    font-family: 'Inconsolata', monospace;
    font-size: 12px; letter-spacing: 0.14em;
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 6px 12px;
    text-transform: uppercase;
    transition: all .15s ease;
  }
  .skill:hover { border-color: var(--accent); color: var(--accent); }

  /* ── Contact ─────────────────────────────────────────────── */
  .contact {
    padding: 160px 36px;
    text-align: center;
    background: var(--surface);
  }
  .contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 7vw, 120px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 28px;
  }
  .contact h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
  .contact p {
    font-size: 22px;
    color: var(--soft);
    max-width: 640px;
    margin: 0 auto 48px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .contact-card {
    background: var(--raised);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-align: left;
    transition: all .2s ease;
    border-radius: 8px;
  }
  .contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(24,191,208,0.18);
  }
  .contact-card .icon {
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--page);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin-bottom: 16px;
    border-radius: 8px;
  }
  .contact-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
  .contact-card p { font-size: 14px; color: var(--muted); margin: 0; }

  /* ── Contact form ────────────────────────────────────────── */
  .contact-form {
    max-width: 760px;
    margin: 0 auto 20px;
    padding: 32px;
    text-align: left;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .form-field { display: grid; gap: 8px; }
  .form-field.full { grid-column: 1 / -1; }
  .form-field label {
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--soft);
  }
  .form-field input, .form-field textarea {
    width: 100%;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--page);
    color: var(--ink);
    padding: 14px 15px;
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .form-field textarea { min-height: 150px; resize: vertical; }
  .form-field input:focus, .form-field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(24,191,208,.16);
  }
  .form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
  }
  .form-status { color: var(--soft); font-size: 14px; }
  .form-status.success { color: var(--accent); }
  .form-status.error { color: #ff8a70; }
  .contact-privacy {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* ── Compact layout ───────────────────────────────────────── */
  .nav-menu-toggle { display: none; }
  @media (max-width: 700px) {
    nav.top { min-height: 64px; padding: 12px 20px; }
    .nav-logo img { height: 28px; }
    .nav-menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 11px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--raised);
      color: var(--ink);
      font: 500 12px 'Inconsolata', monospace;
      letter-spacing: .12em;
      text-transform: uppercase;
      cursor: pointer;
    }
    nav.top ul {
      display: none;
      position: absolute;
      top: 63px;
      left: 12px;
      right: 12px;
      padding: 12px;
      gap: 2px;
      flex-direction: column;
      align-items: stretch;
      background: color-mix(in srgb, var(--raised) 94%, transparent);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 16px 36px rgba(0,0,0,.24);
    }
    nav.top ul.is-open { display: flex; }
    nav.top li { display: block; }
    nav.top a { display: block; padding: 12px; }
    nav.top .cta { display: block; text-align: center; margin: 6px 0; }
    .theme-toggle { margin: 6px 0 4px 12px; }
    .hero { min-height: 720px; padding: 112px 20px 72px; }
    .hero-logo { margin-bottom: 18px; }
    .hero-logo img { height: 58px; }
    .eyebrow { max-width: 100%; margin-bottom: 20px; padding: 7px 10px; font-size: 10px; letter-spacing: .13em; }
    h1.hero-h { font-size: clamp(48px, 15vw, 68px); margin-bottom: 20px; }
    .hero-lede { font-size: 17px; margin-bottom: 30px; }
    .hero-actions { gap: 10px; }
    .btn { justify-content: center; width: 100%; padding: 14px 16px; font-size: 11px; }
    .float-art-1 { top: 15%; left: -30%; width: 220px; height: 138px; }
    .float-art-2 { top: 9%; right: -38%; width: 210px; height: 132px; }
    .float-art-3, .float-art-4 { display: none; }
    .scroll-hint { bottom: 22px; font-size: 9px; }
    .marquee { padding: 18px 0; }
    .marquee-track { gap: 30px; font-size: 19px; }
    .stats-band, .process, .services-detail, .stack, .testimonials, .new-work, .featured, .about, .contact { padding: 80px 20px; }
    .gallery-section { padding: 80px 20px; }
    .section-h { margin-bottom: 34px; gap: 10px; }
    .section-h .label { font-size: 10px; letter-spacing: .12em; }
    .stats-band-inner { gap: 8px; }
    .stat-card { padding: 16px 4px; }
    .stat-label { font-size: 10px; letter-spacing: .12em; }
    .process-grid { margin-top: 34px; gap: 12px; }
    .process-step { padding: 24px 20px; }
    .service-row { padding: 48px 0; }
    .service-row .deliverables { grid-template-columns: 1fr; }
    .stack-row { align-items: flex-start; flex-direction: column; gap: 6px; padding: 16px 0; }
    .stack-row .layer { min-width: 0; }
    .test-grid { margin-top: 34px; }
    .test-card { padding: 28px 22px; }
    .test-card blockquote { font-size: 19px; }
    .new-work-grid { margin-top: 34px; gap: 8px; grid-auto-rows: 150px; }
    .featured-grid { gap: 12px; }
    .featured-card { aspect-ratio: 16 / 10; }
    .featured-card .overlay { padding: 20px; }
    .about-inner { gap: 28px; }
    .about p, .contact p { font-size: 17px; }
    .filters { gap: 8px; margin-bottom: 28px; }
    .filters button { flex: 1 1 28%; padding: 10px 8px; font-size: 10px; }
    .grid { columns: 2; column-gap: 7px; }
    .tile { margin-bottom: 7px; }
    .tile .label { padding: 20px 10px 10px; font-size: 13px; opacity: 1; transform: none; }
    .tile .label small { font-size: 9px; letter-spacing: .1em; }
    .contact h2 { font-size: clamp(44px, 15vw, 64px); }
    .contact-form { padding: 22px 16px; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .form-actions { align-items: stretch; flex-direction: column; gap: 12px; }
    .form-actions .btn { width: 100%; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-card { padding: 20px 14px; }
    .contact-card .icon { width: 34px; height: 34px; margin-bottom: 12px; font-size: 12px; }
    .contact-card h3 { font-size: 15px; }
    .contact-card p { overflow-wrap: anywhere; font-size: 11px; }
    footer { padding: 36px 20px; font-size: 10px; line-height: 1.8; }
  }

  /* ── Footer ──────────────────────────────────────────────── */
  footer {
    padding: 48px 36px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  footer .accent { color: var(--accent); }
  footer img { height: 28px; margin: 0 auto 16px; filter: var(--logo-filter); opacity: 0.5; }

  /* ── New: Stats band ─────────────────────────────────────── */
  .stats-band {
    padding: 100px 36px;
    background: var(--page);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
  }
  .stats-band::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(24,191,208,.08), transparent 60%);
  }
  .stats-band-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    position: relative; z-index: 2;
  }
  @media (max-width: 880px) { .stats-band-inner { grid-template-columns: repeat(2, 1fr); } }
  .stat-card {
    text-align: center; padding: 24px;
  }
  .stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(52px, 6vw, 92px);
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
  }
  .stat-label {
    font-family: 'Inconsolata', monospace;
    font-size: 13px; letter-spacing: 0.2em;
    color: var(--soft);
    text-transform: uppercase;
  }

  /* ── New: Process band ─────────────────────────────────── */
  .process {
    padding: 140px 36px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .process-inner { max-width: 1400px; margin: 0 auto; }
  .process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 64px;
  }
  @media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
  .process-step {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--raised);
    position: relative;
    transition: transform .4s ease, border-color .3s ease;
  }
  .process-step:hover { transform: translateY(-6px); border-color: var(--accent); }
  .process-num {
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
  }
  .process-step h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }
  .process-step p {
    font-size: 14px;
    color: var(--soft);
    line-height: 1.6;
  }

  /* ── New: Services detail ─────────────────────────────── */
  .services-detail {
    padding: 140px 36px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .service-row {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 80px; align-items: start;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
  }
  .service-row:last-child { border-bottom: none; }
  @media (max-width: 880px) { .service-row { grid-template-columns: 1fr; gap: 24px; } }
  .service-row .num {
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.2em;
    margin-bottom: 14px;
  }
  .service-row h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--ink);
  }
  .service-row h3 em { color: var(--accent); font-style: italic; font-weight: 300; }
  .service-row .lede {
    font-size: 18px;
    color: var(--soft);
    margin-bottom: 24px;
  }
  .service-row .deliverables {
    list-style: none;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
  .service-row .deliverables li {
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: var(--soft);
    padding: 6px 0;
    border-top: 1px solid var(--border);
  }
  .service-row .deliverables li::before {
    content: "↳";
    margin-right: 10px;
    color: var(--accent);
  }

  /* ── New: Stack visualization ──────────────────────────── */
  .stack {
    padding: 140px 36px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stack-inner { max-width: 1400px; margin: 0 auto; }
  .stack-rows {
    margin-top: 56px;
    display: flex; flex-direction: column; gap: 0;
  }
  .stack-row {
    display: flex; align-items: center; gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: padding .3s ease;
  }
  .stack-row:hover { padding-left: 16px; }
  .stack-row .layer {
    font-family: 'Inconsolata', monospace;
    font-size: 11px; letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
    min-width: 140px;
  }
  .stack-row .tools {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 32px);
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .stack-row .tools .accent { color: var(--accent); }

  /* ── New: Testimonials ────────────────────────────────── */
  .testimonials {
    padding: 140px 36px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .test-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  @media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }
  .test-card {
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--raised);
    transition: all .3s ease;
  }
  .test-card:hover { border-color: var(--accent); }
  .test-card .quote-mark {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    color: var(--accent);
    line-height: 0.6;
    margin-bottom: 16px;
    font-weight: 900;
  }
  .test-card blockquote {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: var(--ink);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
  }
  .test-card cite {
    display: block;
    font-family: 'Inconsolata', monospace;
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  /* ── New: scroll-triggered fade-in ─────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: .08s; }
  .reveal-delay-2 { transition-delay: .16s; }
  .reveal-delay-3 { transition-delay: .24s; }
  .reveal-delay-4 { transition-delay: .32s; }

  /* ── New: hero parallax depth ──────────────────────────── */
  .float-art.parallax-slow { transition: transform .15s ease-out; }
  .float-art.parallax-fast { transition: transform .25s ease-out; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }

  /* ── Recovery pass: dense art-first landing composition ─── */
  body { display: flex; flex-direction: column; }
  body > .top { order: 0; }
  body > .hero { order: 1; }
  body > .marquee { order: 2; }
  body > .new-work { order: 3; }
  body > .featured { order: 4; }
  body > .gallery-section { order: 5; }
  body > .services-detail { order: 6; }
  body > .about { order: 7; }
  body > .contact { order: 8; }
  body > footer { order: 9; }
  body > .stack, body > .testimonials { display: none; }
  .hero { min-height: min(980px, 100svh); padding-top: 118px; }
  .hero-inner { max-width: 1120px; }
  .hero-logo img { height: min(244px, 23vw); width: auto; max-width: min(647px, 78vw); image-rendering: auto; transform: translateZ(0); }
  .hero-logo { margin-bottom: 30px; }
  .hero-label { letter-spacing: .18em; }
  h1.hero-h { font-size: clamp(48px, 7.5vw, 118px); max-width: 1080px; }
  .hero-lede { max-width: 760px; font-size: clamp(17px, 1.8vw, 23px); }
  .hero-mosaic { position: absolute; inset: -8%; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: minmax(120px, 1fr); gap: 6px; transform: rotate(-3deg) scale(1.08); opacity: .66; filter: saturate(1.12) contrast(1.08); }
  .mosaic-tile { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; border-radius: 3px; opacity: .78; filter: saturate(1.18) contrast(1.06); mix-blend-mode: screen; }
  .mosaic-tile:nth-child(3n) { transform: translateY(18px) rotate(2deg) scale(1.08); }
  .mosaic-tile:nth-child(4n) { transform: translate(-8px, -10px) rotate(-4deg) scale(1.12); mix-blend-mode: lighten; }
  .mosaic-tile:nth-child(5n) { opacity: .52; filter: saturate(1.5) contrast(1.18); }
  .hero-collage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,8,10,.72) 4%, rgba(5,8,10,.34) 38%, rgba(5,8,10,.52) 72%, rgba(5,8,10,.76) 100%); }
  .hero-inner::before { inset: -110px -170px; background: radial-gradient(ellipse at center, rgba(5,8,10,.76) 0%, rgba(5,8,10,.48) 47%, transparent 76%); }
  .services-detail { padding-top: 100px; padding-bottom: 100px; }
  .services-detail .section-h { margin-bottom: 18px; }
  .service-row { padding: 42px 0; }
  .service-row .deliverables { display: none; }
  .service-row .lede { max-width: 620px; margin-bottom: 0; }
  .new-work { padding-top: 100px; }
  .new-work-note { display: none; }
  .new-tile { cursor: zoom-in; }
  @media (min-width: 881px) {
    .new-work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 112px; grid-auto-flow: dense; }
    .new-work-grid .new-tile { grid-row: auto; grid-column: auto; }
    .new-work-grid .new-tile:nth-child(1) { grid-column: span 3; grid-row: span 4; }
    .new-work-grid .new-tile:nth-child(2) { grid-column: span 3; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(3) { grid-column: span 3; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(4) { grid-column: span 3; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(5) { grid-column: span 6; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(6) { grid-column: span 3; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(7) { grid-column: span 6; grid-row: span 2; }
    .new-work-grid .new-tile:nth-child(8) { grid-column: span 6; grid-row: span 2; }
  }
  .new-lightbox { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 5vw; background: rgba(3,5,7,.92); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .new-lightbox.is-open { opacity: 1; pointer-events: auto; }
  .new-lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; object-fit: contain; box-shadow: 0 24px 90px rgba(0,0,0,.55); }
  .new-lightbox button { position: absolute; top: 24px; right: 28px; border: 1px solid rgba(255,255,255,.5); color: white; background: transparent; padding: 10px 14px; font: 13px 'Inconsolata', monospace; cursor: pointer; }
  @media (max-width: 760px) {
    .hero { min-height: 820px; padding-top: 116px; }
    .hero-logo img { height: clamp(102px, 30vw, 144px); }
    .hero-mosaic { inset: -12%; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 150px; }
    .mosaic-tile:nth-child(n+26) { display: none; }
    .hero-collage::after { background: linear-gradient(180deg, rgba(5,8,10,.55), rgba(5,8,10,.87) 46%, rgba(5,8,10,.74)); }
    h1.hero-h { font-size: clamp(46px, 13vw, 72px); line-height: .93; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-mosaic { transform: rotate(-3deg) scale(1.08); }
    .mosaic-tile { transform: none !important; }
  }

html,
body {
  letter-spacing: 0 !important;
}
body.demo-dark {
  display: block;
  --page: #101112;
  --text: #f2f3f3;
  --muted: #aaadaf;
  --accent: #74d8db;
  --line: #35383a;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.demo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 110px;
  max-width: none;
  padding: 18px max(32px, calc((100% - 1376px) / 2));
  background: #101112;
  border-bottom: 1px solid #35383a;
}
.demo-logo {
  width: 210px;
  flex-shrink: 0;
}
.demo-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1);
}
.demo-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font:
    14px/1.5 'JetBrains Mono',
    monospace;
}
.demo-header a {
  color: #f2f3f3;
  text-decoration: none;
}
.demo-header nav a {
  padding: 10px 0;
}
.demo-header .nav-contact {
  border-bottom: 1px solid #f2f3f3;
}
.demo-header a:hover {
  color: #74d8db;
}
.demo-dark .reveal {
  opacity: 1;
  transform: none;
}
.demo-dark .about,
.demo-dark .services-detail,
.demo-dark .contact {
  max-width: 1440px;
  margin: auto;
  padding: 64px 32px;
  background: transparent;
}
.demo-dark .about h2,
.demo-dark .contact h1,
.demo-dark .section-h h2 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 0;
  font-family: Montserrat, sans-serif;
}
.demo-dark .about p {
  font-size: 18px;
}
.dark-about-art {
  margin: 60px auto 30px;
  max-width: 900px;
}
.dark-about-art img {
  width: 100%;
  height: auto;
}
.dark-about-art figcaption {
  font:
    11px 'JetBrains Mono',
    monospace;
  color: #aaadaf;
  margin-top: 12px;
}
.dark-text-link {
  display: inline-block;
  color: #f2f3f3;
  border-bottom: 1px solid #707070;
  padding: 12px 0;
  text-decoration: none;
  font:
    14px 'JetBrains Mono',
    monospace;
}
.demo-dark .service-row {
  border-color: #35383a;
}
.demo-dark .section-h .label {
  letter-spacing: 0;
}
.demo-dark .deliverables li {
  border-color: #35383a;
}
.contact-editorial {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
.contact-editorial h2 {
  font:
    24px Montserrat,
    sans-serif;
}
.contact-editorial nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.contact-editorial nav a {
  color: #eee;
  font:
    14px 'JetBrains Mono',
    monospace;
}
.demo-dark .contact {
  min-height: 65vh;
}
.demo-dark .contact p {
  max-width: 650px;
  text-align: left;
  margin-left: 0;
}
.demo-dark .contact h1 {
  text-align: left;
}
.demo-footer {
  padding: 36px 32px;
  border-top: 1px solid #35383a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  font:
    11px/1.8 'JetBrains Mono',
    monospace;
  color: #aaadaf;
  text-align: left;
}
.demo-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.demo-footer a {
  color: #eee;
  text-decoration: none;
}
.demo-footer small {
  width: 100%;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #74d8db;
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .demo-logo {
    width: 190px;
  }
  .demo-header {
    padding: 16px 24px;
  }
  .demo-header nav {
    gap: 24px;
  }
}
@media (max-width: 650px) {
  .demo-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px 8px;
    gap: 8px;
    min-height: 0;
  }
  .demo-logo {
    width: 160px;
  }
  .demo-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
  }
  .demo-header nav a {
    padding: 8px 0;
  }
  .demo-dark .about,
  .demo-dark .services-detail,
  .demo-dark .contact {
    padding: 36px 16px;
  }
  .demo-dark .about h2,
  .demo-dark .contact h1,
  .demo-dark .section-h h2 {
    font-size: 34px;
  }
  .demo-dark .service-row h3 {
    font-size: 28px;
  }
  .demo-dark .service-row {
    padding: 32px 0;
  }
  .contact-editorial {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }
  .demo-footer {
    padding: 32px 16px;
  }
  .demo-footer nav {
    gap: 20px;
  }
  .dark-about-art {
    margin-top: 36px;
  }
}
