:root { --gold:#C8A96E; --ink:#0A0A0A; --paper:#F7F5F2; }
    * { margin:0; padding:0; box-sizing:border-box; }
    html { /* scroll-behavior removed — JS handles smooth scrolling explicitly where needed */ }
    body { font-family:'DM Sans',sans-serif; background:var(--paper); color:var(--ink); overflow-x:hidden; }

    @media (min-width: 769px) {
      @supports (height: 100svh) {
        #hero-sticky,
        #projects-pin,
        #projects-track {
          height: 100svh;
        }
        .film-card {
          height: calc(100svh - 188px);
        }
      }
    }

    /* ─── CURSOR ─── */
    .cursor-dot {
      width:8px; height:8px; background:var(--ink); border-radius:50%;
      position:fixed; pointer-events:none; z-index:9999;
      transform:translate(-50%,-50%); transition:background 0.3s;
    }
    .cursor-ring {
      width:36px; height:36px; border:1px solid var(--ink); border-radius:50%;
      position:fixed; pointer-events:none; z-index:9998;
      transform:translate(-50%,-50%);
      transition:border-color 0.3s, width 0.2s, height 0.2s, background 0.2s;
    }
    body.dark-mode .cursor-dot { background:#fff; }
    body.dark-mode .cursor-ring { border-color:rgba(255,255,255,0.4); }
    body.dark-mode .cursor-ring.hovered {
      background:rgba(200,169,110,0.15); border-color:var(--gold);
      width:56px; height:56px;
    }
    @media (hover: none), (pointer: coarse) {
      .cursor-dot,
      .cursor-ring,
      #torch-cursor {
        display: none !important;
      }
    }

    /* ════════════════════════════════════════
       HERO — WHITE → DARK SCROLL + TICKER
    ════════════════════════════════════════ */
    #hero { position:relative; height:220vh; }
    #hero-sticky { position:sticky; top:0; height:100vh; overflow:hidden; }

    /* — White phase — */
    #hero-white {
      position:absolute; inset:0; z-index:2;
      display:flex; flex-direction:column;
      align-items:center; justify-content:center;
      background:var(--paper);
    }
    #hero-white .white-name {
      font-family:'DM Sans',sans-serif; font-weight:300;
      font-size:clamp(0.72rem,1.1vw,0.9rem);
      letter-spacing:0.35em; text-transform:uppercase;
      color:#999; margin-bottom:2.5rem;
    }
    #hero-white .quote {
      font-family:'Playfair Display',serif; font-style:italic; font-weight:300;
      font-size:clamp(1.1rem,2vw,1.5rem); color:#888;
      letter-spacing:0.01em; text-align:center; max-width:480px;
    }
    #hero-white .white-title {
      font-family:'DM Sans',sans-serif; font-weight:300;
      font-size:clamp(0.68rem,1vw,0.82rem);
      letter-spacing:0.28em; text-transform:uppercase;
      color:#bbb; margin-top:2rem;
    }

    /* Scroll hint — starts hidden, JS fades in after white phase settles */
    .scroll-hint {
      position:absolute; bottom:56px; left:50%; transform:translateX(-50%);
      display:flex; flex-direction:column; align-items:center; gap:8px;
      color:#bbb; font-size:0.6rem; letter-spacing:0.3em; text-transform:uppercase;
      z-index:3; opacity:0; transition:opacity 0.6s ease;
    }
    .scroll-hint.visible { opacity:1; }
    .scroll-line {
      width:1px; height:40px;
      background:linear-gradient(to bottom,transparent,#bbb);
      animation:scrollPulse 2s ease-in-out infinite;
    }
    @keyframes scrollPulse {
      0%,100% { opacity:0.4; transform:scaleY(1); }
      50%      { opacity:1;   transform:scaleY(1.2); }
    }

    /* — Dark phase — */
    #hero-dark {
      position:absolute; inset:0; z-index:3;
      background:var(--ink); opacity:0;
      display:flex; flex-direction:column;
      align-items:center; justify-content:center; overflow:hidden;
    }
    #hero-video {
      position:absolute; inset:0; width:100%; height:100%;
      object-fit:cover; opacity:0.45;
    }
    .hero-dark-overlay {
      position:absolute; inset:0;
      background:linear-gradient(to bottom,rgba(10,10,10,0.6) 0%,rgba(10,10,10,0.3) 50%,rgba(10,10,10,0.8) 100%);
      z-index:1;
    }
    #hero-dark .dark-content { position:relative; z-index:2; text-align:center; padding:0 24px; }
    #hero-dark .dark-eyebrow {
      font-family:'DM Sans',sans-serif; font-size:0.7rem; font-weight:400;
      letter-spacing:0.4em; text-transform:uppercase; color:var(--gold);
      margin-bottom:1.2rem; opacity:0; transform:translateY(20px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    #hero-dark .dark-name {
      font-family:'Playfair Display',serif; font-weight:900;
      font-size:clamp(3.5rem,9vw,9rem); color:#fff;
      line-height:0.9; letter-spacing:-0.02em; opacity:0; transform:translateY(30px);
      transition: opacity 0.9s ease, transform 0.9s ease;
    }
    #hero-dark .dark-title {
      font-family:'Playfair Display',serif; font-style:italic; font-weight:400;
      font-size:clamp(1rem,2.5vw,1.8rem); color:rgba(255,255,255,0.6);
      margin-top:1rem; opacity:0; transform:translateY(20px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    #hero-dark .dark-exp {
      font-family:'DM Sans',sans-serif; font-size:0.72rem;
      letter-spacing:0.3em; text-transform:uppercase; color:var(--gold);
      margin-top:1.5rem; opacity:0; transform:translateY(20px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    /* — Ticker — */
    #hero-ticker {
      position:absolute; bottom:0; left:0; right:0; z-index:4;
      height:44px; border-top:1px solid rgba(255,255,255,0.07);
      background:rgba(10,10,10,0.5);
      -webkit-backdrop-filter:blur(8px);
      backdrop-filter:blur(8px);
      display:flex; align-items:center; overflow:hidden;
      opacity:0; transform:translateY(4px);
      transition:opacity 0.6s ease, transform 0.5s ease;
    }
    #hero-ticker.show { opacity:1; transform:translateY(0); }
    .ticker-track { display:flex; white-space:nowrap; will-change:transform; }
    .ticker-item {
      font-family:'DM Sans',sans-serif; font-size:0.6rem; font-weight:400;
      letter-spacing:0.35em; text-transform:uppercase; color:rgba(255,255,255,0.3);
      padding:0 32px; display:inline-flex; align-items:center; gap:32px;
    }
    .ticker-dot { width:3px; height:3px; border-radius:50%; background:var(--gold); opacity:0.6; flex-shrink:0; }

    @media (max-width:768px) {
      #hero-dark .dark-content { width: 100%; overflow: hidden; }
      #hero-dark .dark-name {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: clamp(3.4rem, 16vw, 5.5rem);
        letter-spacing: -0.03em;
        line-height: 0.88;
      }
      #hero-dark .dark-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 1rem;
      }
      #hero-dark .dark-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-top: 1.2rem;
      }
      #hero-dark .dark-exp {
        font-size: 0.68rem;
        margin-top: 1.4rem;
      }
    }
    nav {
      position:fixed; top:0; left:0; right:0; z-index:100;
      padding:28px 48px;
      display:flex; align-items:center; justify-content:space-between;
    }
    .nav-logo {
      font-family:'DM Sans',sans-serif; font-size:0.75rem; font-weight:500;
      letter-spacing:0.25em; text-transform:uppercase;
      color:#999; text-decoration:none;
      position: relative;
      display: inline-block;
      overflow: hidden;
      height: 1.2em;
      vertical-align: bottom;
    }
    body.dark-mode .nav-logo { color:rgba(255,255,255,0.5); }

    /* Two text layers stacked */
    .nav-logo .logo-en,
    .nav-logo .logo-ar {
      display: block;
      transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
    }
    .nav-logo .logo-ar {
      position: absolute;
      top: 0; left: 0;
      transform: translateY(110%);
      opacity: 0;
      font-family: 'Playfair Display', serif;
      font-weight: 400;
      letter-spacing: 0.15em;
      text-transform: none;
      color: var(--gold);
      white-space: nowrap;
      font-size: 0.82rem;
    }
    .nav-logo:hover .logo-en {
      transform: translateY(-110%);
      opacity: 0;
    }
    .nav-logo:hover .logo-ar {
      transform: translateY(0);
      opacity: 1;
    }
    @media (hover: none), (pointer: coarse) {
      .nav-logo:hover .logo-en {
        transform: none;
        opacity: 1;
      }
      .nav-logo:hover .logo-ar {
        transform: translateY(110%);
        opacity: 0;
      }
    }
    .nav-links { display:flex; gap:40px; list-style:none; }
    .nav-links a {
      font-size:0.72rem; font-weight:400; letter-spacing:0.2em; text-transform:uppercase;
      color:#aaa; text-decoration:none; transition:color 0.3s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0;
      width: 0; height: 1px;
      background: currentColor;
      transition: width 0.3s cubic-bezier(0, 0, 0.2, 1);
    }
    .nav-links a:hover::after { width: 100%; }
    body.dark-mode .nav-links a { color:rgba(255,255,255,0.4); }
    .nav-links a:hover { color:var(--ink); }
    body.dark-mode .nav-links a:hover { color:#fff; }
    .nav-burger {
      display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px;
    }
    .nav-burger span {
      display:block; width:24px; height:1px; background:#999;
      transition:background 0.3s;
    }
    body.dark-mode .nav-burger span { background:rgba(255,255,255,0.5); }
    .mobile-menu {
      display:none; position:fixed; inset:0; background:var(--paper); z-index:99;
      flex-direction:column; align-items:center; justify-content:center; gap:40px;
    }
    .mobile-menu.open { display:flex; }
    .mobile-menu a {
      font-family:'Playfair Display',serif; font-size:2.5rem;
      color:var(--ink); text-decoration:none;
    }
    .mobile-menu__close {
      position: absolute;
      top: 28px; right: 28px;
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      background: none; border: 1px solid rgba(0,0,0,0.15); border-radius: 50%;
      cursor: pointer; color: var(--ink);
      transition: border-color 0.2s, background 0.2s;
    }
    .mobile-menu__close:hover { border-color: var(--ink); background: rgba(0,0,0,0.06); }

    /* ─── PROJECTS — HORIZONTAL FILM REEL ─── */
    #projects {
      background: var(--ink);
      position: relative;
    }

    /* The sticky scroll container */
    #projects-pin {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
    }

    /* Giant ghost index number — behind everything */
    #ghost-number {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-family: 'Playfair Display', serif;
      font-weight: 900;
      font-size: clamp(38vw, 42vw, 560px);
      line-height: 1;
      letter-spacing: -0.05em;
      color: transparent;
      -webkit-text-stroke: 1px rgba(255,255,255,0.04);
      pointer-events: none;
      z-index: 0;
      user-select: none;
      white-space: nowrap;
      transition: opacity 0.5s ease;
    }

    /* Header row — above cards, clear of nav */
    #projects-header {
      position: absolute;
      top: 88px; left: 64px;
      z-index: 10;
      display: flex; align-items: center; gap: 20px;
      opacity: 0; transform: translateY(-12px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    #projects-header.visible { opacity: 1; transform: translateY(0); }
    .section-label {
      font-size: 0.65rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase;
      color: var(--gold); display: flex; align-items: center; gap: 20px;
    }
    .section-label::before {
      content: ''; display: block; width: 40px; height: 1px;
      background: var(--gold); opacity: 0.5;
    }

    /* Counter top right */
    #projects-counter {
      position: absolute;
      top: 52px; right: 64px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem; letter-spacing: 0.25em;
      color: rgba(255,255,255,0.25);
      z-index: 10; opacity: 0;
      transition: opacity 0.7s ease 0.2s;
    }
    #projects-counter.visible { opacity: 1; }
    #projects-counter span { color: rgba(255,255,255,0.6); }

    /* Horizontal track — padding-top clears the Featured Work label */
    #projects-track {
      display: flex; align-items: center;
      height: 100vh;
      padding: 148px 64px 40px;
      gap: 24px;
      will-change: transform;
      position: relative; z-index: 2;
    }

    /* Each film frame */
    .film-card {
      position: relative;
      flex-shrink: 0;
      height: calc(100vh - 188px);
      cursor: pointer;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      /* No transition here — tilt JS writes its own transition per mousemove/leave */
      /* No will-change — promoted individually by the entrance animation */
    }
    .film-card--wide { width: clamp(520px, 55vw, 780px); }
    .film-card--reg  { width: clamp(340px, 36vw, 500px); }

    /* Inner — clips overflow for image */
    .film-card__inner {
      position: absolute; inset: 0;
      overflow: hidden;
    }

    /* Image — desaturated on idle, full colour on hover */
    .film-card__img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      transform: scale(1.04);
      filter: saturate(0.15) brightness(0.85);
      transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  filter 0.7s ease;
    }
    .film-card:hover .film-card__img {
      transform: scale(1.0);
      filter: saturate(1) brightness(1);
    }

    /* Specular glint — follows cursor via CSS vars */
    .film-card__glint {
      position: absolute; inset: 0;
      pointer-events: none;
      background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,0.07) 0%,
        transparent 55%
      );
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .film-card:hover .film-card__glint { opacity: 1; }

    /* Info strip */
    .film-card__info {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 64px 32px 32px;
      background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 65%, transparent 100%);
      display: flex; flex-direction: column; gap: 10px;
      pointer-events: none;
    }
    .film-card__num {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 400;
      letter-spacing: 0.35em; text-transform: uppercase;
      color: var(--gold); opacity: 0.7;
    }
    .film-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .film-card__tag {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 400;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: rgba(255,255,255,0.65);
      border: 1px solid rgba(255,255,255,0.22);
      padding: 4px 12px;
    }
    .film-card__title {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: clamp(1.4rem, 2.8vw, 2.2rem);
      color: #fff; line-height: 1.05;
      display: flex; align-items: flex-end;
      justify-content: space-between; gap: 16px;
    }
    .film-card__arrow {
      width: 38px; height: 38px; flex-shrink: 0;
      border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.3s, background 0.3s;
    }
    .film-card:hover .film-card__arrow {
      border-color: var(--gold); background: rgba(200,169,110,0.12);
    }
    .film-card__arrow svg { width: 14px; height: 14px; color: #fff; }

    /* Drag hint */
    #drag-hint {
      position: absolute;
      bottom: 40px; left: 50%; transform: translateX(-50%);
      display: flex; align-items: center; gap: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
      color: rgba(255,255,255,0.2);
      pointer-events: none; z-index: 10;
      opacity: 0; transition: opacity 0.6s ease;
    }
    #drag-hint.visible { opacity: 1; }
    #drag-hint svg { width: 20px; color: rgba(255,255,255,0.2); }

    /* Progress bar */
    #reel-progress {
      position: absolute; bottom: 0; left: 0;
      height: 1px; background: var(--gold);
      width: 0%; opacity: 0.5; z-index: 10;
      transition: width 0.05s linear;
    }

    /* Mobile */
    @media (max-width: 768px) {
      #projects {
        height: auto !important;
        padding: 0;
        overflow: visible;
      }
      #projects-pin {
        height: auto;
        position: relative;
        overflow: visible;
        touch-action: pan-x;
      }
      #projects-track {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        height: auto;
        padding: 84px 20px 34px;
        gap: 14px;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        touch-action: pan-x;
        transform: none !important;
        -webkit-user-select: none;
        user-select: none;
        will-change: scroll-position;
      }
      #projects-track::-webkit-scrollbar { display: none; }
      .film-card--wide,
      .film-card--reg {
        width: calc(100vw - 56px);
        height: clamp(300px, 68svh, 520px);
        flex: 0 0 calc(100vw - 56px);
      }
      #projects-track .film-card {
        opacity: 0.6;
        transform: none !important;
        transition: opacity 0.3s ease;
        /* Critical: tell the browser this entire card (including <a> links)
           allows horizontal panning — prevents iOS Safari from locking the
           touch to the anchor element when swipe starts in the middle */
        touch-action: pan-x;
        -webkit-user-select: none;
        user-select: none;
      }
      /* Apply pan-x to every descendant so no child can block the swipe */
      #projects-track .film-card *,
      #projects-track .film-card__inner,
      #projects-track .film-card__img,
      #projects-track .film-card__info,
      #projects-track .film-card__glint {
        touch-action: pan-x;
        pointer-events: none;
      }
      /* Re-enable pointer events on the card itself for tap-to-navigate */
      #projects-track .film-card {
        pointer-events: auto;
      }
      #projects-track .film-card.is-mobile-active {
        opacity: 1;
        transform: none !important;
      }
      .film-card__img {
        filter: saturate(1) brightness(1);
        transform: scale(1.02);
      }
      .film-card__info { padding: 80px 22px 24px; }
      .film-card__tags { gap: 5px; }
      .film-card__tag {
        font-size: 0.5rem;
        letter-spacing: 0.16em;
        padding: 4px 8px;
      }
      .film-card__title {
        font-size: clamp(1.65rem, 9vw, 2.55rem);
        gap: 12px;
      }
      #projects-header { top: 28px; left: 24px; }
      #projects-counter { top: 32px; right: 24px; }
      #drag-hint, #ghost-number { display: none; }
      .film-card { scroll-snap-align: center; }
      #projects-track {
        scroll-padding-inline: 16px;
        padding-left: 16px;
        padding-right: 16px;
      }
    }

    /* ─── WORK HISTORY — SPOTLIGHT HOVER ─── */
    #work {
      background: var(--ink);
      padding: 140px 0 0;
      overflow: hidden;
    }
    #work .section-label {
      color: var(--gold); opacity: 1;
      padding: 0 72px;
      margin-bottom: 60px;
    }
    #work .section-label::before { background: var(--gold); }

    .work-list {
      display: flex;
      flex-direction: column;
    }

    /* Each role row */
    .work-item {
      display: grid;
      grid-template-columns: 200px 1fr 180px;
      gap: 0;
      padding: 52px 72px;
      border-top: 1px solid rgba(255,255,255,0.06);
      cursor: default;
      position: relative;
      overflow: hidden;
      z-index: 0;
      /* Initial hidden state for entrance animation */
      opacity: 0;
      transform: translateY(20px);
      /* Entrance + spotlight share the same transition */
      transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.16,1,0.3,1);
    }
    .work-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.06); }

    /* ── VIDEO BG per row ── */
    .work-video-bg {
      position: absolute;
      top: 0; right: 0;
      width: 55%;      /* occupies right 55% of the row */
      height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.7s ease;
    }
    .work-video-bg video {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }
    /* Eagle is portrait — centre on face */
    .work-video-bg--eagle video { object-position: center 20% !important; }

    /* Fade mask — black bleeds in from the left over the video */
    .work-video-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        #0A0A0A 0%,
        #0A0A0A 15%,
        rgba(10,10,10,0.85) 35%,
        rgba(10,10,10,0.4) 60%,
        rgba(10,10,10,0.1) 100%
      );
      z-index: 1;
    }

    /* Show video on active */
    .work-list.has-hover .work-item.is-active .work-video-bg {
      opacity: 1;
    }

    /* All text content sits above video */
    .work-years,
    .work-centre,
    .work-location { position: relative; z-index: 2; }

    /* Dim/shift inactive rows — only affects entered items */
    .work-list.has-hover .work-item.work-entered:not(.is-active) {
      opacity: 0.15;
      transform: translateX(-12px);
    }
    .work-list.has-hover .work-item.work-entered.is-active {
      opacity: 1;
      transform: translateX(16px);
    }

    /* Gold accent line */
    .work-item::after {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 2px;
      background: var(--gold);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
      z-index: 3;
    }
    .work-list.has-hover .work-item.is-active::after {
      transform: scaleY(1);
    }

    /* Years */
    .work-years {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.68rem; letter-spacing: 0.15em;
      color: rgba(255,255,255,0.3);
      padding-top: 6px;
      transition: color 0.3s ease;
    }
    .work-list.has-hover .work-item.is-active .work-years { color: var(--gold); }

    /* Centre column */
    .work-centre { display: flex; flex-direction: column; gap: 10px; }

    .work-company {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      font-weight: 400; color: #fff; line-height: 1.1;
    }
    /* New: position title — prominent, sits below company */
    .work-position {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(0.75rem, 1.1vw, 0.95rem);
      font-weight: 400;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      margin-top: 4px;
      opacity: 0.85;
    }
    .work-role {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.78rem; color: rgba(255,255,255,0.35);
      font-weight: 300; line-height: 1.5; max-width: 480px;
      transition: color 0.3s ease;
    }
    .work-list.has-hover .work-item.is-active .work-role { color: rgba(255,255,255,0.65); }

    /* Tags — slide up on active */
    .work-tags {
      display: flex; flex-wrap: wrap; gap: 6px;
      margin-top: 4px;
      overflow: hidden;
      max-height: 0; opacity: 0;
      transition: max-height 0.4s ease, opacity 0.3s ease 0.05s;
    }
    .work-list.has-hover .work-item.is-active .work-tags { max-height: 60px; opacity: 1; }
    .work-tag {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 400;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--gold);
      border: 1px solid rgba(200,169,110,0.3);
      padding: 3px 10px;
    }

    /* Location */
    .work-location {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(255,255,255,0.18); text-align: right;
      padding-top: 6px; align-self: start;
      transition: color 0.3s ease;
    }
    .work-list.has-hover .work-item.is-active .work-location { color: rgba(255,255,255,0.4); }

    /* Work item entrance — revealed by JS adding .work-entered */
    .work-item.work-entered {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 768px) {
      #work { padding: 80px 0; }
      #work .section-label { padding: 0 24px; margin-bottom: 60px; }

      .work-item {
        /* Switch from 3-col grid to single column, but keep position:relative for video */
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 40px 24px 40px;
        min-height: 280px;
        position: relative;
        overflow: hidden;
        isolation: isolate;
      }

      /* ── Video: right 60% of the row, always visible, fades left into text ── */
      .work-video-bg {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 60% !important;
        height: 100% !important;
        opacity: 1 !important;
        transition: none !important;
        pointer-events: none;
        z-index: 0;
      }

      .work-video-bg video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        opacity: 1 !important;
        filter: saturate(0.7) brightness(0.7) !important;
        display: block !important;
      }

      /* Gradient overlay: solid dark on left (text), transparent on right (video) */
      .work-video-bg::before {
        background: linear-gradient(
          to right,
          rgba(10,10,10,1.0) 0%,
          rgba(10,10,10,0.97) 20%,
          rgba(10,10,10,0.75) 50%,
          rgba(10,10,10,0.2)  85%,
          rgba(10,10,10,0.05) 100%
        ) !important;
        z-index: 1;
      }

      /* ── Text sits above video at z-index 2 ── */
      .work-years,
      .work-centre,
      .work-location {
        position: relative !important;
        z-index: 2 !important;
      }

      /* ── Text colours — always readable on mobile ── */
      .work-item .work-years   { color: var(--gold) !important; }
      .work-item .work-company { color: #fff !important; }
      .work-item .work-position { color: var(--gold) !important; opacity: 1 !important; }
      .work-item .work-role    { color: rgba(255,255,255,0.58) !important; }
      .work-item .work-location { color: rgba(255,255,255,0.3) !important; text-align: left !important; }
      .work-item .work-tag     { color: var(--gold) !important; }

      /* Tags always visible (not hover-gated) */
      .work-tags { max-height: none !important; opacity: 1 !important; }

      /* No hover/active transforms on mobile */
      .work-list.has-hover .work-item.is-active { transform: none !important; }
      .work-list.has-hover .work-item:not(.is-active) { transform: none !important; opacity: 1 !important; }
    }

    /* ─── CONTACT / FOOTER ─── */
    #contact {
      background: var(--ink);
      padding: 120px 48px 60px;
      position: relative;
      overflow: hidden;
    }
    #contact-video-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }
    #contact-video-bg video {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
      opacity: 0; /* JS animates this up to 0.85 */
      transition: none;
    }
    /* Lighter overlay — video breathes through */
    #contact-video-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(10,10,10,0.30);
      pointer-events: none;
    }
    /* All contact content above video */
    .contact-grid,
    .footer-bottom { position: relative; z-index: 1; }
    .contact-grid {
      display:grid; grid-template-columns:1fr 1fr; gap:80px;
      max-width:1100px; margin:0 auto 80px;
      align-items: start;
    }
    .contact-left .big-text {
      font-family:'Playfair Display',serif; font-size:clamp(2.5rem,5vw,4.5rem);
      font-weight:700; color:#fff; line-height:1.05; margin-bottom:40px;
    }
    .contact-left .big-text em { font-style:italic; color:var(--gold); }
    .social-row { display:flex; align-items:center; gap:20px; margin-bottom:24px; }
    .social-icon {
      width:44px; height:44px; border:1px solid rgba(255,255,255,0.15); border-radius:50%;
      display:flex; align-items:center; justify-content:center;
      color:rgba(255,255,255,0.5); text-decoration:none;
      transition:border-color 0.3s, color 0.3s, background 0.3s;
    }
    .social-icon:hover { border-color:var(--gold); color:var(--gold); background:rgba(200,169,110,0.08); }
    .social-icon svg { width:18px; height:18px; }
    .resume-btn {
      display:inline-flex; align-items:center; gap:10px;
      font-size:0.72rem; font-weight:500; letter-spacing:0.25em; text-transform:uppercase;
      color:#fff; border:1px solid rgba(255,255,255,0.2); padding:14px 28px;
      text-decoration:none; transition:border-color 0.3s, background 0.3s, color 0.3s;
    }
    .resume-btn:hover { border-color:var(--gold); background:rgba(200,169,110,0.08); color:var(--gold); }
    .resume-btn svg { width:14px; height:14px; }
    .contact-form { display:flex; flex-direction:column; gap:32px; }
    .hidden-field { display:none; }
    .form-field {
      border-bottom:1px solid rgba(255,255,255,0.15); padding-bottom:12px;
      transition:border-color 0.3s;
    }
    .form-field:focus-within { border-color:var(--gold); }
    .form-field label {
      display:block; font-size:0.62rem; font-weight:500;
      letter-spacing:0.3em; text-transform:uppercase;
      color:rgba(255,255,255,0.3); margin-bottom:10px;
    }
    .form-field input, .form-field textarea {
      width:100%; background:transparent; border:none; outline:none;
      color:#fff; font-family:'DM Sans',sans-serif;
      font-size:1rem; font-weight:300; caret-color:var(--gold);
    }
    .form-field textarea { resize:none; min-height:100px; }
    .form-field input::placeholder,
    .form-field textarea::placeholder { color:rgba(255,255,255,0.2); }
    .submit-btn {
      align-self:flex-start; display:inline-flex; align-items:center; gap:12px;
      font-size:0.72rem; font-weight:500; letter-spacing:0.25em; text-transform:uppercase;
      color:var(--ink); background:#fff; border:1px solid #fff; padding:16px 36px;
      cursor:pointer; transition:background 0.3s, color 0.3s, border-color 0.3s;
    }
    .submit-btn:hover { background:var(--gold); border-color:var(--gold); color:#fff; }
    .submit-btn.sending { opacity:0.6; pointer-events:none; }
    .form-message { font-size:0.8rem; color:var(--gold); padding-top:8px; }
    .footer-bottom {
      display:flex; align-items:center; justify-content:space-between;
      padding-top:48px; border-top:1px solid rgba(255,255,255,0.06);
      max-width:1100px; margin:0 auto;
    }
    .footer-bottom p { font-size:0.7rem; letter-spacing:0.15em; color:rgba(255,255,255,0.3); }

    /* ─── PROJECT INNER PAGES ─── */
    .project-page { display:none; }
    .project-page.active {
      display:block; position:fixed; inset:0; z-index:200;
      background:var(--ink); overflow-y:auto;
      overflow-x:hidden;
      animation:pageIn 0.5s ease forwards;
    }
    @keyframes pageIn {
      from { opacity:0; transform:translateY(30px); }
      to   { opacity:1; transform:translateY(0); }
    }
    .project-page-nav {
      position:sticky; top:0; z-index:10; padding:24px 48px;
      display:flex; align-items:center; justify-content:space-between;
      background:rgba(10,10,10,0.9);
      -webkit-backdrop-filter:blur(12px);
      backdrop-filter:blur(12px);
    }
    .back-btn {
      display:flex; align-items:center; gap:10px;
      font-size:0.7rem; font-weight:500; letter-spacing:0.2em; text-transform:uppercase;
      color:rgba(255,255,255,0.4); cursor:pointer; background:none; border:none;
      transition:color 0.3s;
    }
    .back-btn:hover { color:#fff; }
    .back-btn svg { width:16px; height:16px; }
    @media (max-width: 768px) {
      .back-btn { font-size: 0.8rem; padding: 8px 0; }
      .back-btn svg { width: 20px; height: 20px; }
    }
    .project-page-content { width:100%; max-width:960px; margin:0 auto; padding:80px 48px 120px; overflow:hidden; }
    .pp-eyebrow {
      font-size:0.65rem; letter-spacing:0.35em; text-transform:uppercase;
      color:var(--gold); margin-bottom:20px;
    }
    .pp-title {
      font-family:'Playfair Display',serif; font-size:clamp(2.5rem,6vw,5rem);
      font-weight:900; color:#fff; line-height:0.95; margin-bottom:48px;
    }
    .pp-hero-img { width:100%; aspect-ratio:16/9; object-fit:cover; margin-bottom:80px; }
    .pp-overview {
      display:grid; grid-template-columns:1fr 2fr; gap:60px;
      margin-bottom:80px; padding-bottom:60px;
      border-bottom:1px solid rgba(255,255,255,0.06);
    }
    .pp-overview-label {
      font-size:0.65rem; letter-spacing:0.3em; text-transform:uppercase;
      color:rgba(255,255,255,0.25);
    }
    .pp-overview-tags { display:flex; flex-direction:column; gap:8px; }
    .pp-overview-tag { font-size:0.8rem; color:rgba(255,255,255,0.5); font-weight:300; }
    .pp-overview-text { font-size:1.05rem; line-height:1.8; color:rgba(255,255,255,0.6); font-weight:300; }
    .pp-gallery { display:flex; flex-direction:column; gap:3px; }
    .pp-gallery img { width:100%; max-width:100%; object-fit:cover; display:block; }
    .pp-gallery img.inset { width:80%; margin:0 auto; }
    .pp-section-title {
      font-family:'Playfair Display',serif; font-size:1.8rem; font-weight:400;
      color:#fff; margin:60px 0 24px;
    }
    .pp-list { list-style:none; display:flex; flex-direction:column; gap:12px; padding:0; }
    .pp-list li {
      font-size:0.9rem; color:rgba(255,255,255,0.5); font-weight:300;
      padding-left:20px; position:relative;
    }
    .pp-list li::before { content:'—'; position:absolute; left:0; color:var(--gold); }
    .next-project-bar {
      margin-top:100px; padding-top:40px;
      border-top:1px solid rgba(255,255,255,0.06);
    }
    .next-project-bar > span {
      font-size:0.65rem; letter-spacing:0.35em; text-transform:uppercase;
      color:rgba(255,255,255,0.2); display:block; margin-bottom:8px;
    }
    .next-project-link {
      font-family:'Playfair Display',serif;
      font-size:clamp(3.25rem, 6vw, 5rem);
      font-weight:700;
      color:#fff; cursor:pointer; background:none; border:none;
      display:inline-flex; align-items:center; gap:0.32em; transition:color 0.3s;
      max-width:100%;
      padding:0.08em 0.38em 0.16em 0;
      line-height:1.08;
      text-align:left;
      overflow:visible;
    }

    .project-page img,
    .project-page video,
    .project-page iframe {
      max-width: 100%;
    }
    .next-project-link:hover { color:var(--gold); }

    /* ─── HERO INTERACTIVE HOVERS ─── */

    /* ── design ↔ business fluid swap ── */
    .hero-swap {
      position: relative;
      display: inline-flex;
      overflow: visible;
      vertical-align: bottom;
      cursor: default;
      transition: width 0.28s cubic-bezier(0.34,1.56,0.64,1);
      /* Extra padding so back text never clips */
      padding-bottom: 0.2em;
      margin-bottom: -0.2em;
    }
    .hero-swap__front,
    .hero-swap__back {
      display: block;
      white-space: nowrap;
      transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    }
    .hero-swap__back {
      position: absolute;
      left: 0; top: 0;
      opacity: 0;
      transform: translateY(8px);
      color: var(--gold); /* default gold; JS overrides per-swap where needed */
      pointer-events: none;
      white-space: nowrap;
    }
    .hero-swap:hover .hero-swap__front { opacity:0; transform:translateY(-8px); }
    .hero-swap:hover .hero-swap__back  { opacity:1; transform:translateY(0); pointer-events:auto; }
    .hero-swap.is-swapped .hero-swap__front { opacity:0; transform:translateY(-8px); }
    .hero-swap.is-swapped .hero-swap__back  { opacity:1; transform:translateY(0); pointer-events:auto; }

    /* "and counting." — letter-spacing breathes out on appear */
    #exp-swap:hover .hero-swap__back {
      animation: countingExpand 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
    }
    @keyframes countingExpand {
      from { letter-spacing: 0.3em; }
      to   { letter-spacing: 0.5em; }
    }

    /* "and counting." — centered under "13+ Years of Experience" */
    #exp-swap .hero-swap__back {
      left: 50%;
      transform: translateX(-50%) translateY(8px);
    }
    #exp-swap:hover .hero-swap__back {
      transform: translateX(-50%) translateY(0);
    }

    /* Role cycler */
    #hero-role { cursor:default; display:inline-block; transition:opacity 0.12s ease; }

    /* Experience — centre align */
    #darkExp { text-align: center; overflow: visible; }

    /* ─── NAME FLASHLIGHT CALLIGRAPHY ─── */
    #darkName {
      position: relative;
      cursor: none;
      display: inline-block;
    }
    @media (hover: none), (pointer: coarse) {
      #darkName,
      .hero-swap {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        /* pan-y was blocking the JS pointerdown/up swap — removed */
        touch-action: manipulation;
      }
    }

    /* Bottom layer — Arabic SVG, sized to cover English name fully */
    #name-arabic-svg {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, black 0%, transparent 1%);
      mask-image:         radial-gradient(circle 0px at 50% 50%, black 0%, transparent 1%);
    }
    #name-arabic-svg svg {
      width: 100%; height: 100%;
      display: block;
    }

    /* Top layer — solid white English name */
    #name-solid {
      position: relative;
      z-index: 2;
      display: block;
    }

    /* Torch cursor */
    #torch-cursor {
      position: fixed;
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(200,169,110,0.95);
      box-shadow: 0 0 16px 6px rgba(200,169,110,0.35),
                  0 0 40px 16px rgba(200,169,110,0.12);
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%,-50%);
      display: none;
    }

    /* ─── CURTAIN PAGE TRANSITION ─── */
    #page-curtain {
      position: fixed;
      inset: 0;
      background: var(--ink);
      z-index: 500;
      transform: scaleY(0);
      transform-origin: top;
      pointer-events: none;
    }
    #page-curtain.drop   { animation: curtainDrop 0.45s cubic-bezier(0.76,0,0.24,1) forwards; pointer-events: auto; }
    #page-curtain.lift   { animation: curtainLift 0.45s cubic-bezier(0.76,0,0.24,1) forwards; pointer-events: auto; }
    @keyframes curtainDrop {
      from { transform: scaleY(0); transform-origin: top; }
      to   { transform: scaleY(1); transform-origin: top; }
    }
    @keyframes curtainLift {
      from { transform: scaleY(1); transform-origin: bottom; }
      to   { transform: scaleY(0); transform-origin: bottom; }
    }

    /* Project pages — no animation on their own (curtain handles it) */
    .project-page.active { animation: none; }
    #reel-section {
      position: relative;
      background: var(--ink);
      overflow: hidden;
      /* Ensure no white flash — black beneath the fade-in */
      isolation: isolate;
    }
    /* Reel reveal — fade from ink not from transparent */
    #reel-section.revealed { opacity: 1; transform: translateY(0); }
    #reel-section:not(.revealed) { background: var(--ink); }
    /* Cinematic 21:9 ratio container */
    #reel-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 21 / 9;
      overflow: hidden;
    }
    @media (max-width: 768px) {
      #reel-frame { aspect-ratio: 16 / 9; }
    }
    /* Vimeo iframe fills frame */
    #reel-frame iframe {
      position: absolute;
      top: 50%; left: 50%;
      width: 177.78%;   /* 16:9 scaled to fill 21:9 */
      height: 100%;
      transform: translate(-50%, -50%);
      pointer-events: none; /* muted preview — no controls */
      border: none;
    }
    /* Overlay — blocks interaction, enables the watch button */
    #reel-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.5) 0%,
        rgba(10,10,10,0.1) 40%,
        rgba(10,10,10,0.1) 60%,
        rgba(10,10,10,0.6) 100%
      );
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    #reel-overlay:hover #reel-play-btn { transform: scale(1.08); border-color: var(--gold); }
    #reel-play-btn {
      display: flex; flex-direction: column; align-items: center; gap: 16px;
      transition: transform 0.3s ease;
    }
    @keyframes reelBreathe {
      0%, 100% { transform: scale(1); }
      50%       { transform: scale(1.06); }
    }
    #reel-play-circle {
      width: 72px; height: 72px;
      border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.3s ease, background 0.3s ease;
      background: rgba(255,255,255,0.05);
      animation: reelBreathe 3s ease-in-out infinite;
    }
    #reel-overlay:hover #reel-play-circle {
      border-color: var(--gold);
      background: rgba(200,169,110,0.1);
      animation: none;
    }
    #reel-play-circle svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
    #reel-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem; font-weight: 400;
      letter-spacing: 0.4em; text-transform: uppercase;
      color: rgba(255,255,255,0.5);
    }
    /* Dark wrapper ensures no white shows during reel fade-in */
    #reel-wrapper { background: var(--ink); }
    /* Reveal: fade only — no translateY which exposes white body beneath */
    #reel-section { opacity: 0; transition: opacity 0.9s ease; }
    #reel-section.revealed { opacity: 1; }

    /* Lightbox */
    #reel-lightbox {
      position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.95);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s ease;
    }
    #reel-lightbox.open { opacity: 1; pointer-events: auto; }
    #reel-lightbox-inner {
      position: relative;
      width: 90vw; max-width: 1200px;
      aspect-ratio: 16 / 9;
    }
    #reel-lightbox-inner iframe {
      width: 100%; height: 100%; border: none;
    }
    #reel-lightbox-close {
      position: absolute; top: -44px; right: 0;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
      color: rgba(255,255,255,0.4); cursor: pointer; background: none; border: none;
      display: flex; align-items: center; gap: 8px;
      transition: color 0.2s;
    }
    #reel-lightbox-close:hover { color: #fff; }

    /* ── Reel card entrance system ──
       Cards start hidden via CSS (opacity:0 on #projects-track .film-card).
       JS sets --enter-dx and animationDelay, then adds .reel-entering via rAF
       so the browser paints the pre-animation state before the keyframe starts.
       After completion JS swaps to .reel-done (opacity:1) and cleans up. */

    /* Desktop: hidden until entrance fires */
    #projects-track .film-card {
      opacity: 0;
      transition: opacity 0.55s ease;
    }
    /* Revealed after animation completes — JS adds this class */
    #projects-track .film-card.reel-done {
      opacity: 1;
    }

    @keyframes reelCardIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    .film-card.reel-entering {
      animation: reelCardIn 0.55s ease both;
      will-change: opacity;
    }

    /* ─── SECTION DIVIDERS ─── */
    .section-divider {
      height: 1px;
      background: linear-gradient(to right, transparent, var(--gold), transparent);
      opacity: 0.2;
      margin: 0;
    }

    /* ─── NAV BACKDROP ON SCROLL ─── */
    nav { transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease; }
    nav.scrolled {
      background: rgba(10,10,10,0.7);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      padding-top: 16px; padding-bottom: 16px;
    }

    /* ─── FORM LABEL ANIMATION ─── */
    .form-field label {
      transition: color 0.25s ease, transform 0.25s ease;
      display: block;
      transform: translateY(0);
    }
    .form-field:focus-within label {
      color: var(--gold);
      transform: translateY(-3px);
    }

    /* ─── CASE STUDY — NAJAHI ─── */
    .cs-hero {
      width: 100%; aspect-ratio: 16/9;
      object-fit: cover; display: block;
      margin-bottom: 0;
    }
    .cs-intro {
      display: grid;
      grid-template-columns: 1fr 1.8fr;
      gap: 80px;
      padding: 80px 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 80px;
    }
    .cs-meta { display: flex; flex-direction: column; gap: 32px; }
    .cs-meta-block { display: flex; flex-direction: column; gap: 8px; }
    .cs-meta-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.58rem; font-weight: 500;
      letter-spacing: 0.4em; text-transform: uppercase;
      color: var(--gold); opacity: 0.7;
    }
    .cs-meta-value {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem; font-weight: 300;
      color: rgba(255,255,255,0.6); line-height: 1.6;
    }
    .cs-meta-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
    .cs-meta-tag {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 400;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      border: 1px solid rgba(255,255,255,0.12);
      padding: 4px 12px;
    }
    .cs-overview-text {
      font-family: 'Playfair Display', serif;
      font-style: italic; font-weight: 300;
      font-size: clamp(1.1rem, 1.8vw, 1.45rem);
      color: rgba(255,255,255,0.75);
      line-height: 1.7;
    }

    /* Impact stats bar */
    .cs-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      margin-bottom: 80px;
    }
    .cs-stat {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 40px 32px;
      display: flex; flex-direction: column; gap: 8px;
    }
    .cs-stat-num {
      font-family: 'Playfair Display', serif;
      font-weight: 900;
      font-size: clamp(2rem, 3.5vw, 3rem);
      color: var(--gold);
      line-height: 1;
      letter-spacing: -0.02em;
    }
    .cs-stat-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.7rem; font-weight: 300;
      letter-spacing: 0.1em;
      color: rgba(255,255,255,0.4);
      line-height: 1.4;
    }

    /* Section blocks */
    .cs-section {
      margin-bottom: 80px;
      padding-bottom: 80px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .cs-section:last-of-type { border-bottom: none; }
    .cs-section-header {
      display: flex; align-items: baseline; gap: 20px;
      margin-bottom: 40px;
    }
    .cs-section-num {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.58rem; letter-spacing: 0.4em;
      text-transform: uppercase; color: var(--gold); opacity: 0.6;
    }
    .cs-section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.5rem, 2.5vw, 2.2rem);
      font-weight: 400; color: #fff; line-height: 1.1;
    }
    .cs-body {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem; font-weight: 300;
      color: rgba(255,255,255,0.5); line-height: 1.8;
      max-width: 680px;
      margin-bottom: 40px;
    }

    /* Deliverable pills */
    .cs-deliverables {
      display: flex; flex-wrap: wrap; gap: 8px;
      margin-bottom: 40px;
    }
    .cs-deliverable {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem; font-weight: 400;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold);
      border: 1px solid rgba(200,169,110,0.25);
      padding: 6px 16px;
    }

    /* Gallery layouts */
    .cs-gallery-full { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
    .cs-gallery-full img { width: 100%; display: block; object-fit: cover; }
    .cs-gallery-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px; margin-bottom: 40px;
    }
    .cs-gallery-grid img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
    .cs-gallery-grid .cs-span { grid-column: 1 / -1; aspect-ratio: 21/9; }
    .cs-gallery-trio {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 3px; margin-bottom: 40px;
    }
    .cs-gallery-trio img { width: 100%; display: block; object-fit: cover; }
    .cs-gallery-trio .cs-trio-right {
      display: flex; flex-direction: column; gap: 3px;
    }
    .cs-gallery-trio .cs-trio-right img { flex: 1; height: calc(50% - 1.5px); }

    /* Challenge block */
    .cs-challenge-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0; margin-bottom: 40px;
    }
    .cs-challenge-item {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 32px;
    }
    .cs-challenge-num {
      font-family: 'Playfair Display', serif;
      font-size: 2rem; font-weight: 900;
      color: rgba(200,169,110,0.2);
      line-height: 1; margin-bottom: 16px;
      letter-spacing: -0.03em;
    }
    .cs-challenge-title {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.75rem; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: #fff; margin-bottom: 10px;
    }
    .cs-challenge-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.78rem; font-weight: 300;
      color: rgba(255,255,255,0.4); line-height: 1.6;
    }

    /* Quote pull */
    .cs-quote {
      border-left: 2px solid var(--gold);
      padding: 24px 32px;
      margin: 40px 0;
      background: rgba(200,169,110,0.04);
      opacity: 0;
      transform: translateX(-12px);
      transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0, 0, 0.2, 1);
    }
    .cs-quote.img-revealed {
      opacity: 1;
      transform: translateX(0);
    }
    .cs-quote p {
      font-family: 'Playfair Display', serif;
      font-style: italic; font-weight: 300;
      font-size: clamp(1rem, 1.6vw, 1.3rem);
      color: rgba(255,255,255,0.7); line-height: 1.6;
    }

    /* ─── BROWSER MOCKUP ─── */
    .cs-mockup-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 16px;
      margin-bottom: 40px;
    }
    .cs-mockup-row.cs-mockup-row--tall {
      grid-template-columns: 1.6fr 1fr;
    }
    .cs-browser {
      border-radius: 10px;
      overflow: hidden;
      background: #1a1a1a;
      box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    }
    .cs-browser__bar {
      background: #2a2a2a;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .cs-browser__dots {
      display: flex; gap: 6px;
    }
    .cs-browser__dot {
      width: 10px; height: 10px; border-radius: 50%;
    }
    .cs-browser__dot:nth-child(1) { background: #ff5f57; }
    .cs-browser__dot:nth-child(2) { background: #ffbd2e; }
    .cs-browser__dot:nth-child(3) { background: #28c940; }
    .cs-browser__url {
      flex: 1;
      background: rgba(255,255,255,0.06);
      border-radius: 4px;
      padding: 4px 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.62rem;
      color: rgba(255,255,255,0.3);
      letter-spacing: 0;
    }
    .cs-browser__screen {
      width: 100%;
      display: block;
      aspect-ratio: 16/10;
      object-fit: cover;
      object-position: top center;
    }
    .cs-mockup-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.6rem; font-weight: 400;
      letter-spacing: 0.3em; text-transform: uppercase;
      color: rgba(255,255,255,0.3);
      text-align: center;
      margin-top: 10px;
    }
    @media (max-width: 768px) {
      .cs-mockup-row { grid-template-columns: 1fr; }
      .cs-mockup-row.cs-mockup-row--tall { grid-template-columns: 1fr; }
      .cs-browser { border-radius: 6px; }
      .cs-browser__bar { padding: 8px 10px; gap: 8px; }
      .cs-browser__url {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    .cs-before-after {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 40px;
    }
    .cs-ba-panel { position: relative; }
    .cs-ba-label {
      position: absolute;
      top: 16px; left: 16px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 500;
      letter-spacing: 0.35em; text-transform: uppercase;
      padding: 4px 12px;
      z-index: 2;
    }
    .cs-ba-label.before {
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.4);
      border: 1px solid rgba(255,255,255,0.12);
    }
    .cs-ba-label.after {
      background: rgba(200,169,110,0.15);
      color: var(--gold);
      border: 1px solid rgba(200,169,110,0.3);
    }
    .cs-ba-panel img {
      width: 100%; display: block;
      object-fit: cover; aspect-ratio: 4/3;
    }

    /* Problem/Solution two-col */
    .cs-problem-solution {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 40px;
    }
    .cs-ps-block {
      padding: 36px 32px;
      border: 1px solid rgba(255,255,255,0.06);
      background: rgba(255,255,255,0.02);
    }
    .cs-ps-block.solution {
      background: rgba(200,169,110,0.04);
      border-color: rgba(200,169,110,0.12);
    }
    .cs-ps-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.55rem; font-weight: 500;
      letter-spacing: 0.4em; text-transform: uppercase;
      margin-bottom: 16px;
      color: rgba(255,255,255,0.25);
    }
    .cs-ps-block.solution .cs-ps-label { color: var(--gold); opacity: 0.7; }
    .cs-ps-list {
      list-style: none; padding: 0;
      display: flex; flex-direction: column; gap: 10px;
    }
    .cs-ps-list li {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.82rem; font-weight: 300;
      color: rgba(255,255,255,0.45); line-height: 1.5;
      padding-left: 18px; position: relative;
    }
    .cs-ps-list li::before {
      content: '×';
      position: absolute; left: 0;
      color: rgba(255,255,255,0.2);
    }
    .cs-ps-block.solution .cs-ps-list li { color: rgba(255,255,255,0.6); }
    .cs-ps-block.solution .cs-ps-list li::before {
      content: '✓';
      color: var(--gold);
    }

    /* Process timeline */
    .cs-process {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0;
      margin-bottom: 40px;
    }
    .cs-process-step {
      padding: 28px 20px;
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(255,255,255,0.06);
      display: flex; flex-direction: column; gap: 10px;
    }
    .cs-process-step-num {
      font-family: 'Playfair Display', serif;
      font-size: 1.6rem; font-weight: 900;
      color: rgba(200,169,110,0.18);
      line-height: 1;
    }
    .cs-process-step-title {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.7rem; font-weight: 500;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: #fff;
    }
    .cs-process-step-text {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.72rem; font-weight: 300;
      color: rgba(255,255,255,0.35); line-height: 1.5;
    }

    @media (max-width: 768px) {
      .cs-before-after { grid-template-columns: 1fr; }
      .cs-problem-solution { grid-template-columns: 1fr; }
      .cs-process { grid-template-columns: 1fr; }
    }

    .reveal { opacity:0; transform:translateY(16px); transition:opacity 0.8s ease, transform 0.8s cubic-bezier(0,0,0.2,1); }
    .reveal.visible { opacity:1; transform:translateY(0); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .section-label {
        transform: none;
        transition: opacity 0.6s ease;
      }
      .cs-gallery-full img,
      .cs-gallery-grid img,
      .cs-gallery-trio img,
      .cs-hero,
      .cs-section img {
        transform: none;
        transition: opacity 0.6s ease;
      }
    }

    @media (max-width:768px) {
      #hero {
        height: 100svh;
        min-height: 620px;
        background: var(--ink);
      }
      #hero-sticky {
        position: relative;
        height: 100svh;
        min-height: 620px;
      }
      #hero-white {
        display: none;
      }
      #hero-dark {
        opacity: 1;
      }
      @keyframes mobileHeroIn {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: none; }
      }
      #hero-dark .dark-eyebrow { animation: mobileHeroIn 0.7s ease 0.2s both; }
      #hero-dark .dark-name    { animation: mobileHeroIn 0.9s ease 0.4s both; }
      #hero-dark .dark-title   { animation: mobileHeroIn 0.7s ease 0.6s both; }
      #hero-dark .dark-exp     { animation: mobileHeroIn 0.6s ease 0.75s both; }
      #hero-ticker {
        display: none;
      }
      nav { padding:20px 24px; }
      .nav-links { display:none; }
      .nav-burger { display:flex; }
      #projects { padding:0; }
      /* Stale scale(0.96) rule removed — mobile uses opacity-only carousel */
      .projects-grid { grid-template-columns:1fr; }
      .project-card.full-width { grid-column:1; }
      .project-card.full-width .card-image { aspect-ratio:16/9; }
      #work { padding:80px 24px; }
      .work-item { grid-template-columns:1fr; gap:8px; }
      .work-location { text-align:left; }
      #contact { padding:80px 24px 40px; }
      /* Mobile footer: 70% video visibility */
      #contact-video-bg::after { background: rgba(10,10,10,0.30); }
      /* Ensure all contact text is white over the visible video */
      #contact .big-text,
      #contact .form-field label,
      #contact .form-field input,
      #contact .form-field textarea,
      #contact .footer-bottom p { color: #fff; }
      #contact .submit-btn {
        background: #fff;
        border-color: #fff;
        color: var(--ink);
      }
      #contact .submit-btn:hover,
      #contact .submit-btn:active {
        background: var(--gold);
        border-color: var(--gold);
        color: #fff;
      }
      #contact .form-field input::placeholder,
      #contact .form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
      #contact .form-field { border-bottom-color: rgba(255,255,255,0.3); }
      .contact-grid { grid-template-columns:1fr; gap:60px; }
      .social-row { flex-wrap: wrap; gap: 14px; }
      .resume-btn { width: 100%; justify-content: center; padding: 14px 18px; }
      .project-page.active {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
      }
      .project-page-content {
        max-width: 100%;
        padding: 40px 20px 80px;
      }
      .project-page-content,
      .project-page-content * {
        min-width: 0;
      }
      .project-page-content p,
      .project-page-content span,
      .project-page-content li,
      .project-page-content a {
        overflow-wrap: anywhere;
      }
      .project-page-nav { padding: 18px 24px; }
      .form-field input,
      .form-field textarea { font-size: 16px; }
      .pp-title {
        font-size: clamp(2.25rem, 15vw, 3.8rem);
        overflow-wrap: anywhere;
      }
      .next-project-link {
        width: 100%;
        font-size: clamp(2.35rem, 12vw, 3.5rem);
        align-items: flex-start;
        white-space: normal;
        overflow-wrap: anywhere;
      }
      .next-project-bar { margin-top: 72px; }
      .cs-hero { aspect-ratio: 4 / 3; }
      .cs-intro {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 0;
        margin-bottom: 56px;
      }
      .cs-stats,
      .cs-gallery-grid,
      .cs-gallery-trio,
      .cs-challenge-grid {
        grid-template-columns: 1fr;
      }
      .cs-section {
        margin-bottom: 56px;
        padding-bottom: 56px;
      }
      .cs-section-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 28px;
      }
      .cs-body {
        max-width: 100%;
      }
      .cs-stat,
      .cs-challenge-item,
      .cs-ps-block,
      .cs-process-step {
        min-width: 0;
        padding: 28px 22px;
      }
      .cs-gallery-grid .cs-span {
        aspect-ratio: 4 / 3;
      }
      .pp-overview { grid-template-columns:1fr; gap:32px; }
      #hero-ticker { height:36px; }
      .ticker-item { font-size:0.52rem; padding:0 20px; gap:20px; }
    }

    /* ─── CASE STUDY READING PROGRESS BAR ─── */
    #cs-progress-bar {
      position: fixed;
      top: 0; left: 0;
      height: 1px;
      width: 0%;
      background: var(--gold);
      z-index: 9999;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }
    #cs-progress-bar.visible { opacity: 1; }

    /* ─── NEXT PROJECT LINK — ARROW SLIDE ─── */
    .next-project-link svg {
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      width:0.58em;
      height:0.58em;
      margin-top:0.16em;
      flex-shrink: 0;
      overflow: visible;
    }
    .next-project-link .np-text {
      display: inline-block;
      color: currentColor;
      font-size: 1em;
      letter-spacing: 0;
      text-transform: none;
      line-height: 1.08;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .next-project-link:hover svg { transform: translateX(6px); }
    .next-project-link:hover .np-text { transform: translateX(4px); }

    /* ─── SECTION LABEL SCROLL REVEAL ─── */
    .section-label {
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .section-label.label-revealed {
      opacity: 1;
      transform: translateX(0);
    }
    /* Keep gold colour override working after reveal */
    #work .section-label { color: var(--gold); }
    #work .section-label::before { background: var(--gold); }

    /* ─── CASE STUDY IMAGE SCROLL REVEAL ─── */
    .cs-gallery-full img,
    .cs-gallery-grid img,
    .cs-gallery-trio img,
    .cs-hero,
    .cs-section img {
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0, 0, 0.2, 1);
    }
    .cs-gallery-full img.img-revealed,
    .cs-gallery-grid img.img-revealed,
    .cs-gallery-trio img.img-revealed,
    .cs-hero.img-revealed,
    .cs-section img.img-revealed {
      opacity: 1;
      transform: translateY(0);
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 4px;
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
      /* Immediately reveal all animated elements — no motion */
      #projects-track .film-card,
      #projects-track .film-card.reel-entering,
      #projects-track .film-card.reel-done,
      .work-item,
      .reveal,
      .cs-quote,
      .cs-gallery-full img,
      .cs-gallery-grid img,
      .cs-gallery-trio img,
      .cs-hero,
      .cs-section img {
        opacity: 1;
        transform: none;
      }
    }

    @media (min-width: 769px) {
      @supports (height: 100svh) {
        #hero-sticky,
        #projects-pin,
        #projects-track {
          height: 100svh;
        }
        .film-card {
          height: calc(100svh - 188px);
        }
      }
    }
