/* ==========================================================================
   Minimal product-studio theme
   ========================================================================== */
:root {
  --bg: #f4f4f2;
  --tile: #e9e9e6;
  --ink: #1c1d20;
  --muted: #9b9b98;
  --line: #dededa;
  --dark-bg: #1c1d20; /* Contact section + footer */
  --bg-about: #e3e3e0; /* About section tone, matches the faded name */
  --proof: #e5372a; /* proofreader’s red, used for the stet dots and mark-ups */
  /* a row of round stet dots, sized by background-size on each use */
  --dots: radial-gradient(circle closest-side, var(--proof) 88%, transparent 100%);
  /* Urbanist (Google Fonts, variable 400–900). Display headings use --display-weight. */
  --sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 800;
  --body-size: clamp(17px, 1.43vw, 21px); /* running body copy: About, project descriptions */
  --gutter: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); letter-spacing: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color 1s cubic-bezier(.16, 1, .3, 1); }
body.tone-about { background-color: var(--bg-about); }
body.tone-about .about { --line: #d3d3cf; --tile: #d9d9d5; }
img, video, 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; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
::selection { background: var(--proof); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 200; }

.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.eyebrow sup { font-size: 10px; margin-left: 2px; }

/* reveal primitives */
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.in-view .mask > span, .mask.in-view > span { transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
.word { display: inline-block; opacity: .12; transition: opacity .3s linear; }

/* cursor: the proofreader’s red dot */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--proof); opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-on.is-hidden, .cursor.is-on.is-active { opacity: 0; } /* hands over to the "View" dot */
/* "View": the cursor dot swells into a big red dot with the label */
.cursor-box { position: fixed; left: 0; top: 0; pointer-events: none; width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor-box { z-index: 121; display: grid; place-items: center; }
.cursor-box::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--proof); transform: scale(.15); opacity: 0; transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .25s; }
.cursor-box.is-active::before { transform: scale(1); opacity: 1; }
.cursor-label { position: relative; font-size: 14px; font-weight: 600; line-height: 1; color: #fff; opacity: 0; transition: opacity .35s; }
.cursor-box.is-active .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-box { display: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px var(--gutter); pointer-events: none;
  /* ink on the light page, easing to white as Contact goes dark (same --tone as the page) */
  --hdr: color-mix(in srgb, #f4f4f2 calc(var(--tone, 0) * 100%), #1c1d20); color: var(--hdr); }
.site-header { --hdr-bg: color-mix(in srgb, var(--dark-bg) calc(var(--tone, 0) * 100%), #f4f4f2); --glass-bg: var(--hdr-bg); } /* page colour behind the header */
/* the frosted circle + pills reach ~18px past their text, so give them room to clear the screen edge */
.site-header { padding-inline: calc(var(--gutter) + 18px); }
.site-header .nav a { color: #8a8a8a; }
.site-header .nav a.active { color: var(--hdr); }
.site-header > * { pointer-events: auto; }
/* frosted glass behind the monogram (circle) and nav (pill), like the play buttons on the work.
   Fades in once the page scrolls, so they only show up when there's something to sit over. */
.mono::after, .nav::before { content: ""; position: absolute; z-index: -2; pointer-events: none;
  background: color-mix(in srgb, var(--hdr-bg) 58%, transparent);
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0; scale: .92; transition: opacity .45s var(--ease-out), scale .6s var(--ease-out); }
.mono::after { left: 50%; top: 50%; width: 52px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.nav { position: relative; isolation: isolate; }
.nav::before { inset: -12px -15px; border-radius: 999px; }
body.scrolled .mono::after, body.scrolled .nav::before { opacity: 1; scale: 1; }
body.menu-open .mono::after, body.menu-open .nav::before { opacity: 0; }
body.menu-open .site-header { --hdr: #1c1d20; --hdr-bg: #f4f4f2; } /* menu overlay is light */
/* rollover: a big red dot swells up behind the word, and the word is knocked out of it (page colour) */
.mono, .nav a { position: relative; isolation: isolate; transition: color .3s; }
.mono::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: calc(100% - 14px); aspect-ratio: 1; border-radius: 50%; background: var(--proof); transform: translate(-50%, -50%) scale(0); transition: transform .55s cubic-bezier(.34, 1.4, .64, 1); pointer-events: none; }
.mono::before { width: 42px; } /* fits both rows of the monogram */
.mono:hover::before, .mono:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
/* Glide groups ([data-glide]: header nav, footer + menu social links): one red pill glides to
   whichever item is hovered or focused, with white type on it (placed by main.js) */
[data-glide] { position: relative; isolation: isolate; }
.glide-pill { position: absolute; z-index: -1; top: 0; left: 0; height: 0; width: 0; border-radius: 999px; background: var(--proof); opacity: 0; pointer-events: none;
  transition: opacity .3s, left .5s var(--ease-out), width .5s var(--ease-out), top .5s var(--ease-out), height .5s var(--ease-out); }
.glide-pill.on { opacity: 1; }
.glide-pill.jump { transition: opacity .3s; }
[data-glide] a { transition: color .3s; }
.site-header [data-glide] a:hover, .site-header [data-glide] a:focus-visible, [data-glide] a:hover, [data-glide] a:focus-visible { color: #fff; }

/* Pill buttons (mobile Menu, project Next + Close): frosted glass pill, red fills in on hover,
   magnetic like the monogram. The red sits inside the glass, so it's always contained. */
.pill-btn { position: relative; isolation: isolate; padding: 8px 14px; margin: -8px -14px; border-radius: 999px; transition: color .3s; }
.pill-btn::before, .pill-btn::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.pill-btn::before { inset: -4px; z-index: -2; background: color-mix(in srgb, var(--glass-bg, var(--bg)) 58%, transparent); border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); transition: opacity .45s var(--ease-out), scale .6s var(--ease-out); }
.pill-btn::after { inset: 0; z-index: -1; background: var(--proof); opacity: 0; transition: opacity .3s; }
.pill-btn:hover, .pill-btn:focus-visible, .pill-btn:hover b, .pill-btn:focus-visible b { color: #fff; }
.pill-btn:hover::after, .pill-btn:focus-visible::after { opacity: 1; }
/* in the header, the glass waits for the page to scroll (like the nav and monogram) */
.site-header .pill-btn::before { opacity: 0; scale: .92; }
body.scrolled .site-header .pill-btn::before { opacity: 1; scale: 1; }
body.menu-open .site-header .pill-btn::before { opacity: 0; }
.site-header .mono:hover, .site-header .mono:focus-visible { color: var(--hdr-bg); }
.mono { display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; padding: 9px 10px; margin: -9px -10px; }
/* current section: the word turns proof red and a touch bolder. The hidden bold copy (::after)
   reserves the bold width so neighbours never shift. */
.nav a::after { content: attr(data-label); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.site-header .nav a.active { color: var(--proof); font-weight: 700; }
.site-header .nav a.active:hover, .site-header .nav a.active:focus-visible { color: #fff; }
.nav { display: flex; gap: clamp(22px, 2.4vw, 34px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; display: inline-grid; justify-items: center; padding: 8px 10px; margin: -8px -10px; } /* padding = magnetic hit area; negative margin keeps spacing */
.nav a { transition: color .3s, font-weight .3s; }

/* Menu button + overlay (mobile) */
.menu-btn { display: none; font-size: 14px; font-weight: 500; color: inherit; position: relative; z-index: 2; }
.menu-btn .menu-close, .menu-open .menu-btn .menu-open { display: none; }
.menu-open .menu-btn .menu-close { display: inline; }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 90px var(--gutter) 28px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.open { clip-path: inset(0); }
.menu-links { display: grid; gap: 4px; }
.menu-links a { font-size: clamp(48px, 15vw, 96px); font-weight: var(--display-weight); letter-spacing: -.005em; line-height: .95; text-transform: uppercase; transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s; }
.menu.open .menu-links a { transform: none; opacity: 1; }
.menu-links a { transition: transform .8s var(--ease-out), opacity .6s, color .3s; }
.menu-links a.active { color: var(--proof); }
.menu.open .menu-links a:nth-child(2) { transition-delay: .05s; } .menu.open .menu-links a:nth-child(3) { transition-delay: .1s; } .menu.open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu-social { display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--muted); }
.menu-social a, .social a { display: inline-block; padding: 6px 12px; margin: -6px -12px; }
body.menu-open { overflow: hidden; }
@media (max-width: 700px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-visual { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.hero-visual img { width: min(92vw, 1400px); height: auto; max-height: 78vh; object-fit: contain; transform: translateY(-8vh); filter: blur(var(--hb, 0px)); }
.hero-visual > * { opacity: 0; transition: opacity 1.8s var(--ease-out) .2s; }
.hero.in-view .hero-visual > * { opacity: 1; }
/* STET front and centre, the line underneath */
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 44px); padding: 0 var(--gutter); text-align: center; }
.hero-name { font-size: clamp(52px, 9.6vw, 164px); font-weight: var(--display-weight); line-height: .78; letter-spacing: -.045em; text-transform: uppercase; margin-left: -.04em; }
.hero-name .mask:nth-child(2) > span { --d: .08s; }
/* STET: one word, so it runs larger; the proofreader’s dots tap in underneath once it lands */
.hero-name.is-brand { font-size: clamp(120px, 25vw, 440px); margin-left: 0; }
.hero-name.is-brand::after { content: ""; display: block; height: .07em; width: calc(100% - .02em); margin-top: .09em; background: var(--dots) left center / .19em 100% repeat-x; clip-path: inset(0 100% 0 0); animation: stet-dots 1.1s steps(12, end) 1s forwards; opacity: var(--dots-o, 1); }
@keyframes stet-dots { to { clip-path: inset(0 0 0 0); } }
@keyframes stet-march { to { background-position-x: .2em; } }
/* extra room inside the reveal masks so descenders (y, g, p) and round edges are not clipped */
.hero-name .mask, .cs-title .mask, .works-title .mask { padding: .06em .25em .22em .08em; margin: -.06em -.25em -.22em -.08em; }
.hero-bio { font-size: clamp(15px, 1.35vw, 20px); line-height: 1.3; letter-spacing: 0; font-weight: 500; max-width: 36ch; }


/* ---------- Home stage: pinned name + floating featured work ---------- */
.stage { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; z-index: 1; pointer-events: none; }
/* the hero pulls up under the pinned name, so the pin keeps its full height and releases exactly when the stage ends */
.stage .hero { margin-top: -100svh; }
.pin .hero-text { color: var(--ink); transition: color .1s linear; }
.stage .hero { z-index: 0; }
.featured { position: relative; z-index: 2; padding: 6vh var(--gutter) 0; }
.featured-list { position: relative; }
.feat { display: block; width: var(--w); margin-left: var(--x); margin-top: var(--mt); text-align: left; cursor: pointer; will-change: transform; }
.feat:first-child { margin-top: 0; }
.feat-reveal { display: block; opacity: 0; transform: translateY(180px); transition: opacity 1.2s var(--ease-out), transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.feat.in-view .feat-reveal { opacity: 1; transform: none; }
.feat-mag { display: block; will-change: transform; }
.feat-media { display: block; aspect-ratio: var(--ar, 4 / 5); overflow: hidden; background: var(--tile); }
.feat-inner { display: block; width: 100%; height: 100%; will-change: transform; }
.feat-inner > * { width: 100%; height: 100%; object-fit: cover; }
.feat-cap { display: flex; gap: 10px; align-items: baseline; padding: 12px 0 6px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--muted); }
.feat-cap b { color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.feat-year { margin-left: auto; }
.feat-cap > * { transition: transform .7s var(--ease); }
.feat:hover .feat-cap b { transform: translateX(4px); }
.featured-cta { display: flex; justify-content: center; padding: 18vh 0 46vh; opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
.featured-cta.in-view { opacity: 1; transform: none; }
.all-works { display: inline-flex; align-items: baseline; gap: .18em; font-size: clamp(44px, 7.5vw, 120px); font-weight: var(--display-weight); letter-spacing: -.005em; line-height: 1; text-transform: uppercase; color: var(--ink); }
.all-works sup { font-size: .18em; letter-spacing: 0; color: var(--muted); align-self: flex-start; margin-top: .4em; }
.all-works > span:first-child { position: relative; }
.all-works > span:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .07em; background: var(--dots) left center / .19em 100% repeat-x; clip-path: inset(0 100% 0 0); transition: clip-path .6s steps(10, end); }
.all-works:hover > span:first-child::after, .all-works:focus-visible > span:first-child::after { clip-path: inset(0 0 0 0); }

/* ---------- Works page ---------- */
/* Rows of same-height images that run off the right edge, small title underneath (reference: mirkoromanelli.com/#works) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.works-page { --rowh: clamp(220px, 36vw, 640px); padding: clamp(72px, 8vw, 104px) 0 clamp(60px, 8vw, 120px); }
.wrow { margin-bottom: clamp(26px, 3vw, 48px); }
.wrow-viewport { overflow: hidden; } /* strips start flush with the browser edge */
.wrow-track { display: flex; gap: clamp(4px, .45vw, 8px); width: max-content; cursor: pointer; will-change: transform; outline-offset: 4px; }
.wrow-img { display: block; flex: 0 0 auto; height: var(--rowh); aspect-ratio: var(--ar); overflow: hidden; background: var(--tile); clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.wrow.in-view .wrow-img { clip-path: inset(0); }
.wrow-img > * { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.wrow.in-view .wrow-img > * { transform: scale(1); }
.wrow-track:hover .wrow-img > * { transform: scale(1.035); transition-duration: 1s; transition-delay: 0s; }
.wrow-meta { display: flex; flex-direction: column; gap: 1px; width: max-content; padding: 12px var(--gutter) 0; font-size: 13px; line-height: 1.3; }
.wrow-meta b { font-weight: 700; color: var(--ink); transition: transform .7s var(--ease); }
.wrow-meta span { font-size: 12.5px; color: var(--muted); transition: transform .7s var(--ease) .04s; }
.wrow:hover .wrow-meta b, .wrow:hover .wrow-meta span { transform: translateX(5px); }
@media (max-width: 700px) {
  .works-page { --rowh: 62vw; }
  .wrow-viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-right: var(--gutter); }
  .wrow-viewport::-webkit-scrollbar { display: none; }
  .wrow-img { scroll-snap-align: start; }
}
.works.works-page { padding-top: clamp(110px, 16vw, 200px); }
.works-title { display: flex; align-items: flex-start; font-size: clamp(64px, 13vw, 210px); font-weight: var(--display-weight); letter-spacing: -.005em; line-height: .86; text-transform: uppercase; margin: 0 0 clamp(28px, 4vw, 56px) -.04em; }
.works-title sup { font-size: .12em; letter-spacing: 0; font-weight: 500; color: var(--muted); margin: .3em 0 0 .3em; }
.works-page .works-head { border-bottom: 1px solid var(--line); }

/* ---------- Works ---------- */
.works { padding: clamp(80px, 12vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); }
.works-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.works-tools { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.filter { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .3s; }
.filter sup { font-size: 9px; margin-left: 1px; }
.filter:hover, .filter[aria-selected="true"] { color: var(--ink); }
.toggle { display: inline-flex; gap: 12px; font-size: 13px; font-weight: 500; padding-left: 22px; border-left: 1px solid var(--line); }
.toggle button { color: var(--muted); transition: color .3s; }
.toggle button[aria-pressed="true"] { color: var(--ink); }

.works-list { transition: opacity .4s; }
.works-list.swapping { opacity: 0; }

/* List view: title + horizontal strip of images */
.is-list .work { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 4fr); gap: clamp(16px, 2.4vw, 36px); padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.work-info { display: flex; flex-direction: column; gap: 2px; }
.work-title { font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.work-sub { font-size: 14px; color: var(--muted); }
.work-meta { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.strip { display: flex; gap: clamp(8px, 1vw, 14px); overflow: hidden; }
.strip > span { flex: 0 0 calc((100% - 4 * clamp(8px, 1vw, 14px)) / 5); aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); position: relative; }
.strip-inner { display: flex; gap: inherit; width: 100%; will-change: transform; }
.strip .ph, .strip img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.work.in-view .strip .ph, .work.in-view .strip img { transform: scale(1); }
.work:hover .strip .ph, .work:hover .strip img { transform: scale(1.04); }
.strip > span { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.work.in-view .strip > span { clip-path: inset(0); }
.is-list .work .work-title { transition: transform .7s var(--ease); }
.is-list .work:hover .work-title, .is-list .work:hover .work-sub { transform: translateX(6px); }
.work-sub { transition: transform .7s var(--ease) .04s; }
.cover { display: none; }

/* Grid view: cover tiles */
.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(12px, 1.4vw, 20px); padding-top: clamp(24px, 3vw, 40px); }
.is-grid .work { display: flex; flex-direction: column-reverse; gap: 14px; cursor: pointer; text-align: left; }
.is-grid .strip, .is-grid .work-meta { display: none; }
.is-grid .cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.is-grid .work.in-view .cover { clip-path: inset(0); }
.is-grid .cover > * { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.5s var(--ease-out); }
.is-grid .work.in-view .cover > * { transform: scale(1); }
.is-grid .work:hover .cover > * { transform: scale(1.04); }
.is-grid .work-info { flex-direction: row; justify-content: space-between; gap: 12px; }

/* placeholders */
.ph { display: block; width: 100%; height: 100%; position: relative; }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- About ---------- */
.about { padding: clamp(124px, 12vw, 180px) var(--gutter) clamp(80px, 12vw, 180px); } /* top room keeps the eyebrow clear of the fixed header */
.about-statement { text-wrap: balance; font-size: clamp(28px, 4.2vw, 68px); line-height: 1.14; letter-spacing: -.015em; font-weight: 500; max-width: 20ch; margin: 22px 0 clamp(60px, 9vw, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; max-width: 560px; }
.portrait img, .portrait svg { width: 100%; height: 100%; object-fit: cover; }
.about-body { font-size: var(--body-size); line-height: 1.45; letter-spacing: 0; max-width: 42ch; margin-bottom: clamp(40px, 5vw, 72px); }
.about-body p + p { margin-top: 1em; }
.about-side .eyebrow { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.experience { margin-bottom: clamp(40px, 5vw, 64px); }
.experience li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.experience .co { font-weight: 600; }
.experience .role, .experience .dates { color: var(--muted); }
.clients { margin-bottom: clamp(40px, 5vw, 64px); }
.caps { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; font-size: 14px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(124px, 12vw, 180px) var(--gutter) clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); }
/* Contact fades to dark like About: the page background eases to --dark-bg and the colour tokens below animate (via @property) to light-on-dark. */
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1c1d20; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #9b9b98; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #dededa; }
@property --bg { syntax: "<color>"; inherits: true; initial-value: #f4f4f2; }
/* --tone (0 → 1) is set from scroll position in main.js, so the fade tracks the scroll and is
   always complete when the Contact glide comes to rest. Everything below mixes toward dark by that amount. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--dark-bg); opacity: var(--tone, 0); pointer-events: none; }
.contact, .site-footer { color: var(--ink);
  --bg: color-mix(in srgb, var(--dark-bg) calc(var(--tone, 0) * 100%), #f4f4f2);
  --ink: color-mix(in srgb, #f1f0ec calc(var(--tone, 0) * 100%), #1c1d20);
  --muted: color-mix(in srgb, #8e8e8a calc(var(--tone, 0) * 100%), #9b9b98);
  --line: color-mix(in srgb, #34353a calc(var(--tone, 0) * 100%), #dededa); }
.about { opacity: calc(1 - var(--tone, 0) * .92); } /* About recedes as the page goes dark */
.contact { border-top: 0; }
.contact-form input, .contact-form textarea { caret-color: var(--ink); }
.contact-form input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 40px var(--bg) inset; }
.contact-cta { text-wrap: balance; font-size: clamp(30px, 4.6vw, 76px); line-height: 1; letter-spacing: -.015em; font-weight: 500; max-width: 18ch; margin: 22px 0 clamp(50px, 7vw, 110px); }
.contact-cta a { position: relative; transition: color .3s; }
.contact-cta a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .1em; background: var(--dots) left center / .2em 100% repeat-x; clip-path: inset(0 100% 0 0); transition: clip-path .7s steps(14, end) .5s; }
.contact-cta .word.lit a::after { clip-path: inset(0 0 0 0); }
.contact-cta a:hover::after { animation: stet-march .5s linear infinite; }
.contact-cta a:hover { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.contact-info dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.contact-info dd { font-size: 15px; font-weight: 500; }
.contact-info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact-info a:hover { background-size: 100% 1px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form span { font-size: 12px; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea { font: 500 16px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; resize: vertical; transition: border-color .3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.send { justify-self: start; font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); display: inline-flex; gap: 10px; transition: background-color .3s, color .3s, opacity .3s; }
.send:hover, .send:focus-visible { background: var(--proof); color: #fff; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 500; }
.social { display: flex; gap: 30px; }

/* ---------- Project detail ---------- */
dialog { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: transparent; }
dialog[open] { animation: slide-in .9s var(--ease) both; }
dialog.closing { animation: slide-out .7s var(--ease) both; }
@keyframes slide-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slide-out { from { transform: none; } to { transform: translateY(100%); } }
.modal-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--gutter); font-size: 14px; font-weight: 500; pointer-events: none; }
.modal-bar > * { pointer-events: auto; }
.modal-bar { padding-inline: calc(var(--gutter) + 18px); } /* pills clear the screen edge, like the header */
@media (max-width: 700px) { #modal-next-top { display: none; } .modal-close { margin-left: auto; } } /* phones: just Close up top; Next stays at the foot of the project */
#modal-title:focus { outline: none; }
.modal-next { color: var(--muted); text-align: left; transition: color .3s; }
.modal-next b { color: var(--ink); font-weight: 600; }

.cs-head { padding: clamp(60px, 10vw, 140px) var(--gutter) clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.cs-title { font-size: clamp(44px, 8.4vw, 144px); line-height: .88; letter-spacing: -.005em; font-weight: var(--display-weight); text-transform: uppercase; }
.cs-sub { font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 14px; }
.cs-desc { font-size: var(--body-size); line-height: 1.5; letter-spacing: 0; }
.cs-desc p + p { margin-top: 1em; }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 18px var(--gutter); border-block: 1px solid var(--line); font-size: 14px; }
.cs-facts dt { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.cs-facts dd { font-weight: 500; }
.cs-facts a { text-decoration: underline; text-underline-offset: 3px; }
.cs-media { padding: clamp(16px, 2vw, 28px) var(--gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.cs-media > div { background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden; }
.cs-media > div.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.cs-media > div > * { width: 100%; height: 100%; border: 0; object-fit: cover; }
.cs-nav { display: flex; justify-content: space-between; gap: 20px; padding: clamp(50px, 7vw, 100px) var(--gutter) clamp(30px, 4vw, 50px); }
.cs-nav button { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); display: grid; gap: 6px; transition: color .3s; }
.cs-nav button:last-child { text-align: right; }
.cs-nav button b { font-size: clamp(28px, 4vw, 60px); color: var(--ink); font-weight: var(--display-weight); letter-spacing: -.005em; line-height: 1; text-transform: uppercase; transition: transform .7s var(--ease); }
.cs-nav button:first-child:hover b { transform: translateX(-8px); }
.cs-nav button:last-child:hover b { transform: translateX(8px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-bio { max-width: 34ch; }
  .is-list .work { grid-template-columns: 1fr; }
  .work-meta { display: none; }
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .strip::-webkit-scrollbar { display: none; }
  .strip > span { flex-basis: calc((100% - 2 * clamp(8px, 1vw, 14px)) / 2.6); scroll-snap-align: start; }
  .is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contact-grid, .cs-head { grid-template-columns: 1fr; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .feat { width: 74% !important; margin-left: 0 !important; margin-top: 16vh !important; }
  .feat:nth-child(even) { margin-left: 26% !important; }
  .feat:first-child { margin-top: 0 !important; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; font-size: 13px; }
  .works-head { align-items: flex-start; }
  .toggle { padding-left: 0; border-left: 0; }
  .is-grid { grid-template-columns: 1fr; }
  .experience li { grid-template-columns: 1fr auto; }
  .experience .role { grid-column: 1; grid-row: 2; }
  .contact-form, .contact-info { grid-template-columns: 1fr; }
  .cs-media { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mask > span, .reveal { transform: none !important; opacity: 1 !important; }
  .strip > span, .is-grid .cover { clip-path: none !important; }
  .word { opacity: 1 !important; }
  .hero-visual > * { opacity: 1 !important; }
}

/* ======================================================================
   Page transitions (home → works)
   ====================================================================== */
/* Image morph: cross-page View Transitions (browsers without support load normally) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pt-out .55s cubic-bezier(.65, .05, 0, 1) both; }
::view-transition-new(root) { animation: pt-in .8s .3s cubic-bezier(.16, 1, .3, 1) both; }
::view-transition-group(.pt) { animation-duration: 1.05s; animation-timing-function: cubic-bezier(.65, .05, 0, 1); z-index: 2; }
::view-transition-image-pair(.pt) { overflow: hidden; }
::view-transition-old(.pt), ::view-transition-new(.pt) { width: 100%; height: 100%; object-fit: cover; animation-duration: 1.05s; }
@keyframes pt-out { to { opacity: 0; transform: translateY(-3vh); } }
@keyframes pt-in { from { opacity: 0; transform: translateY(4vh); } }
.pt-arrive .wrow-img { clip-path: none !important; transition: none !important; }
.pt-arrive .wrow-img > * { transform: none !important; transition: none !important; }

/* Curtain wipe: nav / menu "Works" link, and the fallback everywhere else */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--dark-bg); color: #f4f4f2; pointer-events: none; transform: translateY(100%); visibility: hidden; transition: transform .8s var(--ease), visibility 0s .8s; }
.curtain-word { display: block; overflow: hidden; padding: .06em .25em .22em .08em; font-size: clamp(64px, 14vw, 240px); font-weight: var(--display-weight); letter-spacing: -.045em; line-height: .8; text-transform: uppercase; }
.curtain-word > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease-out) .25s; }
.curtain-word > span::after { content: ""; display: block; height: .07em; margin-top: .09em; background: var(--dots) left center / .19em 100% repeat-x; }
.curtain-in .curtain, .curtain-hold .curtain { transform: none; visibility: visible; transition: transform .8s var(--ease); }
.curtain-in .curtain-word > span, .curtain-hold .curtain-word > span { transform: none; }
.curtain-hold .curtain, .curtain-hold .curtain-word > span { transition: none; }
.curtain-out .curtain { transform: translateY(-100%); visibility: visible; transition: transform 1s var(--ease) .15s, visibility 0s 1.15s; }
.curtain-out .curtain-word > span { transform: translateY(-40%); transition: transform 1s var(--ease) .15s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .curtain { display: none; }
}

/* Stet definition at the end of the About text */
.stet-def { margin-top: 1.6em !important; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.stet-def i { font-style: italic; color: var(--ink); }
.stet-word { position: relative; color: var(--ink); font-weight: 700; margin-right: .2em; }
.stet-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3em; height: .28em; background: var(--dots) left center / .34em 100% repeat-x; clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(4, end) .7s; }
.about-body.in-view .stet-word::after { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .hero-name.is-brand::after { animation: none; clip-path: none; }
  .contact-cta a:hover::after { animation: none; }
  .contact-cta a::after, .stet-word::after { clip-path: none !important; }
}

/* ---------- Proof marks: hand-struck edits, handwritten fixes, margin notes ---------- */
:root { --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive; }
.edit { white-space: nowrap; }
.edit del { position: relative; text-decoration: none; color: inherit; transition: color .4s .3s; }
.strike { position: absolute; left: -4%; top: calc(56% - .2em); width: 108%; height: .4em; overflow: visible; pointer-events: none; clip-path: inset(-100% 100% -100% 0); transition: clip-path .5s cubic-bezier(.6, 0, .3, 1); } /* drawn in left→right by unclipping (a dash trick breaks the line into pieces on stretched strokes) */
.strike path, .note-arrow path { fill: none; stroke: var(--proof); stroke-linecap: round; stroke-linejoin: round; }
.strike path { stroke-width: max(2px, .1em); vector-effect: non-scaling-stroke; }
.note-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.edit ins { display: inline-block; text-decoration: none; font-family: var(--hand); font-weight: 600; font-size: 1.12em; line-height: .9; letter-spacing: 0; color: var(--proof); opacity: 0; transform: rotate(-3deg) translateY(.25em); transition: opacity .4s .45s, transform .6s var(--ease-out) .45s; }
/* big lines: draw when the word lights up on scroll */
.word.lit .strike { clip-path: inset(-100% -10% -100% -10%); }
.word.lit del { color: color-mix(in srgb, currentColor 45%, transparent); } /* dim the struck words, not the red line */
.word.lit ins { opacity: 1; transform: rotate(-3deg); }
/* hero line: draws in after STET and its dots */
.hero-bio .strike { animation: proof-draw .5s cubic-bezier(.6, 0, .3, 1) 2.1s forwards; }
.hero-bio del { animation: proof-dim .4s 2.4s forwards; }
.hero-bio ins { animation: proof-ins .6s var(--ease-out) 2.5s forwards; }
@keyframes proof-draw { to { clip-path: inset(-100% -10% -100% -10%); } }
@keyframes proof-dim { to { color: color-mix(in srgb, currentColor 45%, transparent); } }
@keyframes proof-ins { to { opacity: 1; transform: rotate(-3deg); } }

/* margin notes */
.note { position: absolute; z-index: 2; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; font: 600 clamp(22px, 2.2vw, 34px)/1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--proof); white-space: nowrap; }
.note-text { display: inline-block; font-style: normal; transform: rotate(-4deg); opacity: 0; transition: opacity .5s .55s; }
.note-arrow { flex: none; width: 1.65em; height: 1.1em; overflow: visible; margin-bottom: -.6em; } /* sized in em so the line weight tracks the handwriting */
.note-arrow path { stroke-width: 3.5; /* in arrow units: ≈ the handwriting’s pen weight at any size */ transition: stroke-dashoffset .55s cubic-bezier(.6, 0, .3, 1); }
.note-arrow path + path { transition-duration: .2s; transition-delay: .5s; }
.note.in-view .note-text { opacity: 1; }
.note.in-view .note-arrow path { stroke-dashoffset: 0; }
/* where each one sits */
.hero-name { position: relative; }
.note-hero { left: calc(100% - 30px); bottom: calc(100% + 6px); opacity: var(--hero-o, 1); font-size: clamp(22px, 2.2vw, 34px); }
.note-hero .note-text, .note-hero .note-arrow path { transition-delay: 2.7s; }
.note-hero .note-arrow path + path { transition-delay: 3.2s; }
.all-works { position: relative; }
.note-allWorks { left: 50%; bottom: calc(100% + 4px); translate: -50% 0; } /* centred just above the link */
.eyebrow { position: relative; }
.note-experience, .note-clients, .note-capabilities, .note-send { position: static; display: inline-flex; margin-left: 14px; vertical-align: -4px; }
.note-experience .note-arrow, .note-clients .note-arrow, .note-capabilities .note-arrow, .note-send .note-arrow { display: none; }
.send { position: relative; }
.note-send { position: absolute; left: calc(100% + 4px); top: 50%; margin-top: -.55em; }
.works-page { position: relative; }
.works-page[data-note] { padding-top: clamp(112px, 11vw, 150px); } /* room for the note above the first row */
.note-works { left: var(--gutter); top: clamp(64px, 6.6vw, 92px); }
@media (prefers-reduced-motion: reduce) {
  .note-arrow path { stroke-dashoffset: 0 !important; }
  .strike { clip-path: none !important; animation: none !important; }
  .edit del { color: color-mix(in srgb, currentColor 45%, transparent); animation: none; }
  .edit ins, .note-text { opacity: 1 !important; transform: rotate(-3deg); animation: none; transition: none; }
}

/* Hero ink: draw your own stets (mouse / pen only) */
.ink { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: auto; touch-action: pan-y; }
@media (hover: none), (pointer: coarse) { .ink { pointer-events: none; } }
.note-draw { position: static; margin-top: -6px; font-size: clamp(19px, 1.5vw, 24px); }
.note-draw .note-arrow { display: none; }
.note-draw .note-text { transition-delay: 4.6s; }
body.inked .note-draw .note-text { opacity: 0; transition: opacity .6s; } /* hint bows out once they start */
@media (hover: none), (pointer: coarse) { .note-draw { display: none; } }
/* on scroll, everything in the hero but STET (and its dots) fades out */
.hero-bio, .note-draw { opacity: var(--hero-o, 1); }
/* depth: STET softens and recedes as the featured work scrolls up over it */
.hero-name { filter: blur(calc(var(--depth, 0) * 7px)); transform: scale(calc(1 - var(--depth, 0) * .07)); will-change: filter, transform; }
@media (prefers-reduced-motion: reduce) { .hero-name { filter: none; transform: none; } }

/* Design notes on the hero intro */
.hero-bio { position: relative; }
.bold-mark { position: relative; white-space: nowrap; }
.bold-mark::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -.32em; height: .34em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 3 Q2.5 0 5 3 T10 3' fill='none' stroke='%23e5372a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / .55em 100%;
  clip-path: inset(0 100% 0 0); animation: proof-unclip .5s cubic-bezier(.6, 0, .3, 1) 3s forwards; }
.hero-bio .bold-mark:nth-of-type(2)::after { animation-delay: 3.25s; }
.hero-bio .bold-mark:nth-of-type(3)::after { animation-delay: 3.5s; }
@keyframes proof-unclip { to { clip-path: inset(-20% -2% -20% -2%); } }
.proof-bracket { position: absolute; right: calc(100% + 16px); top: -.35em; bottom: -.35em; width: 13px; height: calc(100% + .7em); overflow: visible; pointer-events: none;
  clip-path: inset(0 -60% 100% -60%); animation: proof-unclip-v .6s cubic-bezier(.6, 0, .3, 1) 2.2s forwards; }
.proof-bracket path { fill: none; stroke: var(--proof); stroke-width: calc(clamp(22px, 2.2vw, 34px) * .095); /* same pen as the notes */ stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes proof-unclip-v { to { clip-path: inset(-10% -60% -10% -60%); } }
.note-bigger { right: calc(100% + 38px); top: 50%; margin-top: -.55em; }
.note-bigger .note-arrow { display: none; }
.note-bigger .note-text { transition-delay: 2.7s; }
.note-bold { left: calc(100% + 14px); top: 50%; margin-top: -1.2em; flex-direction: row-reverse; align-items: flex-start; }
.note-bold .note-arrow { margin: 6px 0 0; }
.note-bold .note-text { transform: rotate(3deg); transition-delay: 3.9s; }
.note-bold .note-arrow path { transition-delay: 3.6s; } .note-bold .note-arrow path + path { transition-delay: 4.1s; }
@media (prefers-reduced-motion: reduce) { .bold-mark::after, .proof-bracket { clip-path: none; animation: none; } }
/* hero notes match "let it stand!" */
.note-bigger, .note-bold, .note-draw, .note-allWorks { font-size: clamp(22px, 2.2vw, 34px); }
/* visitors' ink stays until it blurs away with STET on scroll */
.ink { filter: blur(calc(var(--depth, 0) * 9px)); opacity: calc(1 - var(--depth, 0)); transform: scale(calc(1 - var(--depth, 0) * .07)); }

/* About statement mark-ups: wavy bold, hand-drawn circle, double underline + margin notes.
   They draw in one after another once the statement has fully lit up. */
.about-statement { position: relative; }
.mark { position: relative; white-space: nowrap; }
.mark svg { position: absolute; overflow: visible; pointer-events: none; clip-path: inset(-30% 100% -30% -5%); transition: clip-path .7s cubic-bezier(.6, 0, .3, 1); }
.mark svg path { fill: none; stroke: var(--proof); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: max(2px, .085em); }
.mark-circle { left: -.34em; top: -.16em; width: calc(100% + .68em); height: calc(100% + .38em); }
.mark-double { left: -.04em; width: calc(100% + .08em); bottom: -.17em; height: .27em; }
.mark-double path { stroke-width: max(1.5px, .065em) !important; } /* two distinct strokes, not one thick bar */
.about-statement.marked .mark svg { clip-path: inset(-30% -5% -30% -5%); }
.about-statement.marked .mark-c svg { transition-delay: .55s; }
.about-statement.marked .mark-u svg { transition-delay: .15s; }
.about-statement .bold-mark::after { bottom: -.06em; height: .2em; background-size: .34em 100%; animation: none; transition: clip-path .5s cubic-bezier(.6, 0, .3, 1); }
.about-statement.marked .bold-mark::after { clip-path: inset(-20% -2% -20% -2%); transition-delay: .9s; }
.note-margin { margin-top: -.7em; flex-direction: row-reverse; align-items: center; font-size: clamp(22px, 2.2vw, 34px); }
.note-margin .note-arrow { margin: 0 4px 0 0; }
.about-statement .note-margin .note-text { opacity: 0; transform: rotate(-3deg); transition: opacity .5s; }
.about-statement .note-margin .note-arrow path { stroke-dashoffset: 1 !important; }
.about-statement.marked .note-margin .note-text { opacity: 1; }
.about-statement.marked .note-margin .note-arrow path { stroke-dashoffset: 0 !important; }
.about-statement.marked .note-circle .note-text { transition-delay: 1.1s; }
.about-statement.marked .note-circle .note-arrow path { transition-delay: .9s; }
.about-statement.marked .note-underline .note-text { transition-delay: .85s; }
.about-statement.marked .note-underline .note-arrow path { transition-delay: .65s; }
.about-statement.marked .note-boldface .note-text { transition-delay: 1.6s; }
.about-statement.marked .note-boldface .note-arrow path { transition-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .mark svg, .about-statement .bold-mark::after { clip-path: none !important; }
  .note-margin .note-text { opacity: 1; } .note-margin .note-arrow path { stroke-dashoffset: 0 !important; }
}

/* Every handwritten note and fix writes itself on, left to right, when it scrolls into view
   (or on load in the hero) instead of simply fading in. Timing per note is set above. */
.note-text, .edit ins { clip-path: inset(-40% 100% -40% -15%); }
.note-text { transition: opacity .2s .55s, clip-path .9s cubic-bezier(.45, 0, .25, 1) .55s; }
.edit ins { transition: opacity .2s .45s, transform .6s var(--ease-out) .45s, clip-path .8s cubic-bezier(.45, 0, .25, 1) .45s; }
.about-statement .note-margin .note-text { transition-property: opacity, clip-path; transition-duration: .2s, .9s; }
.note.in-view .note-text, .about-statement.marked .note-margin .note-text, .word.lit ins { clip-path: inset(-40% -15% -40% -15%); }
.about-statement .note-margin .note-text { clip-path: inset(-40% 100% -40% -15%); } /* margin notes wait for the statement to land */
.about-statement.marked .note-margin .note-text { clip-path: inset(-40% -15% -40% -15%); }
@media (prefers-reduced-motion: reduce) { .note-text, .edit ins { clip-path: none !important; } }
/* footer: the name, defined */
.footer-def b { position: relative; font-weight: 700; color: var(--ink); margin-right: .25em; }
.footer-def b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45em; height: .32em; background: var(--dots) left center / .38em 100% repeat-x; }
.footer-def i { font-style: italic; }

/* Selected clients as a wall of one-colour logos */
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 2.4vw, 30px) clamp(24px, 3.2vw, 44px); padding-top: clamp(18px, 2vw, 26px); }
.clients .logo { display: flex; align-items: center; height: 30px; }
.clients .logo img { height: 100%; width: auto; max-width: 118px; object-fit: contain; filter: brightness(0); opacity: .78; transition: opacity .3s; }
.clients .logo img:hover { opacity: 1; } /* softened at rest, solid ink on hover */
.clients .logo-text { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); opacity: .78; }
/* balance the logos: wordmarks sit a little shorter than square icons so they carry similar weight */
.clients .logo img[src*="visa"], .clients .logo img[src*="fifa"] { height: 20px; }
.clients .logo img[src*="jpmorgan"], .clients .logo img[src*="hyatt"], .clients .logo img[src*="orvis"], .clients .logo img[src*="llbean"], .clients .logo img[src*="usbank"] { height: 22px; max-width: 120px; }
.clients .logo img[src*="baylor"] { height: 34px; max-width: 150px; }
.clients .logo img[src*="bcbs"] { height: 26px; }
.clients .logo img[src*="olympics"] { height: 24px; }
.clients .logo img[src*="marriott"] { height: 38px; max-width: 60px; } /* M mark + wordmark stacked, so it runs a little taller */
.clients .logo img[src*="bankofamerica"] { height: 15px; max-width: 150px; } /* long, thin wordmark */
.clients .logo { flex-shrink: 0; } /* logos wrap to the next row instead of squeezing */
.clients .logo img[src*="ritzcarlton"] { height: 40px; max-width: 64px; } /* lion crest + wordmark stacked */
.clients .logo img[src*="nfl"] { height: 36px; }
.clients .logo img[src*="mvp"] { height: 34px; }
.clients .logo img[src*="chase"] { height: 18px; max-width: 110px; } /* wordmark + octagon, long and thin */
.clients .logo img[src*="columbiabank"] { height: 26px; }
.clients .logo img[src*="bcbs-ma"] { height: 34px; max-width: 100px; }
.clients .logo img[src*="cdphp"] { height: 34px; }
/* every logo set in exactly the site ink (#1c1d20-ish): flatten to black, then lift to the ink tone; no transparency so none read lighter */
.clients .logo img { filter: brightness(0) invert(11%); opacity: .7; transition: opacity .3s; }
.clients .logo img:hover { opacity: 1; } /* softened at rest, solid ink on hover */
/* logo hover: grow + neighbours drift aside, on a long soft ease so it never snaps */
.clients .logo { transition: transform .8s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.clients .logo img { transition: opacity .5s ease; }
.clients .logo.is-hot { z-index: 1; position: relative; }
.clients .logo.is-hot img { opacity: 1; }

/* Video poster: still frame with a red play dot; the player loads on click */
.video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile); cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.video-play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; margin: 0; translate: -50% -50%; border-radius: 50%; background: var(--proof); transition: scale .6s cubic-bezier(.34, 1.4, .64, 1); }
.video-play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: .55em 0 .55em .9em; border-color: transparent transparent transparent #fff; font-size: clamp(14px, 1.5vw, 20px); }
.video-poster:hover img { transform: scale(1.03); }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { scale: 1.12; }

/* Featured work with a video: a ghosted play button over the picture; it bows out when "View" takes over on hover */
.feat-media { position: relative; }
.feat-play { position: absolute; left: 50%; top: 50%; width: clamp(56px, 6vw, 84px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; transition: opacity .45s ease, scale .6s cubic-bezier(.22, 1, .36, 1); }
.feat-play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: .5em 0 .5em .82em; border-color: transparent transparent transparent rgba(255, 255, 255, .85); font-size: clamp(13px, 1.3vw, 18px); }
.feat:hover .feat-play, .feat:focus-visible .feat-play { opacity: 0; scale: .8; }
@media (hover: none) { .feat:hover .feat-play { opacity: 1; scale: 1; } }

/* ---------- Mark-ups on phones: re-placed to fit the narrow screen instead of hidden ---------- */
@media (max-width: 700px) {
  .note { font-size: 22px; }
  /* hero: "let it stand!" sits above STET, inside the screen */
  .note-hero { left: auto; right: 0; bottom: calc(100% + 2px); }
  /* intro: bracket hugs the gutter, "bigger!" and the "bold" pointer drop below the paragraph */
  .proof-bracket { right: calc(100% + 6px); }
  .note-bigger { right: auto; left: 0; top: calc(100% + 12px); margin-top: 0; }
  .note-bold { left: auto; right: 0; top: calc(100% + 8px); margin-top: 0; flex-direction: row-reverse; align-items: flex-start; }
  .note-bold .note-arrow { rotate: 58deg; margin: -4px 4px 0 0; }
  /* Works page: drop the note clear of the header */
  .works-page[data-note] { padding-top: 136px; }
  .note-works { top: 88px; }
}
/* statement margin notes with no room for their arrow (set by main.js) */
.note-margin.tight { font-size: 19px; }
.note-margin.tight .note-arrow { display: none; }
