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

    html {
      cursor: none;
      scroll-behavior: auto;
    }

    body {
      background: #000;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 200;
      overflow-x: hidden;
    }

    /* ─────────────────────────────
       CUSTOM CURSOR — 🍋 EMOJI
    ───────────────────────────── */
    .cursor-lemon {
      position: fixed;
      font-size: 22px;
      line-height: 1;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      user-select: none;
      transition: font-size 0.2s ease;
    }
    .cursor-lemon.hovering { font-size: 30px; }

    /* ─────────────────────────────
       GRAIN OVERLAY
    ───────────────────────────── */
    .grain {
      position: fixed;
      inset: -50%;
      width: 200%;
      height: 200%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 10000;
      opacity: 0.25;
      animation: grain-move 7s steps(8) infinite;
    }
    @keyframes grain-move {
      0%,100% { transform: translate(0,0); }
      12%  { transform: translate(-4%,-8%); }
      25%  { transform: translate(6%,3%); }
      37%  { transform: translate(-7%,12%); }
      50%  { transform: translate(4%,-6%); }
      62%  { transform: translate(-9%,7%); }
      75%  { transform: translate(8%,-3%); }
      87%  { transform: translate(-3%,9%); }
    }

    /* ─────────────────────────────
       HERO SECTION
    ───────────────────────────── */
    #hero {
      position: relative;
      width: 100vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000;
      overflow: hidden;
      flex-direction: column;
    }

    .hero-logo {
      width: clamp(300px, 55vw, 760px);
      display: block;
      will-change: transform;
    }


    /* Palindrome definition — bottom left */
    .hero-palindrome {
      position: absolute;
      bottom: 64px;
      left: 48px;
    }
    .hero-palindrome .pal-word {
      font-size: clamp(12.65px, 1.15vw, 14.95px);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      opacity: 0.5;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
    }
    .hero-palindrome .pal-phonetic {
      font-size: 12.65px;
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      opacity: 0.3;
      margin-top: 3px;
    }
    .hero-palindrome .pal-def {
      font-size: 11.5px;
      opacity: 0.22;
      max-width: 260px;
      line-height: 1.7;
      margin-top: 6px;
      letter-spacing: 0.04em;
    }

    /* Scroll indicator — bottom right */
    .scroll-cue {
      position: absolute;
      bottom: 64px;
      right: 48px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .scroll-cue-text {
      font-size: 9px;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: #d4f04d;
      opacity: 0.75;
    }

    /* ─────────────────────────────
       WORKS SECTION
    ───────────────────────────── */
    #works-section {
      position: relative;
      /* height set by JS */
    }

    #works-inner {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    .works-hud-label {
      position: absolute;
      top: 42px;
      left: 48px;
      font-size: 9px;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      opacity: 0.3;
      z-index: 20;
    }
    .works-hud-count {
      position: absolute;
      top: 42px;
      right: 48px;
      font-size: 11px;
      letter-spacing: 0.08em;
      opacity: 0.25;
      z-index: 20;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
    }


    /* ─────────────────────────────
       WORKS FILTER — centred discipline tabs
    ───────────────────────────── */
    .works-filter {
      position: absolute;
      top: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 25;
      display: flex;
      align-items: center;
      gap: 2px;
      max-width: calc(100vw - 340px);
      padding: 6px 8px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.58);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      backdrop-filter: blur(14px) saturate(120%);
      border: 1px solid rgba(255, 255, 255, 0.06);
      overflow-x: auto;
      scrollbar-width: none;
    }
    .works-filter::-webkit-scrollbar { display: none; }

    .wf-tab {
      position: relative;
      z-index: 1;
      flex-shrink: 0;
      display: inline-flex;
      align-items: flex-start;
      gap: 3px;
      padding: 9px 16px 8px;
      border: 0;
      border-radius: 999px;
      background: none;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 300;
      font-size: 9.5px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      white-space: nowrap;
      opacity: 0.55;
      cursor: none;
      transition: opacity 0.35s ease, color 0.35s ease;
    }
    .wf-tab:hover { opacity: 0.8; }
    .wf-tab[aria-selected="true"] { opacity: 1; color: #000; }
    .wf-tab:focus-visible { outline: 1px solid #d4f04d; outline-offset: 2px; }

    .wf-count {
      font-family: 'Cormorant Garamond', serif;
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.02em;
      line-height: 1;
      opacity: 0.6;
      transform: translateY(-3px);
    }

    /* Sliding lime pill behind the active tab */
    .wf-indicator {
      position: absolute;
      z-index: 0;
      top: 6px;
      left: 0;
      height: calc(100% - 12px);
      width: 0;
      border-radius: 999px;
      background: #d4f04d;
      transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }

    @media (max-width: 900px) {
      .works-hud-label, .works-hud-count { display: none; }
      .works-filter { top: 18px; max-width: calc(100vw - 32px); }
      .wf-tab { padding: 8px 12px 7px; letter-spacing: 0.2em; }
    }
    @media (prefers-reduced-motion: reduce) {
      .wf-indicator, .wf-tab { transition: none; }
    }

    /* The scrolling track */
    #works-track {
      display: flex;
      flex-direction: row;
      height: 100vh;
      gap: 3px;
      will-change: transform;
      transform-origin: center center;
    }

    /* Each column = flex column with 3 equal items */
    .work-col {
      display: flex;
      flex-direction: column;
      gap: 3px;
      height: 100vh;
      flex-shrink: 0;
    }

    /* Individual work tile */
    .work-tile {
      position: relative;
      overflow: hidden;
      flex: 1;
      cursor: none;
      background: #0d0d0d;
    }

    /* Placeholder: subtle noise + number ghost */
    .work-tile-ghost {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(60px, 9vw, 130px);
      font-weight: 300;
      color: rgba(255,255,255,0.035);
      user-select: none;
      pointer-events: none;
      line-height: 1;
    }

    /* Thumbnail image (when available) */
    .work-tile-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    }
    .work-tile:hover .work-tile-img {
      transform: scale(1.04);
    }

    /* No usable cover (Vimeo privacy hides the thumbnail, or the image 404s).
       Hide the placeholder and keep the title permanently visible instead
       of showing a washed-out grey frame. */
    .work-tile.no-cover .work-tile-img { opacity: 0; }
    .work-tile.no-cover .work-tile-info {
      opacity: 1;
      transform: none;
      background: none;
    }
    .work-tile.no-cover .work-tile-ghost { opacity: 0.16; }

    /* Info overlay */
    .work-tile-info {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 20px 22px 22px;
      background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 100%);
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.38s ease, transform 0.38s ease;
      z-index: 5;
    }
    .work-tile:hover .work-tile-info { opacity: 1; transform: translateY(0); }

    .work-tile-type {
      font-size: 13px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #d4f04d;
      opacity: 0.9;
      margin-bottom: 6px;
      font-weight: 300;
    }
    .work-tile-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(13px, 1.4vw, 18px);
      font-weight: 400;
      letter-spacing: 0.03em;
      line-height: 1.25;
    }
    .work-tile-client {
      font-size: 9px;
      opacity: 0.35;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-top: 3px;
    }

    /* Top-right index number */
    .work-tile-idx {
      position: absolute;
      top: 14px;
      right: 16px;
      font-size: 8px;
      opacity: 0.2;
      letter-spacing: 0.1em;
      font-family: 'Cormorant Garamond', serif;
      z-index: 5;
    }

    /* Empty overflow tile */
    .work-tile--empty { opacity: 0; pointer-events: none; }

    /* Thin border on hover */
    .work-tile::after {
      content: '';
      position: absolute;
      inset: 0;
      border: 1px solid rgba(255,255,255,0);
      transition: border-color 0.35s ease;
      pointer-events: none;
      z-index: 6;
    }
    .work-tile:hover::after { border-color: rgba(255,255,255,0.07); }

    /* ─────────────────────────────
       CONTACT SECTION
    ───────────────────────────── */
    #contact {
      position: relative;
      width: 100vw;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #000;
      overflow: hidden;
    }

    .contact-label {
      font-size: 9px;
      letter-spacing: 0.45em;
      text-transform: uppercase;
      opacity: 0.25;
      margin-bottom: 28px;
    }

    .contact-lead {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(30px, 5.2vw, 76px);
      font-weight: 300;
      line-height: 1.02;
      letter-spacing: 0.01em;
      text-align: center;
      text-wrap: balance;
    }
    .contact-lead em { font-style: italic; color: #d4f04d; }
    .contact-sub {
      margin-top: 22px;
      font-size: 10px;
      letter-spacing: 0.26em;
      text-transform: uppercase;
      opacity: 0.4;
      text-align: center;
      padding: 0 24px;
    }
    .contact-btn {
      margin-top: 40px;
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 16px 30px 15px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 999px;
      background: transparent;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 300;
      font-size: 10px;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      cursor: none;
      transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s, border-color 0.45s;
    }
    .contact-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
    .contact-btn:hover { background: #d4f04d; border-color: #d4f04d; color: #000; }
    .contact-btn:hover svg { transform: translateX(4px); }
    .contact-btn:focus-visible { outline: 1px solid #d4f04d; outline-offset: 4px; }

    /* Instagram icon */
    .contact-ig-icon {
      margin-bottom: 14px;
      opacity: 0.3;
    }
    .contact-ig-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.5; }

    /* Footer bar */
    .contact-footer {
      position: absolute;
      bottom: 36px;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
    }
    .contact-footer-logo {
      height: 18px;
      opacity: 0.15;
    }
    .contact-footer-copy {
      font-size: 9px;
      opacity: 0.15;
      letter-spacing: 0.15em;
    }

    /* initial visibility managed by GSAP from() */

    /* ─────────────────────────────
       VIDEO MODAL
    ───────────────────────────── */
    #video-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: rgba(0,0,0,0.92);
      align-items: center;
      justify-content: center;
      cursor: none;
    }
    #video-modal.open { display: flex; }

    .modal-inner {
      position: relative;
      width: min(92vw, 1280px);
    }

    /* padding-top trick locks 16:9 regardless of content */
    #modal-player {
      position: relative;
      width: 100%;
      padding-top: 56.25%;
      background: #000;
    }

    #modal-player iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    .modal-close {
      position: absolute;
      top: -36px;
      right: 0;
      background: none;
      border: none;
      color: #fff;
      font-size: 11px;
      letter-spacing: 0.22em;
      font-family: 'Montserrat', sans-serif;
      font-weight: 200;
      opacity: 0.45;
      cursor: none;
      transition: opacity 0.2s;
    }
    .modal-close:hover { opacity: 1; }

    .modal-title {
      position: absolute;
      bottom: -34px;
      left: 0;
      font-size: 12px;
      letter-spacing: 0.2em;
      color: #d4f04d;
      opacity: 0.75;
      text-transform: uppercase;
    }

    /* Visually hidden but readable by search engines and screen readers */
    .sr-only {
      position: absolute !important;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }
    .work-tile:focus-visible { outline: 1px solid #d4f04d; outline-offset: -1px; }
    .work-tile:focus-visible .work-tile-info { opacity: 1; transform: translateY(0); }
    .modal-close:focus-visible { outline: 1px solid #d4f04d; outline-offset: 3px; }
