  :root {
    --ink: #0C0B09;
    --paper: #F6F5F3;
    --gut: clamp(16px, 2.5vw, 48px);
    --display: "sets-grotesk-l", "Helvetica Neue", Arial, sans-serif;
    --text: "sets-grotesk-s", "sets-grotesk-l", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--ink); }
  body {
    font-family: var(--display); font-weight: 300; color: var(--ink);
    background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .stage, .mark, #big .w, .cases { text-rendering: geometricPrecision; }

  /* ---------- fixed nav (inverts over black / white scenes) ---------- */
  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; color: #F6F5F3; transition: color .35s;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 1.6vw var(--gut); font-size: clamp(14px, 1.4vw, 24px); pointer-events: none;
  }
  .nav a { pointer-events: auto; }
  /* intro order: wordmark first (as the loader fades), then tagline, button and nav */
  .zc-run body:not(.loaded) .nav { opacity: 0; }
  .zc-run .nav { transition: color .35s, opacity .9s 1.5s; }
  .nav .logo { font-weight: 800; justify-self: start; letter-spacing: -.01em; }
  .nav ul { list-style: none; display: flex; gap: 2.1em; align-items: center; font-weight: 300; }
  .nav li + li::before { content: ","; position: relative; left: -1.05em; }
  .nav ul a, .nav .enq { position: relative; }
  .nav ul a::after, .nav .enq::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
  }
  .nav ul a:hover::after, .nav .enq:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }
  .nav .enq { font-weight: 800; justify-self: end; }
  .rail { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: #F6F5F3; transition: background .35s;
          transform-origin: left; transform: scaleX(0); z-index: 60; }

  /* ---------- scenes ---------- */
  .track[hidden], .track.off { display: none; }
  .track { position: relative; height: 100vh; height: 100svh; }
  .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .dark  { background: var(--ink); color: var(--paper); }
  .light { background: var(--paper); color: var(--ink); }
  .center { display: grid; place-items: center; text-align: center; }

  /* reveal helpers */
  .mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
  .mask > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
  .in .mask > span { transform: none; }
  .fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
  .in .fade { opacity: 1; transform: none; }

  .pill {
    display: inline-block; border-radius: .28em; line-height: 1; font-weight: 300;
    transition: transform .5s var(--ease), background .4s, color .4s;
  }

  /* 01 HERO */
  #hero .tag {
    position: absolute; left: 0; right: 0; top: 17.5vh; text-align: center; padding: 0 var(--gut);
    font-size: clamp(26px, 3.5vw, 64px); font-weight: 400; letter-spacing: -.005em; line-height: 1.1;
  }
  #hero .pill { z-index: 3;
    position: absolute; left: 50%; top: 39vh; translate: -50% 0;
    background: var(--paper); color: var(--ink); font-size: clamp(26px, 3.1vw, 58px); padding: .17em .42em .2em; letter-spacing: -.02em;
  }
  #hero .pill:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
  #hero .mark {
    position: absolute; left: 0; bottom: 0; white-space: nowrap; font-weight: 800; line-height: .8;
    letter-spacing: -.015em; transform-origin: 0 100%; padding: 0 .02em; pointer-events: none;
    transform: translateY(var(--mark-y, 40%)) scaleY(var(--sy, 1.9));
  }
  .mark span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * .07s + .1s); }
  .loaded .mark span { transform: none; }
  #hero .tag .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .15em; margin-bottom: -.15em; }
  #hero .tag .w > i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .06s + 1.2s); }
  .loaded #hero .tag .w > i { transform: none; }
  #hero .pill { opacity: 0; transition: opacity 1s 1.9s, transform .5s var(--ease), background .4s, color .4s; }
  .loaded #hero .pill { opacity: 1; }

  /* 02 THE BIG LINE */
  #big .line {
    font-size: clamp(26px, 3.25vw, 62px); font-weight: 300; letter-spacing: -.015em; line-height: 1.15;
    padding: 0 var(--gut); max-width: none; white-space: nowrap;
  }
  #big .w { display: inline-block; opacity: .12; }
  #big .w.big { font-weight: 700; margin-inline: calc(.05em + var(--m, 0px)); transform-origin: 50% 60%; }
  .mbr { display: none; }

  /* 03 WHAT WE DO */
  #what .stage { display: flex; flex-direction: column; align-items: center; padding-top: 15.3vh; }
  #what h2 { font-size: clamp(30px, 3.5vw, 66px); font-weight: 800; letter-spacing: -.005em; line-height: 1; }
  #what .rows { position: absolute; left: 0; right: 0; top: 27.9vh; padding: 0 8.75vw; }
  #what .row {
    display: grid; grid-template-columns: 35.1vw 1fr; align-items: center; height: 12.7vh;
    border-top: 1px solid transparent; position: relative;
  }
  #what .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
  #what .row:hover::after { transform: scaleX(1); }
  #what .row h3 { font-size: clamp(22px, 3vw, 56px); font-weight: 500; letter-spacing: -.01em; line-height: 1.1;
    transition: transform .6s var(--ease); }
  #what .row:hover h3 { transform: translateX(1.2vw); }
  #what .row p { font-size: clamp(16px, 1.85vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
  #what .foot { margin-top: auto; padding-bottom: 7.2vh; text-align: center; }
  #what .foot p { font-size: clamp(14px, 1.5vw, 28px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 1.6vh; padding: 0 var(--gut); }
  #what .foot b { font-weight: 700; }
  #what .pill { background: var(--ink); color: var(--paper); font-size: clamp(18px, 1.9vw, 36px); padding: .22em .55em .26em; border-radius: 1em; }
  #what .pill:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

  /* 04 WORK */
  #work .stage { overflow: hidden; }
  #work .hd { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
    transition: opacity 1s var(--ease); }
  #work.open .hd { opacity: .07; }
  #work .cases { font-size: clamp(60px, 6.7vw, 130px); font-weight: 800; letter-spacing: -.01em; line-height: 1;
    display: flex; transform: scale(var(--s, 1)); }
  .cases span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1.1s var(--ease), opacity .6s; transition-delay: calc(var(--i) * .07s); }
  #work.in .cases span { transform: none; opacity: 1; }

  /* case cards float around the headline; click one and it settles left, the other tucks away, copy fades in */
  #work .case { position: absolute; z-index: 2; display: block; cursor: pointer; width: 28vw; color: var(--paper); opacity: 0;
    transition: left 1.1s var(--ease), top 1.1s var(--ease), width 1.1s var(--ease), opacity .8s; }
  /* glide up into the page, trailing the scroll by a beat */
  #work.in .case { opacity: 1; animation: rise 1.6s cubic-bezier(.16,1,.3,1) var(--fd, .25s) backwards; }
  #work.in .case.mand { --fd: .45s; }
  @keyframes rise { from { opacity: 0; translate: 0 70vh; } 40% { opacity: 1; } to { opacity: 1; translate: 0 0; } }
  #work .case.reach { left: 6vw;  top: 15vh; }
  #work .case.mand  { left: 66vw; top: 52vh; }
  #work .bob { animation: bob 7s ease-in-out infinite; }
  #work .case.mand .bob { animation-duration: 8.5s; animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-.5vh); } }
  #work .mag { transition: transform .5s var(--ease); }
  #work .shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: .7vw; background: #1a1816; }
  #work .case img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
    transition: transform 1.2s var(--ease); }
  #work .case:hover img { transform: scale(1.04); }
  #work .cap { display: flex; justify-content: space-between; gap: 1em; margin-top: 1.2vh;
    font-size: clamp(13px, 1.2vw, 22px); letter-spacing: -.02em; }
  #work .cap b { font-weight: 700; } #work .cap span { font-weight: 300; opacity: .6; }

  /* open state */
  #work.open .case.sel { left: 2.5vw; top: 20vh; width: 44vw; cursor: default; }
  #work.open .case.sel .bob { animation-play-state: paused; }
  #work.open .case:not(.sel) { left: 84vw; top: 76vh; width: 12vw; opacity: .5; }
  #work.open .case:not(.sel):hover { opacity: 1; }
  /* Mandaloun opens on its own side: image right, copy left; Reach tucks bottom-left */
  @media (min-width: 721px) {
    #work[data-sel="mand"].open .case.sel { left: 53.5vw; }
    #work[data-sel="mand"].open .case.reach:not(.sel) { left: 4vw; }
    #work[data-sel="mand"].open .copy { left: calc(26.75vw - var(--cw) / 2); }
  }
  #work.open .case:not(.sel) .cap span { display: none; }
  #work .copy { position: absolute; z-index: 3; --cw: min(30vw, 520px); left: calc(73.25vw - var(--cw) / 2); width: var(--cw); top: 14vh; max-height: 80vh; overflow: auto;
    color: var(--paper); opacity: 0; pointer-events: none; transform: translateY(24px);
    transition: opacity .6s, transform .6s var(--ease); }
  #work.open .copy { opacity: 1; transform: none; pointer-events: auto; transition: opacity 1s .55s, transform 1.2s .55s var(--ease); }
  #work .copy h3 { font-size: clamp(30px, 3.6vw, 70px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
  #work .copy .kind { margin-top: .8vh; font-size: clamp(14px, 1.3vw, 24px); font-weight: 300; opacity: .6; letter-spacing: -.02em; }
  #work .copy dl { margin-top: 4vh; display: grid; grid-template-columns: 1fr; row-gap: .5vh;
    font-size: clamp(13px, min(1.2vw, 1.9vh), 22px); letter-spacing: -.02em; line-height: 1.25; }
  #work .copy dt { font-weight: 700; } #work .copy dd { font-weight: 300; text-align: justify; hyphens: auto; margin-bottom: 2.2vh; }
  #work .close { display: block; position: sticky; bottom: 0; padding: .6em 0 .2em; background: var(--ink); margin-top: 1vh; font: inherit; font-weight: 700; font-size: clamp(12px, 1vw, 18px); color: var(--paper); background: none;
    border: 0; cursor: pointer; letter-spacing: -.02em; text-decoration: underline; text-underline-offset: .25em; }

  /* 05 ABOUT */
  #about .stage { display: block; }
  #about h2 {
    position: absolute; left: var(--gut); top: 12vh; font-size: clamp(40px, 5vw, 96px); font-weight: 200;
    letter-spacing: -.03em; line-height: .84;
  }
  #about .by { position: absolute; left: 0; right: 0; top: 45vh; text-align: center; font-size: clamp(34px, 5vw, 96px);
    font-weight: 300; letter-spacing: -.02em; line-height: 1; padding: 0 var(--gut); }
  #about .bio {
    position: absolute; right: 3.4vw; bottom: 6.2vh; width: min(45.8vw, 920px); text-align: right;
    font-size: clamp(15px, 1.62vw, 30px); font-weight: 300; letter-spacing: -.025em; line-height: 1.07;
  }
  #about .bio .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .7s, transform .9s var(--ease);
    transition-delay: calc(var(--i) * .018s + .4s); }
  #about.in .bio .w { opacity: 1; transform: none; }

  /* 06 LET'S TALK */
  #talk .stage { text-align: center; }
  #talk h2 { position: absolute; left: 0; right: 0; top: 40.5vh; font-size: clamp(54px, 6.6vw, 128px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
  #talk .sub { position: absolute; left: 0; right: 0; top: 51.9vh; margin: 0 auto; font-size: clamp(16px, 1.75vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1;
    max-width: none; padding: 0 var(--gut); }
  #talk .mail { position: absolute; left: 50%; top: 68.5vh; translate: -50% 0; white-space: nowrap; font-size: clamp(18px, 1.75vw, 32px); font-weight: 300; letter-spacing: -.02em; padding: .1em .15em .25em; }
  #talk .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: .5;
    transition: opacity .4s, transform .8s var(--ease); transform-origin: left; }
  #talk .mail:hover::after { opacity: 1; transform: scaleX(1.04); }
  #talk .copy { position: absolute; right: var(--gut); bottom: 2.6vh; font-weight: 800; font-size: clamp(14px, 1.3vw, 24px); letter-spacing: -.03em; }

  /* seo additions: visually hidden h1, case link, crawlable site links */
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  #work .acts { display: flex; gap: 1.6em; align-items: baseline; position: sticky; bottom: 0; }
  #work .full { font-weight: 700; font-size: clamp(12px, 1vw, 18px); letter-spacing: -.02em; text-decoration: underline; text-underline-offset: .25em; }
  #work .acts .close { position: static; }
  #what a.row { color: inherit; }
  #talk .sitelinks { position: absolute; left: var(--gut); bottom: 2.6vh; max-width: 62vw; text-align: left; font-size: clamp(12px, 1vw, 18px);
    font-weight: 300; letter-spacing: -.01em; line-height: 1.5; opacity: .75; }
  #talk .sitelinks a { display: inline-block; margin-right: 1.1em; }
  #talk .sitelinks a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }

  /* mobile */
  @media (max-width: 720px) {
    .nav { grid-template-columns: auto 1fr auto; gap: 12px; padding: 18px var(--gut); }
    .nav ul { justify-self: center; gap: 1em; }
    .nav li + li::before { display: none; }
    #hero .tag { top: 17vh; }
    #hero .pill { top: 36vh; }
    #big .line { max-width: none; white-space: nowrap; font-size: 6.2vw; padding: 0; }
    .mbr { display: block; }
    #what .rows { padding: 0 var(--gut); }
    #what .row { grid-template-columns: 1fr; gap: .3em; align-content: center; height: 10.5vh; }
    #what .stage { padding-top: 12vh; }
    #what .rows { top: 20vh; margin-top: 0; }
    #what .row p { font-size: 15px; }
    #what .foot { padding-bottom: 5vh; }
    #work .case { width: 56vw; }
    #work .case.reach { left: 4vw; top: 14vh; }
    #work .case.mand  { left: 40vw; top: 62vh; }
    #work.open .case.sel { left: 5vw; top: 11vh; width: 90vw; }
    #work.open .case:not(.sel) { opacity: 0; pointer-events: none; }
    /* copy starts below the open photo: its top + height (16:10 at 90vw) + caption + a gap, so they can never overlap */
    #work .copy { --top: calc(11vh + 56.25vw + 70px); left: var(--gut); right: var(--gut); width: auto; top: var(--top);
      max-height: calc(100vh - var(--top) - 14px); }
    #work .copy dl { margin-top: 2vh; }
    #work .copy dd { margin-bottom: 1vh; }
    #about h2 { top: 13vh; font-size: 13vw; }
    #about .by { top: 50%; translate: 0 -50%; font-size: 9vw; }
    #talk .br { display: none; }
    #talk .sitelinks { max-width: calc(100vw - 2 * var(--gut)); bottom: 7vh; }
    #talk .copy { bottom: 2vh; }
    #about .bio { width: calc(100vw - 2 * var(--gut)); right: var(--gut); font-size: 16px; bottom: 5vh; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
    #work .case, #work .bob { animation: none !important; }
    #big .w { opacity: 1; }
  }
