/* ============================================================
   Ivo Heffner — Portfolio
   Light editorial (à la emilieaubry.com) + Apple-ish frosted glass.
   Display serif: Fraunces · UI grotesk: Inter
   ============================================================ */

/* Page transition: hold the page hidden until JS has rendered/positioned it,
   then fade it in. Used on sub-pages and when returning to a tile, so there's no
   white flash or "flash of the top, then snap down". A delayed CSS animation is
   a failsafe so the page can never stay hidden if the script fails to run. */
html.return-jump body { opacity: 0; animation: pageReveal 0.5s var(--ease) 2s forwards; }
html.return-jump.revealed body { opacity: 1; animation: none; transition: opacity 0.5s var(--ease); }
@keyframes pageReveal { to { opacity: 1; } }

/* Fonts pulled from ivoheffner.de (licensed by Ivo): Tobias (serif) + Matter (sans) */
@font-face {
  font-family: "Tobias";
  src: url("fonts/tobias.woff2") format("woff2");
  font-weight: 200 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("fonts/matter.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;          /* clean white */
  --fg: #131211;          /* near-black */
  --muted: #74716c;
  --hair: rgba(19, 18, 17, 0.11);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-brd: rgba(19, 18, 17, 0.08);
  --shadow: 0 24px 60px -30px rgba(19, 18, 17, 0.28);
  --shadow-sm: 0 10px 30px -18px rgba(19, 18, 17, 0.24);
  --pad: clamp(16px, 4vw, 56px);
  --serif: "Tobias", "Newsreader", "Times New Roman", Georgia, serif;
  --sans: "Matter", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }

.mono-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Intro animation (27b-style oversized logotype) ---------- */
body.intro-lock { overflow: hidden; }

/* Rendered title sequence (Remotion) */
.intro-video {
  position: fixed; inset: 0; z-index: 1000;
  /* the body zooms on big screens; a fixed overlay renders zoom-times larger,
     anchored top-left, which pushed the video's center down. Divide the size
     so the rendered box matches the real viewport and stays centered. */
  width: calc(100vw / var(--z, 1)); height: calc(100vh / var(--z, 1));
  background: #0B0B0A;
  display: grid; place-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity .6s var(--expo);
}
.intro-video video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  /* lift the title sequence a touch above centre (the overlay background is the
     same near-black, so the revealed strip at the bottom is seamless) */
  transform: translateY(-4vh);
}
.intro-video.gone { opacity: 0; pointer-events: none; }
.intro-video__skip {
  position: absolute; right: clamp(20px, 5vw, 44px); bottom: clamp(20px, 5vh, 40px);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(237,235,231,.55);
  cursor: pointer; transition: color .3s var(--ease);
}
.intro-video__skip:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .intro-video { display: none; }
}

.intro-anim {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .8s var(--ease);
}
.intro-anim__stage {
  width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro-anim__word {
  white-space: nowrap;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 9vw, 128px);
  letter-spacing: -0.04em; line-height: 1;
  will-change: transform;
}
.intro-anim__meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 5vh, 44px);
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.intro-anim__meta i { font-style: normal; }
.intro-anim.done { pointer-events: none; }

/* ---------- Floating glass nav ---------- */
.nav {
  position: fixed;
  top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 500;                 /* always in the foreground, over any hero/title */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  width: auto; max-width: calc(100% - 32px);
  /* dark glass pill: white text stays crisp over anything (light cream, dark
     film stills, or busy grey case art) — never a low-contrast grey. */
  background: rgba(18, 17, 16, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
}
.nav__brand { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.nav__brand sup { font-size: 9px; font-family: var(--sans); }
.nav__links { display: flex; gap: clamp(10px, 2vw, 26px); align-items: center; }
.nav__links a {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff;               /* white -> difference blend inverts it against the backdrop */
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.28); }
.nav__links a.is-cta { background: #fff; color: #000; }
.nav__links a.is-cta:hover { background: #fff; }

/* ---------- Hero (full-bleed editorial lockup) ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  padding: 96px var(--pad) 26px;
  overflow: hidden;
}
.hero__top, .hero__bottom { display: flex; justify-content: space-between; gap: 16px; }
.hero__type {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  will-change: transform; margin: clamp(14px, 3vh, 40px) 0;
}
.hero__line {
  display: block; white-space: nowrap; width: max-content;
  font-family: var(--serif); font-weight: 300;
  font-size: 100px; /* replaced at runtime: fitted to container width */
  line-height: 0.84; letter-spacing: -0.045em;
}
.hero__line--2 { font-style: italic; }
.hero__scroll { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Section frame ---------- */
/* Content column: sections never grow past ~1560px. Without this cap a
   fullscreen desktop (2000px+) blows the vw-based media up while the
   ch-capped copy stays small — the layout falls apart. The hero splash
   and the logo marquee intentionally stay full-bleed. */
.section { padding: clamp(70px, 11vh, 150px) var(--pad); position: relative; max-width: 1560px; margin-inline: auto; }
.section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: clamp(34px, 6vh, 72px);
}
.section__head .idx {
  font-family: var(--sans); font-size: clamp(11px, 1.1vw, 13px); font-weight: 500;
  letter-spacing: 0.06em; color: var(--muted);
}
.section__head h2 {
  font-family: var(--sans); font-size: clamp(16px, 2vw, 24px); font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg);
}

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (min-width: 720px) { .intro__grid { grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 80px); } }
/* polaroid: already tilted in the cut-out, so no CSS rotation. a soft drop shadow
   suggests it is a physical print resting on the page. no hover motion. */
.intro__photo {
  margin: clamp(6px, 1.5vw, 22px) 0 0; border: 0; background: none;
  border-radius: 0; overflow: visible;
  aspect-ratio: auto;
  transform: none;
  filter: drop-shadow(0 22px 34px rgba(19, 18, 17, 0.26));
}
@media (min-width: 720px) { .intro__photo { position: sticky; top: 104px; } }
.intro__photo img { width: 100%; height: auto; display: block; border-radius: 0; }
.intro__text { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 44px); }
.intro__statement {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(20px, 2.5vw, 33px);
  line-height: 1.22; letter-spacing: -0.008em; max-width: 38ch;
}
.intro__statement em { font-style: italic; color: var(--muted); }
.intro__claim {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.18; max-width: 24ch;
  color: var(--muted); padding-top: clamp(20px, 3vh, 34px); border-top: 1px solid var(--hair);
}

/* ---------- Services (glass rows) ---------- */
.services__list {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 6px clamp(18px, 3vw, 34px);
}
.service {
  display: grid; grid-template-columns: 48px 1fr; gap: clamp(14px, 3vw, 48px);
  padding: clamp(24px, 3.4vh, 40px) 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.service:last-child { border-bottom: none; }
.service__no { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 0.6em; }
.service__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.015em; }
.service__text { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: 12px; }
@media (min-width: 860px) {
  .service { grid-template-columns: 48px 0.95fr 1.05fr; align-items: center; }
  .service__text { margin-top: 0; }
}

/* ---------- Work (image-first editorial) ---------- */
.work__grid { display: grid; grid-template-columns: 1fr; gap: clamp(38px, 5vw, 68px); }
@media (min-width: 760px) { .work__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 72px) clamp(28px, 3vw, 44px); } }
/* editorial rhythm: nudge every 2nd item down on desktop */
@media (min-width: 760px) {
  .work__grid .tile:nth-child(even) { transform: translateY(46px); }
  .work__grid .tile:nth-child(even):hover { transform: translateY(42px); }
}

.tile { display: block; position: relative; cursor: pointer; transition: transform 0.5s var(--ease); }
.tile:hover { transform: translateY(-4px); }
/* returning from a sub-page lands on this tile, clear of the fixed nav */
.tile, .ccase { scroll-margin-top: 96px; }
.tile__media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--r-lg); background: #d9d5cd;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.5s var(--ease);
}
.tile:hover .tile__media { box-shadow: var(--shadow); }
.tile__media img, .tile__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tile__media video { opacity: 0; transition: opacity 0.5s var(--ease); }
.tile.playing .tile__media video { opacity: 1; }
.tile__media img { transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__no {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: #fff;
  mix-blend-mode: difference;
}
.tile__view {
  position: absolute; bottom: 16px; left: 18px; z-index: 2;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--fg);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd); border-radius: var(--r-pill); padding: 8px 14px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tile:hover .tile__view { opacity: 1; transform: none; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 18px 4px 0; }
.tile__l { display: flex; flex-direction: column; gap: 4px; }
.tile__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -0.015em; }
.tile__roles { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.tile__client { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Clients — logo wall ---------- */
.clients__wall {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 560px) { .clients__wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .clients__wall { grid-template-columns: repeat(4, 1fr); } }
.client {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(84px, 12vw, 130px);
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  transition: background 0.4s var(--ease);
}
.client:hover { background: rgba(255, 255, 255, 0.5); }
.client span {
  font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 2.4vw, 28px);
  letter-spacing: -0.01em; color: var(--muted); transition: color 0.3s var(--ease);
}
.client:hover span { color: var(--fg); }

/* ---------- Contact ---------- */
.contact { padding: clamp(60px, 10vh, 130px) var(--pad) 32px; max-width: 1560px; margin-inline: auto; }
.contact__card {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(30px, 6vw, 72px);
}
.contact__big {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(38px, 8vw, 120px); line-height: 0.95; letter-spacing: -0.025em;
}
.contact__big em { font-style: italic; }
.contact__big a { border-bottom: 2px solid var(--hair); transition: border-color 0.3s var(--ease); }
.contact__big a:hover { border-color: var(--fg); }
.contact__cols {
  display: grid; grid-template-columns: 1fr; gap: 26px;
  margin-top: clamp(40px, 7vh, 80px); padding-top: 28px; border-top: 1px solid var(--hair);
}
@media (min-width: 720px) { .contact__cols { grid-template-columns: repeat(3, 1fr); } }
.contact__col h4 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.contact__col a, .contact__col p { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.contact__col a { transition: color 0.3s var(--ease); }
.contact__col a:hover { color: var(--muted); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding: 0 4px; font-family: var(--sans); font-size: 11px; color: var(--muted);
}

/* ============================================================
   Project sub-page
   ============================================================ */
.pp { padding: 92px var(--pad) 0; max-width: 1400px; margin: 0 auto; }
.pp__back {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 400;                 /* always in the foreground, over the hero title */
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-brd); border-radius: var(--r-pill);
  padding: 9px 18px; box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease);
}
.pp__back:hover { background: var(--glass-strong); }
.pp__eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pp__title { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; font-size: clamp(48px, 11vw, 180px); line-height: 0.9; letter-spacing: -0.03em; }
.pp__player {
  margin-top: clamp(26px, 5vh, 56px); position: relative; aspect-ratio: 16 / 9;
  background: #d9d5cd; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow);
}
.pp__player img, .pp__player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp__playbtn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
}
.pp__playbtn span {
  font-family: var(--sans); font-size: 12.35px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd); border-radius: var(--r-pill);
  padding: 14px 26px; box-shadow: var(--shadow-sm); color: var(--fg);
  transition: transform 0.3s var(--ease);
}
.pp__playbtn:hover span { transform: scale(1.04); }
.pp__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); padding: clamp(40px, 7vh, 90px) 0; }
@media (min-width: 860px) { .pp__grid { grid-template-columns: 300px 1fr; } }
.pp__facts {
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-brd); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px); align-self: start;
}
.pp__facts dt { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.pp__facts dt:first-child { margin-top: 0; }
.pp__facts dd { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-top: 3px; }
.pp__facts .roles-tags { font-family: var(--sans); font-size: 12px; color: var(--fg); line-height: 1.9; }
.pp__body p { font-family: var(--serif); font-weight: 300; font-size: clamp(23px, 3.2vw, 38px); line-height: 1.28; letter-spacing: -0.01em; max-width: 34ch; }
/* film info as small rounded chips (like the case related-services pills) */
.pp__meta { padding: clamp(38px, 6vh, 84px) 0; display: flex; flex-direction: column; gap: clamp(22px, 4vh, 40px); }
.pp__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pp__tag {
  font-family: var(--sans); font-size: 13px; color: var(--fg);
  border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 7px 15px;
}
.pp__credits {
  padding: clamp(36px, 6vh, 80px) 0;
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--hair);
}
@media (max-width: 640px) { .pp__credits { grid-template-columns: 1fr; } }
.pp__credits h3 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pp__credits ul { list-style: none; columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .pp__credits ul { columns: 1; } }
.pp__credits li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-family: var(--sans); font-size: 13px; }
.pp__credits li .job { color: var(--muted); }
.pp__next {
  border-top: 1px solid var(--hair); padding: clamp(50px, 9vh, 120px) 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.pp__next .mono-label { display: block; margin-bottom: 12px; }
.pp__next a { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 7vw, 110px); line-height: 0.9; letter-spacing: -0.02em; transition: font-style 0.2s; }
.pp__next a:hover { font-style: italic; }
.pp__next .arrow { font-family: var(--serif); font-size: clamp(36px, 7vw, 100px); }

.loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   Case study (Santé — MODE ON)
   Clean white base, glass + campaign accents.
   ============================================================ */
/* accent values are defined once, further down (ultramarine + red) */

.cs { max-width: 1500px; margin: 0 auto; padding: 0 var(--pad); }
.cs__back {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 400;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd); border-radius: var(--r-pill); padding: 10px 20px; box-shadow: var(--shadow-sm);
  transition: background .3s var(--ease);
}
.cs__back:hover { background: var(--glass-strong); }

/* Hero */
.cs-hero { padding: 120px 0 0; }
.cs-hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cs-hero__eyebrow span {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 6px 13px;
}
.cs-hero__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 15vw, 230px);
  line-height: 0.86; letter-spacing: -0.04em; display: flex; align-items: center; gap: 0.14em; flex-wrap: wrap;
}
.cs-hero__title .on {
  font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 3.2vw, 48px); letter-spacing: 0;
  background: var(--fg); color: #fff; border-radius: var(--r-pill); padding: 0.35em 0.7em 0.4em;
  display: inline-flex; align-items: center; gap: 0.5em; transform: translateY(-0.35em);
}
.cs-hero__title .on::after { content: ""; width: 0.85em; height: 0.85em; border-radius: 50%; background: var(--sante-pink); }
.cs-hero__lead {
  font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 40px); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 34ch; margin-top: clamp(26px, 4vh, 48px);
}
.cs-hero__media {
  margin-top: clamp(30px, 5vh, 60px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow);
}
.cs-hero__media img { width: 100%; display: block; }

/* Generic case section */
.cs-sec { padding: clamp(64px, 10vh, 130px) 0; border-top: 1px solid var(--hair); }
.cs-sec__k { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; display: flex; gap: 12px; align-items: baseline; }
.cs-sec__k b { color: var(--sante-pink); font-weight: 500; }
.cs-h { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.cs-p { font-family: var(--sans); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.62; color: #3a3835; max-width: 62ch; margin-top: 22px; }
.cs-p + .cs-p { margin-top: 14px; }

/* Facts grid */
.cs-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; margin-top: 36px; }
@media (min-width: 720px) { .cs-facts { grid-template-columns: repeat(4, 1fr); } }
.cs-fact { background: #fff; padding: clamp(20px, 2.5vw, 30px); }
.cs-fact dt { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cs-fact dd { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.05; margin-top: 10px; letter-spacing: -0.01em; }

/* Two-col */
.cs-two { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (min-width: 900px) { .cs-two { grid-template-columns: 1fr 1fr; } .cs-two--sticky .cs-two__l { position: sticky; top: 100px; } }

.cs-fig { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.cs-fig img { width: 100%; display: block; }
.cs-fig__cap { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Switch mechanic pills */
.cs-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cs-switch span {
  font-family: var(--sans); font-size: 12.35px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: var(--r-pill); padding: 10px 18px; border: 1px solid var(--hair);
}
.cs-switch span.s1 { background: #f3f3f2; color: var(--muted); }
.cs-switch span.s2 { background: var(--fg); color: #fff; border-color: var(--fg); }
.cs-switch span.s3 { background: var(--sante-pink); color: #fff; border-color: var(--sante-pink); }
.cs-switch .arrow { border: none; color: var(--muted); padding: 10px 2px; }

/* Modes */
.cs-modes { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 640px) { .cs-modes { grid-template-columns: 1fr 1fr; } }
.cs-mode {
  border: 1px solid var(--hair); border-radius: var(--r-md); padding: clamp(22px, 2.5vw, 32px);
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cs-mode:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cs-mode__tag { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sante-pink); }
.cs-mode__name { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin: 8px 0 4px; letter-spacing: -0.015em; }
.cs-mode__prod { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.cs-mode__txt { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: #3a3835; margin-top: 16px; }

/* Full-bleed figure */
.cs-bleed { margin-top: 40px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.cs-bleed img { width: 100%; display: block; }

.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 900px) { .cs-gallery { grid-template-columns: 1fr 1fr 1fr; } }
.cs-gallery figure { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm); }
.cs-gallery img { width: 100%; display: block; }

.cs-next { border-top: 1px solid var(--hair); padding: clamp(60px, 11vh, 140px) 0; text-align: center; }
.cs-next a { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 5vw, 70px); letter-spacing: -0.02em; }
.cs-next a:hover { font-style: italic; }

/* ============================================================
   Client logo marquee
   ============================================================ */
.marquee {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: clamp(22px, 3.5vh, 40px) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(26px, 4vw, 62px); flex: 0 0 auto; height: 40px;
}
.marquee__item img {
  height: 26px; width: auto; object-fit: contain;
  opacity: 0.55; filter: grayscale(1); transition: opacity .35s var(--ease);
}
.marquee__item:hover img { opacity: 1; }
.marquee__item span {
  font-family: var(--serif); font-size: 26px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--muted); white-space: nowrap; transition: color .35s var(--ease);
}
.marquee__item:hover span { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   Services accordion
   ============================================================ */
.acc { border-top: 1px solid var(--hair); }
.acc__item { border-bottom: 1px solid var(--hair); }
.acc__head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 54px 1fr 28px; align-items: center; gap: 12px;
  padding: clamp(20px, 2.8vh, 32px) 0; color: inherit; font: inherit;
}
.acc__no { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.acc__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 4.6vw, 62px); line-height: 1; letter-spacing: -0.02em;
  transition: opacity .3s var(--ease);
}
.acc__head:hover .acc__title { opacity: 0.55; }
.acc__sign { position: relative; width: 18px; height: 18px; justify-self: end; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: var(--fg); transition: transform .4s var(--ease);
}
.acc__sign::before { left: 0; top: 8px; width: 18px; height: 1.5px; }
.acc__sign::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.acc__item.is-open .acc__sign::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__item.is-open .acc__inner { padding-bottom: clamp(24px, 3vh, 40px); }
.acc__text {
  font-family: var(--sans); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
  color: #3a3835; max-width: 58ch; margin-left: 66px;
}
.acc__rel { margin: 26px 0 0 66px; }
.acc__rel h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.acc__rel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.acc__rel li {
  font-family: var(--sans); font-size: 13px; color: var(--fg);
  border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 7px 15px;
}
@media (max-width: 640px) { .acc__text, .acc__rel { margin-left: 0; } }

/* ============================================================
   Creative Direction cases (editorial rows)
   ============================================================ */
.cases__list { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.ccase {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
@media (min-width: 880px) { .ccase { grid-template-columns: 1.05fr 1fr; } }
.ccase:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ccase__media { position: relative; overflow: hidden; background: #f0efed; aspect-ratio: 16 / 9; }
.ccase__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.ccase:hover .ccase__media img { transform: scale(1.04); }
.ccase__body {
  padding: clamp(24px, 3vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.ccase__top {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
.ccase__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.02em;
}
.ccase__line { font-family: var(--sans); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.55; color: #3a3835; max-width: 46ch; }
.ccase__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--hair);
  font-family: var(--sans); font-size: 12px;
}
.ccase__role { color: var(--muted); }
.ccase__cta { font-weight: 500; }
.ccase:hover .ccase__cta { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   MOTION PASS — custom cursor, blur-on-hover, staggered reveals
   ============================================================ */

/* ---- Custom cursor (desktop, fine pointer only) ---- */
@media (hover: hover) and (pointer: fine) {
  /* hide the native arrow from the very first paint (before JS builds the dot),
     so navigating between pages never flashes the system cursor. Raw iframes
     keep their own pointer. */
  html { cursor: none; }
  html iframe { cursor: auto; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: var(--fg);
    transform: translate3d(-100px, -100px, 0);
    transition: width .35s var(--ease), height .35s var(--ease),
                margin .35s var(--ease), background .35s var(--ease), opacity .3s;
    mix-blend-mode: difference;
  }
  .cursor.is-link {
    width: 48px; height: 48px; margin: -24px 0 0 -24px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    mix-blend-mode: normal;
  }
  .cursor__label {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s var(--ease);
    white-space: nowrap;
  }
  .cursor.is-link .cursor__label { opacity: 1; }
}

/* ---- Blur-on-hover: hovering one item softens the others ---- */
.work__grid.is-hovering .tile:not(:hover),
.cases__list.is-hovering .ccase:not(:hover) {
  /* darken (not wash out) so the negative nav stays readable over a blurred tile */
  filter: blur(3px) saturate(0.85) brightness(0.5);
  opacity: 0.85;
}
.work__grid .tile, .cases__list .ccase {
  transition: filter .55s var(--ease), opacity .55s var(--ease),
              transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .work__grid.is-hovering .tile:not(:hover),
  .cases__list.is-hovering .ccase:not(:hover) { filter: none; opacity: 1; }
}

/* ---- Staggered line reveal (denise-style) ---- */
.lines { display: block; }
.lines .ln { display: block; overflow: hidden; }
.lines .ln > span {
  display: block; transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--l, 0) * 0.08s);
}
.lines.in .ln > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .lines .ln > span { transform: none; }
}

/* ---- Media scale-in on scroll (konolee/apple feel) ---- */
.rise { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rise.in { opacity: 1; transform: none; }
/* logo-only case media (external case, no still yet) */
.ccase__media.is-logo { display: flex; align-items: center; justify-content: center; background: #f7f7f6; }
.ccase__media.is-logo img { width: auto; height: 34%; max-width: 44%; object-fit: contain; }
.ccase__cta { white-space: nowrap; }

/* ---- Case: embedded films (Lidl) ---- */
.cs-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow); background: #ecebe9;
}
.cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cs-films { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 3vw, 44px); margin-top: 40px; }
@media (min-width: 900px) { .cs-films { grid-template-columns: repeat(3, 1fr); } }
.cs-film { margin: 0; }
.cs-film .cs-embed { border-radius: var(--r-md); }
.cs-film figcaption {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.cs-film__no { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); }
.cs-film__name { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -0.015em; }
.cs-film__meta { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: auto; }

/* ============================================================
   Intro animation v2 — staggered letters, progress bar, curtain
   ============================================================ */
.intro-anim__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(19,18,17,.08); overflow: hidden;
}
.intro-anim__bar i {
  display: block; height: 100%; width: 100%; background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%;
}
.intro-anim__word {
  display: flex; align-items: baseline; justify-content: center;
  transform: scale(var(--introFit, 1));
  transform-origin: center center;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) .35s;
}
.intro-anim__word .ch { display: inline-block; overflow: hidden; line-height: .95; }
.intro-anim__word .ch > i {
  display: inline-block; font-style: normal;
  transform: translateY(110%) rotate(4deg);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--c) * 0.045s + 0.1s);
}
.intro-anim.run .intro-anim__word .ch > i { transform: translateY(0) rotate(0); }
.intro-anim__word .sp { display: inline-block; width: .28em; }
.intro-anim__roles { display: flex; gap: 18px; }
.intro-anim__roles i {
  font-style: normal; opacity: 0; transform: translateY(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.intro-anim__roles i:nth-child(1) { transition-delay: .5s; }
.intro-anim__roles i:nth-child(2) { transition-delay: .65s; }
.intro-anim__roles i:nth-child(3) { transition-delay: .8s; }
.intro-anim.run .intro-anim__roles i { opacity: 1; transform: none; }
/* curtain wipe on exit */
.intro-anim.done { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(0.76,0,0.24,1), opacity .5s ease 0.6s; }
.intro-anim.done .intro-anim__word { transform: scale(calc(var(--introFit, 1) * 1.06)); transition: transform 1.1s var(--ease); }
@media (max-width: 640px) { .intro-anim__roles { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro-anim__word, .intro-anim__word .ch > i, .intro-anim__roles i { transition: none; transform: none; opacity: 1; }
  .intro-anim.done { clip-path: none; }
}

/* ============================================================
   Awards
   ============================================================ */
.awards__list { list-style: none; border-top: 1px solid var(--hair); }
.award {
  display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: baseline;
  padding: clamp(16px, 2.2vh, 26px) 0; border-bottom: 1px solid var(--hair);
}
.award__year { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.award__name { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.award__result {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 6px 13px; white-space: nowrap;
}
.award__result.is-win { background: var(--fg); color: #fff; border-color: var(--fg); }
@media (max-width: 560px) {
  .award { grid-template-columns: 1fr auto; }
  .award__year { grid-column: 1 / -1; }
}

/* ============================================================
   Contact v2
   ============================================================ */
.contact__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(22px, 3.4vh, 34px);
  font-family: var(--sans); font-size: clamp(13px, 1.15vw, 15px); font-weight: 500;
  background: var(--fg); color: #fff; border-radius: var(--r-pill);
  padding: 11px 20px; transition: transform .4s var(--ease), background .3s var(--ease);
}
.contact__cta i { font-style: normal; transition: transform .4s var(--ease); }
.contact__cta:hover { transform: translateY(-2px); }
.contact__cta:hover i { transform: translate(3px, -3px); }
.contact__col p.rep {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hair);
}
.contact__col p.rep:last-child { border-bottom: 0; }
.contact__col p.rep span { color: var(--muted); flex: 0 0 auto; }
/* both plain (b) and linked (a) reps sit flush right and stay right-aligned when they wrap */
.contact__col p.rep b,
.contact__col p.rep a { display: inline; font-weight: 500; text-align: right; flex: 0 1 auto; min-width: 0; }

/* ============================================================
   Responsive polish (phones / tablets)
   ============================================================ */
@media (max-width: 900px) {
  .cs-two--sticky .cs-two__l { position: static; }
}
@media (max-width: 719px) {
  /* single column on phones: polaroid centred above the text, tasteful size */
  .intro__photo { position: static !important; max-width: 300px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 460px) {
  .intro__photo { max-width: 70vw; }
}
@media (max-width: 700px) {
  .nav { top: 10px; padding: 6px 8px; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 8px 11px; font-size: 11px; letter-spacing: 0.02em; }
  .hero { padding: 84px var(--pad) 20px; }
  .hero__top, .hero__bottom { font-size: 10px; }
  .hero__bottom .mono-label, .hero__top .mono-label { font-size: 10px; letter-spacing: 0.08em; }
  .section { padding: clamp(52px, 8vh, 80px) var(--pad); }
  .section__head { margin-bottom: 28px; }
  .acc__head { grid-template-columns: 38px 1fr 20px; }
  .acc__text, .acc__rel { margin-left: 0; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-gallery { grid-template-columns: 1fr; }
  .marquee__item { padding: 0 22px; }
  .marquee__item img { height: 20px; }
  .marquee__item span { font-size: 19px; }
  .contact { padding: 40px var(--pad) 24px; }
  .contact__card { padding: 26px 20px; }
  .footer__base { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .cs-facts { grid-template-columns: 1fr; }
  .cs-hero { padding-top: 92px; }
  .tile__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tile__client { white-space: normal; }
  .ccase__foot { flex-direction: column; align-items: flex-start; }
}
/* never let media or wide blocks push the page sideways */
img, video, iframe { max-width: 100%; }
.cs, .section, .contact { overflow-x: clip; }

/* ---- Intro statement paragraphs ---- */
.intro__statement p + p { margin-top: 0.7em; }

/* ---- Hero skills (bottom left of the title page) ---- */
.hero__skills {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 0; max-width: 62%;
}
.hero__skills span { display: inline-flex; align-items: center; white-space: nowrap; }
/* separator rides with the word before it, so a line never starts on a dot */
.hero__skills span:not(:last-child)::after {
  content: "·"; margin: 0 9px; opacity: .5;
}
@media (max-width: 700px) {
  .hero__skills { max-width: 70%; }
  .hero__skills span:not(:last-child)::after { margin: 0 6px; }
}

/* ---- Two marquee rows (clients + agencies) ---- */
.marquee-block { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.marquee-block .marquee { border: 0; padding: clamp(18px, 2.6vh, 30px) 0; }
.marquee-block .marquee + .marquee { border-top: 1px solid var(--hair); }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 52s; }

/* keep very wide wordmark logos from dominating the marquee row */
.marquee__item img { max-width: 190px; }
@media (max-width: 700px) { .marquee__item img { max-width: 130px; } }

/* ---- Deck screenshots: pad them inside the frame so rounded corners
        never clip slide artwork (footer bars, edge-to-edge colour) ---- */
.cs-fig, .cs-bleed, .cs-gallery figure, .cs-hero__media {
  background: #f4f4f3;
  padding: clamp(8px, 1vw, 14px);
}
.cs-fig > img, .cs-bleed > img, .cs-gallery figure > img, .cs-hero__media > img {
  border-radius: 10px; display: block;
}
/* captions sit outside the padded frame */
.cs-fig { position: relative; }
.cs-fig .cs-fig__cap { padding: 10px 2px 2px; margin-top: 0; }

/* ---- Rule cards (used instead of deck screenshots) ---- */
.cs-rules { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 34px 0 30px; }
@media (min-width: 780px) { .cs-rules { grid-template-columns: repeat(3, 1fr); } }
.cs-rule {
  border: 1px solid var(--hair); border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cs-rule__tag {
  display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--fg); color: #fff; border-radius: var(--r-pill); padding: 5px 11px;
}
.cs-rule__what {
  display: block; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05; letter-spacing: -0.015em; margin: 14px 0 8px;
}
.cs-rule p { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: #3a3835; }

/* ---- 9:16 film reels ---- */
.cs-reels { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: 36px; }
@media (min-width: 720px)  { .cs-reels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .cs-reels { grid-template-columns: repeat(5, 1fr); } }
.cs-reel { margin: 0; }
.cs-reel__frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--hair);
  background: #f0efed;
  display: flex; align-items: center; justify-content: center;
}
.cs-reel__frame > span {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--muted); border: 1px dashed var(--hair); border-radius: var(--r-pill); padding: 6px 12px;
}
.cs-reel__frame video, .cs-reel__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.cs-reel figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.cs-reel figcaption b { font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.7vw, 20px); letter-spacing: -0.01em; }
.cs-reel figcaption span { font-family: var(--sans); font-size: 11px; color: var(--muted); }

/* ============================================================
   Headline system: grotesk headlines, serif reserved for the
   name, the intro voice and the client wordmarks.
   ============================================================ */
.cs-h, .cs-hero__title, .acc__title, .ccase__title, .award__name,
.tile__title, .cs-mode__name, .cs-rule__what, .cs-film__name,
.cs-fact dd, .pp__title, .contact__big, .cs-next a, .pp__next a,
.cs-reel figcaption b {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.cs-h, .cs-hero__title, .pp__title, .contact__big { line-height: 1.02; }
.acc__title { line-height: 1.04; }
/* italics were a serif flourish; in the grotesk they read as a lighter tone */
.cs-hero__title em, .contact__big em, .cs-mode__name em, .pp__next a:hover {
  font-style: normal; color: var(--muted);
}
.cs-next a:hover { font-style: normal; opacity: .6; }

/* ---- Cursor: always inverted against whatever is behind it ---- */
@media (hover: hover) and (pointer: fine) {
  .cursor { background: #fff; mix-blend-mode: difference; }
  .cursor.is-link {
    background: #fff;
    border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    mix-blend-mode: difference;
  }
  .cursor__label { color: #000; mix-blend-mode: normal; }
}

/* ---- Sonos reads small at a shared height, give it more room ---- */
.marquee__item img[src*="sonos"] { height: 34px; max-width: 210px; }

/* ---- Footer: keep the last column tidy on the right ---- */
@media (min-width: 720px) {
  .contact__cols .contact__col:last-child { text-align: right; }
  .contact__cols .contact__col:last-child h4 { text-align: right; }
}

/* ---- Fixed back pills must not let page text bleed through ---- */
.cs__back, .pp__back {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--hair);
}
.cs__back:hover, .pp__back:hover { background: #fff; }

/* ---- Reel play badge ---- */
.cs-reel__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; pointer-events: none;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg);
  background: rgba(255,255,255,.9); border-radius: var(--r-pill); padding: 7px 14px;
  transition: opacity .3s var(--ease);
}
.cs-reel__frame.playing .cs-reel__play { opacity: 0; }
.cs-reel__frame video { object-fit: cover; }

/* ============================================================
   Hero v2 — smaller lockup, same language as the case heroes
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(110px, 16vh, 170px) var(--pad) 26px;
}
.hero__inner { max-width: 1100px; }

.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3.5vh, 38px); }
.hero__eyebrow span {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 7px 14px;
  opacity: 0; transform: translateY(8px);
  animation: heroFade .8s var(--ease) forwards;
}
.hero__eyebrow span i { font-style: normal; }
.hero__eyebrow span:nth-child(1) { animation-delay: .15s; }
.hero__eyebrow span:nth-child(2) { animation-delay: .25s; }
.hero__eyebrow span:nth-child(3) { animation-delay: .35s; }

.hero__name { font-family: var(--serif); font-weight: 300; line-height: .92; letter-spacing: -0.035em; }
.hero__name .hl { display: block; overflow: hidden; }
.hero__name .hl > i {
  display: block; font-style: normal;
  font-size: clamp(52px, 11vw, 168px);
  transform: translateY(108%);
  animation: heroRise 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__name .hl:nth-child(1) > i { animation-delay: .30s; }
.hero__name .hl--2 > i { font-style: italic; animation-delay: .42s; }

.hero__lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(18px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.005em;
  max-width: 34ch; margin-top: clamp(22px, 3.5vh, 38px); color: var(--muted);
  opacity: 0; animation: heroFade .9s var(--ease) .72s forwards;
}
.hero__actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(26px, 4vh, 44px);
  opacity: 0; animation: heroFade .9s var(--ease) .86s forwards;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  background: var(--fg); color: #fff; border-radius: var(--r-pill); padding: 14px 24px;
  transition: transform .4s var(--ease);
}
.hero__cta i { font-style: normal; transition: transform .4s var(--ease); }
.hero__cta:hover { transform: translateY(-2px); }
.hero__cta:hover i { transform: translateY(3px); }
.hero__link {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted);
  border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: color .3s var(--ease);
}
.hero__link:hover { color: var(--fg); }

.hero__bottom { opacity: 0; animation: heroFade .9s var(--ease) 1s forwards; }

@keyframes heroRise { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__name .hl > i, .hero__eyebrow span, .hero__lead, .hero__actions, .hero__bottom {
    animation: none; opacity: 1; transform: none;
  }
}
@media (max-width: 700px) {
  .hero { padding-top: 100px; }
  .hero__actions { gap: 12px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__skills { max-width: 100%; }
}

/* ---- Fixed back pills: fully opaque so scrolling content never shows through ---- */
.cs__back, .pp__back {
  background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--hair);
  box-shadow: 0 6px 20px -10px rgba(19,18,17,.35);
}
.cs__back:hover, .pp__back:hover { background: #fff; border-color: var(--fg); }

/* ============================================================
   Accent palette (Karel Martens reference): ultramarine + red.
   These replace the pink used earlier.
   ============================================================ */
:root {
  --accent-blue: #1B2CC4;
  --accent-red:  #EF4A26;
  --sante-pink:  #EF4A26;   /* legacy name, now points at the red */
  --sante-coral: #EF4A26;
  --sante-yellow:#1B2CC4;
}
.cs-sec__k b { color: var(--accent-red); }
.cs-switch span.s3 { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.cs-mode__tag { color: var(--accent-red); }
.cs-hero__title .on::after { background: var(--accent-red); }
.section__head .idx { color: var(--muted); }
.award__result.is-win { background: var(--accent-blue); border-color: var(--accent-blue); }
.cs-rule__tag { background: var(--accent-blue); }
.tile__flag {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: var(--accent-red); border-radius: var(--r-pill); padding: 5px 11px;
}
.pp__note {
  font-family: var(--sans); font-size: 12px; color: var(--accent-red);
  margin-top: 12px; letter-spacing: 0.02em;
}

/* ============================================================
   Section headlines back in the main serif (same face as the name)
   ============================================================ */
.section__head h2, .cs-sec__k {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
}
.cs-sec__k { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.cs-sec__k b { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.section__head { align-items: baseline; }

/* ============================================================
   Cursor: hide the native pointer everywhere, not just on links
   (it was reappearing over media, spans and buttons)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  /* cross-origin iframes keep their own pointer, so let it show there */
  .has-cursor iframe { cursor: auto !important; }
}

/* ============================================================
   Single accent: one bold red. No blue anywhere.
   ============================================================ */
:root {
  --accent:      #F0301C;
  --accent-blue: #F0301C;
  --accent-red:  #F0301C;
  --sante-pink:  #F0301C;
  --sante-coral: #F0301C;
  --sante-yellow:#F0301C;
}
.cs-switch span.s3,
.award__result.is-win,
.cs-rule__tag { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   Hero: black splash. The menu only appears once you leave it.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: #0B0B0A;
  color: #EDEBE7;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(70px, 9vh, 110px) var(--pad);
  overflow: hidden;
}
.hero__corner {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  /* smaller and tucked tight into the corners, à la ivoheffner.de */
  font-family: var(--sans); font-size: 11.7px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(237,235,231,.72);
}
.hero__corner--tl { top: clamp(16px, 2.4vh, 22px); left: clamp(16px, 2.2vw, 28px); }
.hero__corner--tr { top: clamp(16px, 2.4vh, 22px); right: clamp(16px, 2.2vw, 28px); transition: color .3s var(--ease); }
.hero__corner--tr:hover { color: #fff; }
.hero__corner--bl { bottom: clamp(16px, 2.4vh, 22px); left: clamp(16px, 2.2vw, 28px); }
.hero__corner--br { bottom: clamp(16px, 2.4vh, 22px); right: clamp(16px, 2.2vw, 28px); }
.hero__corner i { font-style: normal; }
.hero__skills { display: block; max-width: 46ch; opacity: .55; }
.hero__skills span { white-space: nowrap; }
.hero__skills span:not(:last-child)::after { content: "·"; margin: 0 7px; opacity: .6; }

.hero__stage { width: 100%; }
.hero__display { display: block; text-align: center; }
.hero__display .hd {
  position: relative; display: block; line-height: .92;
}
.hero__display em {
  font-style: normal; font-family: var(--serif); font-weight: 300;
  /* vw is not divided by the body zoom, so compensate: visual size stays as approved */
  font-size: clamp(calc(36px / var(--z, 1)), calc(9vw / var(--z, 1)), calc(168px / var(--z, 1)));
  letter-spacing: -0.02em; display: block; white-space: nowrap;
}
.hero__display s { text-decoration: none; }
/* ghosted duplicate sitting behind, offset like the reference */
.hero__display .hd__ghost {
  position: absolute; left: 0; right: 0; top: 0;
  color: rgba(237,235,231,.07);
  transform: translate(-2.2%, 16%) scale(1.02);
  pointer-events: none;
}
.hero__display .hd__main {
  color: #EDEBE7;
  transform: translateY(105%);
  animation: heroRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__display .hd:nth-child(1) .hd__main { animation-delay: .15s; }
.hero__display .hd:nth-child(2) .hd__main { animation-delay: .3s; }
.hero__display .hd { overflow: hidden; }
.hero__corner { opacity: 0; animation: heroFade .9s var(--ease) .7s forwards; }
.hero__scroll { animation: heroFade .9s var(--ease) .7s forwards, pulse 2.4s ease-in-out 1.6s infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero__display .hd__main { animation: none; transform: none; }
  .hero__corner, .hero__scroll { animation: none; opacity: 1; }
}
@media (max-width: 700px) {
  .hero__corner--bl .hero__skills { display: none; }
  .hero__display em { font-size: clamp(30px, 12vw, 60px); }
}

/* the intro overlay flows into the black hero */
.intro-anim { background: #0B0B0A; }
.intro-anim__word, .intro-anim__meta { color: #EDEBE7; }
.intro-anim__bar { background: rgba(237,235,231,.14); }
.intro-anim__bar i { background: var(--accent); }

/* ---- Nav hides while the splash is on screen ---- */
.nav {
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.nav.is-visible {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Bright warm white + soft blurred edges (Studio Nari recipe)
   ============================================================ */
:root {
  --bg: #FFFDF9;
  /* no red anywhere: accents resolve to neutral near-black */
  --accent:      #131211;
  --accent-blue: #131211;
  --accent-red:  #131211;
  --sante-pink:  #131211;
  --sante-coral: #131211;
  --sante-yellow:#131211;
}
body { background: var(--bg); }

.edge {
  position: fixed; left: 0; width: 100%; height: 208px;
  z-index: 20; pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.edge--top {
  top: -128px;
  background: linear-gradient(rgba(255, 253, 249, .52), rgba(255, 253, 249, 0));
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.edge--bottom {
  bottom: -128px;
  background: linear-gradient(to top, rgba(255, 253, 249, .52), rgba(255, 253, 249, 0));
  -webkit-mask-image: linear-gradient(transparent, #000 50%);
          mask-image: linear-gradient(transparent, #000 50%);
}
/* the black splash owns the whole screen, so no light haze over it */
body.at-splash .edge { opacity: 0; transition: opacity .4s var(--ease); }
.edge { transition: opacity .4s var(--ease); }

/* ============================================================
   Fixes
   ============================================================ */
/* 1. Cursor: a touch smaller when it grows */
@media (hover: hover) and (pointer: fine) {
  .cursor.is-link { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .cursor__label { font-size: 9px; }
}

/* 2. Blur-on-hover driven purely by CSS, so it can never get stuck on.
   Mouse only — on touch, tapping leaves a sticky :hover that reads as buggy,
   so touch devices use the scroll-driven mob-focus blur instead. */
.work__grid.is-hovering .tile,
.cases__list.is-hovering .ccase { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .work__grid:has(.tile:hover) .tile:not(:hover),
  .cases__list:has(.ccase:hover) .ccase:not(:hover) {
    /* soft blur only, no darkening — matches ivoheffner.de */
    filter: blur(7px); opacity: 1;
  }
}
.tile, .ccase { transition: filter .45s var(--ease), opacity .45s var(--ease), transform .5s var(--ease); }

/* 3. Portrait: no sub-pixel jitter while the sticky column moves */
.intro__photo {
  backface-visibility: hidden;
  will-change: auto;
}
.intro__photo img { transform: translateZ(0); }

/* 4. Introduction copy a little smaller */
.intro__statement { font-size: clamp(18px, 2.05vw, 27px); line-height: 1.28; max-width: 34ch; }

/* 5. Nav: the active section is marked, Contact is no longer pre-highlighted */
.nav__links a.is-active { background: #fff; color: #000; }
.nav__links a.is-active:hover { background: #fff; color: #000; }

/* splash headline is a link now */
.hero__display { display: block; text-decoration: none; color: inherit; }

/* The cut-out is already tilted, so we only fade it in, never transform it
   (a transform on a sticky element is what made it judder while scrolling). */
.intro__photo.reveal { opacity: 0; transition: opacity .9s var(--ease); }
.intro__photo.reveal.in { opacity: 1; }

/* ============================================================
   Intro v6: name flies in from the right → services list rises →
   zoom-through into the splash. Exponential easing throughout.
   ============================================================ */
:root { --expo: cubic-bezier(0.16, 1, 0.3, 1); --expoIn: cubic-bezier(0.7, 0, 0.84, 0); }

.ia-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: scale(1); transform-origin: 50% 47%;
  will-change: transform, filter, opacity;
}

/* --- name --- */
.ia-name {
  position: absolute; margin: 0;
  font-family: var(--serif); font-weight: 300; color: #EDEBE7;
  font-size: clamp(44px, 9.5vw, 150px); line-height: 1;
  letter-spacing: -0.03em; white-space: nowrap;
  transition: transform 1.1s var(--expo), opacity .8s var(--expo), filter .8s var(--expo);
}
.ia-name .ch { display: inline-block; overflow: hidden; padding: 0 .012em; }
.ia-name .sp { display: inline-block; width: .28em; }
.ia-name .ch > b {
  display: inline-block; font-weight: inherit; opacity: 0;
  transform: translateX(1.2em) scaleX(1.7);   /* off to the right, streaked */
  filter: blur(18px);
}
.ia-name.is-in .ch > b {
  animation: iaFlyIn var(--dur, .76s) var(--expo) forwards;
  animation-delay: var(--d);
}
@keyframes iaFlyIn {
  0%   { opacity: 0; transform: translateX(1.2em) scaleX(1.7); filter: blur(18px); }
  38%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) scaleX(1); filter: blur(0); }
}
/* name lifts away, blurred, as the services take over */
.ia-name.is-up { transform: translateY(-42%) scale(.82); opacity: 0; filter: blur(8px); }

/* --- services list --- */
.ia-list {
  position: absolute; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: .1em;
  transition: transform 1s var(--expo), opacity .7s var(--expo), filter .7s var(--expo);
}
.ia-list.is-up { transform: translateY(-8%) scale(1.04); }
.ia-row {
  font-family: var(--serif); font-weight: 300; color: #EDEBE7;
  font-size: clamp(20px, 3.6vw, 54px); line-height: 1.14; letter-spacing: -0.02em;
  overflow: hidden;
}
.ia-row > span {
  display: inline-block; opacity: 0;
  transform: translateY(1.05em) scaleY(1.4);
  transform-origin: center bottom; filter: blur(16px);
}
.ia-row.is-in > span { animation: iaRow .82s var(--expo) forwards; }
@keyframes iaRow {
  0%   { opacity: 0; transform: translateY(1.05em) scaleY(1.4); filter: blur(16px); }
  50%  { opacity: 1; filter: blur(0.4px); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* --- zoom-through: dive into the lockup, blur + fade, reveal the splash --- */
.intro-anim.zoom { background: transparent; transition: background .35s linear; }
.intro-anim.zoom .ia-zoom {
  transform: scale(11);
  filter: blur(16px);
  opacity: 0;
  transition: transform 1.05s var(--expoIn),
              filter 1.05s cubic-bezier(0.7, 0, 0.84, 0),
              opacity 1.05s cubic-bezier(0.6, 0, 0.9, 0.2);
}
.intro-anim.zoom .intro-anim__bar,
.intro-anim.zoom .intro-anim__meta { opacity: 0; transition: opacity .4s ease; }

/* the splash "arrives": settles from slightly enlarged + soft-focus as we land */
body.intro-arrive .hero__stage {
  animation: heroArrive 1.2s var(--expo) both;
}
@keyframes heroArrive {
  0%   { transform: scale(1.16); opacity: 0; filter: blur(7px); }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.intro-anim__meta #iaSkip { cursor: pointer; transition: color .3s var(--ease); }
.intro-anim__meta #iaSkip:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .ia-name .ch > b, .ia-row > span { animation: none; opacity: 1; filter: none; transform: none; }
  .intro-anim.zoom .ia-zoom { transition: opacity .4s ease; transform: none; filter: none; }
  body.intro-arrive .hero__stage { animation: none; }
}

/* ============================================================
   GSAP pass — cursor handover, parallax, vimeo player
   ============================================================ */
/* over a cross-origin player the native cursor takes over; hide the dot */
.cursor.is-native { opacity: 0 !important; }

/* GSAP owns the img transform once parallax is active (inline styles);
   the CSS transform transition would fight its per-frame updates */
.gs-par img { transition: opacity 0.5s var(--ease) !important; }

/* vimeo letterboxes with a transparent background — keep it cinematic */
.pp__player--vimeo { background: #101010; }

/* On large screens the player must never outgrow the viewport (a 1.46:1
   film at full content width gets taller than a laptop screen). The height
   cap wins over the width; aspect-ratio derives the width, centered. */
.pp__player { max-height: min(74vh, 840px); margin-inline: auto; }

/* transparent shield over the vimeo iframe: keeps the custom cursor alive,
   click = play/pause, double-click = fullscreen. Pointer devices only —
   on touch the native player controls are the better experience. */
.pp__shield { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; padding: 0; }
@media (hover: none), (pointer: coarse) { .pp__shield { display: none; } }

/* ============================================================
   Big-screen scaling — the design is tuned for ~1300-1500px
   layouts (the look approved in the preview panel). On larger
   screens the whole page scales uniformly via zoom so nothing
   sits "far away" on a big laptop or external display. --z
   mirrors the factor for the few places that must match the
   real viewport exactly (100svh hero, viewport-capped player).
   ============================================================ */
:root { --z: 1; }
@media (min-width: 1550px) { :root { --z: 1.2; }  body { zoom: 1.2; } }
@media (min-width: 1700px) { :root { --z: 1.32; } body { zoom: 1.32; } }
@media (min-width: 1850px) { :root { --z: 1.45; } body { zoom: 1.45; } }
@media (min-width: 2000px) { :root { --z: 1.58; } body { zoom: 1.58; } }
@media (min-width: 2200px) { :root { --z: 1.72; } body { zoom: 1.72; } }
@media (min-width: 2450px) { :root { --z: 1.9; }  body { zoom: 1.9; } }
@media (min-width: 2800px) { :root { --z: 2.1; }  body { zoom: 2.1; } }

/* exact-viewport elements: divide the css value so the rendered
   size still matches the real viewport under zoom */
.hero { min-height: calc(100svh / var(--z)); }
.pp__player { max-height: min(calc(74vh / var(--z)), 840px); }

/* The main page runs one size louder than the sub-pages (Ivo's call):
   +15% on top of the base ladder, but only in the laptop range — on
   bigger external displays the home page falls back to the base ladder.
   body.home re-declares --z so the 100svh hero compensation matches. */
@media (min-width: 1550px) and (max-width: 2299px) { body.home { --z: 1.18; zoom: 1.18; } }
@media (min-width: 1700px) and (max-width: 2299px) { body.home { --z: 1.30; zoom: 1.30; } }
@media (min-width: 1850px) and (max-width: 2299px) { body.home { --z: 1.43; zoom: 1.43; } }
@media (min-width: 2000px) and (max-width: 2299px) { body.home { --z: 1.56; zoom: 1.56; } }
@media (min-width: 2200px) and (max-width: 2299px) { body.home { --z: 1.69; zoom: 1.69; } }

/* 13" laptops (1240-1549 viewport) sat below the ladder and never scaled —
   give the main page its bump there too (+15%), sub-pages stay as they are. */
@media (min-width: 1100px) and (max-width: 1549px) { body.home { --z: 1.01; zoom: 1.01; } }

/* main page only: trim the left/right whitespace a notch on laptop and up */
@media (min-width: 1100px) { body.home { --pad: clamp(14px, 2.7vw, 40px); } }

/* ============================================================
   Mobile refinements
   ============================================================ */
/* corner labels: smaller so "Ivo Heffner" and the role never collide at 375px */
@media (max-width: 700px) {
  .hero__corner { font-size: 10.5px; letter-spacing: 0.05em; gap: 1px; }
}
@media (max-width: 380px) {
  .hero__corner { font-size: 9.5px; }
}

/* Viewport-focus blur (touch): the centred tile/case stays sharp, the rest
   soften. Driven by scroll via JS (.mob-focus / body.mob-focusing), so finger
   drags never leave a stuck hover state. */
@media (hover: none), (pointer: coarse) {
  body.mob-focusing .tile:not(.mob-focus),
  body.mob-focusing .ccase:not(.mob-focus) {
    filter: blur(7px);
    opacity: 1;
  }
  /* the shared .tile/.ccase transition already eases filter over .45s, so the
     focus glides smoothly from one card to the next while scrolling */
}
