:root {
    --bg: #FFFFFF;
    --bg-tint: #ebe7df;
    --ink: #14110f;
    --ink-soft: #6b6660;
    --line: #d8d2c6;
    --accent: #e94c1f;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter Tight', sans-serif;
    overflow-x: hidden;
    cursor: none;
  }

  body { min-height: 100vh; position: relative; }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
  }

  .cursor {
    position: fixed;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    z-index: 200;
    transition: transform 0.18s cubic-bezier(.22,.61,.36,1), background 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  .cursor.drag { transform: translate(-50%, -50%) scale(2.6); background: var(--accent); }
  .cursor.hover { transform: translate(-50%, -50%) scale(2); background: var(--accent); }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid rgba(20, 17, 15, 0.08);
  }
  nav .brand {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #0F583D;
  }
  nav .brand svg {
    display: block;
    height: 16px;
    width: auto;
  }
  nav .brand svg path { fill: currentColor; }
  nav .links {
    display: flex; gap: 28px;
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 1.8vw, 24px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ink);
  }
  nav .links a {
    color: inherit; text-decoration: none;
    position: relative; padding: 4px 0;
  }
  nav .links a::after {
    content: ''; position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
  }
  nav .links a:hover::after { transform: scaleX(1); transform-origin: left; }

  /* Hamburger button — visible only on mobile (toggled in media query below).
     Three stacked black bars that morph into an X when menu is open. */
  .hamburger {
    display: none; /* shown via media query on mobile */
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.2s;
    transform-origin: center;
  }
  /* Open state — bars become an X */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu overlay — slides down from under the nav when hamburger opens.
     Covers the full viewport below the nav (top: 60px ≈ nav height). */
  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 40px 28px;
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-menu a {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 0;
  }
  .mobile-menu a:hover { color: var(--accent); }
  /* Hide mobile menu entirely on desktop so it doesn't sit in the DOM intercepting anything */
  @media (min-width: 721px) {
    .mobile-menu { display: none; }
  }

  .hero {
    height: 100vh;
    width: 100%;
    position: relative;
  }

  #cube-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }
  /* When user has scrolled into the dice transition, disable pointer events
     on the canvas so users can interact with section 2 content. */
  #cube-canvas.locked {
    pointer-events: none;
  }
  /* When user has scrolled past the dice/monologue into the about/portfolio
     sections, the canvas fades out — the dice have served their purpose. */
  #cube-canvas.faded {
    opacity: 0;
  }

  .statement {
    position: relative;
    min-height: 100vh;
    width: 100%;
    z-index: 2;
    padding: 14vh 40px 10vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }
  .statement-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .statement-text {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 6vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 1100px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(.22,.61,.36,1),
                transform 0.6s cubic-bezier(.22,.61,.36,1);
  }
  .statement-text.show {
    opacity: 1;
    transform: translateY(0);
  }
  .statement-text .accent { color: var(--accent); }
  .statement-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 24px;
    opacity: 0;
    transition: opacity 0.8s 0.2s;
  }
  .statement-sub.show {
    opacity: 1;
  }
  /* Coda — the "expensive bullshit" punchline below the dice landing.
     Same Gyokz family as the top headline; smaller. Slides up on reveal. */
  .statement-coda {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(.22,.61,.36,1) 0.15s,
                transform 0.6s cubic-bezier(.22,.61,.36,1) 0.15s;
  }
  .statement-coda.show {
    opacity: 1;
    transform: translateY(0);
  }
  .statement-coda .accent { color: var(--accent); }

  /* Mobile: text elements pack tight at the top of the section instead of
     stretching full viewport height. Dice still render on the fixed canvas
     in their world-space position (lower-center of viewport) — they don't
     overlap because the text now lives in the upper third of the section.
     Smaller dice scale (60% on phones) also reduces collision risk. */
  @media (max-width: 720px) {
    .statement {
      min-height: auto;
      padding: 6vh 24px 4vh;
      justify-content: flex-start;
      gap: 14px;
    }
    .statement-top { gap: 8px; }
    .statement-text { font-size: clamp(28px, 7vw, 44px); }
    .statement-sub { margin-top: 8px; font-size: 10px; }
    .statement-coda {
      font-size: clamp(22px, 6vw, 36px);
      margin: 0;
    }
  }

  /* Small "scroll to see" hint visible while in the hero */
  .scroll-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .scroll-hint.show { opacity: 1; }
  .scroll-hint .arrow {
    width: 1px;
    height: 28px;
    background: var(--ink-soft);
    position: relative;
    animation: scroll-pulse 1.8s ease-in-out infinite;
  }
  .scroll-hint .arrow::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 7px; height: 7px;
    border-right: 1px solid var(--ink-soft);
    border-bottom: 1px solid var(--ink-soft);
    transform: translate(-50%, 50%) rotate(45deg);
  }
  @keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%      { opacity: 0.3; transform: translateY(8px); }
  }

  /* ====== About section — contact-sheet photo collage ====== */
  .about {
    position: relative;
    width: 100%;
    z-index: 2;
    padding: 8vh 40px 8vh;
    background: var(--bg);
  }

  /* ====== Portfolio — vertical full-width project stack ====== */
  .portfolio {
    position: relative;
    width: 100%;
    z-index: 2;
    background: var(--bg);
    padding: 6vh 0 4vh;
  }
  .portfolio-header {
    max-width: 1280px;
    margin: 0 auto 80px;
    padding: 0 40px;
  }
  .portfolio-header h2 {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 12px 0 0;
  }
  .portfolio-header h2 .accent { color: var(--accent); }

  .project {
    position: relative;
    width: 100%;
    padding: 0 40px;
    margin-bottom: 6vh;
  }
  .project:last-child { margin-bottom: 0; }
  .project-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .project-meta .num { color: var(--accent); }
  .project-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--proj-color, #0A3B29);
    overflow: hidden;
    cursor: none;
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
  }
  .project-frame:hover { transform: scale(1.01); }
  .project-frame::before {
    /* Subtle inner gradient so the placeholder reads as a "video container",
       not a flat block. Replace project-frame's children with <video> later. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 238, 211, 0.08) 0%,
      transparent 40%,
      rgba(0,0,0,0.25) 100%
    );
    pointer-events: none;
  }
  .play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 238, 211, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(.22,.61,.36,1), background 0.3s;
  }
  .project-frame:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent);
  }
  .play-button::before {
    /* CSS triangle as play icon */
    content: '';
    border-left: 18px solid #14110f;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
  }
  .project-frame:hover .play-button::before {
    border-left-color: #FFEED3;
  }
  .project-title {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin: 28px 0 12px;
    color: var(--ink);
  }
  .project-desc {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 640px;
  }

  /* Replay button — appears in section 2 once the dice have landed */
  .replay {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 6;
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 12px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
  }
  .replay.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .replay:hover { background: var(--accent); }

  /* ====== Side-dot navigation ====== */
  .side-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
  }
  .side-nav button {
    background: none;
    border: none;
    padding: 0;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .side-nav .dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
  }
  .side-nav .label {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s, transform 0.3s;
    color: var(--ink);
  }
  .side-nav button:hover .label,
  .side-nav button.active .label {
    opacity: 1;
    transform: translateX(0);
  }
  .side-nav button.active .dot {
    background: var(--accent);
    border-color: var(--accent);
  }
  @media (max-width: 720px) {
    .side-nav { display: none; }
  }

  /* Fixed right-side "Work with me" CTA.
     Rotated vertical text running up the right edge of the viewport, below
     the side-nav. Click anywhere on it to jump to the contact section.
     Color: orange (var(--accent)), confident and direct. */
  .work-fixed {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: rotate(-90deg);
    transform-origin: right bottom;
    /* After rotation, the element extends UPWARD from the bottom-right corner.
       We then offset it back so it sits in a comfortable position. */
    padding-bottom: 14px;
    padding-right: 14px;
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s cubic-bezier(.22,.61,.36,1), color 0.2s;
    white-space: nowrap;
  }
  .work-fixed:hover {
    gap: 20px;
    color: var(--ink);
  }
  .work-fixed-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
  }
  .work-fixed:hover .work-fixed-arrow {
    transform: translateX(6px);
  }
  @media (max-width: 720px) {
    .work-fixed { display: none; }
  }

  /* ====== Section: About — contact sheet ====== */
  .about {
    position: relative;
    width: 100%;
    z-index: 2;
    padding: 8vh 40px 8vh;
    background: var(--bg);
  }
  .about-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  .about-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .about-label::before {
    content: '— ';
    color: var(--accent);
  }
  .about-title {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 60px;
  }
  .about-title .accent { color: var(--accent); }

  /* Contact sheet — a strip of 8 frame cells with sprocket holes top + bottom */
  .contact-sheet {
    position: relative;
    background: var(--ink);
    padding: 22px 14px;
    margin-bottom: 50px;
  }
  /* Sprocket holes — small rectangles top and bottom edges */
  .contact-sheet::before,
  .contact-sheet::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background-image:
      linear-gradient(to right,
        var(--bg) 0, var(--bg) 8px,
        transparent 8px, transparent 26px);
    background-size: 26px 100%;
    background-repeat: repeat-x;
  }
  .contact-sheet::before { top: 6px; }
  .contact-sheet::after  { bottom: 6px; }

  .sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  /* 4-image variant — used in the simplified About contact sheet.
     One row of 4 on desktop, 2x2 on mobile. */
  .sheet-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  @media (max-width: 720px) {
    .sheet-grid { grid-template-columns: repeat(2, 1fr); }
    .sheet-grid-4 { grid-template-columns: repeat(2, 1fr); }
  }
  .sheet-cell {
    position: relative;
    aspect-ratio: 3/4;
    background: #1a1814; /* dark fallback while images load */
    overflow: hidden;
  }
  .sheet-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .sheet-cell-num {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.12em;
    z-index: 2;
    mix-blend-mode: difference;
    filter: invert(1);
  }

  /* Two-column About layout: monologue on the left, bio on the right.
     Each column has independent typographic feel — the monologue keeps
     its Courier voice (it's quoted speech), the bio is modern sans. */
  .about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 0;
    align-items: start;
  }
  @media (max-width: 880px) {
    .about-cols {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }
  .about-monologue {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.6;
    color: var(--ink);
  }
  .about-monologue p { margin: 0 0 1.1em 0; }
  .about-monologue p:last-child { margin-bottom: 0; }
  .about-monologue .heavy { font-weight: 700; }
  .about-monologue .accent { color: var(--accent); }

  .about-bio {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.6;
    color: var(--ink);
  }
  .about-bio p { margin: 0 0 1em 0; }
  .about-bio p:last-child { margin-bottom: 0; }
  .about-bio .accent { color: var(--accent); }
  .about-bio strong { font-weight: 700; }

  /* Services callout — large display type, narrow column,
     sits low to act as a closing statement before the CTA. */
  .about-services {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    max-width: 30%;
    margin: 100px 0 60px 0;
  }
  @media (max-width: 880px) {
    .about-services { max-width: 100%; margin-top: 60px; }
  }
  /* ====== Section: Portfolio — vertical video stack ====== */
  .portfolio {
    position: relative;
    width: 100%;
    z-index: 2;
    background: var(--bg);
    padding: 6vh 0 4vh;
  }
  .portfolio-header {
    padding: 0 40px 16px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .portfolio-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .portfolio-label::before { content: ''; }
  .portfolio-title {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.04em;
  }
  .portfolio-title .accent { color: var(--accent); }

  .project {
    position: relative;
    padding: 3vh 40px 4vh;
    max-width: 1400px;
    margin: 0 auto;
  }
  .project:first-of-type { padding-top: 12px; }
  .project-meta {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 18px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .project-meta .num {
    color: var(--accent);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  .project-meta .cat {
    font-size: 12px;
    letter-spacing: 0.15em;
  }
  .project-title {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    color: var(--ink);
  }
  .project-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--ink);
    overflow: hidden;
  }
  .project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
  }
  /* Legal disclaimer for the whole portfolio — sits below all 6 projects.
     Uses the same 1400px centered container + 40px padding as .project so
     its left edge lines up exactly with the video frames above it. */
  .portfolio-disclaimer {
    font-family: 'Inter Tight', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0 40px;
    text-align: left;
  }

  /* ====== Section: Contact — Pitch in a frame ====== */
  .contact {
    position: relative;
    width: 100%;
    z-index: 2;
    background: var(--bg);
    padding: 8vh 40px 8vh;
    min-height: 100vh;
  }
  .contact-inner {
    max-width: 1400px;
    margin: 0 auto;
  }
  .contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .contact-label::before { content: ''; }
  .contact-title {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
  }
  .contact-title .accent { color: var(--accent); }
  .contact-sub {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 60px;
    max-width: 720px;
  }

  /* Two-column layout: form on left, live preview frame on right */
  /* Pitch section — side-by-side: form on the left, slate preview on the right.
     Mobile collapses to single column (form first, slate below). */
  .pitch-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
  }
  @media (max-width: 960px) {
    .pitch-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .pitch-form { display: flex; flex-direction: column; gap: 26px; }
  .pitch-field { display: flex; flex-direction: column; gap: 8px; }
  .pitch-field label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .pitch-field input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--ink);
    outline: none;
    width: 100%;
  }
  .pitch-field input:focus { border-bottom-color: var(--accent); }
  .pitch-field input::placeholder { color: var(--ink-soft); opacity: 0.5; }

  /* Mood chips */
  .pitch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .pitch-chip {
    background: transparent;
    border: 1px solid var(--ink);
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: none;
    transition: all 0.2s;
  }
  .pitch-chip:hover { border-color: var(--accent); color: var(--accent); }
  .pitch-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .pitch-submit {
    margin-top: 12px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 18px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: none;
    align-self: flex-start;
    transition: background 0.2s;
  }
  .pitch-submit:hover { background: var(--accent); }

  /* Inline error message — appears below the email field on validation fail */
  .pitch-error {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    min-height: 14px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .pitch-error.show { opacity: 1; }
  /* Success variant — green instead of orange, when Formspree confirms send */
  .pitch-error.success { color: #5fd9a0; }

  /* Honeypot — invisible to humans, irresistible to bots.
     position:absolute + tiny pixel + opacity:0 makes it unrenderable
     while still being a real form field that bots happily fill in. */
  .pitch-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  /* ===== The slate — now interactive ===== */
  .pitch-frame {
    position: relative;
    background: #14110f;
    color: var(--bg);
    padding: 36px 32px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.5s;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  }
  /* Mood gradients — green accent (not orange) on the slate per spec */
  .pitch-frame.mood-cinematic     { background: linear-gradient(135deg, #2a1f12, #14110f); }
  .pitch-frame.mood-ultrarealistic { background: linear-gradient(135deg, #2a2620, #1a1814); }
  .pitch-frame.mood-animated      { background: linear-gradient(135deg, #1a5540, #0a3b29); }
  .pitch-frame.mood-cartoon       { background: linear-gradient(135deg, #1a5540, #2dbf80); }
  .pitch-frame.mood-fastcuts      { background: linear-gradient(135deg, #14110f, #4a1810); }
  .pitch-frame.mood-idunno        { background: linear-gradient(135deg, #2a2620, #1a1814); }

  .frame-slate {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0.85;
  }
  .frame-slate-left { display: flex; flex-direction: column; gap: 4px; }
  .frame-slate-right { text-align: right; display: flex; flex-direction: column; gap: 4px; }
  /* Slate accent is green, not orange (per spec) */
  .frame-slate .accent { color: #5fd9a0; }

  .frame-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
  }
  /* Scene title — passive display, updates as user types in left form. */
  .frame-subject {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 auto 18px;
    color: var(--bg);
    text-transform: uppercase;
    transition: opacity 0.3s;
    min-height: 1.1em;
  }
  /* Empty state — show a soft Courier placeholder hint */
  .frame-subject.empty::before {
    content: 'YOUR SCENE';
    font-family: 'Courier New', monospace;
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.15em;
    opacity: 0.4;
  }

  /* Production type — secondary line on the slate, passive display. */
  .frame-dialogue {
    font-family: 'Courier New', monospace;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.4;
    color: var(--bg);
    max-width: 80%;
    margin: 0 auto;
    transition: opacity 0.3s;
    min-height: 1.4em;
  }
  .frame-dialogue.empty::before {
    content: 'Type of production appears here…';
    opacity: 0.4;
  }

  .headline-stack {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    padding: 120px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.4s;
  }
  .headline-stack.fading { opacity: 0; }

  .headline {
    font-family: 'Gyokz', 'Archivo Black', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: clamp(48px, 9vw, 140px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    max-width: 900px;
    text-transform: none;
  }
  .headline em {
    font-style: normal;
    font-weight: 800;
  }
  .headline .accent { color: var(--accent); font-style: normal; }
  /* Subtitle below the hero — service descriptions.
     Sits just above the meta-row at the bottom of the hero, acting as the
     final line of voice before the small meta info. */
  .headline-sub {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 32px);
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 32px 0 0 0;
    max-width: 40%;
    line-height: 1.3;
  }
  @media (max-width: 880px) {
    .headline-sub { max-width: 100%; margin-top: 24px; }
  }
  /* Bottom stack holds the subtitle + meta-row together so they stay glued
     to the bottom of the hero. */
  .bottom-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.7;
  }
  .meta .label {
    display: block;
    color: var(--ink);
    margin-bottom: 4px;
    opacity: 0.5;
  }

  .hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hint .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
  }

  .ticker {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s;
  }
  .ticker.hidden { opacity: 0; }

  .preview {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 320px;
    background: var(--ink);
    color: var(--bg);
    padding: 24px;
    z-index: 30;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
    pointer-events: none;
  }
  .preview.show { transform: translateY(0); pointer-events: auto; }
  .preview .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    opacity: 0.5;
  }
  .preview .swatch {
    display: block;
    width: 272px !important;
    height: 153px !important;
    max-width: 100%;
    margin: 12px 0;
    background: rgba(255,255,255,0.04);
    object-fit: cover !important;
    object-position: center;
    transition: opacity 0.2s;
  }
  .preview .swatch[src=""],
  .preview .swatch:not([src]) { opacity: 0; }
  .preview h3 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.05;
    margin: 4px 0 8px;
    letter-spacing: -0.02em;
  }
  .preview h3 em { font-style: italic; }
  .preview p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(245, 243, 238, 0.65);
  }
  .preview .tag {
    display: inline-block;
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(245,243,238,0.3);
    padding: 5px 10px;
  }

  @media (max-width: 720px) {
    nav { padding: 14px 20px; }
    nav .links { display: none; }
    .hamburger { display: flex; }
    .headline-stack { padding: 90px 20px 40px; }
    .ticker { display: none; }
    .preview { left: 20px; right: 20px; bottom: 20px; width: auto; }
    body { cursor: auto; }
    .cursor { display: none; }
  }
