/* Self-hosted fonts: Geologica, JetBrains Mono (SIL OFL 1.1). Files copied by scripts/prepare.mjs. */
/* geologica-greek-wght-normal */
@font-face {
  font-family: 'Geologica Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geologica-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* geologica-latin-ext-wght-normal */
@font-face {
  font-family: 'Geologica Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geologica-latin-ext-wght-normal.woff2) format('woff2-variations');
  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;
}

/* geologica-latin-wght-normal */
@font-face {
  font-family: 'Geologica Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geologica-latin-wght-normal.woff2) format('woff2-variations');
  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;
}/* jetbrains-mono-greek-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  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;
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* Bushido Creative Studio: direction A, "Viewfinder".
   Dark charcoal canvas so the work carries the colour; one accent (the red REC dot from the logo),
   used only for small markers, never for text. Corners: 2px everywhere. */

:root {
  --bg: #0e0f10;
  --bg-2: #141618;
  --surface: #1b1d20;
  --surface-2: #23262a;
  --line: #2c2f34;
  --line-strong: #464a50;
  --text: #ecebe7;
  --muted: #a5a49f;      /* 7.6:1 on --bg */
  --accent: #e5483a;     /* decorative only: 4:1 on --bg, never used for text */
  --error: #ff9182;      /* 8.5:1 on --surface */
  --ok: #8fd6a6;
  --radius: 2px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Geologica Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
dialog { color: inherit; }
main { display: block; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--radius); }

.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 {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.icon { flex: none; }

/* ---------- Type scale ---------- */
.h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1.02; }
.h1-wide { max-width: 18ch; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; line-height: 1.5; }
.prose { max-width: 65ch; }
.prose p { color: var(--muted); }
.prose-doc h2 { font-size: 1.25rem; margin: 2em 0 0.5em; }
.prose-doc h1 { margin-bottom: 0.3em; }
.prose-doc a { color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--text); }
.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Viewfinder corners (from the logo's frame) ---------- */
.vf { position: relative; }
.vf::after {
  --c: rgba(236, 235, 231, 0.7);
  --l: 18px;
  --t: 1.5px;
  content: ''; position: absolute; inset: -10px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  transition: inset 0.45s var(--ease), opacity 0.3s;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu and collapse the menu to the header's height. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 15, 16, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { height: 36px; width: auto; }
.brand-mark {
  position: relative; width: 30px; height: 24px; flex: none;
  background:
    linear-gradient(var(--text), var(--text)) top left / 8px 1.5px,
    linear-gradient(var(--text), var(--text)) top left / 1.5px 8px,
    linear-gradient(var(--text), var(--text)) top right / 8px 1.5px,
    linear-gradient(var(--text), var(--text)) top right / 1.5px 8px,
    linear-gradient(var(--text), var(--text)) bottom left / 8px 1.5px,
    linear-gradient(var(--text), var(--text)) bottom left / 1.5px 8px,
    linear-gradient(var(--text), var(--text)) bottom right / 8px 1.5px,
    linear-gradient(var(--text), var(--text)) bottom right / 1.5px 8px;
  background-repeat: no-repeat;
}
.brand-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 0.9688rem; color: var(--muted); transition: color 0.2s; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -1.5px 0 var(--text); }
.nav-contact-mobile { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-close { display: none; }
  .menu-btn[aria-expanded='true'] .menu-open { display: none; }
  .menu-btn[aria-expanded='true'] .menu-close { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
    background: var(--bg); padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    flex-direction: column; align-items: flex-start; justify-content: space-between;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overscroll-behavior: contain;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); padding: 8px 0; }
  .site-nav a[aria-current='page'] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; }
  .nav-contact-mobile { display: block; }
  .lang-switch { font-size: 1.0625rem; color: var(--text); min-height: 48px; }
  .no-js .menu-btn { display: none; }
  .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; padding: 0; background: none; }
  .no-js .site-nav ul { flex-direction: row; }
  .no-js .site-nav ul a { font-size: 0.9375rem; }
}
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section > .wrap > .h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head .lead { margin-top: 20px; }
.page-head .hero-actions { margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vh, 80px) clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; gap: 28px; }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 5.6rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 21ch; }
.hero-sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 44ch; margin: 0; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual:empty { display: none; }
@media (max-width: 899px) {
  .hero-copy > .hero-sub, .hero-copy > .lead { margin-top: 20px; }
  .hero-copy > .hero-actions { margin-top: 28px; }
  .hero-visual { margin-top: 20px; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: 'title title' 'sub visual' 'actions visual' '. visual';
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(32px, 5vw, 80px);
    row-gap: 24px;
  }
  .hero-copy { display: contents; }
  .hero-title, .hero-copy > .h1 { grid-area: title; margin-bottom: clamp(8px, 2vw, 24px); }
  .hero-copy > .lead, .hero-sub { grid-area: sub; margin-top: 8px; }
  .hero-actions { grid-area: actions; align-self: start; }
  .hero-visual { grid-area: visual; }
  .page-head-split .hero-copy > .lead { margin-top: 8px; }
  .page-head-split .hero-actions { margin-top: 0; }
}

/* Reel (hero and editing) */
.reel { display: block; position: relative; aspect-ratio: var(--r, 1.7778); background: var(--surface); }
/* The reel never fills the window: at most ~60% of its height (wide) or ~72% (vertical),
   shrinking the width to keep the video's own proportions. */
.reel { width: min(100%, calc(60dvh * var(--r, 1.7778))); margin-left: auto; }
.reel.is-vertical { width: min(100%, calc(72dvh * var(--r))); margin-inline: auto; }
.reel > img, .reel-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-loop { opacity: 0; transition: opacity 0.8s; }
.reel-loop.is-playing { opacity: 1; }
.reel-play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  background: rgba(14, 15, 16, 0.78); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(236, 235, 231, 0.25); border-radius: var(--radius);
  font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.reel-play:hover { background: rgba(14, 15, 16, 0.92); border-color: var(--text); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
a.reel .reel-play.as-label { pointer-events: none; }

/* ---------- Doors (two audiences) ---------- */
.doors { padding-bottom: clamp(16px, 3vw, 32px); }
.doors-grid { display: grid; gap: 1px; }
@media (min-width: 768px) { .doors-grid { grid-template-columns: 1fr 1fr; } }
.door {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 4vw, 48px); min-height: 280px;
  background: var(--bg); text-decoration: none; outline: 1px solid var(--line);
  transition: background-color 0.3s;
}
.door:hover { background: var(--bg-2); }
.door-icon { color: var(--muted); margin-bottom: auto; }
.door-title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; margin-top: 32px; }
.door p { color: var(--muted); max-width: 46ch; margin: 0; }
.door-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 12px; }
.door-link .icon { transition: transform 0.35s var(--ease); }
.door:hover .door-link .icon { transform: translateX(5px); }

/* ---------- Justified work grid (keeps every aspect ratio, no cropping of verticals) ---------- */
.grid {
  --row: 240px;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 24px);
}
.grid::after { content: ''; flex-grow: 1000; }
@media (min-width: 768px) { .grid { --row: 300px; } }
@media (min-width: 1280px) { .grid { --row: 340px; } }
.card { flex: var(--r) 1 calc(var(--r) * var(--row)); max-width: calc(var(--r) * var(--row) * 1.5); min-width: 0; }
@media (max-width: 520px) { .card { max-width: none; } }
.card-link { display: block; text-decoration: none; }
.card-media { aspect-ratio: var(--r); background: var(--surface); }
.card-clip { position: absolute; inset: 0; overflow: hidden; }
.card-clip > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card-media::after { opacity: 0; inset: 6px; }
.card-link:hover .card-media::after, .card-link:focus-visible .card-media::after { opacity: 1; inset: -7px; }
.card-link:hover .card-clip > img { transform: scale(1.03); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible .card-title { text-decoration: underline; }
.card-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 600; color: var(--line-strong); }
.card-preview {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  display: grid; place-items: center; width: 30px; height: 30px;
  background: rgba(14, 15, 16, 0.7); border-radius: var(--radius); color: var(--text);
}
.card-clip .preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.card-clip .preview-video.is-playing { opacity: 1; }
.card-meta { padding-top: 14px; }
.card-title { font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.01em; line-height: 1.3; }
.card-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.card-sub .mono { font-size: 0.75rem; margin-left: 6px; }
.card-sub .is-personal { font-style: italic; }
.card-roles { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }

.empty { border: 1px dashed var(--line-strong); padding: clamp(28px, 5vw, 56px); color: var(--muted); max-width: 640px; }
.empty p { margin: 0 0 12px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .segmented a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-decoration: none; font-size: 0.9375rem; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.pill:hover, .segmented a:hover { color: var(--text); border-color: var(--text); }
.pill[aria-current='true'], .segmented a[aria-current='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.segmented { display: flex; flex-wrap: wrap; }
.segmented li + li a { margin-left: -1px; }
.pill .count { font-family: var(--mono); font-size: 0.75rem; margin-left: 7px; }

/* ---------- Work index: type and client filters, one group per client, video tiles ---------- */
.work [hidden] { display: none !important; }
.work-hint { margin: 10px 0 0; font-size: 0.9375rem; max-width: 62ch; }
.work-filters {
  position: sticky; top: var(--header-h); z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter);
  background: rgba(14, 15, 16, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.client-filter { padding-top: 10px; border-top: 1px solid var(--line); }
.pills-sm .pill { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
@media (max-width: 767px) {
  /* One swipeable row per level instead of a tall wrapped block that hides the videos. */
  .work-filters .pills {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .work-filters .pills::-webkit-scrollbar { display: none; }
  .work-filters .pills > li { flex: none; }
  .work-filters .pill { white-space: nowrap; min-height: 38px; }
}
.work-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 18px 0 0; color: var(--muted); font-size: 0.9375rem; }
.work-clear { font-size: 0.9375rem; }

.wgroup { padding-top: clamp(36px, 5vw, 64px); }
.wgroup-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.wgroup-client { font-size: clamp(1.5rem, 2.8vw, 2.25rem); letter-spacing: -0.03em; }
.wgroup-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.wgroup-sub .mono { font-size: 0.75rem; }
.wgroup-sub .is-personal { font-style: italic; }

/* Tiles keep each video's own shape, like the project grid, at a smaller row height. */
.tiles { --row: 200px; display: flex; flex-wrap: wrap; gap: 22px 14px; }
.tiles::after { content: ''; flex-grow: 1000; }
@media (min-width: 768px) { .tiles { --row: 260px; } }
@media (min-width: 1280px) { .tiles { --row: 300px; } }
.tile { flex: var(--r) 1 calc(var(--r) * var(--row)); max-width: calc(var(--r) * var(--row) * 1.4); min-width: 0; }
@media (max-width: 520px) { .tile { max-width: none; } }
.tile-link { display: block; text-decoration: none; }
.tile-link:focus-visible { outline: none; }
.tile-media { display: block; aspect-ratio: var(--r); background: var(--surface); }
.tile-clip { position: absolute; inset: 0; overflow: hidden; }
.tile-clip > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile-media::after { opacity: 0; inset: 6px; }
.tile-link:hover .tile-media::after, .tile-link:focus-visible .tile-media::after { opacity: 1; inset: -7px; }
.tile-link:hover .tile-clip > img { transform: scale(1.03); }
.tile-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  background: rgba(14, 15, 16, 0.78); border-radius: var(--radius); color: var(--text); font-size: 0.75rem;
}
.tile-clip .preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.tile-clip .preview-video.is-playing { opacity: 1; }
.tile-cap {
  margin: 8px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Video viewer: a window over the page (never full screen) sized to the video's own shape. */
.viewer {
  --r: 0.5625;
  --bar: 140px;
  --h: calc(86dvh - var(--bar)); /* video height budget: the page always shows around the window */
  width: min(calc(100vw - 32px), 1120px, max(320px, calc(var(--h) * var(--r))));
  max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; overscroll-behavior: contain;
}
.viewer::backdrop { background: rgba(8, 9, 10, 0.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer-stage { position: relative; aspect-ratio: var(--r); max-height: var(--h); margin-inline: auto; background: #000; }
.viewer-stage video, .viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.viewer-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 12px 14px 14px; }
.viewer-info { grid-column: 1 / -1; min-width: 0; }
.viewer-client { margin: 0; font-size: 0.75rem; color: var(--muted); }
.viewer-cap {
  margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.viewer-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.viewer-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.viewer-btn:hover:not(:disabled) { border-color: var(--text); }
.viewer-btn:disabled { opacity: 0.35; cursor: default; }
.viewer-count { min-width: 5ch; text-align: center; font-size: 0.8125rem; color: var(--muted); }
.viewer-project { justify-self: end; font-size: 0.9375rem; white-space: nowrap; }
.viewer-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(14, 15, 16, 0.78); color: var(--text);
  border: 1px solid rgba(236, 235, 231, 0.3); border-radius: var(--radius); cursor: pointer;
}
.viewer-close:hover { background: rgba(14, 15, 16, 0.95); border-color: var(--text); }

/* ---------- Marquee (the one per page) ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(20px, 3vw, 32px); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -0.03em; color: var(--muted);
}
.marquee-item::after { content: ''; width: 10px; height: 10px; background: var(--accent); margin-inline: clamp(24px, 3vw, 44px); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; padding-inline: var(--gutter); }
  .marquee-group { flex-wrap: wrap; row-gap: 8px; }
  .marquee-group + .marquee-group { display: none; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 520px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain; }
.quote { scroll-snap-align: start; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -0.015em; }
.quote-by { display: flex; flex-direction: column; color: var(--muted); font-size: 0.9375rem; margin: 0; }
.quote-by strong { color: var(--text); font-weight: 550; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .founder-grid { grid-template-columns: 4fr 7fr; } .founder-grid.no-photo { grid-template-columns: minmax(0, 760px); } }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.founder-copy .lead { margin: 20px 0 24px; max-width: 58ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(72px, 10vw, 144px); }
.cta-title { font-size: clamp(2.25rem, 5.6vw, 4.75rem); letter-spacing: -0.04em; max-width: 14ch; line-height: 1.02; }
.cta-body { color: var(--muted); font-size: 1.125rem; margin: 20px 0 32px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-email { margin: 0; color: var(--muted); }
.cta-email a { color: var(--text); }

/* ---------- Steps, lists, services ---------- */
.steps { display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; position: relative; }
.step::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.step-title { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
.note { margin-top: clamp(32px, 4vw, 48px); max-width: 60ch; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 16px; }

.two-lists { display: grid; gap: 40px; }
@media (min-width: 768px) { .two-lists { grid-template-columns: 1fr 1fr; gap: 64px; } }
.list-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 550; color: var(--muted); margin-bottom: 16px; }
.tick-list li { font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -0.01em; padding-block: 12px; border-bottom: 1px solid var(--line); }
.tick-list li:last-child { border-bottom: 0; }

.services { display: grid; gap: 1px; }
.service { background: var(--bg); outline: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.service-icon { color: var(--muted); margin-bottom: 12px; }
.service-title { font-size: 1.375rem; letter-spacing: -0.02em; }
.service p { color: var(--muted); margin: 0; max-width: 48ch; }
.service .text-link { margin-top: auto; align-self: flex-start; }
.service-video { background: linear-gradient(140deg, var(--surface) 0%, var(--bg) 70%); }
.service-edit { background: var(--bg-2); min-height: 0; }
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .service-video { grid-column: span 2; }
  .service-edit { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
  .service-edit .service-icon { margin: 0; }
  .service-edit .text-link { margin: 0 0 0 auto; }
}

.principles { display: grid; gap: 1px; }
@media (min-width: 768px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { background: var(--bg-2); outline: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.principles .h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; } .about-grid.no-photo { grid-template-columns: minmax(0, 820px); } }
.about-grid .mono { margin: 16px 0 28px; }
.about-photo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: var(--surface); }

/* ---------- Project page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; margin-bottom: 28px; }
.back-link:hover { color: var(--text); }
/* Breadcrumb back to the same type and client, plus previous / next project, so Back is never needed. */
.project-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 0.9375rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-inline: 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.pager { display: flex; gap: 8px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s, border-color 0.2s;
}
.pager-btn:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 599px) {
  .pager-label { display: none; }
  .pager-btn { width: 44px; height: 44px; justify-content: center; padding: 0; }
}
.project-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500; }
.badge-client { background: var(--text); color: var(--bg); }
.badge-personal { border: 1px solid var(--line-strong); color: var(--text); }
.project-lead { margin-bottom: clamp(48px, 6vw, 88px); }
.project-body { display: grid; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) {
  .project-body { grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); }
  .project-facts { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.project-facts dl { margin: 0; display: grid; gap: 20px; }
.project-facts dl > div { border-top: 1px solid var(--line); padding-top: 12px; }
.project-facts dt { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.project-facts dd { margin: 0; }
.project-facts dd a { text-decoration: underline; display: inline-flex; align-items: center; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2px 10px; font-size: 0.875rem; }
.credits li { padding-block: 3px; }
.credit-role { color: var(--muted); font-size: 0.875rem; }
.project-text { display: grid; gap: 40px; max-width: 68ch; }
.project-text .h3 { margin-bottom: 14px; }
.project-text p { color: var(--muted); font-size: 1.125rem; }
.project-text p:last-child { margin-bottom: 0; }
.gallery { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; margin-bottom: clamp(48px, 6vw, 96px); }
.gallery-item:has(> .player:not(.is-vertical)), .gallery-item:has(> .photo:not(.is-vertical)) { grid-column: 1 / -1; }
.next-project { border-top: 1px solid var(--line); }
.next-project a { display: flex; flex-direction: column; gap: 6px; padding-block: clamp(40px, 6vw, 72px); text-decoration: none; }
.next-title { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.next-title .icon { transition: transform 0.35s var(--ease); }
.next-project a:hover .next-title .icon { transform: translateX(8px); }
.preview-bar { position: sticky; top: var(--header-h); z-index: 30; margin: 0; padding: 8px var(--gutter); background: var(--accent); color: #fff; font-weight: 600; text-align: center; }

/* Players: the frame takes the video's own ratio, capped by viewport height. */
.player, .photo { margin: 0; width: min(100%, calc(80vh * var(--r))); margin-inline: auto; }
.player-frame { position: relative; aspect-ratio: var(--r); background: #000; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.player-play:hover { background: #fff; transform: scale(1.04); }
.player.is-playing .player-play, .no-js .player-play { display: none; }
.player figcaption, .photo figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 12px; }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.photo-btn img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }

/* ---------- Photo viewer: a centred window, the page stays visible around it ---------- */
.lightbox {
  width: fit-content; max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8, 9, 10, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox-stage { display: grid; place-items: center; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 50px); width: auto; height: auto; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(14, 15, 16, 0.78); color: var(--text);
  border: 1px solid rgba(236, 235, 231, 0.3); border-radius: var(--radius); cursor: pointer;
}
.lightbox-close:hover { background: rgba(14, 15, 16, 0.95); border-color: var(--text); }

/* ---------- Showreel playing inside its frame on the page ---------- */
.reel-player { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel.is-playing-inline .reel-play { display: none; }
.reel-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(14, 15, 16, 0.78); color: var(--text);
  border: 1px solid rgba(236, 235, 231, 0.3); border-radius: var(--radius); cursor: pointer;
}
.reel-close:hover { background: rgba(14, 15, 16, 0.95); border-color: var(--text); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 4fr; } }
.contact-form { display: grid; gap: 24px; max-width: 680px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.9688rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field-help { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; /* 16px+ avoids iOS zoom */
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; border-color: var(--text); }
.field [aria-invalid='true'] { border-color: var(--error); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--error); font-size: 0.9375rem; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; display: inline-flex; cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.radio:hover span { border-color: var(--text); color: var(--text); }
.radio input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.radio input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-bottom: 24px; display: grid; gap: 12px; max-width: 680px; }
.form-status:focus { outline: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; }
.notice p { margin: 4px 0 0; }
.notice strong { font-weight: 600; }
.notice-ok { border-color: var(--ok); background: rgba(143, 214, 166, 0.08); }
.notice-ok > .icon { color: var(--ok); margin-top: 2px; }
.notice-err { border-color: var(--error); background: rgba(255, 145, 130, 0.08); }
.notice-err > .icon { color: var(--error); margin-top: 2px; }
.notice-err > p { margin: 0; }
.notice-info { border-color: #8fb4e8; background: rgba(143, 180, 232, 0.08); align-items: flex-start; }
.notice-info > .icon { color: #8fb4e8; margin-top: 2px; }
p.notice-info { margin: 0 0 24px; max-width: 680px; }
.contact-offline { display: grid; gap: 16px; justify-items: start; max-width: 560px; border: 1px solid var(--line-strong); padding: clamp(24px, 4vw, 40px); }
.contact-offline p { margin: 0; }
.notice a { color: var(--text); }
.contact-direct { border-top: 1px solid var(--line-strong); padding-top: 24px; align-self: start; }
.contact-direct .h3 { margin-bottom: 16px; }
.contact-direct li { display: flex; align-items: center; gap: 12px; padding-block: 10px; color: var(--muted); }
.contact-direct a { color: var(--text); overflow-wrap: anywhere; }
.cf-turnstile { min-height: 65px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-name { font-weight: 600; font-size: 1.125rem; margin: 0 0 4px; }
.footer-muted { color: var(--muted); margin: 0 0 12px; }
.footer-brand a { color: var(--text); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav li { padding-block: 5px; }
.footer-nav a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.footer-nav a:hover { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 20px; color: var(--muted); font-size: 0.875rem; }
.footer-base p { margin: 0; }

.not-found { min-height: 60vh; }
.not-found .hero-actions { margin-top: 28px; }

/* ---------- Motion ----------
   Each animation has one job:
   - headline words rise in: sets the reading order of the first screen (pure CSS, starts at first paint)
   - media "cuts" in with a horizontal wipe: the studio's medium is editing
   - sections and cards fade up once as they scroll in: paces long pages, never repeats
   Everything is skipped when the visitor prefers reduced motion. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .wi { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  [data-split] .wi { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }
  [data-hero-fade] { animation: fade-in 0.9s ease-out 0.3s both; }
  [data-hero-fade] ~ [data-hero-fade] { animation-delay: 0.42s; }
  [data-reveal-media] { animation: wipe 1.1s cubic-bezier(0.83, 0, 0.17, 1) 0.15s both; }
  [data-reveal-media]::after { animation: fade-in 0.6s ease-out 1.05s both; }
  html.motion [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background-color 0.3s;
    transition-delay: var(--d, 0ms), var(--d, 0ms), 0s;
  }
  html.motion [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (hover: none) {
  .card-link:hover .card-clip > img { transform: none; }
  .card-link:hover .card-media::after { opacity: 0; }
}
