/* Natalie Hughes — portfolio
   Visual language taken from the PDF folio: sunshine yellow, white space,
   bold geometric sans for names, a Minion-style serif for story and numbers,
   the yellow number block, and the white sunburst from the cover. */

:root {
  --yellow: #fff579;
  --yellow-deep: #ffe94a;
  --ink: #1a1919;
  --ink-soft: #3b3a38;
  --muted: #7d7a73;
  --line: #e9e6dd;
  --paper: #ffffff;
  --cream: #fbfaf5;
  --sans: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --serif: "Crimson Pro", "Minion Pro", "EB Garamond", Georgia, serif;
  --display-serif: "Cormorant Garamond", "Minion Pro", Georgia, serif;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sans { font-family: var(--sans); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .sun { width: 30px; height: 30px; color: var(--yellow-deep); }
.brand .sun svg { width: 100%; height: 100%; fill: currentColor; animation: spin 60s linear infinite; transition: filter .3s; }
.brand:hover .sun svg { animation-duration: 6s; }
.on-yellow .brand .sun { color: #fff; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-family: var(--sans); font-weight: 600; font-size: 15px; }
.nav a { position: relative; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .35s var(--ease), opacity .2s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--yellow); flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 max(28px, env(safe-area-inset-left, 0px)); gap: 6px; font-size: 44px; font-weight: 700; letter-spacing: -.02em; transform: translateY(-100%); transition: transform .6s var(--ease); }
  .nav a::after { height: 3px; }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sun ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.sunburst { fill: #fff; }
.burst svg, .mini-burst svg { animation: spin 48s linear infinite; }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--yellow); display: grid; place-items: center; pointer-events: none; transform: translateY(0); }
.curtain svg { width: 84px; height: 84px; fill: #fff; animation: spin 6s linear infinite; }
html.js .curtain { transition: transform .7s var(--ease); }
html.js.is-loaded .curtain { transform: translateY(-101%); }
html.js.is-leaving .curtain { transform: translateY(0); transition: transform .45s var(--ease-in); }
html:not(.js) .curtain { display: none; }

/* ---------- Reveal on scroll ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="fade"] { transform: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(26,25,25,.5); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.link-arrow { font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow .arrow { transition: transform .35s var(--ease); }

/* ---------- Home hero ---------- */
.home-hero { position: relative; background: var(--yellow); overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.home-hero .wrap { position: relative; min-height: min(86vh, 860px); display: grid; align-content: center; padding-block: 60px 90px; }
.home-hero .burst { position: absolute; width: min(64vw, 760px); aspect-ratio: 1; right: -8vw; top: 50%; translate: 0 -50%; pointer-events: none; }
.home-hero .burst svg { width: 100%; height: 100%; }
.home-hero h1 { position: relative; font-family: var(--sans); font-weight: 700; font-size: clamp(32px, 5.1vw, 83px); line-height: .98; letter-spacing: -.035em; margin: 0; max-width: 13ch; text-wrap: balance; }
.home-hero .lede { position: relative; font-family: var(--display-serif); font-weight: 500; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; margin: 22px 0 0; max-width: 24ch; }
.home-hero .intro { position: relative; max-width: 54ch; margin: 26px 0 0; font-size: 19px; color: var(--ink-soft); }
.home-hero .cta-row { position: relative; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.availability { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.availability::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 0 rgba(47,158,91,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,158,91,.45); } 70% { box-shadow: 0 0 0 10px rgba(47,158,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,91,0); } }
.scroll-cue { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 28px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: var(--ink); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Section heads ---------- */
.section { padding-block: clamp(70px, 10vw, 140px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
.num-block { display: inline-grid; place-items: center; background: var(--yellow); font-family: var(--display-serif); font-weight: 500; line-height: 1; min-width: 1.6em; height: 1.6em; padding: 0 .2em; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.card { grid-column: span 6; text-decoration: none; display: block; position: relative; }
.card--wide { grid-column: span 7; }
.card--narrow .card-media { aspect-ratio: 1.27; }
.card--narrow { grid-column: span 5; }
.card--third { grid-column: span 4; }
.card--full { grid-column: 1 / -1; }
.card-media { position: relative; overflow: hidden; background: var(--cream); aspect-ratio: 16 / 9; border-radius: 2px; transition: box-shadow .6s var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.1s var(--ease), filter .6s; }

.card:hover .card-media img { transform: scale(1.045); }
.card-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 120%, rgba(255,245,121,.35), transparent 60%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }

.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.card-title { font-family: var(--sans); font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.015em; line-height: 1.15; margin: 0; }
.card-client { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0 0 4px; }
.card-headline { font-family: var(--display-serif); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--ink-soft); margin: 4px 0 0; }
.card-year { font-family: var(--sans); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .01em; padding: 5px 11px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: background .3s, box-shadow .3s; }
a.tag:hover { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow-deep); }
.card-award { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.94); padding: 6px 11px 6px 8px; border-radius: 999px; font-family: var(--sans); font-size: 12px; font-weight: 700; }
.card-award .trophy { width: 16px; height: 16px; }

/* Cursor pill */
.cursor-pill { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .01em; background: var(--yellow); color: var(--ink); padding: 7px 12px; border-radius: 999px; transform: translate(-50%, -50%) scale(0); transition: transform .35s var(--ease); white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.cursor-pill.is-on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-pill { display: none; } }

/* Private card */
.card--private .card-media { display: grid; place-items: center; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.card--private .lock { text-align: center; padding: 24px; font-family: var(--sans); }
.card--private .lock svg { width: 30px; height: 30px; margin: 0 auto 12px; }
.card--private .lock strong { display: block; font-size: 15px; }
.card--private .lock span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Trophy (award icon) ---------- */
.trophy { width: 22px; height: 22px; flex: none; overflow: visible; }
.trophy .cup { fill: var(--ink); animation: trophy-glow 5s var(--ease) infinite; }
.trophy .shine { fill: #fff; opacity: 0; animation: trophy-shine 5s var(--ease) infinite; }
@keyframes trophy-glow { 0%, 55%, 100% { fill: var(--ink); } 68%, 86% { fill: var(--yellow-deep); filter: drop-shadow(0 0 6px rgba(255,214,10,.75)); } }
@keyframes trophy-shine { 0%, 62% { opacity: 0; transform: translateX(-6px); } 72% { opacity: .9; } 84% { opacity: 0; transform: translateX(10px); } 100% { opacity: 0; } }
.award-line:hover .trophy, .card:hover .trophy { animation: trophy-hop .7s var(--ease); }
.award-line:hover .trophy .cup, .card:hover .trophy .cup { fill: var(--yellow-deep); }
@keyframes trophy-hop { 0% { transform: none; } 35% { transform: translateY(-3px) rotate(-8deg); } 70% { transform: translateY(0) rotate(5deg); } 100% { transform: none; } }

/* ---------- Credibility strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display-serif); font-weight: 500; font-size: clamp(26px, 3vw, 40px); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--yellow-deep); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.creds h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 600; }
.creds ul { list-style: none; padding: 0; margin: 0; }
.creds li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.35; }
.award-line { display: flex; gap: 12px; align-items: flex-start; }
.award-line b { font-family: var(--sans); font-weight: 700; font-size: 15px; display: block; }
.award-line small { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); position: relative; overflow: hidden; }
.cta-band .wrap { padding-block: clamp(70px, 10vw, 130px); position: relative; display: grid; gap: 26px; }
.cta-band h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 6vw, 92px); letter-spacing: -.035em; line-height: .98; margin: 0; max-width: 14ch; }
.cta-band p { margin: 0; max-width: 46ch; font-size: 20px; }
.cta-band .burst { position: absolute; width: min(46vw, 520px); aspect-ratio: 1; right: -6vw; bottom: -16vw; }
.cta-band .burst svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer .wrap { padding-block: 34px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-email { display: inline-flex; align-items: center; gap: 10px; }
.copy-btn { background: var(--cream); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 6px 12px; cursor: pointer; transition: background .3s; }
.copy-btn:hover { background: var(--yellow); }

/* ---------- Page intro (work/about/contact) ---------- */
.page-intro { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 100px)); padding-bottom: clamp(30px, 4vw, 50px); }
.page-intro h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 6.4vw, 102px); letter-spacing: -.045em; line-height: .92; margin: 0; }
.page-intro h1 .num-block { font-size: .42em; vertical-align: top; margin-left: .2em; letter-spacing: 0; }
.page-intro p { max-width: 56ch; margin: 22px 0 0; color: var(--ink-soft); font-size: 18px; }

/* ---------- Work filters ---------- */
.filters { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); transition: top .5s var(--ease); }
.site-header.is-hidden ~ main .filters { top: env(safe-area-inset-top, 0px); }
.filters .wrap { display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; padding-block: 14px; }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-group > span { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.view-toggle { margin-left: auto; display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.work-count { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.work-grid { padding-block: 44px 40px; }
.work-grid .card { grid-column: span 4; }
.work-grid .card.is-out { display: none; }
@media (max-width: 1100px) { .work-grid .card { grid-column: span 6; } }
.empty-state { font-family: var(--sans); color: var(--muted); padding: 60px 0; }

/* list / archive view */
.work-list { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; margin: 40px 0; }
.work-list th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.work-list td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.work-list tr { transition: background .3s; }
.work-list tbody tr:hover { background: var(--cream); }
.work-list td:first-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.work-list a { text-decoration: none; font-weight: 700; }
.work-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-list tr.is-out { display: none; }
.list-wrap { overflow-x: auto; }
.list-thumb { position: fixed; z-index: 55; width: 280px; aspect-ratio: 16/9; pointer-events: none; opacity: 0; transform: translate(24px, -50%) scale(.92); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); background: var(--cream) center / cover; }
.list-thumb.is-on { opacity: 1; transform: translate(24px, -50%) scale(1); }
@media (hover: none) { .list-thumb { display: none; } }

/* ---------- Case study ---------- */
.cs-hero { position: relative; background: var(--cream); overflow: hidden; border-radius: 2px; }
.cs-hero-wrap { max-width: 1680px; padding-bottom: clamp(36px, 4vw, 60px); }
.cs-hero img { width: 100%; height: auto; aspect-ratio: var(--r, 16/9); object-fit: cover; }
html.js .cs-hero img, html.js .cs-hero video { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.5s var(--ease) .15s, transform 2.2s var(--ease) .15s; }
html.js.is-loaded .cs-hero img, html.js.is-loaded .cs-hero video { clip-path: inset(0 0 0 0); transform: none; }

.cs-head { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 4vw, 64px)); padding-bottom: clamp(26px, 3vw, 44px); }
.cs-head-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cs-head .num-block { font-size: 32px; }
.cs-client { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.cs-title { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 5.6vw, 88px); letter-spacing: -.04em; line-height: .96; margin: 18px 0 0; max-width: 18ch; text-wrap: balance; }
.cs-headline { font-family: var(--display-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 37px); line-height: 1.1; margin: 14px 0 0; color: var(--ink-soft); }
html.js .split-line { display: block; overflow: hidden; }
html.js .split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(.35s + var(--i, 0) * .08s); }
html.js.is-loaded .split-line > span { transform: none; }
.impact { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }

.meta-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.meta-strip > div { padding: 18px 18px 20px 0; min-width: 0; }
.meta-strip > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.meta-strip dt { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.meta-strip dd { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.meta-strip .card-tags { margin-top: 0; }
@media (max-width: 1000px) { .meta-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .meta-strip > div:nth-child(4) { padding-left: 0; border-left: 0; } .meta-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .meta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .meta-strip > div { padding-left: 0 !important; border-left: 0 !important; } .meta-strip > div:nth-child(odd) { padding-right: 12px; } .meta-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 90px); padding-block: clamp(60px, 8vw, 120px); }
.story-aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.story-aside h2 { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.story-index { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-weight: 600; font-size: 15px; }
.story-index li { padding: 9px 0; border-top: 1px solid var(--line); }
.story-index a { text-decoration: none; display: flex; gap: 12px; color: var(--muted); transition: color .3s; }
.story-index a span { font-family: var(--display-serif); font-size: 18px; }
.story-index a.is-active, .story-index a:hover { color: var(--ink); }
.story-index a.is-active span { background: var(--yellow); padding: 0 4px; }
.story-block { padding-bottom: clamp(36px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 30px); }
.story-block h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; margin: 0 0 14px; display: flex; gap: 14px; align-items: baseline; }
.story-block h3 small { font-family: var(--display-serif); font-weight: 500; font-size: .8em; color: var(--muted); letter-spacing: 0; }
.story-block p { margin: 0; font-size: clamp(17px, 1.2vw, 19.5px); line-height: 1.55; max-width: 62ch; }

.craft-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.craft-list li { padding: 13px 0 13px 28px; border-top: 1px solid var(--line); position: relative; font-size: 17px; line-height: 1.35; }
.craft-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; background: var(--yellow-deep); border-radius: 2px; transform: rotate(45deg) scale(.8); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-aside { position: static; } .story-index { display: none; } .craft-list { grid-template-columns: 1fr; } }

/* Gallery plates — rhythm varies per project */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); padding-bottom: clamp(40px, 6vw, 90px); max-width: 1680px; }
.plate { margin: 0; grid-column: 1 / -1; }
.plate--inset { grid-column: 2 / span 10; }
.plate--half { grid-column: span 6; }
.plate--wide { grid-column: span 7; }
.plate--narrow { grid-column: span 5; }
.plate .frame { position: relative; overflow: hidden; background: var(--cream); border-radius: 2px; }
.plate .frame img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.plate--half .frame, .plate--wide .frame, .plate--narrow .frame { height: 100%; }
.plate--half .frame img, .plate--wide .frame img, .plate--narrow .frame img { height: 100%; object-fit: cover; }
.plate .frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.plate figcaption { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 10px; }
.plate figcaption b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.plate.zoomable .frame { cursor: zoom-in; }
.plate.zoomable:hover .frame img { transform: scale(1.02); }

.pair { display: contents; }
@media (max-width: 760px) { .plate--inset, .plate--half, .plate--wide, .plate--narrow { grid-column: 1 / -1; } .plate--half .frame img, .plate--wide .frame img, .plate--narrow .frame img { height: auto; } }

.section-label { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Motion */
.motion { padding-bottom: clamp(50px, 7vw, 100px); max-width: 1680px; }
.motion-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.vid { position: relative; margin: 0; grid-column: 1 / -1; background: #111; border-radius: 2px; overflow: hidden; }
.vid--half { grid-column: span 6; }
.vid--third { grid-column: span 4; }
.vid--fifth { grid-column: span 12; }
.vid video { width: 100%; height: auto; }
.vid-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.vid-row .vid { grid-column: auto; }
.sound-btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); padding: 9px 14px; font-family: var(--sans); font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .3s, transform .3s var(--ease); }
.sound-btn:hover { background: var(--yellow); transform: translateY(-1px); }
.sound-btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .vid--half, .vid--third { grid-column: 1 / -1; } .vid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Outcome + credits */
.outcome { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); padding-block: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.outcome h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 2.7vw, 38px); letter-spacing: -.03em; margin: 0 0 18px; line-height: 1; }
.outcome p { margin: 0 0 20px; font-size: clamp(17px, 1.2vw, 19.5px); max-width: 58ch; }
.awards-list { list-style: none; padding: 0; margin: 10px 0 0; }
.awards-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.awards-list a { text-decoration: none; }
.awards-list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.credits { background: var(--cream); padding: 30px; align-self: start; border-radius: 2px; }
.credits h3 { margin: 0 0 16px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credits dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-family: var(--sans); font-size: 14.5px; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; font-weight: 600; }
.credits .note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .outcome { grid-template-columns: 1fr; } }

/* Next project */
.next { display: block; text-decoration: none; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.next .wrap { position: relative; z-index: 2; padding-block: clamp(60px, 9vw, 130px); display: grid; gap: 12px; }
.next .eyebrow { color: rgba(255,255,255,.7); }
.next h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(32px, 5.2vw, 80px); letter-spacing: -.045em; line-height: .95; margin: 0; max-width: 16ch; }
.next .next-head { font-family: var(--display-serif); font-style: italic; font-size: clamp(20px, 1.9vw, 27px); color: var(--yellow); }
.next .next-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.next:hover .next-bg { opacity: .55; transform: scale(1); }
.next .arrow-big { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--sans); font-size: 26px; font-weight: 700; margin-top: 16px; transition: transform .5s var(--ease); }
.next:hover .arrow-big { transform: translateX(8px) rotate(-45deg); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,20,19,.94); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .35s var(--ease); cursor: zoom-out; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; object-fit: contain; transform: scale(.97); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox .lb-close { position: absolute; top: max(18px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); background: var(--yellow); border: 0; border-radius: 999px; padding: 10px 16px; font-family: var(--sans); font-weight: 700; cursor: pointer; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 110px); padding-block: 20px clamp(60px, 8vw, 120px); }
.about-grid .bio p { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; margin: 0 0 20px; max-width: 60ch; }
.about-grid .bio p:first-child { font-family: var(--display-serif); font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; }
.approach { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: a; }
.approach li { counter-increment: a; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; }
.approach li::before { content: counter(a, decimal-leading-zero); font-family: var(--display-serif); font-size: 26px; line-height: 1; background: var(--yellow); width: 44px; height: 38px; display: grid; place-items: center; }
.side-block { margin-bottom: 44px; }
.side-block h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.timeline li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.timeline b { font-size: 16px; }
.timeline span { font-size: 14px; color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .creds { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-hero { background: var(--yellow); position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.contact-hero .wrap { position: relative; min-height: min(78vh, 760px); display: grid; align-content: center; gap: 22px; padding-block: 60px 80px; }
.contact-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(52px, 9vw, 150px); letter-spacing: -.05em; line-height: .9; margin: 0; }
.contact-hero .lede { font-size: clamp(20px, 1.7vw, 25px); max-width: 44ch; margin: 0; }
.big-mail { font-family: var(--display-serif); font-weight: 500; font-size: clamp(28px, 4.4vw, 68px); line-height: 1.05; text-decoration: none; word-break: break-word; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--ease); }
.big-mail:hover { background-size: 100% 2px; }
.contact-hero .burst { position: absolute; width: min(56vw, 640px); aspect-ratio: 1; right: -10vw; top: 54%; translate: 0 -50%; }
.contact-hero .burst svg { width: 100%; height: 100%; }
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); padding-block: clamp(60px, 8vw, 110px); }
.contact-options a.opt { text-decoration: none; display: grid; gap: 10px; padding: 28px; background: var(--cream); border-radius: 2px; transition: background .4s var(--ease), transform .4s var(--ease); }
.contact-options a.opt:hover { background: var(--yellow); transform: translateY(-4px); }
.contact-options h2 { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin: 0; }
.contact-options p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.contact-options .go { font-family: var(--sans); font-weight: 700; font-size: 14px; margin-top: 8px; }
@media (max-width: 860px) { .contact-options { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100dvh; background: var(--yellow); display: grid; place-items: center; text-align: center; padding: 40px; position: relative; overflow: hidden; }
.notfound .burst { position: absolute; width: 70vmin; aspect-ratio: 1; }
.notfound .burst svg { width: 100%; height: 100%; }
.notfound div { position: relative; }
.notfound h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(60px, 12vw, 180px); letter-spacing: -.05em; margin: 0; line-height: .9; }
.notfound p { font-family: var(--display-serif); font-size: clamp(24px, 3vw, 40px); margin: 10px 0 30px; }

/* Home: featured grid rhythm */
@media (max-width: 900px) {
  .card, .card--wide, .card--narrow, .card--third, .work-grid .card { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .cs-hero img, html.js .cs-hero video { clip-path: none; transform: none; }
  html.js .split-line > span { transform: none; }
}

/* ---------- Password-protected case studies ---------- */
.locked-hero { background: var(--yellow); position: relative; overflow: hidden; margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.locked-hero .wrap { position: relative; min-height: min(80vh, 760px); display: grid; align-content: center; gap: 20px; padding-block: 70px; }
.locked-hero .burst { position: absolute; width: min(50vw, 560px); aspect-ratio: 1; right: -8vw; top: 50%; translate: 0 -50%; }
.locked-hero .burst svg { width: 100%; height: 100%; }
.locked-hero h1 { position: relative; font-family: var(--sans); font-weight: 700; font-size: clamp(42px, 6.4vw, 96px); letter-spacing: -.045em; line-height: .95; margin: 0; max-width: 14ch; }
.locked-hero .cs-client { position: relative; }
.lock-card { position: relative; background: #fff; max-width: 480px; padding: 28px; border-radius: 4px; box-shadow: 0 30px 80px -40px rgba(26,25,25,.45); display: grid; gap: 14px; }
.lock-card .lock-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; }
.lock-card .lock-ico svg { width: 22px; height: 22px; }
.lock-card h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.lock-card p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.lock-card form { display: flex; gap: 8px; flex-wrap: wrap; }
.lock-card input { flex: 1 1 200px; min-width: 0; font-family: var(--sans); font-size: 16px; padding: 14px 16px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--cream); outline: none; transition: box-shadow .3s; }
.lock-card input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.lock-card .btn { padding: 14px 22px; }
.lock-msg { font-family: var(--sans); font-size: 13.5px; color: var(--muted); min-height: 1.3em; }
.lock-card .ask { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
[data-locked-host] { opacity: 1; }
[data-locked-host].is-unlocked .cs-hero video, [data-locked-host].is-unlocked .cs-hero img { clip-path: inset(0 0 0 0) !important; transform: none !important; }
[data-locked-host].is-unlocked .split-line > span { transform: none !important; }
[data-locked-host].is-unlocked > * { animation: fadein .9s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card--locked .card-media { background: var(--yellow); display: grid; place-items: center; }
.card--locked .card-media .mini-burst { position: absolute; width: 70%; aspect-ratio: 1; right: -18%; bottom: -40%; opacity: .9; }
.card--locked .card-media .mini-burst svg { width: 100%; height: 100%; }
.card--locked .lock { position: relative; text-align: center; font-family: var(--sans); }
.card--locked .lock .lock-ico { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; background: #fff; border-radius: 50%; transition: transform .5s var(--ease); }
.card--locked:hover .lock .lock-ico { transform: rotate(-10deg) scale(1.06); }
.card--locked .lock .lock-ico svg { width: 22px; height: 22px; }
.card--locked .lock strong { display: block; font-size: 15px; }
.card--locked .lock span { display: block; font-size: 13px; margin-top: 2px; }
.lock-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; font-weight: 700; }
.lock-badge svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .home-hero .burst, .contact-hero .burst, .locked-hero .burst { width: 78vw; right: -34vw; top: auto; bottom: -26vw; translate: none; }
  .home-hero .wrap { padding-bottom: 110px; }
}

/* Hero film + hover previews */
.cs-hero video { display: block; width: 100%; height: auto; aspect-ratio: var(--r, 16/9); object-fit: cover; background: var(--cream); }
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transform: scale(1.03); transition: opacity .55s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.card.is-playing .card-video { opacity: 1; transform: scale(1); }
.card-award { z-index: 3; }
.play-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.play-hint::before { content: ""; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.card.is-playing .play-hint { opacity: 0; transform: scale(.7); }

/* Cards are articles: image + title link to the case study, tags link to the filtered list */
.card-link { display: block; text-decoration: none; color: inherit; }
.card .tag { position: relative; z-index: 2; }
.timeline li span { font-size: 13.5px; }

/* Keep descenders and italic overhangs inside the reveal mask */
html.js .split-line { padding: 0 .08em .16em 0; margin-bottom: -.16em; }
.cs-title { padding-bottom: .04em; }
.hero-sound { right: 18px; bottom: 18px; z-index: 3; }

/* Mobile menu fix: the frosted header (backdrop-filter) became the containing block for the fixed
   menu panel, so its last link ("Contact") showed inside the header on scroll. */
@media (max-width: 720px) {
  .site-header.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { visibility: hidden; transition: transform .6s var(--ease), visibility 0s linear .6s; }
  body.nav-open .nav { visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
  body.nav-open .site-header { background: transparent; box-shadow: none; }
}

/* Sunburst interaction (driven by site.js) */
.burst svg, .mini-burst svg { transform-origin: 50% 50%; will-change: transform; }
.burst svg polygon, .mini-burst svg polygon { cursor: pointer; }

/* Work filters: desktop shows everything; phones get a compact bar that opens on tap */
.filter-toggle { display: none; }
.filter-panel { display: contents; }
@media (max-width: 720px) {
  .filters .wrap { padding-block: 10px; gap: 10px; flex-wrap: nowrap; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; border: 0; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 9px 14px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; }
  .filter-toggle .filter-summary { font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .filter-toggle .ft-icon { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); flex: none; }
  .filters.is-open .filter-toggle .ft-icon { transform: translateY(2px) rotate(-135deg); }
  .filters.has-filter .filter-toggle { background: var(--yellow); box-shadow: none; }
  .filters.has-filter .filter-toggle .filter-summary { color: var(--ink); }
  .filter-panel { display: block; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(0,0,0,.4); padding: 4px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .45s var(--ease), opacity .3s, visibility 0s linear .45s; }
  .filters.is-open .filter-panel { max-height: 70vh; overflow-y: auto; opacity: 1; visibility: visible; transition: max-height .45s var(--ease), opacity .3s, visibility 0s; }
  .filter-panel .filter-group { margin-top: 10px; }
  .filter-panel .filter-group > span { width: 100%; margin-bottom: 2px; }
  .view-toggle { margin-left: 0; flex: none; }
  .work-count { display: none; }
}

/* Home hero: content sits from the top; sunburst's top points line up with the eyebrow */
.home-hero .wrap { align-content: start; padding-block: clamp(56px, 6vw, 88px) 110px; }
.home-hero .burst { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(56px, 6vw, 88px) + 14px); translate: none; }
.burst svg polygon { cursor: grab; }
/* Contact page: type in line with the other pages */
.contact-hero h1 { font-size: clamp(40px, 6.4vw, 102px); letter-spacing: -.045em; line-height: .92; }
.contact-hero .lede { font-size: clamp(17px, 1.3vw, 19.5px); }
.big-mail { font-size: clamp(22px, 2.6vw, 38px); }
.contact-hero .wrap { min-height: min(70vh, 680px); }
.contact-options h2 { font-size: 19px; }
.contact-options p { font-size: 16px; }
@media (max-width: 720px) { .home-hero .burst { top: auto; } }

/* Story blocks: a yellow panel wipes down behind the block under the mouse (desktop only) */
@media (hover: hover) and (min-width: 861px) {
  .story-block { position: relative; padding: 28px 32px 30px; margin: 0 -32px clamp(10px, 1.4vw, 22px); }
  .story-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border-radius: 2px; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); }
  .story-block:hover::before { clip-path: inset(0 0 0 0); }
  .story-block h3 small { transition: color .4s var(--ease); }
  .story-block:hover h3 small { color: var(--ink); }
  .craft-list li { transition: border-color .4s var(--ease); }
  .story-block:hover .craft-list li { border-color: rgba(26,25,25,.12); }
  .craft-list li::before { transition: background-color .45s var(--ease) .1s, transform .45s var(--ease) .1s; }
  .story-block:hover .craft-list li::before { background-color: #fff; transform: rotate(45deg) scale(.9); }
  .story > div { position: relative; z-index: 0; }
}

/* Nav: Home only appears in the phone menu */
.nav-home { display: none; }
@media (max-width: 720px) { .nav-home { display: inline; } }

/* Contact: content from the top; sunburst's top points line up with the eyebrow */
.contact-hero .wrap { align-content: start; padding-block: clamp(56px, 6vw, 88px) 90px; }
.contact-hero .burst { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(56px, 6vw, 88px) + 14px); translate: none; }

/* Contact sunburst: a gentle pulse that sends ripples of points outwards */
.burst .rotor { position: relative; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.burst .rotor > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; }
.burst .rotor > svg:not(:last-child) { pointer-events: none; opacity: 0; animation: ripple 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.burst .rotor > svg:nth-child(2) { animation-delay: 1.5s; }
.burst .rotor > svg:nth-child(3) { animation-delay: 3s; }
.burst .rotor > svg:not(:last-child) polygon { fill: #fff; }
.burst .rotor > svg:last-child { animation: pulse 1.5s ease-in-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.035); } 50% { transform: scale(1); } }

/* Phones: the sun peeks in from the right beside the headline, as a half circle */
@media (max-width: 720px) {
  .home-hero .burst, .contact-hero .burst { width: 58vw; right: -29vw; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 96px); bottom: auto; translate: none; }
  .home-hero h1 { max-width: 9.6ch; }
  .home-hero .wrap { padding-bottom: 70px; }
}
@media (max-width: 720px) {
  .contact-hero .eyebrow, .contact-hero .lede { max-width: 70vw; }
}

/* Story blocks: soft, slow fade in/out instead of a wipe */
@media (hover: hover) and (min-width: 861px) {
  .story-block::before { clip-path: none; opacity: 0; transition: opacity 2s cubic-bezier(.4, 0, .2, 1); }
  .story-block:hover::before { clip-path: none; opacity: 1; transition-duration: 1.6s; }
  .story-block h3 small { transition: color 1.6s ease; }
  .craft-list li::before { transition: background-color 1.6s ease, transform 1.6s ease; }
}

/* Contact sunburst v2: thin 1px outlines of the points radiate out every couple of seconds */
.burst .rotor > svg:last-child { animation: none; }
.burst .rotor > svg:not(:last-child) { animation: ripple-line 6s cubic-bezier(.25, .6, .35, 1) infinite; }
.burst .rotor > svg:nth-child(2) { animation-delay: 2s; }
.burst .rotor > svg:nth-child(3) { animation-delay: 4s; }
.burst .rotor > svg:not(:last-child) polygon { fill: none; stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
@keyframes ripple-line { 0% { transform: scale(1); opacity: 0; } 6% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

/* Story blocks: snappy in (0.5s), slow out (2s) */
@media (hover: hover) and (min-width: 861px) {
  .story-block::before { transition: opacity 2s cubic-bezier(.4, 0, .2, 1); }
  .story-block:hover::before { transition: opacity .5s ease-out; }
  .story-block h3 small { transition: color 2s ease; }
  .story-block:hover h3 small { transition: color .5s ease-out; }
  .craft-list li::before { transition: background-color 2s ease, transform 2s ease; }
  .story-block:hover .craft-list li::before { transition: background-color .5s ease-out, transform .5s ease-out; }
}
/* Motion inside a plate */
.plate .frame .plate-video { position: absolute; object-fit: cover; display: block; }
/* Motion: everything big. Square / portrait films sit centred on a cream panel, full width */
.vid--tall { background: var(--cream); display: grid; place-items: center; padding-block: clamp(20px, 3vw, 48px); }
.vid--tall video { width: auto; max-width: 100%; height: min(86vh, 900px); object-fit: contain; }
