/* ==========================================================================
   SehrwieViel – Prototype styles
   One family (Archivo, width axis 100–125), two brand accents, one motion curve.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ----------------------------------------------------------------- */
:root {
  /* Brand – CI values from the logo / sehrwieviel.de */
  --pink: #e56172;
  --pink-ink: #c03e55;      /* pink for small text on paper (AA) */
  --teal: #34b5b3;
  --teal-ink: #137371;      /* teal for text on paper (AA, also on --surface) */

  --paper: #f3f3f1;
  --paper-2: #e8e8e5;
  --ink: #111113;
  --night: #0d0d0f;
  --night-2: #161618;

  /* Theme (light by default, the home page scrubs these to dark) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: rgb(17 17 19 / 0.62);
  --line: rgb(17 17 19 / 0.14);
  --line-strong: rgb(17 17 19 / 0.28);
  --surface: var(--paper-2);
  --accent-ink: var(--pink-ink);
  --teal-fg: #24908e;       /* teal for large type on paper (3:1); plain teal on night */

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  /* Archivo axes: display = headlines, lead = large reading text */
  --wght-display: 450;
  --wdth-display: 112%;
  --track-display: -0.04em;
  --wght-lead: 400;
  --wdth-lead: 106%;

  --fs-hero: clamp(3.3rem, 9.1vw, 12.25rem);
  --fs-display: clamp(2.6rem, 6.6vw, 8.75rem);
  --fs-xl: clamp(2.1rem, 4.6vw, 5.5rem);
  --fs-lg: clamp(1.6rem, 3vw, 3.25rem);
  --fs-md: clamp(1.15rem, 1.5vw, 1.6rem);
  --fs-base: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.75rem;

  /* Content never gets wider than --maxw; backgrounds and full-bleed media still run edge to edge */
  --maxw: 2140px;
  --gutter-base: clamp(1rem, 2.6vw, 2.75rem);
  --gutter: max(var(--gutter-base), calc((100vw - var(--maxw)) / 2));
  --space-section: clamp(6rem, 12vw, 12rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

.theme-dark,
html[data-theme="dark"] {
  --bg: var(--night);
  --fg: var(--paper);
  --fg-muted: rgb(243 243 241 / 0.62);
  --line: rgb(243 243 241 / 0.13);
  --line-strong: rgb(243 243 241 / 0.3);
  --surface: var(--night-2);
  --accent-ink: var(--pink);
  --teal-fg: var(--teal);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: light; }
body {
  min-height: 100svh;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
dd { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--pink); color: var(--ink); border-radius: 999px;
  transform: translateY(-200%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Type helpers ----------------------------------------------------------- */
.h-display {
  font-size: var(--fs-display);
  font-weight: var(--wght-display);
  font-stretch: var(--wdth-display);
  line-height: 0.94;
  letter-spacing: var(--track-display);
}
.h-display em,
.manifesto em,
.hero-title em { font-style: italic; }
.h-display em { color: var(--pink); }

/* Split-line masks need room for descenders of italic glyphs */
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Grain ------------------------------------------------------------------ */
.grain {
  position: fixed; inset: -100%; z-index: 60; pointer-events: none;
  width: 300%; height: 300%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}

/* Film grain on the black-and-white photos (hero + full-bleed features): grey noise blended
   with overlay, so it lifts the lights and digs into the shadows like film. */
.grain-layer { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; mix-blend-mode: overlay; opacity: 0.6; }
.grain-layer::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px;
  animation: grain 1.4s steps(6) infinite;
}

/* Kicker: the small pill above a headline (hero, features) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.6em 1.05em; border-radius: 999px;
  background: rgb(12 12 14 / 0.42);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase;
  color: var(--paper);
}
.kicker:has(.kicker-hash) { gap: 0.1em; }
.kicker-dot { flex: none; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--pink); }
.kicker-hash { color: var(--pink); }

/* Buttons ---------------------------------------------------------------- */
/* The round icon is a dark hole with a light, heavier arrow. Hover: a circle grows out
   of it and floods the pill (teal; pink on the teal button), the arrow takes the flood
   colour and shoots out and back in. No easing with overshoot, so the motion stays exact. */
.btn {
  --btn-bg: var(--pink);
  --btn-fg: var(--ink);
  --btn-icon-bg: var(--ink);
  --btn-icon-fg: var(--paper);
  --btn-flood: var(--teal);
  --btn-flood-fg: var(--ink);
  --btn-pad: 0.42em;
  --btn-icon: 2.3em;
  --btn-origin: calc(100% - var(--btn-pad) - var(--btn-icon) / 2) 50%;
  position: relative;
  display: inline-flex; align-items: center; gap: 0.85em;
  padding: var(--btn-pad) var(--btn-pad) var(--btn-pad) 1.35em;
  min-height: 3.1em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  font-stretch: 108%;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), color 0.35s var(--ease-out) 0.05s, box-shadow 0.4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-flood);
  clip-path: circle(0 at var(--btn-origin));
  transition: clip-path 0.6s var(--ease-io);
}
.btn-label { position: relative; }
.btn-icon {
  display: inline-grid; place-items: center;
  width: var(--btn-icon); height: var(--btn-icon); flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-fg);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn-icon .icon { width: 1.05em; height: 1.05em; }
/* heavier than the light icon set: an outline stroke on top of the glyph's fill */
.btn-icon .icon path, .mo-more-icon .icon path, .mo-visit-icon .icon path, .carousel-arrow .icon path { stroke: currentColor; stroke-width: 10; stroke-linejoin: round; }

/* Direction each arrow travels when it shoots through its circle */
.icon--arrow-up-right { --ax: 1; --ay: -1; }
.icon--arrow-right, .icon--play { --ax: 1; --ay: 0; }
.icon--arrow-down { --ax: 0; --ay: 1; }
.icon--arrow-left { --ax: -1; --ay: 0; }
@keyframes arrow-through {
  0% { transform: none; animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.2); }
  42% { transform: translate(calc(var(--ax, 1) * 170%), calc(var(--ay, 0) * 170%)); }
  42.01% { transform: translate(calc(var(--ax, 1) * -170%), calc(var(--ay, 0) * -170%)); animation-timing-function: var(--ease-out); }
  100% { transform: none; }
}

@media (hover: hover) {
  .btn:hover::before { clip-path: circle(150% at var(--btn-origin)); }
  .btn:hover { color: var(--btn-flood-fg); }
  .btn:hover .btn-icon { background: var(--ink); color: var(--btn-flood); }
  .btn:hover .btn-icon .icon { animation: arrow-through 0.7s both; }
}
.btn:focus-visible::before { clip-path: circle(150% at var(--btn-origin)); }
.btn:focus-visible { color: var(--btn-flood-fg); }
.btn:focus-visible .btn-icon { background: var(--ink); color: var(--btn-flood); }
.btn:active { transform: scale(0.97); }
.btn--sm { font-size: 0.85rem; min-height: 2.75em; padding-left: 1.1em; }
.btn--lg { font-size: 1.05rem; }
.btn--teal { --btn-bg: var(--teal); --btn-flood: var(--pink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-icon-bg: var(--fg);
  --btn-icon-fg: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
/* light-on-dark label: switch colour only once the flood has reached it, and back right away */
.btn--ghost { transition: transform 0.3s var(--ease-out), color 0.2s, box-shadow 0.4s; }
@media (hover: hover) {
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px transparent; transition: transform 0.3s var(--ease-out), color 0.18s var(--ease-out) 0.38s, box-shadow 0.4s; }
}

/* Tags ------------------------------------------------------------------- */
/* The contact form's chips as read-only labels: the client filled pink, disciplines
   outlined, figures teal. Small and light, they sort the details without shouting. */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.38em 0.85em; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.78rem; font-weight: 450; font-stretch: 106%; line-height: 1.2; white-space: nowrap;
}
.tag--client { background: var(--pink); color: var(--ink); box-shadow: none; font-weight: 500; }
.tag--teal {
  color: var(--teal-fg);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 34%, transparent);
}
.tag .icon { width: 1.25em; height: 1.25em; flex: none; }

/* Rolling text link */
.roll { display: inline-block; }
.roll-clip { display: inline-block; overflow: hidden; vertical-align: top; }
.roll-text { position: relative; display: inline-block; line-height: 1.3; transition: transform 0.6s var(--ease-out); }
/* the copy sits a little lower than one line, so accents of the hidden copy never peek into view */
.roll-text::after { content: attr(data-text); position: absolute; left: 0; top: calc(100% + 0.3em); }
@media (hover: hover) {
  .roll:hover .roll-text { transform: translateY(calc(-100% - 0.3em)); }
}

.link-line {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
@media (hover: hover) { .link-line:hover { background-size: 100% 1px; } }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  color: var(--fg);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out), color 0.5s;
}
.header > * { pointer-events: auto; }
/* Back on the way up, the header gets a glass bar with a hairline, so it no longer sits bare
   on the content (not over the hero photo, not over the open menu) */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; transition: opacity 0.45s, background-color 0.5s, box-shadow 0.5s;
  pointer-events: none;
}
.header.is-scrolled::before { opacity: 1; }
.header[data-tone="light"]::before { background: rgb(12 14 12 / 0.42); box-shadow: inset 0 -1px 0 rgb(243 243 241 / 0.1); }
.menu-open .header::before { opacity: 0; }
.header[data-tone="light"],
.menu-open .header { color: var(--paper); }
.header.is-hidden { transform: translateY(-110%); }
.header-brand .logo { height: clamp(1.9rem, 2.3vw, 2.35rem); width: auto; }

.header-nav { display: none; }
.header-nav ul {
  display: flex; gap: 0.1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background-color 0.5s, box-shadow 0.5s;
}
.header[data-tone="light"] .header-nav ul {
  background: rgb(12 14 12 / 0.24);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.header-nav a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 450; font-stretch: 106%; border-radius: 999px; }

.header-end { display: flex; align-items: center; gap: clamp(0.75rem, 1.4vw, 1.5rem); }
.lang-switch { display: flex; gap: 0.15rem; font-size: 0.75rem; font-weight: 500; font-stretch: 112%; letter-spacing: 0.06em; }
.lang-switch a { padding: 0.35rem 0.4rem; opacity: 0.62; transition: opacity 0.3s; }
.lang-switch a[aria-current], .lang-switch a:hover { opacity: 1; }
.header-cta { display: none; }

.menu-toggle {
  position: relative; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.header[data-tone="light"] .menu-toggle, .menu-open .menu-toggle { background: rgb(12 14 12 / 0.24); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.menu-toggle-lines { position: relative; width: 1.1rem; height: 0.55rem; }
.menu-toggle-lines span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}
.menu-toggle-lines span:first-child { top: 0; }
.menu-toggle-lines span:last-child { top: calc(100% - 1.5px); }
.menu-open .menu-toggle-lines span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-open .menu-toggle-lines span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

@media (min-width: 48em) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 64em) {
  .header-nav { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .menu-toggle { display: none; }
}

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 45; overflow: clip;
  background: var(--night); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-io), visibility 0s 0.9s;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.9s var(--ease-io); }
.menu .menu-horse {
  right: -14vw; bottom: 5rem; width: min(122vw, 50rem); color: var(--paper);
  opacity: 0; translate: 2.5rem 0; transition: opacity 0.4s, translate 0.4s;
}
.menu-open .menu .menu-horse { opacity: 0.3; translate: none; transition: opacity 1.2s 0.45s, translate 1.6s var(--ease-out) 0.45s; }
.menu-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 3rem) var(--gutter) 2rem; }
.menu-links { counter-reset: menu; }
.menu-links li { overflow: hidden; counter-increment: menu; }
.menu-links a {
  display: block;
  font-size: clamp(2.6rem, 11vw, 5.5rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: var(--track-display); line-height: 1.08;
}
.menu-link-text { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.menu-link-text::after {
  content: counter(menu, decimal-leading-zero);
  margin-left: 0.5em; vertical-align: super;
  font-size: 0.75rem; font-style: normal; font-stretch: 112%; letter-spacing: 0.06em;
  color: rgb(243 243 241 / 0.45);
}
.menu-open .menu-link-text { transform: none; transition-delay: calc(var(--i, 0) * 55ms + 250ms); }
.menu-links li:last-child a { color: var(--pink); font-style: italic; }
.menu-links li:last-child .menu-link-text::after { content: none; }
.menu-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgb(243 243 241 / 0.13);
  color: rgb(243 243 241 / 0.72); font-size: var(--fs-sm);
  opacity: 0; transform: translateY(1rem); transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.menu-open .menu-foot { opacity: 1; transform: none; transition: opacity 0.8s 0.55s, transform 0.9s var(--ease-out) 0.55s; }
.menu-contact { display: grid; gap: 0.35rem; }
.menu-social { display: flex; gap: 1.25rem; }
.menu-foot a { transition: color 0.3s; }
.menu-foot a:hover { color: var(--paper); }

/* Sections (shared) ------------------------------------------------------ */
.section { padding-inline: var(--gutter); }

[data-reveal] { will-change: transform, opacity; }
.js:not(.reduced-motion) [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(2.5rem); }
.js:not(.reduced-motion) [data-reveal="clip"]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
[data-reveal] { transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), clip-path 1.4s var(--ease-io); }
[data-reveal].is-in { transition-delay: calc(var(--d, 0) * 1ms); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.6rem; padding: 1.4rem 1.5rem 0 0; border-top: 1px solid var(--line); }
.stat-value {
  font-size: clamp(3rem, 6.8vw, 7.5rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.9; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums;
}
.stat-value { display: flex; align-items: flex-start; }
.stat-suffix { font-size: 0.42em; letter-spacing: -0.02em; margin: 0.12em 0 0 0.12em; color: var(--pink); }
.stat-label { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 16ch; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  color: var(--paper);
  background: #0a0c0a;
  isolation: isolate;
  --hero-strong: var(--paper);
  --hero-soft: rgb(243 243 241 / 0.78);
  --hero-muted: rgb(243 243 241 / 0.65);
  --hero-rule: rgb(243 243 241 / 0.18);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* until hero.js has set the entrance's start values (class set in base.njk before first paint) */
.hero-entering .hero-media,
.hero-entering .hero-inner { visibility: hidden; }
.hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
  transform: scale(1.04);
}
/* Wider than the viewport and anchored left: the herd moves right, out from under the stacked type */
@media (min-width: 64em) { .hero-img { width: 118%; object-position: 50% 55%; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 8 6 / 0.7) 0%, rgb(6 8 6 / 0.42) 34%, rgb(6 8 6 / 0) 64%),
    linear-gradient(to top, rgb(6 8 6 / 0.88) 0%, rgb(6 8 6 / 0.35) 30%, rgb(6 8 6 / 0) 52%),
    linear-gradient(to bottom, rgb(6 8 6 / 0.5) 0%, rgb(6 8 6 / 0) 22%);
}
/* Small screens: the horse fills the frame, so the scrim carries more of the contrast */
@media (max-width: 63.99em) {
  .hero-scrim {
    background:
      linear-gradient(to top, rgb(6 8 6 / 0.94) 0%, rgb(6 8 6 / 0.72) 45%, rgb(6 8 6 / 0.3) 75%, rgb(6 8 6 / 0.45) 100%);
  }
}
.hero-inner {
  position: relative; flex: 1; min-width: 0;
  display: grid; grid-template-rows: 1fr auto; gap: clamp(1.5rem, 3vh, 2.5rem);
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) clamp(1.25rem, 2.6vw, 2.5rem);
}
.hero-kicker { margin-bottom: clamp(1rem, 2.4vh, 1.6rem); }
.hero-main { align-self: center; }
.hero-title {
  font-size: clamp(3.2rem, min(9.6vw, 15.5svh), 13rem);
  font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.9; letter-spacing: var(--track-display);
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-line-inner { display: inline-block; }
.hero-title em { color: var(--pink); padding-right: 0.04em; }
/* hashtags as real tags: light glass fill and a hairline frame */
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem); font-weight: 450; font-stretch: 106%; line-height: 1.2;
  color: rgb(243 243 241 / 0.92);
}
.hero-tags li {
  padding: 0.45em 0.95em 0.5em 0.8em; border-radius: 999px;
  background: rgb(243 243 241 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-tags span { color: var(--pink); margin-right: 0.08em; }
.hero-bottom { --rule: 1; position: relative; display: grid; gap: 1.5rem; padding-top: 1.25rem; }
.hero-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--hero-rule);
  transform: scaleX(var(--rule)); transform-origin: left;
}
.hero-intro { max-width: 42ch; font-size: clamp(0.95rem, 1.05vw, 1.1rem); line-height: 1.5; color: var(--hero-soft); }
.hero-intro em { font-style: italic; color: var(--hero-strong); }
.hero-stats { display: flex; gap: clamp(1.5rem, 3vw, 3.5rem); }
.hero-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.4rem; }
.hero-stat dd {
  display: flex; align-items: flex-start;
  font-size: clamp(1.8rem, 3vw, 3.25rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.95; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums;
}
.hero-stat-suffix { font-size: 0.5em; margin: 0.1em 0 0 0.08em; color: var(--pink); }
.hero-stat dt { font-size: 0.86rem; line-height: 1.35; color: var(--hero-muted); max-width: 18ch; }
.hero-cta { justify-self: start; }
@media (min-width: 64em) {
  .hero-bottom { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; align-items: end; gap: 3vw; }
  .hero-cta { justify-self: end; }
}

/* Header photo "Sprung" (data/heroPhoto.js): the portrait photo only takes the right side
   and fades out to the left into the dark */
.hero-media--side {
  left: auto; width: 88%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.5) 22%, #000 50%);
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.5) 22%, #000 50%);
}
.hero-media--side .hero-img { width: 100%; object-position: 32% 8%; }
@media (min-width: 64em) {
  .hero-media--side { width: min(62vw, 120svh); }
  .hero-media--side .hero-img { object-position: 50% 4%; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee { overflow: hidden; padding-block: clamp(1.5rem, 3.5vw, 3rem); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  padding-inline: 0.4em;
  font-size: clamp(2.6rem, 7.4vw, 8rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  letter-spacing: var(--track-display); line-height: 1.1; white-space: nowrap;
}
.marquee-item:nth-of-type(even) { font-style: italic; color: var(--accent-ink); }
.marquee-sep { flex: none; display: grid; place-items: center; }
.marquee-sep .logo-mark { width: clamp(1.6rem, 3.6vw, 3.6rem); height: auto; }

/* Podcast ---------------------------------------------------------------- */
.podcast { padding-block: var(--space-section); }
.podcast-title { display: block; }
.podcast-brand { font-style: italic; color: var(--teal-ink); }
.podcast-bar { display: inline-block; width: 0.06em; height: 0.78em; margin: 0 0.32em 0 0.38em; background: currentColor; opacity: 0.35; vertical-align: -0.04em; }
.podcast-body { display: grid; gap: 4rem; margin-top: clamp(3.5rem, 7vw, 7rem); }
.podcast-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.podcast-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.podcast-cover-play {
  position: absolute; right: 1.25rem; bottom: 1.25rem;
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--pink); color: var(--ink);
  overflow: hidden;
  transition: background-color 0.35s var(--ease-out);
}
.podcast-cover-play .icon { width: 1.4rem; height: 1.4rem; margin-left: 0.15rem; }
@media (hover: hover) {
  .podcast-cover:hover img { transform: scale(1.05); }
  .podcast-cover:hover .podcast-cover-play { background: var(--teal); }
  .podcast-cover:hover .podcast-cover-play .icon { animation: arrow-through 0.7s both; }
}
.podcast-text { margin-top: 2rem; max-width: 40ch; color: var(--fg-muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.platforms a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-sm); font-weight: 450;
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.platforms .icon { width: 1.15rem; height: 1.15rem; }
@media (hover: hover) { .platforms a:hover { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); } }

.now-playing { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.9rem; }
.eq i { display: block; width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1.1s var(--ease-io) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.4s; animation-duration: 0.9s; }
.eq i:nth-child(3) { animation-delay: -0.7s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -0.2s; animation-duration: 1s; }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.podcast-quote { margin-top: 1.5rem; }
.podcast-quote-main { font-size: var(--fs-xl); font-weight: var(--wght-display); font-stretch: var(--wdth-display); line-height: 1; letter-spacing: var(--track-display); font-style: italic; }
.podcast-quote-sub { margin-top: 0.6rem; font-size: var(--fs-lg); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); line-height: 1.08; letter-spacing: -0.03em; }
.podcast-featured { margin-top: 1.75rem; max-width: 46ch; color: var(--fg-muted); }
.podcast-actions { margin-top: 2rem; }

.episodes { margin-top: clamp(3.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.episode a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 4.25rem 1fr auto; align-items: center; gap: 0.35rem 1rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.4s, padding 0.6s var(--ease-out);
}
.episode a::before {
  content: ""; position: absolute; inset: -1px 0 0; z-index: -1;
  background: var(--teal);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.ep-no { font-size: var(--fs-sm); font-weight: 500; font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--teal-ink); transition: color 0.4s; }
.ep-ep { font-size: 0.65rem; letter-spacing: 0.12em; margin-right: 0.3rem; opacity: 0.7; }
.ep-title { display: flex; flex-direction: column; min-width: 0; }
.ep-name { font-size: var(--fs-md); font-weight: 400; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.2; }
.ep-sub { font-size: var(--fs-sm); color: var(--fg-muted); transition: color 0.4s; }
.ep-guest { grid-column: 2; font-size: var(--fs-sm); font-stretch: 106%; color: var(--fg-muted); transition: color 0.4s; }
.ep-dur { grid-column: 3; grid-row: 1; font-size: var(--fs-sm); color: var(--fg-muted); font-variant-numeric: tabular-nums; transition: color 0.4s; }
.ep-arrow { display: none; }
@media (min-width: 48em) {
  .episode a { grid-template-columns: 5rem minmax(0, 1fr) 11rem 4.5rem 2rem; padding-block: 1.6rem; }
  .ep-guest { grid-column: auto; }
  .ep-dur { grid-column: auto; grid-row: auto; text-align: right; }
  .ep-arrow { display: grid; place-items: center; }
  .ep-arrow .icon { width: 1.2rem; height: 1.2rem; transition: transform 0.6s var(--ease-out); }
}
@media (hover: hover) {
  .episode a:hover { color: var(--ink); padding-inline: 1rem; }
  .episode a:hover::before { transform: scaleY(1); }
  .episode a:hover :is(.ep-no, .ep-sub, .ep-guest, .ep-dur) { color: rgb(17 17 19 / 0.75); }
  .episode a:hover .ep-arrow .icon { transform: rotate(45deg); }
}
.ep-float {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(11rem, 15vw, 16rem); aspect-ratio: 1;
  pointer-events: none; opacity: 0; visibility: hidden;
  overflow: hidden;
}
.ep-float img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 64em) {
  .podcast-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7vw; align-items: start; }
  .podcast-side { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Chapter (dark half of the home page) ----------------------------------- */
/* Without JS the chapter simply paints dark; with JS the root theme is scrubbed instead. */
.chapter { background: var(--bg); }
.js:not(.reduced-motion) .chapter.is-scrubbed { background: transparent; }
.no-js .header, .no-js .header[data-tone] { background: var(--bg); color: var(--fg); }
.js:not(.reduced-motion) [data-lines] { visibility: hidden; }
.js:not(.reduced-motion) [data-lines].is-split { visibility: visible; }

/* Clients ---------------------------------------------------------------- */
.clients { padding-block: var(--space-section); }
.clients-text { margin-top: 2rem; max-width: 44ch; font-size: var(--fs-md); line-height: 1.4; color: var(--fg-muted); }
.clients-text strong { font-weight: 400; color: var(--fg); }
.logo-grid {
  --mx: -100%; --my: -100%;
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: 1px;
  background:
    radial-gradient(22rem circle at var(--mx) var(--my), color-mix(in srgb, var(--pink) 85%, transparent), transparent 65%),
    var(--line);
}
.logo-cell { position: relative; background: var(--bg); aspect-ratio: 16 / 10; }
.logo-cell > :is(a, span) { position: absolute; inset: 0; display: grid; place-items: center; }
.logo-cell > :is(a, span)::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(16rem circle at var(--cx, 50%) var(--cy, 50%), rgb(229 97 114 / 0.1), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.logo-img {
  position: relative;
  max-width: 62%; max-height: 46%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) brightness(1.65) contrast(0.92);
  opacity: 0.58;
  transition: filter 0.6s, opacity 0.6s, transform 0.8s var(--ease-out);
}
.logo-img.is-light { filter: grayscale(1); }
/* optical size per logo (heavy or tall artwork is set a little smaller) */
.logo-img[style*="--s"] { scale: var(--s); }
@media (hover: hover) {
  .logo-cell > :hover::before { opacity: 1; }
  .logo-cell > :hover .logo-img { filter: none; opacity: 1; transform: scale(1.06); }
}
@media (min-width: 48em) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64em) { .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* empty cells that close the last row, one set per column count */
.logo-cell--fill { display: none; }
@media (max-width: 47.99em) { .logo-cell--fill.at-2 { display: block; } }
@media (min-width: 48em) and (max-width: 63.99em) { .logo-cell--fill.at-4 { display: block; } }
@media (min-width: 64em) { .logo-cell--fill.at-5 { display: block; } }

/* Showreel --------------------------------------------------------------- */
.reel { position: relative; color: var(--paper); }
/* Reserve the pinned scroll distance (100vh stage + 280vh scrub) before JS runs,
   so anchors below the reel land correctly on first paint */
.js:not(.reduced-motion) .reel { min-height: 380vh; }
.reel-stage { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--night); }
.reel-bg { position: absolute; inset: 0; }
/* the stand at dusk (portrait photo): the crop keeps the stand and the arena in view */
.reel-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 63%; filter: grayscale(1) contrast(1.1); opacity: 0.42; }
.reel-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, transparent 20%, rgb(13 13 15 / 0.85) 85%); }
.reel-ambient { display: none; }
@media (min-width: 64em) {
  .reel-ambient {
    display: block; position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none;
    opacity: 0; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 25%, transparent 100%);
  }
}
.reel-title {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-size: clamp(2.6rem, 8.4vw, 11rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.92; letter-spacing: var(--track-display);
  pointer-events: none;
}
.reel-word { display: block; will-change: transform; }
.reel-word--2 { font-style: italic; color: var(--pink); }
.reel-frame {
  position: relative; z-index: 2;
  height: 100svh; aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
  transform: scale(0.38);
  will-change: transform;
}
/* small screens: copy at the bottom, watch button and credits at the top of the reel. The shade
   reaches well below the credits, so they stay readable on bright frames (sky, sand) */
.reel-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.62) 18%, rgb(0 0 0 / 0.3) 32%, transparent 46%),
    linear-gradient(to top, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.6) 22%, rgb(0 0 0 / 0.25) 40%, transparent 58%);
  opacity: var(--shade, 0);
}
@media (min-width: 64em) { .reel-frame::after { display: none; } }
.reel-poster, .reel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Big play button in the middle of the reel, shown together with the copy and the watch button */
.reel-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: pointer; }
.reel-play-icon {
  display: grid; place-items: center;
  width: clamp(4.75rem, 7vw, 6.5rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: rgb(243 243 241 / 0.14); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.4), 0 18px 48px rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s, scale 0.6s var(--ease-out);
}
.reel-play-icon .icon { width: 34%; height: 34%; }
@media (hover: hover) {
  .reel-play:hover .reel-play-icon { background: var(--pink); color: var(--ink); box-shadow: 0 18px 48px rgb(0 0 0 / 0.3); scale: 1.08; }
  .reel-play:hover .reel-play-icon .icon { animation: arrow-through 0.7s both; }
}
.reel-copy, .reel-meta { position: absolute; z-index: 3; bottom: clamp(1.5rem, 4vw, 3rem); }
.reel-copy { left: var(--gutter); right: var(--gutter); max-width: 24rem; }
.reel-text { font-size: var(--fs-sm); color: rgb(243 243 241 / 0.72); }
.reel-quote { margin-top: 0.75rem; font-size: clamp(1.25rem, 1.7vw, 1.75rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); line-height: 1.2; letter-spacing: -0.02em; }
.reel-meta {
  top: calc(var(--header-h) + 1rem); bottom: auto; left: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
}
.reel-watch {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.45rem 1.25rem 0.45rem 0.45rem; border-radius: 999px;
  background: rgb(243 243 241 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm); font-weight: 500;
  transition: background-color 0.4s;
}
.reel-watch-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; background: var(--pink); color: var(--ink); transition: background-color 0.35s var(--ease-out); }
.reel-watch-icon .icon { width: 1rem; height: 1rem; }
.reel-watch-dur { color: rgb(243 243 241 / 0.6); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .reel-watch:hover { background: rgb(243 243 241 / 0.16); }
  .reel-watch:hover .reel-watch-icon { background: var(--teal); }
  .reel-watch:hover .reel-watch-icon .icon { animation: arrow-through 0.7s both; }
}
.reel-credits { display: flex; gap: 2rem; text-align: right; }
.reel-credits div { display: flex; flex-direction: column-reverse; }
.reel-credits dt { font-size: var(--fs-xs); color: rgb(243 243 241 / 0.55); }
.reel-credits dd { font-weight: 500; }
@media (min-width: 64em) {
  .reel-copy { right: auto; }
  .reel-meta { top: auto; bottom: clamp(1.5rem, 4vw, 3rem); left: auto; right: var(--gutter); align-items: flex-end; gap: 1.75rem; }
}
@media (max-width: 63.99em) { .reel-credits { text-align: left; } }

/* Full-bleed features (about) ----------------------------------- */
/* Built like the client's reference: a black-and-white photo with film grain fills the
   screen; kicker, headline, text and action sit bottom left. */
.feature {
  position: relative; display: flex;
  min-height: 100svh;
  overflow: hidden; isolation: isolate;
  color: var(--paper);
  background: #0b0b0c;
}
.feature-media { position: absolute; inset: -7% 0; z-index: -3; }
.feature-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.feature-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 6 7 / 0.66) 0%, rgb(6 6 7 / 0.34) 42%, rgb(6 6 7 / 0) 72%),
    linear-gradient(to top, rgb(6 6 7 / 0.82) 0%, rgb(6 6 7 / 0.3) 36%, rgb(6 6 7 / 0) 58%),
    linear-gradient(to bottom, rgb(6 6 7 / 0.5) 0%, rgb(6 6 7 / 0) 24%);
}
@media (max-width: 63.99em) {
  .feature-scrim { background: linear-gradient(to top, rgb(6 6 7 / 0.92) 0%, rgb(6 6 7 / 0.66) 48%, rgb(6 6 7 / 0.2) 78%, rgb(6 6 7 / 0.45) 100%); }
}
.feature-inner {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: clamp(1.1rem, 2.6vh, 2rem);
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(1.5rem, 3.2vw, 3rem);
}
.feature-kicker { margin-bottom: clamp(0.25rem, 1.5vh, 1.25rem); }
.feature-title {
  max-width: 13.5em;
  font-size: clamp(2.7rem, min(7.6vw, 13.5svh), 10.5rem);
  font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.92; letter-spacing: var(--track-display);
}
.feature-title em { font-style: italic; color: var(--pink); padding-right: 0.04em; }
.feature-text {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.45vw, 1.55rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead);
  line-height: 1.38; letter-spacing: -0.012em;
  color: rgb(243 243 241 / 0.78);
}
.feature-text em { font-style: italic; color: var(--paper); }
.feature-actions { margin-top: 0.35rem; }

/* Player (showreel + reels) */
.player {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  padding: 0; border: 0; background: rgb(8 8 9 / 0.96); color: var(--paper);
}
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgb(0 0 0 / 0.6); }
.player video { max-height: 92dvh; max-width: 94vw; aspect-ratio: 9 / 16; background: #000; }
.player-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.3);
  transition: background-color 0.3s;
}
.player-close:hover { background: rgb(243 243 241 / 0.1); }
.player-close .icon { width: 1.25rem; height: 1.25rem; }

/* Line horse (brand artwork): services background and footer ------------- */
.horse-art { position: absolute; z-index: 0; aspect-ratio: 2400 / 2324; color: var(--fg); pointer-events: none; }
.horse-art img, .horse-art svg { width: 100%; height: 100%; }
.horse-art:not(.is-inline) img { opacity: 0.6; }

/* Services (on paper) ----------------------------------------------------- */
/* the horse runs off the right edge: clipped here, because WebKit (iOS) still lets the page pan
   sideways when only body has overflow-x: clip */
/* less air at the bottom: the projects follow with their own top padding */
.services { position: relative; isolation: isolate; padding-block: var(--space-section) calc(var(--space-section) * 0.25); overflow-x: clip; }
.services > :not(.horse-art) { position: relative; z-index: 1; }
.services-horse { top: 50%; right: -8vw; width: min(66vw, 76rem); translate: 0 -50%; opacity: 0.16; }
@media (max-width: 63.99em) { .services-horse { top: 2rem; right: -30vw; width: 110vw; translate: none; opacity: 0.12; } }
.service-list { margin-top: clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--line); }
.service {
  display: grid; gap: 0.9rem 2rem;
  padding-block: clamp(1.5rem, 2.8vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.service-no { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; color: var(--teal-fg); font-variant-numeric: tabular-nums; }
.service-name {
  font-size: clamp(1.9rem, 3.6vw, 4.25rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 1; letter-spacing: var(--track-display);
  transition: color 0.5s, transform 0.8s var(--ease-out);
}
.service-items { display: grid; gap: 0.5rem 2.5rem; font-size: clamp(1.05rem, 1.3vw, 1.45rem); font-stretch: 106%; line-height: 1.3; color: var(--fg-muted); }
.service-items li { display: flex; gap: 0.75rem; }
.service-items li::before { content: ""; flex: none; width: 0.45em; height: 1px; margin-top: 0.68em; background: var(--pink); }
@media (min-width: 48em) { .service-items { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) {
  .service { grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
}
@media (hover: hover) {
  .service:hover .service-name { color: var(--pink); transform: translateX(0.35rem); }
}

/* Cases ------------------------------------------------------------------ */
.cases { padding-top: calc(var(--space-section) * 0.75); padding-inline: 0; }
.cases-head { padding-inline: var(--gutter); margin-bottom: clamp(3rem, 7vw, 6rem); }
.cases-text { margin-top: 2rem; max-width: 46ch; font-size: var(--fs-md); line-height: 1.4; color: var(--fg-muted); }
/* Mosaic: wide + narrow, then narrow + wide. No case pages for now, so each tile carries its
   project text: below the image on small screens, on the photo (opening on hover/focus) on desktop. */
.case-mosaic { display: grid; gap: clamp(2.5rem, 7vw, 3.5rem); padding-inline: var(--gutter); }
.mo-tile { position: relative; display: block; isolation: isolate; outline-offset: 4px; scroll-margin-top: calc(var(--header-h) + 0.75rem); }
.mo-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.mo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.mo-text { display: grid; gap: 0.85rem; padding-top: 1.25rem; }
.mo-title {
  max-width: 15em;
  font-size: clamp(1.75rem, 2.6vw, 3.1rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 1; letter-spacing: var(--track-display);
}
.mo-desc { max-width: 58ch; font-size: 0.98rem; line-height: 1.55; color: var(--fg-muted); }
/* a little colour: teal tags with white type, a pink rule under the title that runs out on hover */
.mo-tags .tag {
  color: var(--paper);
  background: color-mix(in srgb, var(--teal) 30%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 60%, transparent);
}
/* Tiles with a client URL: a link covers the whole tile, the focus ring sits on the tile */
.mo-link { position: absolute; inset: 0; z-index: 3; }
.mo-link:focus-visible { outline: none; }
.mo-tile:has(.mo-link:focus-visible) { outline: 2px solid var(--pink); outline-offset: 4px; }
.mo-visit {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.01em;
}
.mo-visit-icon { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; overflow: hidden; background: var(--pink); color: var(--ink); }
.mo-visit-icon .icon { width: 0.8rem; height: 0.8rem; --ax: 1; --ay: -1; }
@media (hover: hover) {
  .mo-tile.has-link:hover .mo-visit-icon .icon { animation: arrow-through 0.7s 0.25s both; }
}
.mo-rule {
  display: block; width: 2.75rem; height: 2px;
  background: linear-gradient(90deg, var(--pink), color-mix(in srgb, var(--pink) 0%, transparent));
  background-size: 100% 100%;
  transition: width 0.9s var(--ease-out);
}
@media (min-width: 64em) {
  .case-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min(72svh, 48rem); gap: clamp(0.75rem, 1.2vw, 1.25rem); }
  .mo-tile:nth-child(4n + 1), .mo-tile:nth-child(4n + 4) { grid-column: span 2; }
  .mo-tile { overflow: clip; color: var(--paper); background: var(--surface); }
  .mo-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
  .mo-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgb(8 8 10 / 0.88) 0%, rgb(8 8 10 / 0.5) 36%, rgb(8 8 10 / 0) 62%);
  }
  /* deepens the scrim once the description is open */
  .mo-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgb(8 8 10 / 0.66) 0%, rgb(8 8 10 / 0.42) 55%, rgb(8 8 10 / 0) 88%);
    opacity: 0; transition: opacity 0.7s var(--ease-out);
  }
  .mo-text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.2vw, 2.25rem); }
  .mo-tags .tag {
    color: var(--paper);
    background: color-mix(in srgb, var(--teal) 42%, rgb(13 13 15 / 0.4));
    box-shadow: inset 0 0 0 1px rgb(52 181 179 / 0.7);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .mo-desc { color: rgb(243 243 241 / 0.86); font-size: clamp(0.92rem, 0.95vw, 1.04rem); }
  .mo-tile:is(:hover, :focus-visible, :has(:focus-visible)) .mo-rule { width: 100%; }
}
@media (min-width: 64em) and (hover: hover) {
  .mo-reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.9s var(--ease-out), opacity 0.5s; }
  .mo-tile:is(:hover, :focus-visible, :has(:focus-visible)) .mo-reveal { max-height: 24rem; opacity: 1; }
  .mo-tile:is(:hover, :focus-visible, :has(:focus-visible)) .mo-media::before { opacity: 1; }
  .mo-tile:hover .mo-media img { transform: scale(1.05); }
}
@media (min-width: 64em) and (hover: none) {
  .mo-media::before { opacity: 1; }
}

/* Carousel nav (partials/carousel-nav.njk): counter and arrows above the sideways lists of
   reels and team on small screens; from 64em both lists are laid out in full */
.carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.carousel-nav[hidden] { display: none; }
.carousel-nav + :is(.team-list, .reel-cards) { margin-top: 1.25rem; }
.carousel-count { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.carousel-count span { color: var(--fg); }
.carousel-arrows { display: flex; gap: 0.5rem; }
.carousel-arrow {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.carousel-arrow .icon { width: 1.1rem; height: 1.1rem; }
.carousel-arrow:not(:disabled):active { background: var(--pink); color: var(--ink); box-shadow: none; }
@media (hover: hover) { .carousel-arrow:not(:disabled):hover { background: var(--pink); color: var(--ink); box-shadow: none; } }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
@media (min-width: 64em) {
  .carousel-nav { display: none; }
  .carousel-nav + :is(.team-list, .reel-cards) { margin-top: clamp(3rem, 6vw, 5rem); }
}

/* Reels ------------------------------------------------------------------ */
/* less air down to the team, which follows with its own top padding; on wide screens the
   staggered cards already reach lower, so even less there */
.reels { padding-block: var(--space-section) calc(var(--space-section) * 0.6); }
@media (min-width: 64em) { .reels { padding-bottom: calc(var(--space-section) * 0.35); } }
.reel-cards {
  display: flex; gap: 1rem;
  margin: clamp(3rem, 6vw, 5rem) calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.reel-cards::-webkit-scrollbar { display: none; }
.reel-card { flex: 0 0 68vw; scroll-snap-align: center; }
.reel-card-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: var(--night-2); }
.reel-card-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.2s var(--ease-out); }
.reel-card-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: rgb(13 13 15 / 0.32); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.reel-card-play .icon { width: 1.2rem; height: 1.2rem; }
/* "with sound": shows once the silent preview runs, a click opens the full reel */
.reel-card-open {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem; border-radius: 999px;
  background: rgb(13 13 15 / 0.55); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--fs-xs); font-weight: 500; font-stretch: 106%;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.4s, transform 0.5s var(--ease-out), background-color 0.35s, color 0.35s;
}
.reel-card-open .icon { width: 1.05rem; height: 1.05rem; }
.reel-card.is-playing .reel-card-play { opacity: 0; transform: scale(0.7); }
.reel-card.is-playing video { transform: scale(1.05); }
.reel-card.is-playing .reel-card-open,
.reel-card-media:focus-visible .reel-card-open { opacity: 1; transform: none; }
@media (hover: hover) { .reel-card-media:hover .reel-card-open { background: var(--pink); color: var(--ink); box-shadow: none; } }
.reel-card-cap { display: grid; gap: 0.2rem; margin-top: 1rem; }
.reel-card-client { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }
.reel-card-title { font-size: var(--fs-md); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.25; }
@media (min-width: 48em) { .reel-card { flex-basis: 40vw; } }
@media (min-width: 64em) {
  .reel-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 3rem); margin-inline: 0; padding-inline: 2vw; overflow: visible; align-items: start; }
  .reel-card:nth-child(2) { margin-top: 14vh; }
  .reel-card:nth-child(3) { margin-top: 4vh; }
  .reel-card:nth-child(4) { margin-top: 18vh; }
}

/* Team ------------------------------------------------------------------- */
.team { padding-block: var(--space-section); }
.team-text { margin-top: 2rem; max-width: 46ch; font-size: var(--fs-md); line-height: 1.4; color: var(--fg-muted); }
.team-list {
  display: flex; gap: 1rem;
  margin: clamp(3rem, 6vw, 5rem) calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.team-list::-webkit-scrollbar { display: none; }
.member { flex: 0 0 78vw; scroll-snap-align: start; }
.member-trigger { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #000; cursor: default; }
.member-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.member-first { display: none; }
.member-body { padding-top: 1.25rem; }
.member-name { font-size: var(--fs-lg); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: -0.04em; line-height: 1; }
.member-role { margin-top: 0.6rem; font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }
.member-bio { margin-top: 1rem; font-size: 0.95rem; color: var(--fg-muted); max-width: 46ch; }

@media (min-width: 64em) {
  .team-list { height: min(80svh, 54rem); gap: 0.5rem; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .member { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #000; transition: flex-grow 1s var(--ease-out); }
  .member.is-active { flex-grow: 5.2; }
  .member-trigger { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; cursor: pointer; }
  .member-img { filter: grayscale(1) brightness(0.62); transform: scale(1.04); transition: filter 0.9s, transform 1.4s var(--ease-out); }
  .member:hover .member-img { filter: grayscale(1) brightness(0.85); }
  .member.is-active .member-img { filter: grayscale(1) brightness(1); transform: scale(1); }
  .member-first {
    display: block; position: absolute; left: 1rem; bottom: 1.1rem;
    font-size: var(--fs-sm); font-weight: 500; font-stretch: 112%; color: var(--paper);
    transition: opacity 0.4s;
  }
  .member.is-active .member-first { opacity: 0; }
  /* the shade behind the text runs out to the right instead of ending in an edge */
  .member-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; isolation: isolate;
    padding: 7rem clamp(1.5rem, 2.5vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--paper);
    pointer-events: none;
    opacity: 0; transform: translateY(1.5rem);
    transition: opacity 0.4s, transform 0.4s;
  }
  .member.is-active .member-body { opacity: 1; transform: none; transition: opacity 0.8s 0.45s, transform 1s 0.45s var(--ease-out); }
  .member-body::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgb(0 0 0 / 0.86) 0%, rgb(0 0 0 / 0.66) 38%, rgb(0 0 0 / 0) 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 24rem, transparent 52rem);
    mask-image: linear-gradient(to right, #000 0, #000 24rem, transparent 52rem);
  }
  .member-body > * { max-width: 36rem; }
  .member-bio { color: rgb(243 243 241 / 0.78); }
}

/* About ------------------------------------------------------------------ */
/* The way in is a full-bleed feature (see above); this is the part on paper, kept to roughly
   one screen: goal as headline, text in two columns beside the photo, figures below. */
.about { padding-block: clamp(5rem, 9vw, 9rem) clamp(3rem, 5vw, 5rem); }
.about-grid { display: grid; gap: 2.5rem; }
.manifesto {
  max-width: 15em;
  font-size: clamp(2.2rem, 4.3vw, 5.4rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 1.02; letter-spacing: -0.04em;
}
.manifesto em { color: var(--pink); }
.manifesto .word { transition: opacity 0.2s; }
.about-lead {
  max-width: 36em;
  font-size: clamp(1.2rem, 1.75vw, 1.95rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead);
  line-height: 1.28; letter-spacing: -0.02em;
}
.about-statements { display: grid; gap: 1.75rem 3rem; }
.statement { padding-top: 1.1rem; border-top: 1px solid var(--line-strong); font-size: var(--fs-base); line-height: 1.55; color: var(--fg-muted); }
.about-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.about-img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
/* one rule above the figures instead of one per figure: when they wrap into two rows on small
   screens there is no line between the rows, just air */
.about-stats {
  margin-top: clamp(3.5rem, 6vw, 6rem); padding-top: 1.75rem;
  border-top: 1px solid var(--line); row-gap: clamp(2.5rem, 7vw, 3rem);
}
.about-stats .stat { border-top: 0; padding-top: 0; }
/* two columns on phones and tablets (down to about 340px wide), one only below that */
@media (max-width: 63.99em) {
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .about-stats .stat { padding-right: 0; }
}
@media (max-width: 21.2em) { .about-stats { grid-template-columns: 1fr; } }
@media (min-width: 48em) { .about-statements { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3rem) clamp(2rem, 4vw, 4.5rem); align-items: start; }
  .manifesto, .about-lead, .about-statements { grid-column: 1 / 9; }
  .about-figure { grid-column: 9 / 13; grid-row: 1 / span 3; align-self: stretch; }
  .about-figure .about-img { height: 100%; aspect-ratio: auto; min-height: 28rem; }
}

/* Contact ---------------------------------------------------------------- */
/* closer to the about figures above: the switch from day to night already separates the two */
.contact { padding-block: clamp(4rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); }
.contact-title { font-size: clamp(2.9rem, 8.2vw, 11rem); max-width: 10em; }
.contact-title em { color: var(--teal-fg); }
.contact-grid { display: grid; gap: 4.5rem; margin-top: clamp(3rem, 6vw, 6rem); }
.field { position: relative; display: grid; gap: 0.4rem; padding-block: 1.6rem 1rem; border-bottom: 1px solid var(--line-strong); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--pink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.field:focus-within::after, .field.has-error::after { transform: scaleX(1); }
.field.has-error::after { background: #ff8d8d; }
.field > label, .field > legend, .info-label {
  font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.field input, .field textarea {
  width: 100%; padding: 0.2rem 0; border: 0; background: transparent; outline: none;
  font-size: var(--fs-md); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); letter-spacing: -0.01em;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg) 46%, transparent); }
.field-error { min-height: 0; font-size: var(--fs-sm); color: #ff9d9d; }
.field-error:empty { display: none; }
.field--topics { border-bottom: 0; padding-bottom: 0.5rem; }
.field--topics legend { margin-bottom: 0.9rem; float: left; width: 100%; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  font-size: var(--fs-sm); font-weight: 450;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) { .chip:hover span { background: color-mix(in srgb, var(--fg) 16%, transparent); } }
.chip input:checked + span { background: var(--pink); color: var(--ink); }
.chip input:active + span { transform: scale(0.95); }
.chip input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.75rem; }
.form-note { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
/* Sending (modules/sections.js, setBusy): a spinner takes the arrow's place in the button, the
   fields pulse gently and take no input (inert) */
.form-submit .btn[aria-busy="true"] { cursor: progress; }
.form-submit .btn[aria-busy="true"] .btn-icon .icon { display: none; }
.form-submit .btn[aria-busy="true"] .btn-icon::after {
  content: ""; width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: btn-spin 0.75s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(1turn); } }
.contact-form.is-busy .field { animation: form-pulse 1.6s ease-in-out infinite; }
@keyframes form-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.reduced-motion .contact-form.is-busy .field { animation: none; opacity: 0.55; }
/* errors from the spam check or the server, under the button; the link is the e-mail address */
.form-status { margin-top: 1.5rem; max-width: 46ch; font-size: var(--fs-sm); line-height: 1.5; color: #ff9d9d; }
.form-status a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }
/* mosparo (spam protection, invisible mode): its box stays out of sight and its full-page loader is
   not used; the button shows "Sending …" and errors land in .form-status (modules/sections.js) */
.mosparo__form-with-invisible-box .contact-guard {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.contact-guard .mosparo__loader-container { display: none !important; }
.form-success { padding-block: 2rem; outline: none; }
.form-success-title { font-size: var(--fs-xl); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: var(--track-display); line-height: 1; color: var(--teal); }
.form-success p + p { margin-top: 1rem; font-size: var(--fs-md); color: var(--fg-muted); }
.form-success .btn { margin-top: 2rem; }
.contact-info { display: grid; gap: 2.25rem; align-content: start; }
.info-label { margin-bottom: 0.5rem; }
.info-big { font-size: clamp(1.35rem, 2.1vw, 2.25rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); letter-spacing: -0.03em; }
.contact-info strong { font-weight: 500; }
.follow { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.follow a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 450; transition: color 0.3s; }
.follow .icon { width: 1.15rem; height: 1.15rem; }
@media (hover: hover) { .follow a:hover { color: var(--pink); } }
@media (min-width: 64em) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 8vw; }
  .contact-info { padding-top: 1.1rem; }
}

/* Footer ----------------------------------------------------------------- */
.footer { position: relative; isolation: isolate; padding: clamp(3rem, 6vw, 6rem) var(--gutter) 1.25rem; overflow: hidden; background: var(--bg); color: var(--fg); }
.footer > :not(.horse-art) { position: relative; z-index: 1; }
/* sized to the footer so the head sits at the right, behind the end of the wordmark */
.footer-horse {
  top: -14%; right: 1vw; height: 138%; width: auto; opacity: 0.34;
  /* the footer clips the top of the head; let it fade in instead of ending on a line */
  -webkit-mask-image: linear-gradient(to bottom, transparent 9%, #000 32%);
  mask-image: linear-gradient(to bottom, transparent 9%, #000 32%);
}
@media (max-width: 47.99em) { .footer-horse { top: -40%; right: -6vw; height: 160%; opacity: 0.3; } }
/* Home: the horse is bigger and starts up in the contact section, then runs down behind the
   wordmark. The footer only clips sideways (the wordmark clips its own rise instead) and stops
   isolating, so the horse sits over the footer background but under the contact content. */
[data-page="home"] .footer { overflow-x: clip; overflow-y: visible; isolation: auto; }
[data-page="home"] .footer-mark { overflow: hidden; }
[data-page="home"] .contact > * { position: relative; z-index: 1; }
[data-page="home"] .footer-horse {
  top: auto; bottom: 0; right: -6vw; width: min(60vw, 66rem); height: auto; opacity: 0.3;
  -webkit-mask-image: none; mask-image: none;
}
@media (max-width: 47.99em) {
  [data-page="home"] .footer-horse { top: auto; right: -30vw; width: 130vw; height: auto; opacity: 0.26; }
}
.footer-mark { color: var(--fg); }
.footer-mark .logo-wordmark { width: 100%; height: auto; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--fg-muted);
}
.footer-bar ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

/* Case page -------------------------------------------------------------- */
.case-hero { padding: calc(var(--header-h) + 1.5rem) var(--gutter) 0; }
.case-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.case-tags .tag { font-size: 0.84rem; }
.case-back { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); font-weight: 500; }
.case-back .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) { .case-back:hover .icon { transform: translateX(-0.3rem); } }
.case-hero-title {
  font-size: clamp(2.6rem, 7.2vw, 9.5rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.94; letter-spacing: var(--track-display); max-width: 13em;
}
.case-hero-media {
  position: relative; overflow: hidden;
  height: 78svh; min-height: 22rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) calc(var(--gutter-base) * -1) 0;
  background: var(--night-2);
}
.case-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-intro { display: grid; gap: 3rem; padding: var(--space-section) var(--gutter) calc(var(--space-section) * 0.7); }
.case-facts { display: grid; gap: 1.6rem; align-content: start; }
.case-facts dt { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.35rem; }
.case-facts dd { font-size: var(--fs-md); font-stretch: 106%; }
.case-facts .tags { margin-top: 0.5rem; max-width: 30rem; }
.case-lead { font-size: clamp(1.5rem, 2.7vw, 3rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); line-height: 1.18; letter-spacing: -0.025em; max-width: 30em; }
.case-visit { margin-top: 2.75rem; }
.case-numbers { display: grid; gap: 2rem; padding: 0 var(--gutter) var(--space-section); }
.case-number { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.case-number dd { font-size: clamp(2.6rem, 6.4vw, 7rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display); line-height: 0.95; letter-spacing: var(--track-display); }
.case-number dt { display: flex; }
.case-number .tag { font-size: var(--fs-sm); }
.case-number.is-text dd { font-size: var(--fs-lg); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: -0.035em; line-height: 1.05; max-width: 14em; }
.case-next { padding: var(--space-section) var(--gutter); }
.case-next-link { display: grid; gap: 1.25rem; }
.case-next-label { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.case-next-row { display: flex; flex-direction: column; gap: 1.75rem; }
.case-next-title {
  font-size: clamp(2.4rem, 6.4vw, 8rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  line-height: 0.95; letter-spacing: var(--track-display); max-width: 12em; width: fit-content;
  transition: transform 0.9s var(--ease-out), color 0.5s;
}
.case-next-media { position: relative; display: block; flex: none; width: min(100%, 36vw); aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
@media (max-width: 63.99em) { .case-next-media { width: 100%; } }
.case-next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.case-next-client { color: var(--fg-muted); }
@media (hover: hover) {
  .case-next-link:hover .case-next-title { transform: translateX(1.5rem); color: var(--pink); }
  .case-next-link:hover .case-next-media img { transform: scale(1.08); }
}
.case-cta { display: grid; justify-items: start; gap: 2.75rem; padding: var(--space-section) var(--gutter); border-top: 1px solid var(--line); }
.case-cta .h-display em { color: var(--teal); }

/* Case story: chapters woven between images (placeholder imagery + lorem for now) */
.case-story { padding-bottom: calc(var(--space-section) * 0.4); }
.cs-frame { position: relative; overflow: hidden; background: var(--night-2); }
.cs-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-frame img[data-parallax] { top: -9%; bottom: auto; height: 118%; }
.cs-cap {
  display: flex; gap: 0.9rem; margin-top: 0.9rem;
  font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.cs-cap span { color: var(--teal); font-variant-numeric: tabular-nums; }

.cs-wide .cs-frame { height: min(94svh, 62vw); min-height: 22rem; }
.cs-wide .cs-cap { padding-inline: var(--gutter); }

.cs-chapter { display: grid; gap: 2rem; padding: var(--space-section) var(--gutter) 0; }
.cs-num { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.cs-num span { color: var(--teal); }
.cs-label { margin-top: 0.85rem; font-size: var(--fs-lg); font-weight: var(--wght-display); font-stretch: var(--wdth-display); line-height: 1; letter-spacing: var(--track-display); }
.cs-lead { font-size: clamp(1.6rem, 3.1vw, 3.5rem); font-weight: var(--wght-lead); font-stretch: var(--wdth-lead); line-height: 1.12; letter-spacing: -0.03em; max-width: 22em; }
.cs-lead em { color: var(--pink); }
.cs-text { display: grid; gap: 1.25rem; margin-top: 2.5rem; max-width: 40rem; color: var(--fg-muted); line-height: 1.6; }

.cs-split { display: grid; gap: 3rem; padding: var(--space-section) var(--gutter) 0; }
.cs-split .cs-chapter { padding: 0; }
.cs-tall .cs-frame { aspect-ratio: 4 / 5; }

.cs-duo { display: grid; gap: 3rem; padding: var(--space-section) var(--gutter) 0; }
.cs-duo-a .cs-frame { aspect-ratio: 3 / 2; }
.cs-duo-b .cs-frame { aspect-ratio: 4 / 5; }

.cs-social { padding-top: var(--space-section); }
.cs-social-head { display: grid; gap: 1.5rem; padding-inline: var(--gutter); }
.cs-social-title { font-size: var(--fs-xl); }
.cs-social-text { max-width: 34ch; color: var(--fg-muted); }
.cs-social-list {
  display: flex; gap: 0.75rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  padding: 3rem var(--gutter) 0;
}
.cs-social-list::-webkit-scrollbar { display: none; }
.cs-reel { flex: 0 0 68vw; scroll-snap-align: start; }
.cs-reel-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--night-2); }
.cs-reel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.cs-reel-play {
  position: absolute; left: 1rem; bottom: 1rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden;
  background: rgb(13 13 15 / 0.55); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.25);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s;
}
.cs-reel-play .icon { width: 1rem; height: 1rem; }
.cs-reel-cap { display: grid; gap: 0.35rem; margin-top: 1rem; }
.cs-reel-cap span { font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
@media (hover: hover) {
  .cs-reel:hover .cs-reel-media img { transform: scale(1.05); }
  .cs-reel:hover .cs-reel-play { background: var(--teal); color: var(--ink); box-shadow: none; }
  .cs-reel:hover .cs-reel-play .icon { animation: arrow-through 0.7s both; }
}

.cs-quote { padding: var(--space-section) var(--gutter) 0; }
.cs-quote blockquote p { font-size: clamp(2rem, 4.4vw, 5.25rem); font-weight: var(--wght-display); font-stretch: var(--wdth-display); line-height: 1.04; letter-spacing: var(--track-display); max-width: 19em; }
.cs-quote em { color: var(--pink); }
.cs-quote figcaption { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; margin-top: 2.5rem; }
.cs-quote figcaption strong { font-weight: 500; }
.cs-quote figcaption span { color: var(--fg-muted); }

@media (min-width: 64em) {
  .cs-chapter { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4vw; }
  .cs-chapter-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .cs-text { grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: none; }

  .cs-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5vw; align-items: start; }
  .cs-split .cs-chapter { grid-template-columns: 1fr; gap: 2.5rem; position: sticky; top: calc(var(--header-h) + 3rem); }
  .cs-split .cs-chapter-head { position: static; }
  .cs-split .cs-text { grid-template-columns: 1fr; max-width: 36rem; }

  .cs-duo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4vw; align-items: start; }
  .cs-duo-b { margin-top: clamp(6rem, 16vw, 18rem); }

  .cs-social { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4vw; align-items: start; padding-inline: var(--gutter); }
  .cs-social-head { position: sticky; top: calc(var(--header-h) + 2rem); padding: 0; }
  .cs-social-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5vw; padding: 0; overflow: visible; }
  .cs-reel:nth-child(2) { margin-top: clamp(4rem, 9vw, 10rem); }
  .cs-reel:nth-child(3) { margin-top: clamp(2rem, 4.5vw, 5rem); }
}
@media (min-width: 48em) {
  .case-numbers { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
}
@media (min-width: 64em) {
  .case-intro { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4vw; }
  .case-next-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* Legal ------------------------------------------------------------------ */
.legal { padding: calc(var(--header-h) + clamp(4rem, 10vw, 9rem)) var(--gutter) var(--space-section); }
.legal-title { font-size: clamp(2.8rem, 8vw, 10rem); }
.legal-note { margin-top: 2rem; max-width: 52ch; color: var(--fg-muted); }
/* 404: centred on a full-bleed Iceland photo in black and white with grain, like the hero */
.notfound {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  background: #0a0c0a; color: var(--paper);
}
.notfound-media { position: absolute; inset: 0; z-index: -2; }
.notfound-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.notfound-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgb(6 8 6 / 0.62) 0%, rgb(6 8 6 / 0.34) 100%),
    linear-gradient(to bottom, rgb(6 8 6 / 0.45) 0%, rgb(6 8 6 / 0) 24%);
}
.notfound-inner { display: flex; flex-direction: column; align-items: center; max-width: 60rem; }
.notfound-code { margin-bottom: 1.75rem; font-variant-numeric: tabular-nums; }
.notfound .legal-title em { color: var(--pink); }
.notfound-na { color: var(--teal); }
.notfound .legal-note { margin-inline: auto; color: rgb(243 243 241 / 0.82); }
.notfound .legal-note + .legal-note { margin-top: 0.75rem; font-size: var(--fs-sm); color: rgb(243 243 241 / 0.62); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.75rem; }
.prose { max-width: 70ch; margin-top: clamp(3rem, 6vw, 5rem); }
.prose h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 400; font-stretch: 115%; letter-spacing: -0.025em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2.25rem 0 0.6rem; font-size: 1.15rem; font-weight: 500; font-stretch: 108%; }
.prose h4 { margin: 1.5rem 0 0.4rem; font-size: 1rem; font-weight: 600; }
.prose p, .prose ul { margin-bottom: 1rem; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose a:hover { color: var(--accent-ink); }
/* cookie list at the end of the privacy policy (pages/legal.njk); rows become small cards on phones */
.cookie-table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-sm); }
/* fixed columns, so the tables of both categories line up */
.cookie-table thead th:nth-child(1) { width: 28%; }
.cookie-table thead th:nth-child(2) { width: 18%; }
.cookie-table thead th:nth-child(4) { width: 16%; }
.cookie-table th, .cookie-table td { padding: 0.75rem 1rem 0.75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cookie-table thead th { padding-block: 0.5rem; font-size: var(--fs-xs); font-weight: 500; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); border-bottom-color: var(--line-strong); }
.cookie-table tbody th { font-weight: 600; white-space: nowrap; }
.cookie-table td { color: color-mix(in srgb, var(--fg) 80%, transparent); }
.cookie-settings { margin-top: 1.5rem; }
@media (max-width: 40em) {
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cookie-table tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .cookie-table th, .cookie-table td { display: block; padding: 0; border: 0; }
  .cookie-table tbody th { margin-bottom: 0.4rem; }
  .cookie-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 0.15rem; }
  .cookie-table td::before { content: attr(data-label); color: var(--fg-muted); }
}

/* Cookie banner ----------------------------------------------------------- */
/* orestbida/cookieconsent (assets/vendor, set up in assets/js/consent.js). Always night,
   whatever chapter the page is in; pink pills with the teal hover of the site buttons. */
#cc-main {
  color-scheme: dark;
  --cc-font-family: var(--font);
  --cc-modal-border-radius: 1.25rem;
  --cc-btn-border-radius: 999px;
  --cc-modal-margin: 1rem;
  --cc-bg: var(--night-2);
  --cc-primary-color: var(--paper);
  --cc-secondary-color: rgb(243 243 241 / 0.7);
  --cc-link-color: var(--paper);
  --cc-btn-primary-bg: var(--pink);
  --cc-btn-primary-color: var(--ink);
  --cc-btn-primary-border-color: var(--pink);
  --cc-btn-primary-hover-bg: var(--teal);
  --cc-btn-primary-hover-color: var(--ink);
  --cc-btn-primary-hover-border-color: var(--teal);
  --cc-btn-secondary-bg: rgb(243 243 241 / 0.08);
  --cc-btn-secondary-color: var(--paper);
  --cc-btn-secondary-border-color: transparent;
  --cc-btn-secondary-hover-bg: rgb(243 243 241 / 0.16);
  --cc-btn-secondary-hover-color: var(--paper);
  --cc-btn-secondary-hover-border-color: transparent;
  --cc-separator-border-color: rgb(243 243 241 / 0.1);
  --cc-toggle-on-bg: var(--teal);
  --cc-toggle-off-bg: rgb(243 243 241 / 0.22);
  --cc-toggle-on-knob-bg: var(--paper);
  --cc-toggle-off-knob-bg: var(--paper);
  --cc-toggle-enabled-icon-color: var(--teal-ink);
  --cc-toggle-disabled-icon-color: var(--night-2);
  --cc-toggle-readonly-bg: rgb(52 181 179 / 0.4);
  --cc-toggle-readonly-knob-bg: var(--paper);
  --cc-toggle-readonly-knob-icon-color: var(--teal-ink);
  --cc-section-category-border: rgb(243 243 241 / 0.1);
  --cc-cookie-category-block-bg: rgb(243 243 241 / 0.05);
  --cc-cookie-category-block-border: transparent;
  --cc-cookie-category-block-hover-bg: rgb(243 243 241 / 0.08);
  --cc-cookie-category-block-hover-border: transparent;
  --cc-cookie-category-expanded-block-bg: rgb(243 243 241 / 0.03);
  --cc-cookie-category-expanded-block-hover-bg: rgb(243 243 241 / 0.06);
  --cc-overlay-bg: rgb(13 13 15 / 0.72);
  --cc-webkit-scrollbar-bg: rgb(243 243 241 / 0.2);
  --cc-webkit-scrollbar-hover-bg: rgb(243 243 241 / 0.32);
  --cc-footer-bg: rgb(243 243 241 / 0.04);
  --cc-footer-color: rgb(243 243 241 / 0.62);
  --cc-footer-border-color: rgb(243 243 241 / 0.08);
}
#cc-main .cm, #cc-main .pm { box-shadow: inset 0 0 0 1px rgb(243 243 241 / 0.18), 0 1.5rem 4rem -1rem rgb(0 0 0 / 0.55); }
#cc-main .cm__texts { padding-top: 1.4rem; }
#cc-main .cm__title, #cc-main .pm__title {
  font-size: 1.4rem; font-weight: var(--wght-display); font-stretch: var(--wdth-display);
  letter-spacing: -0.02em; line-height: 1.15;
}
#cc-main .cm__desc, #cc-main .pm__section-desc { line-height: 1.55; }
#cc-main .cm__btn, #cc-main .pm__btn { font-weight: 500; font-stretch: 108%; letter-spacing: -0.005em; }
#cc-main .pm__section-title { font-weight: 500; }
#cc-main a { text-decoration-color: var(--pink); }
/* the library reuses the pill radius for the category blocks; those get a card radius instead */
#cc-main .pm__section, #cc-main .pm__section--toggle,
#cc-main .pm__section--toggle .pm__section-desc-wrapper, #cc-main .pm__section-title { border-radius: 0.9rem; }
/* below 40em the library stacks all three buttons. Phones in portrait keep that (side by side
   gets cramped); wider small screens put accept and reject in one row, so the box covers less
   of the page (the library's rules carry !important, hence here too) */
@media (max-width: 40em) {
  #cc-main .cm__title { font-size: 1.25rem; }
}
@media (min-width: 30em) and (max-width: 40em) {
  #cc-main .cm--inline .cm__btn-group:first-child { flex-direction: row !important; gap: 0.5rem; }
  #cc-main .cm--inline .cm__btn-group:first-child .cm__btn + .cm__btn { margin: 0 !important; }
}

/* View transitions ------------------------------------------------------- */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.7s var(--ease-out) 0.06s both; }
::view-transition-group(case-media),
::view-transition-group(case-title) { animation-duration: 1.1s; animation-timing-function: cubic-bezier(0.7, 0, 0.15, 1); }
::view-transition-group(case-media) { overflow: clip; z-index: 2; }
::view-transition-old(case-media),
::view-transition-new(case-media) { width: 100%; height: 100%; object-fit: cover; }
/* The old cover stays underneath until the new one is painted, then a short crossfade.
   (Hiding the old one left a blank frame whenever the new image was not decoded yet.) */
::view-transition-old(case-media) { animation: none; }
::view-transition-new(case-media) { animation: vt-fade 0.35s ease 0.05s both; }
::view-transition-old(case-title) { animation: vt-fade 0.3s ease both reverse; }
::view-transition-new(case-title) { animation: vt-fade 0.45s ease 0.15s both; }
::view-transition-group(site-header) { z-index: 3; } /* name set only during a transition (base.njk) */
.case-hero-title { view-transition-name: case-title; }
.case-hero-media { view-transition-name: case-media; }
.case-entering .case-hero-title,
.case-entering .case-hero-media { visibility: hidden; }

@keyframes vt-out { to { opacity: 0; transform: scale(0.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(2.5vh); } }
@keyframes vt-fade { from { opacity: 0; } }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .grain, .grain-layer::before { animation: none; }
  .reel-frame { transform: none; height: 80svh; }
  .reel-title { position: relative; inset: auto; padding-block: 4rem; }
  .reel-stage { height: auto; display: block; padding-block: 4rem; }
  .reel-frame { margin-inline: auto; }
  .reel-copy, .reel-meta { position: static; display: flex; flex-direction: column; margin: 2rem var(--gutter) 0; max-width: none; align-items: flex-start; }
}
