/* ============================================================================
   Sakthi AK - portfolio. Poppins on white, 16:9 page rhythm.
   Desktop pages are laid out on a 1456 x 819 reference canvas using the fluid unit
   --u (= 1/1456 of the page width, via container query units), so everything scales
   with the viewport. At <= 900px the pages collapse to a single column.
   ========================================================================== */
:root {
  --ink: #000; --ink2: #222; --paper: #fff; --soft: #f2f2f2; --tile: #eee; --bar: rgba(255, 255, 255, .93); --muted: #5f5f5f; --line: rgba(0, 0, 0, .14);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5.15vw, 75px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-weight: 400; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, picture, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #2b5cff; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 1000; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }
html { scrollbar-gutter: stable; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* ───────────── Navigation ───────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__logo { display: block; opacity: 0; transition: opacity .5s var(--ease); }
.nav__logo img { height: 24px; width: auto; filter: invert(1); }
.is-scrolled .nav__logo { opacity: 1; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); margin-left: auto; }
.nav__links a { font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 6px 2px; transition: opacity .3s; }
.nav__links a:hover { opacity: .55; }

/* ───────────── Site hero (cover): five layouts, a-e ───────────── */
.site-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; background: var(--paper); overflow: hidden; }
.site-hero__inner { position: absolute; inset: 0; --u: calc(100cqw / 1456); }
.hero-tiles { position: absolute; display: grid; }
.hero-tile { position: relative; display: block; overflow: hidden; background: var(--tile); }
.hero-tile picture, .hero-tile img { width: 100%; height: 100%; }
.hero-tile__img { object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transition: transform .9s var(--ease); }
.hero-tile:hover .hero-tile__img, .hero-tile:focus-visible .hero-tile__img { transform: scale(calc(var(--zoom, 1) * 1.015)); }
.hero-tile:focus-visible { outline-offset: -4px; }
.hero-wordmark { position: absolute; line-height: 0; }
.hero-wordmark picture, .hero-wordmark img, .closing__wordmark picture, .closing__wordmark img { display: block; width: 100%; height: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(calc(var(--u, 8px) * 14)); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* a: centred 2x2 grid, giant wordmark below, contact row spread across the bottom (PDF p1) */
[data-hero='a'] .hero-tiles { left: calc(var(--u) * 526); top: calc(var(--u) * 133); width: calc(var(--u) * 404); height: calc(var(--u) * 388); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: calc(var(--u) * 4); }
[data-hero='a'] .hero-wordmark { left: calc(50% - var(--u) * 196); width: calc(var(--u) * 393); top: calc(var(--u) * 566); }
/* b: four tall tiles, wordmark bottom-left, contact stacked bottom-right (PDF p2) */
[data-hero='b'] .hero-tiles { left: calc(var(--u) * 75); top: calc(var(--u) * 74); width: calc(var(--u) * 1306); height: calc(var(--u) * 447); grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 24); }
[data-hero='b'] .hero-wordmark { left: calc(var(--u) * 70); width: calc(var(--u) * 524); top: calc(var(--u) * 590); }
/* c: four tiles edge to edge, huge wordmark left, contact row along the bottom (PDF p3) */
[data-hero='c'] .hero-tiles { left: calc(var(--u) * 75); top: calc(var(--u) * 73); width: calc(var(--u) * 1306); height: calc(var(--u) * 327); grid-template-columns: repeat(4, 1fr); gap: 0; }
[data-hero='c'] .hero-wordmark { left: calc(var(--u) * 68); width: calc(var(--u) * 530); top: calc(var(--u) * 548); }
/* d: wordmark + stacked contact bottom-left, 2x2 grid on the right half (PDF p4) */
[data-hero='d'] .hero-tiles { left: calc(var(--u) * 684); top: calc(var(--u) * 73); width: calc(var(--u) * 697); height: calc(var(--u) * 670); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: calc(var(--u) * 16); }
[data-hero='d'] .hero-wordmark { left: calc(var(--u) * 72); width: calc(var(--u) * 346); top: calc(var(--u) * 520); }
/* e: four square tiles, small centred wordmark, contact row along the bottom (PDF p5) */
[data-hero='e'] .hero-tiles { left: calc(var(--u) * 75); top: calc(var(--u) * 76); width: calc(var(--u) * 1306); height: calc(var(--u) * 317); grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 11); }
[data-hero='e'] .hero-wordmark { left: calc(50% - var(--u) * 149); width: calc(var(--u) * 298); top: calc(var(--u) * 520); }

/* ───────────── Work bar (filter) ───────────── */
.work-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 76px var(--gutter) 28px; border-top: 1px solid var(--line); }
.work-bar h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: inherit; font-size: 12.5px; font-weight: 500; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card[hidden], .archive-cta[hidden] { display: none; }
.cards { display: block; }
.card { position: relative; display: block; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.card .page { pointer-events: none; }
.card .page__img { transition: transform 1.4s var(--ease); }
.card:hover .page__img, .card:focus-visible .page__img { transform: scale(1.012); }
.card__cta { position: absolute; z-index: 3; top: 4.2%; right: 5.15%; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.75); border-radius: 99px; padding: 8px 16px; background: rgba(0,0,0,.18); backdrop-filter: blur(4px); transition: background .3s, color .3s; }
.card:hover .card__cta, .card:focus-visible .card__cta { background: #fff; color: #000; }
.card:focus-visible { outline-offset: -4px; }
/* project view: one project at a time, full screen */
.project { display: none; }
.project.is-open { display: block; position: fixed; inset: 0; z-index: 150; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.pv-bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); background: var(--bar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.pv-bar a { text-decoration: none; padding: 6px 2px; }
.pv-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-count { letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-nav { display: flex; gap: 20px; }
.pv-end { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(56px, 9vw, 120px) var(--gutter); border-top: 1px solid var(--line); }

/* ───────────── Pages (16:9 rhythm) ───────────── */
.page { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; background: var(--paper); }
.page__inner { position: absolute; inset: 0; --u: calc(100cqw / 1456); font-size: max(calc(var(--u) * 15.5), 10.5px); line-height: 1.17; }
.page__bg, .page__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abs { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * var(--w)); }
.abs--h { height: calc(var(--u) * var(--h)); }
button.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.abs--h picture, .abs--h img { width: 100%; height: 100%; object-fit: cover; }
.page img { transition: transform 1.1s var(--ease); }
.dp__img:hover img, .strip__item:hover img { transform: scale(1.01); }
.dp__img, .strip__item { overflow: hidden; }

/* HeroPage */
.page--hero .page__inner { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; padding: calc(var(--u) * 68) calc(var(--u) * 75) calc(var(--u) * 62); color: #fff; }
.page--hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
.page--hero .page__inner > p, .page--hero .page__inner > h2 { position: relative; z-index: 2; }
.hero__label { grid-column: 1 / -1; font-size: calc(var(--u) * 13); font-style: italic; font-weight: 300; letter-spacing: .03em; }
.hero__title { grid-column: 1 / -1; grid-row: 3; font-size: calc(var(--u) * 104); font-weight: 700; line-height: .96; letter-spacing: -.025em; text-transform: uppercase; margin-bottom: calc(var(--u) * 14); }
.hero__line { grid-column: 1; grid-row: 4; font-size: calc(var(--u) * 21); font-weight: 400; align-self: end; max-width: calc(var(--u) * 760); line-height: 1.25; }
.hero__tag { grid-column: 2; grid-row: 4; font-size: calc(var(--u) * 16); font-style: italic; font-weight: 300; align-self: end; text-align: right; letter-spacing: .02em; }
.page--hero { z-index: 0; }
.page--hero .page__bg, .page--hero .page__img { z-index: -1; }

/* FullBleed */
.chip { position: absolute; z-index: 2; left: calc(var(--u) * 58); bottom: calc(var(--u) * 34); display: flex; gap: calc(var(--u) * 14); align-items: center; font-size: max(calc(var(--u) * 14.5), 10px); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .38); padding: calc(var(--u) * 4) calc(var(--u) * 8); }
.chip__link { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .7); padding-bottom: 1px; }
.chip__link:hover { border-color: #fff; }

/* TextPage */
.strip { position: absolute; inset: 0; }
.cols { position: absolute; left: 0; right: 0; top: calc(var(--u) * 515); }
.col { position: absolute; top: 0; width: calc(var(--u) * 272); }
.col h3 { font-size: calc(var(--u) * 17); font-weight: 500; line-height: 1.2; }
.col h4 { font-size: max(calc(var(--u) * 15.5), 10.5px); font-weight: 500; margin: 0 0 calc(var(--u) * 7); }
.col p { margin-bottom: calc(var(--u) * 28); }
.col h4 ~ p:last-child { margin-bottom: 0; }
.note { font-size: max(calc(var(--u) * 14), 10px); margin-bottom: calc(var(--u) * 30) !important; }
.dash li { position: relative; padding-left: calc(var(--u) * 14); margin-bottom: calc(var(--u) * 17); }
.dash li::before { content: '-'; position: absolute; left: 0; }
.page--text[data-layout='indent'] .col--name { left: calc(var(--u) * 420); }
.page--text[data-layout='indent'] .col--body { left: calc(var(--u) * 765); }
.page--text[data-layout='indent'] .col--deliv { left: calc(var(--u) * 1096); }
.page--text[data-layout='left'] .col--name { left: calc(var(--u) * 75); }
.page--text[data-layout='left'] .col--body { left: calc(var(--u) * 420); }
.page--text[data-layout='left'] .col--deliv { left: calc(var(--u) * 765); width: calc(var(--u) * 616); }
.col--deliv[data-cols='2'] .dash { column-count: 2; column-gap: calc(var(--u) * 73); }
.col--deliv[data-cols='2'] .dash li { break-inside: avoid; }
.page--text[data-layout='left'] .note, .page--text[data-layout='indent'] .note { margin-top: calc(var(--u) * -88); position: absolute; width: 100%; }

/* DetailPage */
.dp__group { position: absolute; inset: 0; }
.dp__head { font-size: max(calc(var(--u) * 15.5), 10.5px); font-weight: 500; line-height: 1.2; }
.dp__text p { margin-bottom: calc(var(--u) * 17); }
.dp__text p:last-child { margin-bottom: 0; }
.dp__links { margin-top: calc(var(--u) * 20); }
.textlink { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: opacity .25s; }
.textlink:hover { opacity: .55; }

/* MotionPage (extras kept from the previous site) */
.page--motion { aspect-ratio: auto; border-top: 1px solid var(--line); }
.page--motion .page__inner { position: relative; padding: calc(var(--u) * 75); font-size: max(calc(var(--u) * 15.5), 12px); }
.reel__head { font-size: max(calc(var(--u) * 15.5), 12px); font-weight: 600; letter-spacing: .08em; margin-bottom: calc(var(--u) * 28); }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 24); }
.reel__item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.reel__item figcaption { margin-top: 8px; font-size: max(calc(var(--u) * 12.5), 11px); text-transform: uppercase; letter-spacing: .03em; }
.reel__embed { margin-top: calc(var(--u) * 48); }
.reel__embed iframe { width: 100%; height: calc(var(--u) * 640); border: 1px solid var(--line); background: #fff; }
.reel__embed p { margin-top: 10px; }
.reel__thanks { margin-top: calc(var(--u) * 48); max-width: calc(var(--u) * 760); border-left: 2px solid var(--ink); padding-left: calc(var(--u) * 24); font-style: italic; }
.reel__thanks footer { margin-top: 8px; font-size: 12px; font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ───────────── Visual Archive CTA + overlay ───────────── */
.archive-cta { display: flex; justify-content: center; padding: clamp(56px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--line); }
.archive-cta__in { text-align: center; max-width: 34em; }
.archive-cta__label { font-size: clamp(11px, .86vw, 12.5px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.archive-cta__text { font-size: clamp(13px, 1.065vw, 16px); color: var(--muted); margin-bottom: 26px; }
.btn { font: inherit; font-size: 15px; font-weight: 500; padding: 16px 34px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: background .3s, color .3s; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--paper); color: var(--ink); }
.drawer { position: fixed; inset: 0; z-index: 300; background: var(--paper); overflow-y: auto; transform: translateY(102%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.drawer.open { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.drawer__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); background: var(--bar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.drawer__bar img { height: 22px; width: auto; }
.drawer__close { font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.drawer__close:hover { background: var(--ink); color: var(--paper); }
.arch { padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(60px, 8vw, 120px); }
.arch__head { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.arch__blurb { margin-top: 14px; max-width: 34em; font-size: clamp(13px, 1.065vw, 16px); color: var(--muted); }
.arch__title { font-size: clamp(38px, 7vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.arch__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.arch__shuffle { border-style: dashed; }
.board { columns: 4 230px; column-gap: clamp(16px, 2.4vw, 36px); padding: 10px 6px; transition: opacity .25s; }
.board.shuffling { opacity: 0; }
.tile { position: relative; break-inside: avoid; margin: 0 0 clamp(18px, 2.6vw, 38px); background: var(--soft); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px -12px rgba(0,0,0,.28);
  --r: 0deg; --tx: 0deg; --ty: 0deg; opacity: 1; transform: rotate(var(--r));
  transition: transform .25s ease, box-shadow .3s; }
.tile[hidden] { display: none; }
.tile.in { opacity: 1; transform: perspective(900px) rotate(var(--r)); }
.tile.in:hover, .tile.in:focus-within { transition: transform .25s ease, box-shadow .3s; transform: perspective(900px) rotate(0deg) scale(1.02); z-index: 5; box-shadow: 0 14px 30px -14px rgba(0,0,0,.32); }
.tile img, .tile video { display: block; width: 100%; height: auto; border-radius: 4px; }
.tile .zoom { display: block; width: 100%; cursor: pointer; }

/* ───────────── Lightbox ───────────── */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); padding: 4vw; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .6); border-radius: 99px; padding: 8px 18px; cursor: pointer; }
.lightbox__close:hover { background: #fff; color: #000; }


/* ───────────── Closing page / footer (PDF p43) ───────────── */
.closing { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; border-top: 1px solid var(--line); overflow: hidden; }
.closing__inner { position: absolute; inset: 0; --u: calc(100cqw / 1456); }
.magnetic { display: inline-block; padding: 14px; transition: transform .5s var(--ease); }


/* ───────────── Reveal-on-scroll (progressive; disabled for reduced motion / ?noanim) ───────────── */

/* ───────────── Mobile / small screens: single column ───────────── */
@media (max-width: 900px) {
  .page, .closing { aspect-ratio: auto; }
  .page__inner, .closing__inner { position: relative; inset: auto; --u: 1px; font-size: 15px; line-height: 1.4; }
  .abs, .abs--h { position: static; width: auto; height: auto; }
  /* hero cover: 2x2 grid, then wordmark, then contacts */
  .site-hero { aspect-ratio: auto; }
  .site-hero__inner { position: relative; inset: auto; --u: 1px; padding: 76px var(--gutter) 44px; }
  .hero-tiles, [data-hero] .hero-tiles { position: static; width: auto; height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; }
  .hero-tile { aspect-ratio: 1 / 1.05; }
  .hero-wordmark, [data-hero] .hero-wordmark { position: static; margin-top: 34px; width: min(62vw, 360px); }
  /* hero page */
  .page--hero .page__inner { min-height: 82svh; padding: 76px var(--gutter) 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
  .page--hero .page__inner > h2 { margin-top: auto; }
  .hero__label { font-size: 12px; }
  .hero__title { font-size: clamp(38px, 12.6vw, 90px); margin-bottom: 0; }
  .hero__line { font-size: 16px; max-width: none; }
  .hero__tag { text-align: left; font-size: 12px; }
  /* full-bleed: stays edge to edge, natural ratio */
  .page--fullbleed .page__inner { position: relative; }
  .page--fullbleed .page__bg, .page--fullbleed .page__img { position: static; height: auto; width: 100%; object-fit: initial; }
  .chip { left: 0; bottom: 0; font-size: 10.5px; padding: 6px 10px; }
  /* text + detail pages */
  .page--text .page__inner, .page--detail .page__inner { padding: 28px var(--gutter) 40px; }
  .strip { position: static; display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .strip__item { overflow: visible; }
  .strip__item img, .abs--h img, .abs--h picture { width: 100%; height: auto; object-fit: initial; }
  .cols { position: static; }
  .col, [data-layout] .col, .page--text[data-layout] .col--name, .page--text[data-layout] .col--body, .page--text[data-layout] .col--deliv { position: static; left: auto; width: auto; margin-bottom: 26px; }
  .col h3 { font-size: 19px; } .col h4 { font-size: 14px; margin-bottom: 6px; } .col p { margin-bottom: 16px; }
  .note { position: static !important; margin: 0 0 14px !important; font-size: 13px; }
  .dash li { margin-bottom: 10px; padding-left: 14px; }
  .col--deliv[data-cols='2'] .dash { column-count: 1; }
  .dp__group { position: static; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
  .dp__img { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .dp__group > .dp__img:only-of-type { flex-basis: 100%; }
  .dp__head { flex: 0 0 100%; margin-top: 14px; text-align: left !important; font-size: 14px; }
  .dp__text { flex: 0 0 100%; font-size: 15px; }
  .dp__text p { margin-bottom: 12px; }
  .page--motion .page__inner { padding: 32px var(--gutter) 40px; }
  .reel { grid-template-columns: 1fr; gap: 18px; }
  .reel__embed iframe { height: 460px; }
  .reel__head { font-size: 13px; }
  .work-bar { padding: 22px var(--gutter); }
  .closing__inner { padding: 80px var(--gutter) 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav__links { gap: 14px; } .nav__links a { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* QA switch: ?noanim disables load animations */
html.noanim *, html.noanim *::before, html.noanim *::after { animation: none !important; }

@media (max-width: 900px) { .pv-count { display: none; } .card__cta { top: 14px; right: 14px; font-size: 11px; padding: 6px 12px; } .card .page__inner { min-height: 72svh; } }

/* ───────────── ProcessPage (kept minimal: image, label, title, one line) ───────────── */
.page--process { aspect-ratio: auto; overflow: visible; border-top: 1px solid var(--line); }
.page--process .page__inner { position: relative; inset: auto; display: flex; flex-direction: column; gap: calc(var(--u) * 32); padding: calc(var(--u) * 80) calc(var(--u) * 75); }
.pp__imgs { display: flex; gap: calc(var(--u) * 12); align-items: flex-start; }
.pp__img { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.pp__img img { height: calc(var(--u) * 300); width: auto; max-width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pp__imgs[data-count='1'] .pp__img img { height: calc(var(--u) * 340); }
.pp__img:hover img { transform: scale(1.01); }
.pp__grid { display: grid; grid-template-columns: calc(var(--u) * 345) calc(var(--u) * 300); margin-left: calc(var(--u) * 345); align-items: start; }
.pp--img .pp__grid { margin-left: 0; }
.pp__title { font-size: max(calc(var(--u) * 15.5), 10.5px); font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; padding-right: calc(var(--u) * 24); }
.pp__body p { margin-bottom: calc(var(--u) * 12); }
.pp__body p:last-child { margin-bottom: 0; }

/* VideoPage */
.page--video { background: #0b0b0b; }
.page--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; }
.chip--multi { flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 4); max-width: calc(var(--u) * 620); }
.chip--multi small { text-transform: none; font-size: max(calc(var(--u) * 13), 10px); line-height: 1.35; opacity: .92; }

@media (max-width: 900px) {
  .page--process .page__inner { padding: 36px var(--gutter) 40px; gap: 22px; }
  .pp__imgs { flex-wrap: wrap; gap: 8px; }
  .pp__img { flex: 1 1 calc(50% - 4px); }
  .pp__imgs[data-count='1'] .pp__img { flex-basis: 100%; }
  .pp__img img, .pp__imgs[data-count='1'] .pp__img img { height: auto; width: 100%; }
  .pp__grid, .pp--img .pp__grid { display: block; margin-left: 0; }
  .pp__title { font-size: 14px; padding: 0; margin: 2px 0 10px; }
  .page--video .page__inner { position: relative; }
  .page--video video { position: static; height: auto; aspect-ratio: 16 / 9; }
  .chip--multi { max-width: none; width: 100%; }
}

/* ───────────── Footer: wordmark, small Let's Talk, one row of other channels ───────────── */
.closing__wordmark { position: absolute; left: calc(50% - var(--u) * 164); width: calc(var(--u) * 328); top: calc(var(--u) * 250); line-height: 0; }
.closing__cta { position: absolute; left: 0; right: 0; top: calc(var(--u) * 450); text-align: center; }
.closing__cta > span:first-child { display: block; font-size: max(calc(var(--u) * 14), 12px); color: var(--muted); margin-bottom: 4px; }
.closing__links { position: absolute; left: calc(var(--u) * 75); right: calc(var(--u) * 75); top: calc(var(--u) * 700); display: flex; justify-content: space-between; font-size: max(calc(var(--u) * 13.5), 11px); }
.closing__links a { text-decoration: none; } .closing__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.closing__fine { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 30); text-align: center; font-size: max(calc(var(--u) * 12), 11px); color: var(--muted); }
/* cover always fits the screen height on web (letterboxed if the window is wide) */
.site-hero { width: min(100%, calc(100svh * 16 / 9)); margin-inline: auto; }
@media (max-width: 900px) {
  .site-hero { width: 100%; }
  .closing .magnetic { padding: 0; }
  .closing__wordmark { position: static; width: min(62vw, 360px); }
  .closing__cta { position: static; text-align: left; }
  .closing__links, .closing__fine { position: static; text-align: left; }
  .closing__links { flex-direction: column; gap: 10px; font-size: 14px; }
}

/* ───────────── Profile: same type system as the case studies ───────────── */
.about { padding: clamp(56px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--line); font-size: clamp(13px, 1.065vw, 16px); line-height: 1.4; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 64px); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.about__intro { grid-column: 1 / 3; }
.about__image { grid-column: 3; }
.about__image img { display: block; width: 100%; max-width: 300px; height: auto; }
.about__label { font-size: clamp(11px, .86vw, 12.5px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.about__bio p { margin-bottom: .8em; max-width: 38em; }
.availability { margin-top: 18px; font-size: clamp(11px, .86vw, 12.5px); font-style: italic; font-weight: 300; letter-spacing: .03em; color: var(--muted); }
/* Experience: dates on a quiet left rail, lighter weights, hairline between roles */

.nav { align-items: center; }
.nav__links { align-items: center; }

/* ───────────── Archive: featured showreel ───────────── */
.reel-feature { position: relative; margin: 0 calc(var(--gutter) * -1) clamp(36px, 5vw, 72px); aspect-ratio: 2.4 / 1; background: #000; color: #fff; overflow: hidden; }
.reel-feature[hidden] { display: none; }
.reel-feature video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-feature video[controls] { object-fit: contain; }
.reel-feature__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: clamp(20px, 3.4vw, 56px) var(--gutter); background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none; }
.reel-feature__bar > * { pointer-events: auto; }
.reel-feature__bar.is-playing { display: none; }
.reel-feature__label { font-size: clamp(11px, .86vw, 12.5px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.reel-feature__title { font-size: clamp(26px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.reel-feature__btn { background: #fff; color: #000; border-color: #fff; white-space: nowrap; }
.reel-feature__btn:hover { background: transparent; color: #fff; }
@media (max-width: 900px) { .reel-feature { aspect-ratio: 16 / 10; } .reel-feature__bar { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .board { columns: 2; column-gap: 12px; } .tile { margin-bottom: 14px; } }
@media (max-width: 520px) { .nav__logo { display: none; } .nav__links { gap: 12px; } .theme-toggle { margin-left: 4px; } }

/* ───────────── CV block: one 12-column grid. Label cols 1-3 | rows cols 4-12 (date 1-2, title 3-5, detail 6-9) ───────────── */
.cv { grid-column: 1 / -1; display: block; --g: clamp(16px, 2vw, 32px); }
.cv-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: clamp(22px, 2.6vw, 36px) 0; border-top: 1px solid var(--line); }
.cv-sec__label { grid-column: 1 / 4; font-size: clamp(11px, .86vw, 12.5px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cv-sec__rows { grid-column: 4 / 13; display: grid; row-gap: clamp(18px, 1.9vw, 26px); }
.cv-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.cv-row p { margin: 0; }
.cv-date { grid-column: 1 / 3; font-size: clamp(11px, .86vw, 12.5px); color: var(--muted); padding-top: .2em; }
.cv-main { grid-column: 3 / 6; }
.cv-role { font-weight: 500; }
.cv-org { font-size: clamp(12px, .96vw, 14px); color: var(--muted); }
.cv-org--side { grid-column: 6 / 10; padding-top: .15em; color: var(--ink2); }
.cv-pts { grid-column: 6 / 10; list-style: none; margin: 0; padding: 0; }
.cv-pts li { position: relative; padding-left: 12px; margin-bottom: 4px; font-size: clamp(12px, .96vw, 14px); line-height: 1.45; color: var(--ink2); }
.cv-pts li::before { content: '-'; position: absolute; left: 0; }
.cv-row--skill { row-gap: 0; }
.cv-tags { grid-column: 3 / 10; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tag { font-size: clamp(11px, .86vw, 12.5px); padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; } .about__intro, .about__image { grid-column: 1; } .about__image img { max-width: 320px; }
  .cv-sec { display: block; }
  .cv-sec__label { margin-bottom: 14px; }
  .cv-row { display: block; }
  .cv-date, .cv-main, .cv-org--side, .cv-pts, .cv-tags { grid-column: auto; }
  .cv-pts { margin-top: 8px; }
  .cv-org--side { margin-top: 2px; }
}
/* archive tile tag */
.tile__tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; font-weight: 500; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); pointer-events: none; box-shadow: 0 1px 3px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; }
.tile:hover .tile__tag, .tile:focus-within .tile__tag { opacity: 1; }
