/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #FFFFFF;            /* pure white, matches the hero video's background */
  --bg-2: #F3F1EE;
  --fg: #151414;            /* ink */
  --fg-soft: rgba(21, 20, 20, .78);
  --muted: #7A766F;
  --line: rgba(21, 20, 20, .22);
  --line-soft: rgba(21, 20, 20, .1);
  --accent: #F4D3DE;        /* pale pink — pulled from the logo */
  --accent-2: #F6EAB8;      /* pale butter */
  --accent-3: #D3E2F4;      /* pale sky */
  --panel: #FFFFFF;         /* window bars */
  --cream: #F3E9D6;         /* page background at the bottom */
  --hdr-top: clamp(12px, 1.6vw, 28px);
  --hdr-h: 54px;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-scrawl: "Rock Salt", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  /* plain white down the page, easing into cream at the very end */
  background-color: var(--bg);
  background-image: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 55%, #FBF6EC 78%, var(--cream) 100%);
  color: var(--fg);
  font-family: var(--f-serif);
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
  font-family: var(--f-display); font-size: 13px; text-transform: uppercase;
}
.skip:focus { top: 16px; }

/* Type helpers ------------------------------------------------------------ */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.scrawl {
  font-family: var(--f-scrawl);
  font-size: clamp(12px, .9vw, 15px);
  letter-spacing: .02em;
  line-height: 1.6;
}
.label {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Logo intro
   ========================================================================== */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  transition: opacity 1.5s var(--ease), filter 1.5s var(--ease), transform 1.5s var(--ease);
}
.intro-on body { overflow: hidden; }
/* Intro dissolves (blur + fade) into the looping hero video beneath it */
.intro.is-leaving { opacity: 0; filter: blur(28px); transform: scale(1.06); pointer-events: none; }
.intro__video {
  position: relative;
  width: min(100vw, 177.78vh);
  aspect-ratio: 16 / 9;
}
.intro__video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.intro__video iframe.is-playing { opacity: 1; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: clamp(18px, 3vw, 36px);
  font-family: var(--f-display); font-stretch: 115%; font-weight: 700;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(10, 10, 10, .55);
  padding: 8px 0;
  transition: color .3s;
}
.intro__skip:hover { color: #0A0A0A; }

/* ==========================================================================
   Header + menu
   ========================================================================== */
/* Framed "window" bar: [monogram] [ location ] [+ menu] */
.site-header {
  position: fixed; z-index: 60;
  top: var(--hdr-top); left: var(--gutter); right: var(--gutter);
  height: var(--hdr-h);
  display: flex; align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--fg);
}
.hdr-box {
  display: flex; align-items: center; justify-content: center;
  min-width: var(--hdr-h); padding: 0 18px;
  transition: background .3s;
}
.hdr-box:hover { background: var(--accent); }
.hdr-box.monogram { border-right: 1px solid var(--fg); }
.hdr-box.menu-toggle { border-left: 1px solid var(--fg); }
.hdr-bar {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 16px; min-width: 0;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800;
  font-variant-caps: all-small-caps;
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: .24em;
  color: var(--fg); white-space: nowrap; overflow: hidden;
}
.hdr-bar span { overflow: hidden; text-overflow: ellipsis; }
.monogram {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -.08em;
  line-height: 1;
  color: var(--fg);
}
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg);
}
.menu-toggle__icon {
  display: inline-block; font-size: 1.25em; line-height: 1;
  transition: transform .6s var(--ease);
}
.menu-open .menu-toggle__icon { transform: rotate(135deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--accent);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(28px, 4vw, 48px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links li { overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.menu__links a {
  display: block;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
  padding: .04em 0;
}
.menu__links a span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--ease), color .3s;
}
.menu-open .menu__links a span { transform: none; }
.menu-open .menu__links li:nth-child(2) a span { transition-delay: .06s; }
.menu-open .menu__links li:nth-child(3) a span { transition-delay: .12s; }
.menu-open .menu__links li:nth-child(4) a span { transition-delay: .18s; }
.menu__links a:hover span { font-style: italic; }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  justify-content: space-between; align-items: end;
}
.menu__email { font-size: clamp(22px, 2.4vw, 36px); }
/* "Ask about availability" — opens a pre-filled email */
.inquiry-btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 24px 13px;
  border: 1px solid var(--fg); border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: var(--f-display); font-stretch: 112%; font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.inquiry-btn span { transition: transform .5s var(--ease); }
.inquiry-btn:hover { background: var(--accent); color: var(--fg); }
.inquiry-btn:hover span { transform: translateX(4px); }

/* ==========================================================================
   Hero
   ========================================================================== */
/* Hero section with the framed window inside it — transparent; the page is white up here */
.hero {
  position: relative;
  padding: calc(var(--hdr-top) + var(--hdr-h)) var(--gutter) 0;
}

.hero__window { border: 0; }      /* no side lines along the video box; only the bars are outlined */
.hero__nav {
  display: flex; justify-content: space-around; align-items: center;
  height: 52px;
  background: var(--panel);
  border: 1px solid var(--fg);
  border-top: 0;
}
.hero__nav a, .hero__caption, .chip {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 500;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.hero__nav a { padding: 6px 10px; transition: background .3s; }
.hero__nav a:hover { background: var(--accent); }
.hero__caption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 46px; padding: 0 10px 0 12px;
  background: var(--panel);
  border: 1px solid var(--fg);
}
.chip {
  background: var(--accent); padding: 6px 10px 5px; white-space: nowrap;
  transition: background .3s, color .3s;
}
.chip:hover { background: var(--fg); color: var(--bg); }

/* The video stage — transparent, so the pink grid shows around the video */
.hero__media {
  position: relative;
  height: clamp(420px, calc(100svh - var(--hdr-top) - var(--hdr-h) - 52px - 46px - 56px), 1100px);
  overflow: hidden;
  isolation: isolate;
  container-type: size;
}
.hero__clip {                     /* clips the video to the box */
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
  background: #fff;               /* matches the video's white while it loads */
}
.hero__video {                    /* covers the whole box; shape (--ar) is read from Vimeo */
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, calc(100cqh * var(--ar, 1.7778)));
  aspect-ratio: var(--ar, 1.7778);
  transform: translate(-50%, -50%);
  transition: filter 1.8s var(--ease), transform 1.8s var(--ease);
}
/* While the intro plays, the hero loop waits blurred, then sharpens as the intro dissolves */
.intro-on:not(.intro-leaving) .hero__video { filter: blur(26px); transform: translate(-50%, -50%) scale(1.12); }
.hero__video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__video iframe.is-ready { opacity: 1; }
.hero__media .grain, .hero__blur { display: none; }   /* keep the video's white pure so it blends with the page */
.hero__blur {                     /* soft blur at the box edges (disabled) */
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 60%, #000 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 60%, #000 100%);
}

.card__preview iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  opacity: .09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 2.2vw, 32px) clamp(14px, 2vw, 30px) clamp(10px, 1.4vw, 20px);
}
.hero__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 32px;
}
.wordmark {
  position: relative;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3.4rem, 15.5vw, 17rem);
  line-height: .82;
  letter-spacing: -.055em;
  white-space: nowrap;
  align-self: flex-start;          /* shrink-wrap so the auto-fit can measure it */
  padding-right: .25em;            /* room for ® */
}
.wordmark .char {
  display: inline-block;
  transform: translateY(40%);
  opacity: 0;
  filter: blur(12px);
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease);
}
.is-loaded .wordmark .char { transform: none; opacity: 1; filter: none; }
.wordmark .char--space { width: .22em; }
.wordmark sup {
  position: absolute; top: .02em; right: 0;
  font-family: var(--f-display); font-weight: 600; font-stretch: 100%;
  font-size: .16em; letter-spacing: 0;
  opacity: 0; transition: opacity 1s 1s;
}
.is-loaded .wordmark sup { opacity: 1; }
.hero__statement {
  max-width: 22ch;
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: 1.05;
  color: var(--fg);
}
.hero__tagline { margin-top: 4px; }
.hero__tagline span { padding: 0 .5em; }
.hero__statement, .hero__tagline, .play-reel {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-loaded .hero__statement { opacity: 1; transform: none; transition-delay: .5s; }
.is-loaded .hero__tagline { opacity: 1; transform: none; transition-delay: .65s; }
.is-loaded .play-reel { opacity: 1; transform: none; transition-delay: .8s; }

.play-reel {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-display); font-stretch: 115%; font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .45);
  transition: background .4s, color .4s, border-color .4s;
}
.play-reel:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.play-reel__dot {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

.hero__year { text-align: center; padding: 14px 0 18px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(96px, 14vw, 200px) var(--gutter) 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.kicker { width: 100%; color: var(--muted); }
.section__title {
  font-family: var(--f-display);
  font-stretch: 125%; font-weight: 900;
  font-size: clamp(3.4rem, 13vw, 14rem);
  line-height: .8; letter-spacing: -.055em; text-transform: uppercase;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-display); font-stretch: 110%; font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s, background .3s, border-color .3s;
}
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter[aria-selected="true"] { background: var(--accent); color: var(--fg); border-color: var(--accent); }

/* Work grid --------------------------------------------------------------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) clamp(16px, 2.4vw, 36px);
}
/* Titled "window" boxes, one per category (same frame language as the hero) */
.work-box { border: 1px solid var(--fg); background: var(--panel); }
.work-box.is-wide { grid-column: 1 / -1; }
.work-box.is-hidden { display: none; }
.work-box__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 48px; padding: 0 14px;
  border-bottom: 1px solid var(--fg);
}
.work-box__title {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(13px, 1.05vw, 16px); letter-spacing: .14em; text-transform: uppercase;
}
.work-box__count { font-family: var(--f-scrawl); font-size: 12px; color: var(--muted); }
.work-box__items {
  display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
}
.work-box__items .card + .card { border-left: 1px solid var(--fg); }
.card { display: block; text-align: left; width: 100%; }
.card__media {
  display: block;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease), opacity .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.0); }
.card__preview { position: absolute; inset: 0; overflow: hidden; display: block; container-type: size; }
.card__client, .card__title, .card__year { display: block; }
/* hover preview covers the card whatever the video's shape (--ar set per project) */
.card__preview iframe { width: max(100cqw, calc(100cqh * var(--ar, 1.7778))); height: auto; aspect-ratio: var(--ar, 1.7778); }
.card__preview iframe.is-ready { opacity: 1; }
.card__badge {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.card__meta {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 24px;
  padding-top: 18px; margin-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.card__client {
  font-family: var(--f-display); font-stretch: 120%; font-weight: 900;
  font-size: clamp(20px, 2vw, 34px); letter-spacing: -.03em; line-height: 1; text-transform: uppercase;
}
.card__title { font-size: clamp(19px, 1.5vw, 26px); color: var(--fg-soft); grid-column: 1; }
.card__year { grid-row: 1 / span 2; grid-column: 2; align-self: start; color: var(--muted); font-size: .95em; }
.card__title em, .about__bio em { font-style: italic; }

/* Reveal (clip-wipe for media, rise for text) ------------------------------ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.card .card__media { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.card.is-in .card__media { clip-path: inset(0 0 0 0); }
.card .card__meta { opacity: 0; transform: translateY(20px); transition: opacity 1s .2s var(--ease), transform 1s .2s var(--ease); }
.card.is-in .card__meta { opacity: 1; transform: none; }

/* About ------------------------------------------------------------------- */
.about__layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
}
.about__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 1.6s var(--ease);
}
.about__portrait:hover img { transform: scale(1.03); }
.about__portrait {
  margin: 0;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    radial-gradient(70% 60% at 35% 30%, var(--accent), transparent 70%),
    radial-gradient(60% 50% at 75% 80%, var(--accent-3), transparent 70%),
    var(--bg-2);
  display: grid; place-items: center;
}
.about__portrait-mark {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic;
  font-size: clamp(5rem, 14vw, 13rem); letter-spacing: -.09em;
  color: transparent; -webkit-text-stroke: 1px rgba(21, 20, 20, .3);
}
.about__bio {
  font-size: clamp(28px, 3.3vw, 58px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.about__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: clamp(48px, 6vw, 96px);
}
.about__cols .label { margin-bottom: 18px; }
.services li {
  font-family: var(--f-display); font-stretch: 115%; font-weight: 800;
  font-size: clamp(16px, 1.5vw, 24px); text-transform: uppercase; letter-spacing: -.01em;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.process { counter-reset: step; }
.process li { counter-increment: step; padding: 12px 0 18px; border-bottom: 1px solid var(--line-soft); }
.process li::before {
  content: "0" counter(step);
  font-family: var(--f-scrawl); font-size: 12px; color: var(--muted);
  display: block; margin-bottom: 4px;
}
.process strong {
  display: block; font-family: var(--f-display); font-stretch: 115%; font-weight: 800;
  font-size: clamp(16px, 1.5vw, 24px); text-transform: uppercase;
}
.process span { color: var(--muted); }

/* Contact + footer -------------------------------------------------------- */
.contact { text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.contact__title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(3rem, 11.5vw, 13rem); line-height: .82;
  letter-spacing: -.055em; text-transform: uppercase;
  margin-top: 18px;
}
.contact__email {
  position: relative; display: inline-block;
  margin-top: clamp(28px, 4vw, 56px);
  font-size: clamp(26px, 4vw, 64px); font-style: italic;
  word-break: break-word;
}
.contact__email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 1px;
  background: currentColor; transform: scaleX(.25); transform-origin: left;
  transition: transform .8s var(--ease);
}
.contact__email:hover::after { transform: scaleX(1); }
.contact__meta {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 36px; color: var(--muted);
}

.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--gutter);
  border-top: 1px dashed var(--line);
}
.monogram--static { font-size: 22px; }
.site-footer__role {
  font-family: var(--f-display); font-stretch: 110%; font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Link underline hover (shared) */
.menu__email { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.menu__email:hover { background-size: 100% 1px; }

/* ==========================================================================
   Overlay
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
  visibility: hidden;
}
.overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-in-out); }
.overlay__close {
  position: absolute; top: clamp(18px, 2.4vw, 34px); right: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: .45em;
  font-size: clamp(17px, 1.3vw, 22px); text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.overlay__close span { font-size: 1.4em; line-height: 1; }
.overlay__scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(72px, 9vw, 110px) var(--gutter) clamp(48px, 6vw, 96px);
}
.overlay__player {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  margin: 0 auto;                 /* width/aspect set per video in JS so tall videos aren't letterboxed */
}
.overlay__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.overlay--reel .overlay__scroll { display: flex; align-items: center; justify-content: center; }
.overlay--reel .overlay__player { width: min(100%, calc((100vh - 180px) * 16 / 9)); }

.project__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end;
  margin-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px dashed var(--line);
}
.project__client {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 10rem); line-height: .82;
  letter-spacing: -.055em; text-transform: uppercase;
}
.project__title { font-size: clamp(22px, 2.4vw, 40px); margin-top: 10px; }
.project__cat { color: var(--muted); }
.project__body {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  padding-top: clamp(32px, 4vw, 56px);
}
.project__facts { display: grid; gap: 18px; align-content: start; }
.project__facts dt { margin-bottom: 4px; }
.project__facts dd { margin: 0; font-size: 1.05em; }
.project__summary { font-size: clamp(22px, 2.2vw, 38px); line-height: 1.12; }
/* Think piece: editorial reading column */
.project__story { max-width: 64ch; }
.project__story-kicker { color: var(--muted); margin-bottom: 10px; }
.project__story-title {
  font-family: var(--f-serif); font-weight: 400; font-style: italic;
  font-size: clamp(30px, 3.4vw, 56px); line-height: 1.02; letter-spacing: -.01em;
  margin-bottom: clamp(18px, 2vw, 28px);
}
.project__story p:not(.project__story-kicker) {
  font-size: clamp(18px, 1.3vw, 21px); line-height: 1.55; color: var(--fg-soft);
  margin: 0 0 1.05em;
}
.project__story-title + p::first-letter {   /* drop cap */
  float: left; font-size: 3.4em; line-height: .82; padding: .06em .08em 0 0;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; color: var(--fg);
}
.project__story em { font-style: italic; color: var(--fg); }
.project__story strong {
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700;
  font-size: .82em; letter-spacing: .04em; text-transform: uppercase; color: var(--fg);
}
.project__credits { margin-top: 32px; color: var(--muted); display: grid; gap: 4px; }
.project__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: clamp(56px, 7vw, 110px);
  border-top: 1px dashed var(--line);
}
.project__nav button {
  text-align: left; padding: 24px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.project__nav button:last-child { text-align: right; align-items: end; }
.project__nav strong {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(22px, 3.6vw, 56px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
  transition: font-style .2s;
}
.project__nav button:hover strong { font-style: italic; }

/* ==========================================================================
   Custom cursor (fine pointers only)
   ========================================================================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 1px solid #fff; border-radius: 50%;
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s, opacity .3s;
  opacity: 0;
}
.has-cursor .cursor { opacity: 1; }
.cursor__label {
  font-family: var(--f-display); font-stretch: 115%; font-weight: 800;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #000; opacity: 0; transition: opacity .3s;
}
.cursor.is-active { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about__layout, .project__body { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
}
@media (max-width: 700px) {
  .work__grid { grid-template-columns: 1fr; }
  .work-box__items { grid-template-columns: 1fr; }
  .work-box__items .card + .card { border-left: 0; border-top: 1px solid var(--fg); }
  .about__cols { grid-template-columns: 1fr; }
  .project__head { grid-template-columns: 1fr; }
  .site-footer__role { display: none; }
  .hero__caption-loc { display: none; }
  .hdr-bar { font-size: 13px; letter-spacing: .14em; line-height: 1.15; padding: 0 10px; white-space: normal; text-align: center; }
  .hdr-bar span { overflow: visible; }
  .hero__nav a { font-size: 11px; padding: 6px 4px; }
  .hero__caption { font-size: 11px; }
  .hero__media { height: clamp(440px, calc(100svh - 300px), 640px); }
  .wordmark .word { display: block; }
  .wordmark .char--space { display: none; }
  .wordmark { line-height: .86; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  /* keep the video-to-video dissolve: it's part of the work, not decoration */
  .intro, .hero__video, .hero__video iframe, .intro__video iframe { transition-duration: 1.5s !important; }
  .reveal, .card .card__media, .card .card__meta, .wordmark .char,
  .hero__statement, .hero__tagline, .play-reel, .wordmark sup {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  }
}
