/* ─── DESIGN TOKENS (from Margot Priolet Design System) ─── */
    :root {
      --color-cream:      #F5F0E8;
      --color-red:        #E8200A;
      --color-red-dark:   #C41A08;
      --color-ink:        #1A1A1A;
      --color-ink-muted:  #6B6B6B;
      --color-white:      #FFFFFF;
      --color-border:     #E0D9CE;

      --font-display: 'Playfair Display', Georgia, serif;
      --font-body:    'Inter', system-ui, sans-serif;
      --font-accent:  'Cormorant Garamond', Georgia, serif;

      --text-display-xl: clamp(3rem, 8vw, 7rem);
      --text-display-lg: clamp(2rem, 4vw, 3.5rem);
      --text-display-md: 1.75rem;
      --text-body-lg:    1rem;
      --text-body-sm:    0.8125rem;
      --text-label:      0.6875rem;
      --text-nav:        0.875rem;

      --space-1:  8px;
      --space-2:  16px;
      --space-3:  24px;
      --space-4:  32px;
      --space-6:  48px;
      --space-8:  64px;
      --space-12: 96px;
      --space-16: 128px;

      --max-width: 1200px;
      --gutter: clamp(24px, 5vw, 72px);
      --noise-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    }

    /* ─── SCROLL PROGRESS BAR ─── */
    #scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background: var(--color-red);
      z-index: 99999;
      transform-origin: left center;
      transition: width 0.05s linear;
      pointer-events: none;
    }

    /* ─── SKIP LINK (accessibility) ─── */
    .skip-link {
      position: absolute;
      top: -100%;
      left: var(--gutter);
      background: var(--color-ink);
      color: var(--color-white);
      padding: 8px 16px;
      font-size: var(--text-body-sm);
      font-weight: 600;
      z-index: 9999;
      transition: top 0.1s;
    }
    .skip-link:focus { top: 8px; }

    /* ─── FOCUS STATES (keyboard navigation) ─── */
    :focus-visible {
      outline: 2px solid var(--color-ink);
      outline-offset: 3px;
    }
    /* High-contrast ring on red backgrounds */
    footer :focus-visible,
    .ann-bar :focus-visible,
    .cta-band :focus-visible,
    .nav-cta:focus-visible {
      outline-color: var(--color-white);
    }

    /* ─── RESET ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      background: var(--color-cream);
      color: var(--color-ink);
      font-family: var(--font-body);
      line-height: 1.6;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    button { cursor: pointer; }
    iframe { border: none; display: block; }

    /* ─── LAYOUT ─── */
    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
    }

    /* ─── ANNOUNCEMENT BAR ─── */
    .ann-bar {
      background: var(--color-red);
      color: var(--color-white);
      text-align: center;
      padding: 7px var(--space-6);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .ann-bar a { color: white; border-bottom: 1px solid rgba(255,255,255,0.5); }
    .ann-bar .ann-close {
      position: absolute;
      right: var(--space-3);
      background: none;
      border: none;
      color: white;
      font-size: 14px;
      opacity: 0.6;
      line-height: 1;
      padding: 4px;
    }
    .ann-bar .ann-close:hover { opacity: 1; }

    /* ─── NAVIGATION ─── */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--color-cream);
      border-bottom: 1px solid var(--color-border);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 60px;
      padding-right: 4px;
    }
    .nav-wordmark {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-red);
    }
    .nav-links {
      display: flex;
      gap: var(--space-6);
      list-style: none;
    }
    .nav-links a {
      font-size: var(--text-nav);
      font-weight: 500;
      color: var(--color-ink);
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--color-ink);
      transition: width 0.2s ease;
    }
    .nav-links a:hover::after { width: 100%; }
    .nav-cta {
      background: var(--color-red);
      color: var(--color-white);
      font-family: var(--font-body);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 10px 20px;
      border: none;
      border-radius: 0;
      transition: background 0.15s;
    }
    .nav-cta:hover { background: var(--color-red-dark); }
    .nav-hamburger {
      display: none;
      background: none;
      border: none;
      flex-direction: column;
      gap: 5px;
      padding: 4px;
    }
    .nav-hamburger span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: var(--color-ink);
      transition: 0.2s;
    }

    /* ─── HERO ─── */
    .hero {
      background: var(--color-cream);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: var(--space-16) var(--gutter) var(--space-12);
      position: relative;
      overflow: hidden;
    }
    /* The red circle — brand anchor adapted: a play button sun */
    .hero-circle {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: clamp(260px, 38vw, 520px);
      height: clamp(260px, 38vw, 520px);
      background: var(--color-red);
      border-radius: 50%;
      z-index: 0;
    }
    .hero-eyebrow {
      position: relative;
      z-index: 1;
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-top: var(--space-4);
      margin-bottom: 0;
      animation: fadeUp 0.6s 0.15s ease both;
    }
    .hero-heading {
      position: relative;
      z-index: 1;
      font-family: var(--font-display);
      font-size: clamp(2.8rem, 10vw, 9rem);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.03em;
      white-space: nowrap;
      /* animation handled by GSAP letter stagger */
      color: var(--color-ink);
      perspective: 800px; /* needed for rotationX to feel 3D */
    }
    .hero-heading .line-mid { display: block; }
    .hero-sub {
      position: relative;
      z-index: 1;
      font-family: var(--font-accent);
      font-style: italic;
      font-size: clamp(1rem, 2vw, 1.4rem);
      color: var(--color-ink-muted);
      margin-top: var(--space-4);
      animation: fadeUp 0.6s 0.15s ease both;
    }
    .hero-scroll {
      position: absolute;
      bottom: var(--space-6);
      left: 50%;
      transform: translateX(-50%);
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      font-size: var(--text-label);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      animation: fadeUp 0.6s 0.3s ease both;
    }
    .hero-scroll-line {
      width: 1px;
      height: 40px;
      background: var(--color-border);
      animation: scrollLine 1.5s ease infinite;
    }
    /* Client strip */
    .hero-clients {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: var(--space-8);
      margin-top: var(--space-8);
      flex-wrap: wrap;
      justify-content: center;
      animation: fadeUp 0.6s 0.25s ease both;
    }
    .hero-client-item {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      opacity: 0.6;
    }
    .hero-client-item.bold {
      font-size: 0.8rem;
      font-weight: 700;
      opacity: 0.5;
      letter-spacing: 0.1em;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes scrollLine {
      0%, 100% { transform: scaleY(1); opacity: 1; }
      50% { transform: scaleY(0.5); opacity: 0.3; }
    }

    /* ─── SECTION SHELL ─── */
    section {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: var(--space-16) 0;
    }
    section > .container { width: 100%; }

    .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: var(--space-4);
      padding-bottom: var(--space-3);
      border-bottom: 1px solid var(--color-border);
    }
    .section-header-left { display: flex; flex-direction: column; gap: 4px; }
    .section-eyebrow {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-red);
    }
    .section-title {
      font-family: var(--font-display);
      font-size: var(--text-display-md);
      font-weight: 700;
      line-height: 1.1;
    }
    .section-link {
      font-size: var(--text-body-sm);
      color: var(--color-ink-muted);
      display: flex;
      align-items: center;
      gap: 4px;
      transition: gap 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .section-link:hover { gap: 8px; color: var(--color-ink); }

    /* ─── WORK GRID ─── */
    .work-categories { display: flex; flex-direction: column; gap: var(--space-8); }

    .work-category-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: var(--space-3);
      padding-bottom: var(--space-2);
      border-bottom: 1px solid var(--color-border);
    }

    .work-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-3);
    }
    .work-grid.cols-1 { grid-template-columns: 1fr; max-width: 560px; }

    .work-card-thumb {
      aspect-ratio: 16/10;
      background: #2a2a2a;
      position: relative;
      overflow: hidden;
    }
    .work-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      position: absolute;
      inset: 0;
    }
    /* Clickable overlay to open lightbox */
    .work-card-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0);
      transition: background 0.25s;
    }
    .work-card:hover .work-card-overlay { background: rgba(0,0,0,0.3); }
    .play-btn {
      width: 52px;
      height: 52px;
      background: var(--color-red);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.2s, transform 0.2s;
    }
    .play-btn svg { width: 18px; height: 18px; fill: white; margin-left: 3px; }
    .work-card:hover .play-btn { opacity: 1; transform: scale(1); }

    .work-card-body { padding: var(--space-2) 0 0; }
    .work-card-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 6px;
    }
    .work-card-desc {
      font-size: var(--text-body-sm);
      color: var(--color-ink-muted);
      line-height: 1.5;
      margin-bottom: var(--space-1);
    }

    /* Badge */
    .badge {
      display: inline-block;
      font-size: var(--text-label);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 3px 8px;
      background: var(--color-cream);
      border: 1px solid var(--color-border);
      color: var(--color-ink-muted);
    }

    /* E-learning link card */
    .link-card {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      padding: var(--space-3) var(--space-4);
      border: 1px solid var(--color-border);
      transition: border-color 0.15s;
    }
    .link-card:hover { border-color: var(--color-ink); }
    .link-card-icon {
      width: 44px;
      height: 44px;
      background: var(--color-red);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .link-card-icon svg { width: 20px; height: 20px; fill: white; }
    .link-card-body { flex: 1; }
    .link-card-title {
      font-family: var(--font-display);
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 2px;
    }
    .link-card-sub { font-size: var(--text-body-sm); color: var(--color-ink-muted); }
    .link-card-arrow { color: var(--color-ink-muted); font-size: 1.1rem; transition: transform 0.15s; }
    .link-card:hover .link-card-arrow { transform: translateX(4px); }

    /* ─── VIDEO LIGHTBOX ─── */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0,0,0,0.92);
      align-items: center;
      justify-content: center;
      padding: var(--space-4);
    }
    .lightbox.open { display: flex; }
    .lightbox-inner {
      position: relative;
      width: 100%;
      max-width: 900px;
    }
    .lightbox-close {
      position: absolute;
      top: -44px;
      right: 0;
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      opacity: 0.7;
      line-height: 1;
      padding: 4px 8px;
    }
    .lightbox-close:hover { opacity: 1; }
    .lightbox-video {
      aspect-ratio: 16/9;
      width: 100%;
      background: black;
    }
    .lightbox-video iframe {
      width: 100%;
      height: 100%;
    }
    .lightbox-title {
      color: white;
      font-family: var(--font-display);
      font-size: 1.1rem;
      margin-top: var(--space-2);
      opacity: 0.8;
    }

    /* ─── ABOUT — SPLIT SECTION ─── */
    .about-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-16);
      align-items: start;
    }
    .about-stats-panel {
      border-top: 2px solid var(--color-ink);
      padding-top: var(--space-4);
    }
    .about-stats-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: var(--space-4);
    }
    .about-quote {
      font-family: var(--font-display);
      font-style: italic;
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 700;
      line-height: 1.2;
      color: var(--color-ink);
      margin-bottom: var(--space-4);
    }
    .about-body {
      font-size: var(--text-body-lg);
      color: var(--color-ink-muted);
      line-height: 1.75;
      margin-bottom: var(--space-6);
    }
    .about-details {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px var(--space-4);
      font-size: var(--text-body-sm);
    }
    .about-details dt {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      white-space: nowrap;
    }
    .about-details dd { color: var(--color-ink); }

    /* Tool pills */
    .tool-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: var(--space-4);
    }
    .tool-pill {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 5px 12px;
      border: 1px solid var(--color-border);
      color: var(--color-ink-muted);
    }
    .tool-pill.primary {
      background: var(--color-red);
      border-color: var(--color-red);
      color: white;
    }

    /* Stat block */
    .stats-grid {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .stat-row {
      display: flex;
      align-items: baseline;
      gap: var(--space-4);
      padding: var(--space-4) 0;
      border-bottom: 1px solid var(--color-border);
    }
    .stat-row:first-child { border-top: 1px solid var(--color-border); }
    .stat-number {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 4vw, 4rem);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.03em;
      color: var(--color-red);
      flex-shrink: 0;
      min-width: 130px;
    }
    .stat-label {
      font-size: var(--text-body-sm);
      font-weight: 500;
      color: var(--color-ink-muted);
      line-height: 1.4;
    }

    /* ─── CTA BAND ─── */
    .cta-band {
      background: var(--color-red);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: var(--space-12) var(--gutter);
      text-align: center;
      color: var(--color-white);
    }
    .cta-eyebrow {
      font-family: var(--font-accent);
      font-style: italic;
      font-size: clamp(1.1rem, 2vw, 1.5rem);
      color: rgba(255,255,255,0.65);
      margin-bottom: var(--space-3);
      display: block;
    }
    .cta-heading {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 700;
      line-height: 1.05;
      margin-bottom: var(--space-6);
    }
    .cta-actions {
      display: flex;
      gap: var(--space-2);
      justify-content: center;
      flex-wrap: wrap;
    }
    .btn-white {
      background: var(--color-white);
      color: var(--color-red);
      font-family: var(--font-body);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 12px 24px;
      border: none;
      border-radius: 0;
      transition: opacity 0.15s;
    }
    .btn-white:hover { opacity: 0.9; }
    .btn-ghost-light {
      background: transparent;
      color: var(--color-white);
      font-family: var(--font-body);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 12px 24px;
      border: 1px solid rgba(255,255,255,0.6);
      border-radius: 0;
      transition: background 0.15s;
    }
    .btn-ghost-light:hover { background: rgba(255,255,255,0.1); }

    /* ─── EXPERIENCE ─── */
    .experience-list { display: flex; flex-direction: column; }
    .exp-item {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: var(--space-8);
      padding: var(--space-8) 0;
      border-bottom: 1px solid var(--color-border);
    }
    .exp-meta {}
    .exp-period {
      font-size: var(--text-body-sm);
      color: var(--color-ink-muted);
      margin-bottom: var(--space-2);
    }
    .exp-metric {
      font-family: var(--font-display);
      font-size: clamp(2rem, 3vw, 3rem);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.02em;
      margin-top: var(--space-2);
      color: var(--color-ink);
    }
    .exp-metric-label {
      font-size: var(--text-label);
      color: var(--color-ink-muted);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-top: 4px;
    }
    .exp-role {
      font-family: var(--font-display);
      font-size: clamp(1.25rem, 2vw, 1.75rem);
      font-weight: 700;
      margin-bottom: 4px;
      line-height: 1.1;
    }
    .exp-company {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-red);
      margin-bottom: var(--space-3);
    }
    .exp-desc {
      font-size: var(--text-body-sm);
      color: var(--color-ink-muted);
      line-height: 1.8;
      max-width: 55ch;
    }

    /* ─── CONTACT ─── */
    .contact-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-12);
      align-items: start;
    }
    .contact-heading {
      font-family: var(--font-display);
      font-size: clamp(3rem, 5vw, 5rem);
      font-weight: 700;
      line-height: 1.0;
      letter-spacing: -0.02em;
      margin-bottom: var(--space-4);
    }
    .contact-body {
      font-size: var(--text-body-sm);
      color: var(--color-ink-muted);
      line-height: 1.75;
      margin-bottom: var(--space-6);
    }
    .contact-detail {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }
    .contact-row { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-3); }
    .contact-row-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: 4px;
    }
    .contact-row-value {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
    }
    .contact-row-value a:hover { opacity: 0.7; }

    /* Status indicator */
    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: var(--space-4);
    }
    .status-dot {
      width: 7px;
      height: 7px;
      background: #22c55e;
      border-radius: 50%;
      animation: pulse 2s ease infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* Form side */
    .contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
    }
    .form-input, .form-textarea {
      font-family: var(--font-body);
      font-size: var(--text-body-sm);
      color: var(--color-ink);
      background: var(--color-cream);
      border: 1px solid var(--color-border);
      border-radius: 0;
      padding: 12px var(--space-2);
      width: 100%;
      outline: none;
      transition: border-color 0.15s;
    }
    .form-input:focus, .form-textarea:focus { border-color: var(--color-ink); }
    /* Keyboard-navigation focus ring — clearly visible without disturbing mouse users */
    .form-input:focus-visible, .form-textarea:focus-visible {
      outline: 2px solid var(--color-ink);
      outline-offset: 2px;
      box-shadow: 0 0 0 4px rgba(26,26,26,0.08);
    }
    /* Error state — red border once the user has interacted with a required field */
    .form-input:user-invalid,
    .form-textarea:user-invalid {
      border-color: var(--color-red);
      background: rgba(232,32,10,0.03);
    }
    .form-textarea { resize: vertical; min-height: 120px; }
    .btn-primary {
      background: var(--color-red);
      color: var(--color-white);
      font-family: var(--font-body);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 14px 28px;
      border: none;
      border-radius: 0;
      align-self: flex-start;
      transition: background 0.15s;
    }
    .btn-primary:hover { background: var(--color-red-dark); }

    /* ─── FOOTER ─── */
    footer {
      background: var(--color-red);
      color: var(--color-white);
      padding: var(--space-8) var(--gutter) var(--space-4);
    }
    .footer-inner { max-width: var(--max-width); margin: 0 auto; }
    .footer-wordmark {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      opacity: 0.7;
      margin-bottom: var(--space-6);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-6);
      margin-bottom: var(--space-6);
      padding-bottom: var(--space-6);
      border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .footer-col-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      opacity: 0.4;
      margin-bottom: var(--space-2);
    }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .footer-links a {
      font-size: var(--text-body-sm);
      color: rgba(255,255,255,0.7);
      transition: color 0.15s;
    }
    .footer-links a:hover { color: white; }
    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-copy { font-size: var(--text-label); opacity: 0.7; }
    .footer-location { font-size: var(--text-label); opacity: 0.7; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .work-grid { grid-template-columns: repeat(2, 1fr); }
      .exp-item { grid-template-columns: 160px 1fr; gap: var(--space-6); }
      .about-split { gap: var(--space-8); }
    }
    @media (max-width: 768px) {
      section { padding: var(--space-12) 0; min-height: auto; }
      .nav-links, .nav-cta { display: none; }
      .nav-hamburger { display: flex; }
      .hero { min-height: 90vh; padding-top: var(--space-12); }
      .work-grid { grid-template-columns: 1fr; }
      .about-split, .contact-split { grid-template-columns: 1fr; }
      .exp-item { grid-template-columns: 1fr; gap: var(--space-2); }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
      .hero-clients { gap: var(--space-4); }
      /* Class-based mobile nav open state */
      .nav-links.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-cream);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-3) var(--gutter);
        gap: var(--space-3);
        z-index: 99;
      }
      .nav-cta.is-open {
        display: block;
        position: absolute;
        top: calc(60px + /* nav-links approx height */ 180px);
        left: var(--gutter);
        z-index: 99;
      }
    }
    @media (max-width: 500px) {
      .footer-grid { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
    /* ─── PAPER TEXTURE ─── */
    /* Static SVG noise replaced by animated canvas #film-grain */
    /* Slightly stronger grain on the dark-bg sections (footer, cta-band) */
    footer::before,
    .cta-band::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      opacity: 0.045;
      background-image: var(--noise-svg);
      background-repeat: repeat;
      background-size: 200px 200px;
    }
    footer, .cta-band { position: relative; }

    /* ─── HORIZONTAL SCROLL SECTION ─── */
    .horizontal-section {
      position: relative;
      width: 100%;
      height: 100vh;
      background-color: var(--color-ink);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: var(--space-8) 0 var(--space-6);
    }
    .horizontal-header {
      padding: 0 5%;
      margin-bottom: var(--space-6);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .horiz-eyebrow {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-red);
    }
    .horiz-title {
      font-family: var(--font-display);
      font-size: var(--text-display-md);
      font-weight: 700;
      color: var(--color-cream);
      line-height: 1.1;
    }
    .horizontal-track {
      display: flex;
      gap: 2rem;
      padding: 0 5%;
      width: max-content;
      will-change: transform;
      cursor: grab;
    }
    .horizontal-track:active { cursor: grabbing; }
    .horizontal-card {
      width: 420px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      cursor: pointer;
    }
    .horizontal-card-img {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #111;
    }
    .horizontal-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }
    .horizontal-card:hover .horizontal-card-img img { transform: scale(1.04); }
    .horiz-play {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0);
      transition: background 0.25s;
    }
    .horizontal-card:hover .horiz-play { background: rgba(0,0,0,0.35); }
    .horiz-play svg {
      width: 52px;
      height: 52px;
      background: var(--color-red);
      border-radius: 50%;
      fill: white;
      padding: 14px 14px 14px 17px;
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.2s, transform 0.2s;
    }
    .horizontal-card:hover .horiz-play svg { opacity: 1; transform: scale(1); }
    .card-info { padding: 0 2px; }
    .card-info-meta {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: 6px;
    }
    .card-info h3 {
      color: var(--color-cream);
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      margin: 0;
      line-height: 1.2;
    }
    /* End-card CTA */
    .horiz-end-card {
      width: 280px;
      cursor: default;
    }
    .horiz-end-inner {
      aspect-ratio: 16 / 9;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: var(--space-3);
      border-left: 1px solid rgba(255,255,255,0.12);
      padding-left: var(--space-6);
    }
    .horiz-end-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.35);
    }
    .horiz-end-link {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--color-cream);
      border-bottom: 1px solid var(--color-red);
      padding-bottom: 4px;
      transition: color 0.15s;
    }
    .horiz-end-link:hover { color: var(--color-red); }
    /* Progress bar */
    .horiz-progress-track {
      position: absolute;
      bottom: var(--space-4);
      left: 5%;
      right: 5%;
      height: 1px;
      background: rgba(255,255,255,0.12);
    }
    .horiz-progress-bar {
      height: 100%;
      width: 0%;
      background: var(--color-red);
      transition: width 0.05s linear;
    }
    /* Mobile: show highlights as a vertical card stack — no horizontal scroll needed */
    @media (max-width: 768px) {
      .horizontal-section {
        height: auto;
        padding: var(--space-8) 0 var(--space-6);
      }
      .horizontal-track {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--gutter);
        cursor: default;
        transform: none !important;
      }
      .horizontal-card {
        width: 100%;
      }
      .horiz-end-card {
        width: 100%;
      }
      .horiz-end-inner {
        aspect-ratio: auto;
        padding: var(--space-4) 0 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
      }
      .horiz-progress-track { display: none; }
    }

    .link-card-caption {
      padding: var(--space-2) 0 0;
    }
    .flex-col-center {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .exp-metric-foundation {
      font-size: 1rem;
      font-family: var(--font-body);
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
    }

    /* ─── PAGE TRANSITION: HERO → CONTENT ─── */
    /* An ink panel wipes down over the hero then lifts to reveal the next section */
    #page-transition {
      position: fixed;
      inset: 0;
      z-index: 9000;
      pointer-events: none;
      overflow: hidden;
    }
    #page-transition-panel {
      position: absolute;
      inset: 0;
      background: var(--color-ink);
      transform: translateY(-101%);
      will-change: transform;
    }
    /* Active: panel sweeps down */
    #page-transition.is-entering #page-transition-panel {
      animation: ptEnter 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    }
    /* Leaving: panel sweeps up to reveal destination */
    #page-transition.is-leaving #page-transition-panel {
      animation: ptLeave 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    }
    @keyframes ptEnter {
      from { transform: translateY(-101%); }
      to   { transform: translateY(0%); }
    }
    @keyframes ptLeave {
      from { transform: translateY(0%); }
      to   { transform: translateY(101%); }
    }

    /* ─── HERO SCROLL CTA REMOVED ─── */
    html.lenis, html.lenis body { height: auto; }
    .lenis.lenis-smooth { scroll-behavior: auto !important; }
    .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
    .lenis.lenis-stopped { overflow: hidden; }

    /* ─── CASE STUDY PATHWAY ─── */
    .case-study-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-red);
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      font-family: var(--font-body);
      transition: opacity 0.15s;
    }
    .case-study-link:hover { opacity: 0.7; }

    .case-study-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 1001;
      background: rgba(0,0,0,0.85);
      align-items: flex-start;
      justify-content: center;
      padding: var(--space-8) var(--space-4);
      overflow-y: auto;
    }
    .case-study-modal.open { display: flex; }
    .case-study-modal-inner {
      background: var(--color-cream);
      max-width: 680px;
      width: 100%;
      padding: var(--space-8);
      position: relative;
      margin: auto;
    }
    .case-study-close {
      position: absolute;
      top: var(--space-3);
      right: var(--space-3);
      background: none;
      border: none;
      font-size: 1.25rem;
      color: var(--color-ink-muted);
      cursor: pointer;
      padding: 4px 8px;
      line-height: 1;
    }
    .case-study-close:hover { color: var(--color-ink); }
    .cs-eyebrow {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-red);
      margin-bottom: var(--space-2);
    }
    .cs-title {
      font-family: var(--font-display);
      font-size: var(--text-display-md);
      font-weight: 700;
      margin-bottom: var(--space-6);
      padding-bottom: var(--space-3);
      border-bottom: 1px solid var(--color-border);
    }
    .cs-section { margin-bottom: var(--space-6); }
    .cs-section-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-ink-muted);
      margin-bottom: var(--space-2);
    }
    .cs-body {
      font-size: var(--text-body-sm);
      color: var(--color-ink);
      line-height: 1.75;
    }
    .cs-step { margin-bottom: var(--space-3); }
    .cs-step-label {
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-ink);
      margin-bottom: 4px;
    }
    .cs-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: var(--space-2);
    }
    .cs-tag {
      font-size: var(--text-label);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 4px 10px;
      border: 1px solid var(--color-border);
      color: var(--color-ink-muted);
    }
    .cs-watch-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--color-red);
      color: var(--color-white);
      font-family: var(--font-body);
      font-size: var(--text-label);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 11px 22px;
      border: none;
      cursor: pointer;
      transition: background 0.15s;
      margin-top: var(--space-4);
    }
    .cs-watch-btn:hover { background: var(--color-red-dark); }

    /* ─── FORM TOAST ─── */
    .form-toast {
      position: fixed;
      bottom: var(--space-4);
      right: var(--space-4);
      background: var(--color-ink);
      color: var(--color-white);
      font-size: var(--text-body-sm);
      font-weight: 500;
      padding: 12px 20px;
      z-index: 500;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.25s, transform 0.25s;
      pointer-events: none;
    }
    .form-toast.show {
      opacity: 1;
      transform: translateY(0);
    }
    /* ─── HERO CIRCLE WRAPPER (GSAP parallax layer) ─── */
    /* GSAP owns yPercent on this; RAF owns transform on #heroCircle inside it */
    .hero-circle-wrapper {
      position: absolute;
      top: 50%;
      left: 50%;
      /* No own dimensions — sized by the circle inside */
      pointer-events: none;
      z-index: 0;
    }
    /* Override circle positioning: it now centres relative to the wrapper */
    #heroCircle {
      position: relative;
      top: auto;
      left: auto;
      transform: translate(-50%, -50%);
    }



    /* Individual letter spans for repulsion */
    .hero-letter {
      display: inline-block;
      will-change: transform;
      transition: transform 0s; /* JS handles easing */
    }
    /* Space between words */
    .hero-letter.space {
      width: 0.28em;
    }
    /* ─── WORK CARD HOVER LIFT ─── */
    .work-card {
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .work-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    }

    /* ─── SECTION WIPE REMOVED ─── */

    /* ─── SCROLL VELOCITY SKEW TARGET ─── */
    /* Applied to section headings via JS — no layout disruption */
    .skew-target {
      display: inline-block;
      will-change: transform;
    }
    /* ─── CUSTOM CURSOR REMOVED ─── */

    /* ─── CINEMATIC PRELOADER ─── */
    #preloader {
      position: fixed;
      inset: 0;
      background: var(--color-red);
      z-index: 99999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: all;
      overflow: hidden;
    }
    /* Center block: wordmark + tagline */
    .pre-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }
    /* Individual character spans for stagger */
    .pre-char {
      display: inline-block;
      opacity: 0;
      transform: translateY(40px) rotateX(-60deg);
      transform-origin: 50% 100%;
    }
    .pre-wordmark {
      font-family: var(--font-body);
      font-size: clamp(1.2rem, 3.5vw, 2.2rem);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.95);
      opacity: 0;
      line-height: 1;
    }
    .pre-tagline {
      display: flex;
      gap: 0;
      overflow: hidden;
      height: 1.4em;
    }
    .pre-tag-char {
      display: inline-block;
      font-size: clamp(0.65rem, 1.2vw, 0.8rem);
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.6);
      font-family: var(--font-body);
      font-weight: 600;
      opacity: 0;
      transform: translateY(100%);
    }
    /* Counter — small, bottom-anchored */
    .pre-counter-row {
      position: absolute;
      bottom: clamp(28px, 5vh, 56px);
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: baseline;
      gap: 3px;
    }
    .pre-count {
      font-family: 'DM Mono', 'Courier New', monospace;
      font-size: clamp(0.85rem, 1.6vw, 1.1rem);
      font-weight: 500;
      color: rgba(255,255,255,0.75);
      line-height: 1;
      letter-spacing: 0.04em;
      font-variant-numeric: tabular-nums;
      min-width: 3ch;
      text-align: right;
      display: block;
    }
    .pre-pct {
      font-family: 'DM Mono', 'Courier New', monospace;
      font-size: clamp(0.75rem, 1.2vw, 0.9rem);
      font-weight: 500;
      color: rgba(255,255,255,0.45);
      letter-spacing: 0.04em;
      opacity: 0;
      transform: translateY(8px);
    }
    /* Fade-out transition for preloader */
    #preloader.fade-out {
      opacity: 0;
      transition: opacity 0.75s ease;
    }
    /* Exit curtain — kept but hidden (JS still references it) */
    .pre-curtain {
      display: none;
    }
    /* Bar hidden — removed */
    .pre-bar-track {
      display: none;
    }

    /* cursor styles above ↑ */

    /* ─── MAGNETIC CTA REMOVED ─── */

    /* ─── ANIMATED FILM GRAIN ─── */
    /* Replaces the static body::before with a JS-jittered canvas */
    #film-grain {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9998;
      opacity: 0.045;
      mix-blend-mode: multiply;
    }

    /* ─── CLIP-PATH REVEAL for section headings ─── */
    /* Headings start clipped to bottom-zero and reveal upward */
    .reveal-wrap {
      overflow: hidden;
      display: block;
    }
    .reveal-inner {
      display: block;
      clip-path: inset(100% 0% 0% 0%);
      /* GSAP drives clip-path to inset(0% 0% 0% 0%) on scroll */
    }
    /* ─── SCROLL-FILL TEXT ─── */
    /* Words start as ghost outlines, fill to solid as user scrolls */
    .fill-text {
      /* each word gets a split wrapper — JS handles the actual splitting */
      position: relative;
    }
    /* The "ghost" layer — always visible, low opacity */
    .fill-text-ghost {
      color: transparent;
      -webkit-text-stroke: 1px rgba(26,26,26,0.18);
      position: relative;
    }
    /* The "filled" layer — clipped to reveal from bottom via JS */
    .fill-text-fill {
      position: absolute;
      inset: 0;
      color: var(--color-ink);
      /* clip is set per-word via GSAP scrub on clipPath */
      clip-path: inset(100% 0 0 0);
      pointer-events: none;
    }

    /* ─── MASKED LINE REVEAL (non-section-title headings) ─── */
    .masked-line-reveal .line-wrap {
      overflow: hidden;
      display: block;
    }
    .masked-line-reveal .line-inner {
      display: block;
      transform: translateY(110%);
      /* GSAP drives to translateY(0) on scroll */
    }

    /* ─── PARALLAX THUMBNAIL WRAPPERS ─── */
    /* clip the thumb so the inner img can move without overflow */
    .horizontal-card-img,
    .work-card-thumb {
      overflow: hidden;
    }
    /* the img itself is the parallax target — JS adds will-change */
    .horizontal-card-img img,
    .work-card-thumb img {
      will-change: transform;
    }

    /* ─── SPLITTYPE LAYOUT FIX ─── */
    .word, .char {
      display: inline-block;
      overflow: hidden;
    }

    /* ─── PINNED ABOUT SECTION ─── */
    .about-pinned-section {
      min-height: auto;
      padding: 0;
      display: block;
    }
    .about-pinned-outer {
      display: flex;
      align-items: flex-start;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
    }
    /* LEFT: sticky panel */
    .about-pin-col {
      position: sticky;
      top: 80px; /* clears the nav */
      width: 320px;
      flex-shrink: 0;
      padding: var(--space-16) 0 var(--space-16);
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      align-self: flex-start;
    }
    .about-pin-title {
      font-family: var(--font-display);
      font-size: clamp(2.2rem, 4vw, 3.5rem);
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin-top: 6px;
    }
    .about-pin-sub {
      font-family: var(--font-accent);
      font-style: italic;
      font-size: clamp(1rem, 1.5vw, 1.25rem);
      color: var(--color-ink-muted);
      line-height: 1.4;
    }
    .about-pin-line {
      width: 40px;
      height: 2px;
      background: var(--color-red);
      margin: var(--space-2) 0;
    }
    /* RIGHT: scrolling content */
    .about-scroll-col {
      flex: 1;
      padding: var(--space-16) 0 var(--space-16) var(--space-12);
      display: flex;
      flex-direction: column;
      gap: var(--space-12);
      border-left: 1px solid var(--color-border);
      margin-left: var(--space-8);
    }
    .about-scroll-block {
      /* each block fades in as it enters the viewport */
    }

    /* Mobile: unpin and stack */
    @media (max-width: 768px) {
      .about-pinned-outer {
        flex-direction: column;
        padding-top: var(--space-12);
        padding-bottom: var(--space-8);
      }
      .about-pin-col {
        position: static;
        width: 100%;
        padding: 0 0 var(--space-6);
      }
      .about-scroll-col {
        margin-left: 0;
        padding: var(--space-6) 0 0;
        border-left: none;
        border-top: 1px solid var(--color-border);
        gap: var(--space-8);
      }
    }
