/* =========================================================
   BASE — reset, type scale and every shared component from
   the Brand & Design Kit (07 / Components). Uses tokens.css only.
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
figure { margin: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--clay); }
button { font-family: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: var(--r-xs); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); }
.skip-link:focus { left: var(--s-4); top: var(--s-4); color: var(--paper); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--margin); }
.section { padding-block: var(--s-9); }
.section--rule { border-top: 1px solid var(--rule); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
/* section head: title in cols 1–6, text / index in cols 7–12 */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-5) var(--s-7); }
.split > :last-child { align-self: end; }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }

/* ---------- type scale ---------- */
.t-mega    { font-size: var(--fs-mega);    line-height: .86;  letter-spacing: -0.065em; font-weight: 700; margin-left: -0.04em; }
/* long words (11+ letters) at mega size: kit mega was sized for “Odenthal” */
.t-mega--long { font-size: clamp(56px, 15vw, 224px); }
.t-display { font-size: var(--fs-display); line-height: .92;  letter-spacing: -0.055em; font-weight: 700; }
.t-h1      { font-size: var(--fs-h1);      line-height: 1;    letter-spacing: -0.045em; font-weight: 700; text-transform: uppercase; }
.t-h2      { font-size: var(--fs-h2);      line-height: 1.05; letter-spacing: -0.04em;  font-weight: 700; }
.t-h3      { font-size: var(--fs-h3);      line-height: 1.2;  letter-spacing: -0.03em;  font-weight: 700; }
.t-lead    { font-size: var(--fs-lead);    line-height: 1.45; letter-spacing: -0.01em;  font-weight: 500; }
.t-small   { font-size: var(--fs-small);   line-height: 1.5;  font-weight: 500; }
.t-label   { font-size: var(--fs-label);   line-height: 1.4;  letter-spacing: 0.06em; font-weight: 700; text-transform: uppercase; }
.t-mono    { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; }
.muted     { color: var(--ink-2); }
.measure   { max-width: 52ch; }

/* section label: clay dot + "01 / Label" */
.label { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  padding: 13px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: var(--fs-small); gap: 8px; }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 15px; font-weight: 600; padding: 6px 0;
  border-bottom: 1px solid currentColor;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.tag { display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--ink); font-size: var(--fs-label); font-weight: 500; }
.tag--fill  { background: var(--ink); color: var(--paper); }
.tag--muted { border-color: var(--rule); color: var(--ink-2); }
.tag--status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.on-ink .tag { border-color: rgba(230,224,208,.4); color: var(--paper); }

/* key / value rows (About, case facts) */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.rows > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--rule); font-size: 15px; }
.rows dt { color: var(--ink-2); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.rows--caps > div { display: grid; grid-template-columns: 140px 1fr; font-size: var(--fs-small); }
.rows--caps dt { color: var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rows--caps dd { text-align: left; font-weight: 400; }


/* =========================================================
   7.2 HEADER — pill, sticky; hides on scroll down, returns on up
   ========================================================= */
.site-head {
  position: sticky; top: 0; z-index: 100;
  padding-top: var(--s-4);
  transition: transform var(--t-base) var(--ease);
  view-transition-name: site-head;
}
.site-head.is-hidden { transform: translateY(-120%); }
.site-head__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 12px 12px 12px 22px;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-head__logo { font-weight: 700; font-size: 18px; letter-spacing: -0.05em; white-space: nowrap; }
.site-head__nav { display: flex; gap: var(--s-5); font-size: 15px; font-weight: 500; }
.site-head__nav a[aria-current] { color: var(--clay); }
.site-head__menu { display: none; width: 40px; height: 40px; border: none; }

/* full-screen index nav (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  padding: var(--s-4) var(--margin) var(--s-7);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--ease); }
.menu__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 12px 6px; }
.menu__list { margin-top: auto; border-top: 1px solid var(--rule); padding-top: var(--s-3); display: flex; flex-direction: column; }
.menu__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-2) 10px; margin: 0 -10px; border-radius: var(--r-xs);
  font-size: clamp(36px, 10vw, 56px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.1;
}
.menu__list a span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.menu__list a:hover, .menu__list a:focus-visible { background: var(--ink); color: var(--paper); }
.menu__foot { margin-top: var(--s-6); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- index nav (cover pattern): hover row fills plum ---------- */
.index { border-top: 1px solid var(--rule); padding-top: var(--s-3); display: flex; flex-direction: column; gap: 2px; }
.index a {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: 5px 10px; margin: 0 -10px; border-radius: var(--r-xs);
  font-size: 15px; font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.index a span:last-child { font-family: var(--font-mono); font-size: 13px; }
.index a:hover, .index a.is-active { background: var(--ink); color: var(--paper); }

/* =========================================================
   MEDIA — rounded images, placeholders, captions, video blocks
   ========================================================= */
.media { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--linen); }
.media--lg { border-radius: var(--r-lg); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--zoom > img, .media--zoom > .ph { transition: transform var(--t-slow) var(--ease); }
a:hover .media--zoom > img, a:hover .media--zoom > .ph, .media--zoom:hover > img { transform: scale(1.06); }

/* placeholder: linen stripes + mono label in brackets — swap for a real image */
.ph {
  width: 100%; height: 100%; min-height: 100%;
  aspect-ratio: var(--ar, auto);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--s-4);
  background: repeating-linear-gradient(135deg, #ECE8E3 0 2px, var(--linen) 2px 14px);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; color: var(--ink-2);
}
/* missing fact inside real text */
.tk { background: var(--linen); color: var(--ink-2); padding: 0 .3em; border-radius: var(--r-xs); font-weight: inherit; }
.on-ink .tk { background: rgba(230,224,208,.16); color: var(--paper); }

.fig { display: flex; flex-direction: column; gap: 10px; }
.fig figcaption { font-size: var(--fs-label); color: var(--ink-2); }

/* full-bleed video block with a round toggle */
.video-block { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.video-block video { width: 100%; height: 100%; object-fit: cover; }
.video-block__caption { position: absolute; left: var(--s-5); bottom: var(--s-4); z-index: 2; color: var(--paper); font-size: var(--fs-label); font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.video-block__toggle { position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 2; border-color: rgba(230,224,208,.7); color: var(--paper); background: rgba(48,24,35,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-block__toggle:hover { background: var(--paper); color: var(--ink); }

/* quote tile — same footprint as an image */
.quote-tile { aspect-ratio: 4/5; border-radius: var(--r-md); background: var(--ink); color: var(--paper); padding: var(--s-5); display: flex; flex-direction: column; justify-content: flex-end; }
.quote-tile blockquote { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.quote-tile cite { font-style: normal; font-size: var(--fs-label); margin-top: var(--s-3); opacity: .8; }

/* ---------- marquee: 40s loop ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: po-marquee 40s linear infinite; }
.marquee__run { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.05em; white-space: nowrap; }
.marquee__run i { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); flex: none; }
@keyframes po-marquee { to { transform: translateX(-50%); } }

/* =========================================================
   7.11 FOOTER — plum panel closes every page
   ========================================================= */
.site-foot { padding-bottom: var(--s-7); }
.site-foot__panel { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); overflow: hidden; }
.site-foot__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(230,224,208,.25); }
.site-foot__cta { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.site-foot__cta p { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.site-foot__col { display: flex; flex-direction: column; gap: var(--s-2); font-size: 15px; }
.site-foot__col > span:first-child { font-size: var(--fs-label); font-weight: 700; opacity: .7; margin-bottom: var(--s-1); }
.site-foot a { color: var(--paper); }
.site-foot a:hover { color: var(--rule); }
.site-foot .btn--paper { color: var(--ink); }
.site-foot .btn--paper:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.site-foot__word { font-weight: 700; font-size: clamp(56px, 13.5vw, 196px); letter-spacing: -0.065em; line-height: .85; margin: var(--s-7) 0 var(--s-5) -0.04em; white-space: nowrap; }
.site-foot__word span { color: var(--clay); }
.site-foot__fine { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-label); opacity: .75; }

/* =========================================================
   7.10 CURSOR — 12px plum dot → 88px labelled disc on media.
   Added by site.js on fine pointers only (never touch / reduced motion).
   ========================================================= */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-label); font-weight: 700;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor[data-mode="view"], .cursor[data-mode="play"] { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor[data-mode="play"] { background: var(--clay); }
.cursor[data-mode="link"] { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: transparent; border: 1.5px solid var(--ink); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* =========================================================
   MOTION — reveal: rise 24px + fade, 900ms, 80ms stagger
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.reveal.is-visible { opacity: 1; transform: none; }

/* page cross-fade between pages */
@view-transition { navigation: auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .site-head__nav, .site-head__cta { display: none; }
  .site-head__menu { display: inline-flex; }
}
@media (max-width: 639px) {
  .section { padding-block: var(--s-8); }
  .rows--caps > div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .media--zoom > img, .media--zoom > .ph { transition: none; }
  @view-transition { navigation: none; }
}

/* =========================================================
   PHONE MOCKUP — social content shown the way people meet it.
   Pure CSS; every size inside is in cqw, so one phone scales
   from a small card to a large stage without breaking.
   Screens: --profile (feed grid), --reel (9:16), --ad (sponsored post).
   ========================================================= */
.device-stage {
  position: relative; background: var(--linen); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 64px) var(--s-5);
  display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 40px);
}
.device-stage--fill { position: absolute; inset: 0; padding: 6% 4%; }
.device-stage--fill .phone { height: 100%; width: auto; }
.phone {
  container-type: inline-size;
  position: relative;
  width: clamp(180px, 26vw, 290px); aspect-ratio: 9 / 19.5; flex: none;
  background: var(--ink); border-radius: 15% / 6.9%;   /* a box can't size itself in its own cq units */
  box-shadow: 0 40px 70px -40px rgba(48,24,35,.55);
}
.phone--lift { transform: translateY(-6%); }
.phone__screen {
  position: absolute; inset: 3.4cqw; overflow: hidden; border-radius: 12cqw;
  background: #FAF7F1; color: var(--ink); font-size: 3.8cqw; line-height: 1.35;
  display: flex; flex-direction: column;
}
.phone__screen::before {          /* the notch */
  content: ""; position: absolute; top: 2.6cqw; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 28cqw; height: 7.5cqw; border-radius: 99px; background: var(--ink);
}
.phone .ph { padding: 0; font-size: 2.8cqw; }
.phone .tk { font-size: inherit; }
.ig-bar { display: flex; justify-content: space-between; align-items: center; padding: 14cqw 5cqw 3cqw; font-weight: 700; font-size: 4.6cqw; }
.ig-bar i { width: 5cqw; height: 1.2cqw; border-top: 1.2cqw solid; border-bottom: 1.2cqw solid; display: block; height: 4.4cqw; }
.ig-head { display: grid; grid-template-columns: 21cqw 1fr; gap: 5cqw; align-items: center; padding: 0 5cqw; }
.ig-avatar { width: 21cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: .8cqw solid var(--clay); outline-offset: .8cqw; }
.ig-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ig-stats b { display: block; font-size: 4.6cqw; }
.ig-stats span { font-size: 3.2cqw; color: var(--ink-2); }
.ig-bio { padding: 3cqw 5cqw 0; font-size: 3.6cqw; }
.ig-bio b { display: block; }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; padding: 3cqw 5cqw; }
.ig-btns span { text-align: center; padding: 2cqw 0; border-radius: 2.4cqw; font-weight: 700; font-size: 3.4cqw; background: var(--linen); }
.ig-btns span:first-child { background: var(--ink); color: var(--paper); }
.ig-hl { display: flex; gap: 3.6cqw; padding: 1cqw 5cqw 3.4cqw; }
.ig-hl span { width: 12.5cqw; aspect-ratio: 1; border-radius: 50%; border: .6cqw solid var(--rule); background: var(--linen); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7cqw; border-top: .3cqw solid var(--rule); padding-top: .7cqw; }
.ig-grid > * { aspect-ratio: 4 / 5; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }
/* reel */
.phone--reel .phone__screen { background: var(--ink); color: var(--paper); }
.reel-media { position: absolute; inset: 0; }
.reel-ui { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 0 5cqw 7cqw; display: grid; grid-template-columns: 1fr auto; gap: 4cqw; align-items: end;
  background: linear-gradient(to top, rgba(48,24,35,.75), rgba(48,24,35,0)); padding-top: 30cqw; }
.reel-ui b { display: block; font-size: 4.2cqw; }
.reel-ui p { font-size: 3.5cqw; opacity: .9; }
.reel-ui__icons { display: flex; flex-direction: column; gap: 4.5cqw; align-items: center; font-size: 3cqw; }
.reel-ui__icons svg { width: 7cqw; height: 7cqw; fill: none; stroke: currentColor; stroke-width: 1.6; }
.reel-tag { position: absolute; top: 14cqw; left: 5cqw; z-index: 2; font-weight: 700; font-size: 4.6cqw; }
/* sponsored post */
.ad-head { display: flex; align-items: center; gap: 2.6cqw; padding: 14cqw 4cqw 2.6cqw; font-size: 3.6cqw; }
.ad-head .ig-avatar { width: 9cqw; outline-width: .5cqw; outline-offset: .5cqw; }
.ad-head small { display: block; font-size: 3cqw; color: var(--ink-2); }
.ad-media { aspect-ratio: 4 / 5; }
.ad-cta { display: flex; justify-content: space-between; align-items: center; padding: 2.8cqw 4cqw; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 3.6cqw; }
.ad-cta svg { width: 4.6cqw; height: 4.6cqw; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ad-copy { padding: 2.6cqw 4cqw; font-size: 3.4cqw; }
.ad-copy b { margin-right: 1cqw; }
/* search ad card (Google Ads) */
.search-card { width: clamp(220px, 30vw, 340px); background: #FAF7F1; border-radius: var(--r-md); padding: var(--s-5); box-shadow: 0 40px 70px -40px rgba(48,24,35,.45); font-size: var(--fs-small); align-self: center; }
.search-card__q { border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 8px 14px; color: var(--ink-2); margin-bottom: var(--s-4); }
.search-card small { color: var(--ink-2); font-size: 12px; }
.search-card b { display: block; font-size: 18px; letter-spacing: -0.02em; color: var(--clay); margin: 2px 0 6px; line-height: 1.2; }
@media (max-width: 639px) {
  .device-stage:not(.device-stage--fill) { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--s-4); }
  .device-stage:not(.device-stage--fill) > * { scroll-snap-align: center; }
  .phone { width: 220px; }
  .phone--lift { transform: none; }
}
.ad-head--next { padding-top: 3cqw; }

/* =========================================================
   POP-UP — a project summary in the plum case-panel style.
   Native <dialog>: Esc closes, focus stays inside while open.
   ========================================================= */
.modal {
  width: min(960px, calc(100% - 2 * var(--margin))); max-height: min(88vh, 900px);
  padding: 0; border: none; border-radius: var(--r-lg); overflow: auto;
  background: var(--ink); color: var(--paper);
}
.modal::backdrop { background: rgba(48,24,35,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: po-rise var(--t-base) var(--ease); }
.modal[open]::backdrop { animation: po-fade var(--t-base) var(--ease); }
@keyframes po-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes po-fade { from { opacity: 0; } to { opacity: 1; } }
.modal__inner { position: relative; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--s-4); }
.modal__close { position: absolute; top: var(--s-4); right: var(--s-4); border-color: rgba(230,224,208,.5); color: var(--paper); }
.modal__close:hover { background: var(--paper); color: var(--ink); }
.modal .tags { padding-right: 56px; }
.modal .case-panel__sub { font-size: 15px; opacity: .8; }
.modal .case-panel__name { font-size: var(--fs-display); line-height: .92; letter-spacing: -0.05em; text-transform: uppercase; }
.modal .bss { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-6); margin-top: var(--s-5); }
.modal .bss h4 { margin: 0 0 var(--s-2); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em; }
.modal .bss p, .modal .bss ul { font-size: 15px; line-height: 1.6; opacity: .85; }
.modal .bss ul { list-style: none; margin: 0; padding: 0; }
.modal__rows { margin-top: var(--s-5); border-color: rgba(230,224,208,.2); }
.modal__rows > div { border-color: rgba(230,224,208,.2); }
.modal__rows dt { color: rgba(230,224,208,.68); }
.modal__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.modal__imgs .media { aspect-ratio: 4 / 5; }
.modal .link-arrow { align-self: flex-start; color: var(--paper); margin-top: var(--s-3); }
.modal .link-arrow:hover { color: var(--linen); }
@media (max-width: 639px) { .modal__imgs { grid-template-columns: 1fr 1fr; } .modal__imgs .media:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open], .modal[open]::backdrop { animation: none; } }

/* =========================================================
   HEADER — transparent (kit 7.2: "sticky, transparent over paper").
   Over the hero photo it switches to paper text (.is-on-hero, set by site.js).
   ========================================================= */
:root { --head-h: 84px; }
.site-head__bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: border-color var(--t-base) var(--ease); }
.site-head__logo, .site-head__nav a, .site-head__menu { transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.site-head.is-on-hero .site-head__bar { border-color: rgba(230,224,208,.45); }
.site-head.is-on-hero .site-head__logo,
.site-head.is-on-hero .site-head__nav a { color: var(--paper); }
.site-head.is-on-hero .site-head__nav a:hover { color: var(--linen); }
.site-head.is-on-hero .site-head__cta { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.site-head.is-on-hero .site-head__cta:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.site-head.is-on-hero .site-head__menu { border-color: rgba(230,224,208,.7); color: var(--paper); }
/* past the hero: a light frosted tint so the menu never sits unreadably on page text */
.site-head:not(.is-on-hero) .site-head__bar { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.site-head__bar { transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease); }
@media (max-width: 639px) { .modal .case-panel__name { font-size: clamp(30px, 10.5vw, 48px); } }

/* small section labels ("About me", "01 / Personal work"…) switched off site-wide (Paula, 2026-10-14) */
.label { display: none !important; }
.label + .project__name, .label + .chapter__title, .label + .room__title, .label + h2 { margin-top: 0 !important; }

/* =========================================================
   LIGHTBOX — photos open large (Photography page)
   ========================================================= */
main[data-lightbox] .media img, main[data-lightbox] .figs img, main[data-lightbox] .swapgrid .tile, main[data-lightbox] .carousel { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: rgba(28,12,18,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: po-fade var(--t-base) var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); }
.lightbox__btn { position: absolute; border-color: rgba(230,224,208,.55); color: var(--paper); background: rgba(48,24,35,.4); }
.lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__close { top: var(--s-5); right: var(--s-5); }
.lightbox__prev { left: var(--s-5); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--s-5); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: var(--s-5); left: 50%; transform: translateX(-50%); color: rgba(230,224,208,.75); }
@media (max-width: 639px) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s-4); transform: none; } }

/* Work dropdown (header) */
.nav-drop { position: relative; }
.nav-drop__btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav-drop__btn .icon { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.nav-drop.is-open .nav-drop__btn .icon { transform: rotate(180deg); }
.nav-drop__btn:hover, .nav-drop__btn[aria-current] { color: var(--clay); }
.nav-drop__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -6px);
  min-width: 240px; padding: var(--s-2); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -24px rgba(48,24,35,.35);
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.nav-drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* hover bridge */
.nav-drop.is-open .nav-drop__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.nav-drop__panel a { padding: 9px 12px; border-radius: var(--r-sm); font-size: 15px; white-space: nowrap; }
.nav-drop__panel a:hover { background: var(--linen); color: var(--ink); }
/* the "View" cursor grows into a pill for longer labels like "View Album" */
.cursor[data-mode="view"] { width: auto; min-width: 88px; padding: 0 20px; border-radius: var(--r-pill); white-space: nowrap; }

/* small "Fig. 0X" caption lines switched off site-wide (Paula, 2026-10-14) */
.credit, .figs figcaption { display: none !important; }

/* a pop-up with a single image: show it on its own, never hidden on phones */
.modal__imgs:has(> .media:only-child) { grid-template-columns: minmax(0, 360px); }
@media (max-width: 639px) { .modal__imgs .media:only-child { display: block; } }

/* footer = contact (Paula, 2026-10-14): as wide as the big videos, "Let's talk." lives here on every page */
.site-foot { padding-inline: clamp(8px, 1vw, 16px); scroll-margin-top: var(--s-6); }
.site-foot__panel { padding: clamp(32px, 5vw, 72px) calc(clamp(20px, 4vw, 56px) - clamp(8px, 1vw, 16px) + 8px); }
.site-foot .contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-7); padding-bottom: var(--s-8); }
.site-foot .contact__intro { display: flex; flex-direction: column; gap: var(--s-5); }
.site-foot .contact__word { font-size: clamp(56px, 8vw, 112px); line-height: .88; letter-spacing: -0.06em; }
.site-foot .contact__line { font-size: 17px; max-width: 36ch; opacity: .8; }
.site-foot .contact__mail { align-self: flex-start; font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.site-foot .mail-card { background: var(--linen); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--s-4); }
.site-foot .mail-card__subject { font-weight: 600; }
.site-foot .mail-card__body { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--ink); background: var(--paper); border-radius: var(--r-md); padding: var(--s-5); }
.site-foot .mail-card__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.site-foot .mail-card .btn { color: var(--paper); }
.site-foot .mail-card .btn--outline { color: var(--ink); }
.site-foot .mail-card .btn--outline:hover { color: var(--paper); }
.site-foot .mail-card .muted { color: var(--ink-2); }
/* email template card removed (Paula, 2026-10-14): two buttons sit under the address instead */
.site-foot .contact { grid-template-columns: 1fr; }
.site-foot .contact__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.site-foot .contact__actions .btn--outline { color: var(--paper); border-color: rgba(255,255,255,.5); }
.site-foot .contact__actions .btn--outline:hover { background: var(--paper); color: var(--ink); }

/* white footer (Paula, 2026-10-14): just the address, "Write an email" and the big name */
.site-foot--white .site-foot__panel { background: var(--paper); color: var(--ink); padding-block: var(--s-8) var(--s-6); }
.site-foot--white a { color: var(--ink); }
.site-foot--white a:hover { color: var(--clay); }
.site-foot--white .btn { color: var(--paper); }
.site-foot--white .btn:hover { color: var(--paper); }
.site-foot__mailrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5); }
.site-foot__mail { font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: -0.035em; overflow-wrap: anywhere; }

/* worn photo: show the lower part (pose and grass), less sky (Paula, 2026-10-14) */
img.pos-low { object-fit: cover; object-position: 50% 92%; }

/* black and white (Paula, 2026-10-14) */
img.is-bw { filter: grayscale(1) contrast(1.05); }
/* darker with grain, like the Saint Sass photo (Paula, 2026-10-14) */
img.is-bw { filter: grayscale(1) brightness(.72) contrast(1.25); }
.media:has(> img.is-bw) { position: relative; }
.media:has(> img.is-bw)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* cursor over links and buttons (Paula, 2026-10-14): no growing, see-through ring; just a slightly bigger solid dot */
.cursor[data-mode="link"] { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--clay); border: 0; }
/* inside the plum pop-ups and the dark lightbox the dot turns light so it stays visible */
dialog .cursor { background: var(--paper); }
dialog .cursor[data-mode="link"] { background: #E8C4B4; }
dialog .cursor[data-mode="view"] { background: var(--paper); color: var(--ink); }
@media (max-width: 639px) { .modal__imgs .media:last-child { display: block; } }  /* show all three pop-up images on phones too */
img.pos-lower { object-fit: cover; object-position: 50% 85%; }  /* Saint Sass frame: show the lower part (Paula, 2026-10-14) */
