/* ---------- Theme tokens (cream light is the base, dark overrides below) ---------- */
:root {
  /* Brand */
  --brand: #59171b;
  --brand-mid: #8e3f3d;
  --brand-soft: #c98a76;
  --peach: #fed7b8;
  --peach-soft: #fff1e6;

  /* Type */
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Cream light */
  color-scheme: light;
  --bg: #efebe3;
  --title-faint: #d9d0c6;
  --surface: #f8f4ef;
  --bezel: #f7f2ec;
  --ink: #2a0d10;
  --ink-soft: #6b524d;   /* 5.9:1 on bg */
  --muted: #9a7a73;      /* 3.2:1, large text only */
  --label: #94463d;      /* 5.4:1, small labels */
  --line: rgba(42, 13, 16, 0.1);
  --line-solid: #ddd2c8;
  --accent: var(--brand);
  --control-bg: rgba(42, 13, 16, 0.06);
  --control-bg-hover: rgba(42, 13, 16, 0.1);
  --glass-fill: rgba(248, 244, 239, 0.72);
  --glass-border: rgba(42, 13, 16, 0.08);
  --seg-active-bg: var(--brand);
  --seg-active-ink: #ffffff;
  --backdrop: rgba(42, 13, 16, 0.55);
  --shadow-soft: 0 12px 30px -16px rgba(42, 13, 16, 0.3);
  --shadow-tablet: 0 34px 60px -34px rgba(42, 13, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --wipe-1: var(--brand);
  --on-wipe: #fed7b8;
  --wipe-2: var(--brand-soft);
  --page-glow: none;

  --wrap: 1200px;
  --gutter: 32px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #140507;
  --title-faint: #33191b;
  --surface: #200b0e;
  --bezel: #2a1013;
  --ink: #fbeee4;        /* softened white */
  --ink-soft: #c9aaa0;
  --muted: #9b7a73;
  --label: #c98a76;
  --line: rgba(254, 215, 184, 0.1);
  --line-solid: #3a1c1e;
  --accent: var(--peach);
  --control-bg: rgba(254, 215, 184, 0.08);
  --control-bg-hover: rgba(254, 215, 184, 0.14);
  --glass-fill: rgba(32, 11, 14, 0.66);
  --glass-border: rgba(254, 215, 184, 0.12);
  --seg-active-bg: var(--peach);
  --seg-active-ink: var(--brand);
  --backdrop: rgba(8, 2, 3, 0.75);
  --shadow-soft: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-tablet: 0 34px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(254, 215, 184, 0.08);
  --wipe-1: var(--peach);
  --on-wipe: #59171b;
  --wipe-2: var(--brand-mid);
  --page-glow:
    radial-gradient(55% 45% at 75% -10%, rgba(254, 215, 184, 0.18), transparent 70%),
    radial-gradient(50% 55% at 5% 5%, rgba(142, 63, 61, 0.4), transparent 70%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* No CSS smooth scrolling: ScrollTrigger jumps the page while it measures, and smooth
   scrolling would turn those jumps into slow glides. Anchor links glide via script.js. */
html { overflow-x: clip; }
body {
  font-family: var(--body); background: var(--bg) var(--page-glow) no-repeat fixed; color: var(--ink);
  line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tag {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  background: var(--glass-fill); border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: var(--glass-fill); border-bottom-color: var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand__mark { font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.07em; line-height: 1; }
.brand__mark i { font-style: normal; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text b { font-weight: 600; font-size: 0.92rem; }
.brand__text small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* Segmented pill nav with a sliding highlight */
.seg {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 14px;
  background: var(--glass-fill); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.seg a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.3s;
}
.seg a:hover { color: var(--ink); }
.seg a.is-active { color: var(--seg-active-ink); }
.seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seg__ind {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 10px;
  background: var(--seg-active-bg); box-shadow: 0 6px 16px -8px rgba(89, 23, 27, 0.6); opacity: 0;
  transition: transform 0.45s cubic-bezier(.65, 0, .35, 1), width 0.45s cubic-bezier(.65, 0, .35, 1), opacity 0.3s;
}
.nav__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.discuss {
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.discuss:hover { background: var(--ink); color: var(--bg); }

/* Theme switcher (sun <-> moon morph) */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); background: var(--glass-fill); border: 1px solid var(--glass-border); transition: background 0.2s;
}
.theme-toggle:hover { background: var(--control-bg-hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; overflow: visible; }
.theme-toggle .sun-core, .theme-toggle .moon-cut, .theme-toggle .sun-rays {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.6s cubic-bezier(.5, 1.6, .4, .8), opacity 0.4s;
}
[data-theme="dark"] .theme-toggle .sun-core { transform: scale(1.75); }
[data-theme="dark"] .theme-toggle .moon-cut { transform: translate(-13px, 3px); }
[data-theme="dark"] .theme-toggle .sun-rays { transform: rotate(-60deg) scale(0.4); opacity: 0; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center;
  background: var(--bg); clip-path: inset(0 0 0 0);
}
:root:not(.motion) .loader { display: none; }
.loader__mark {
  display: flex; align-items: baseline; overflow: hidden; padding: 0.05em 0.02em;
  font-family: var(--display); font-weight: 600; font-size: 4.2rem; letter-spacing: -0.06em; line-height: 1;
}
.lx { display: inline-block; min-width: 0.5em; text-align: center; }
.loader__dot { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.04em; border-radius: 50%; background: var(--accent); transform: scale(0); }
.loader__pct { margin-top: 14px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-soft); }

/* ---------- Scene 1: hero gallery -> "Behind the frames." ---------- */
.mono { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.intro { position: relative; height: 100svh; }
.motion .intro { height: 380vh; }
.intro__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.intro__titlewrap { position: absolute; inset: 0; pointer-events: none; }
.intro__title {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 500; font-size: 9.1vw; letter-spacing: -0.035em; line-height: 1;
  color: var(--title-faint);
}
.ring__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
/* Soft floor fade so the study bar reads over the tablets */
.intro__stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 78%);
}
.intro__bar { z-index: 2; }
.no-webgl .ring__canvas { display: none; }

.intro__meta { position: absolute; right: 42px; top: 126px; display: grid; gap: 4px; text-align: left; }
.intro__bar {
  position: absolute; left: 42px; right: 42px; bottom: 30px;
  display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none;
}
.intro__bar > * { pointer-events: auto; }
.current__top { display: flex; align-items: baseline; gap: 8px; }
.current__num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.current__cat { margin-left: 10px; }
.current__title { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.05; }

/* Folded paper-ribbon arrows */
.ribbons { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; display: flex; align-items: center; gap: 12px; }
.ribbon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.3s cubic-bezier(.2, .8, .2, 1); }
.ribbon svg { width: 34px; height: 34px; filter: drop-shadow(0 5px 6px rgba(42, 13, 16, 0.28)); }
.ribbon--next svg { transform: scaleX(-1); }
.ribbon__face { fill: var(--peach); }
.ribbon__fold { fill: var(--brand-mid); }
.ribbon__crease { fill: var(--brand); opacity: 0.55; }
.ribbon--prev:hover { transform: translateX(-4px); }
.ribbon--next:hover { transform: translateX(4px); }
.ribbon:focus-visible, .view-study:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.view-study {
  height: 46px; padding: 0 20px; border-radius: 999px; background: var(--glass-fill); border: 1px solid var(--glass-border);
  font-size: 0.78rem; font-weight: 500; box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background 0.2s;
}
.view-study:hover { background: var(--surface); }

.entrance { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
:root:not(.motion) .entrance { display: none; }
.entrance__label { margin-bottom: 26px; }
.entrance__title {
  font-family: var(--display); font-weight: 500; font-size: clamp(3.6rem, 8.4vw, 6.8rem);
  letter-spacing: -0.035em; line-height: 0.98; color: var(--ink);
}
.entrance__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.entrance__title .ln > span { display: inline-block; }
.entrance__dot {
  display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.05em; border-radius: 50%;
  background: var(--wipe-1); vertical-align: baseline;
}
.entrance__flood {
  position: absolute; z-index: 6; border-radius: 50%; background: var(--wipe-1);
  opacity: 0; pointer-events: none; transform-origin: 50% 50%;
}
:root:not(.motion) .entrance__flood { display: none; }

/* ---------- Scene 2: the artist ---------- */
/* Static layout (no motion): photo and card side by side */
.story { padding: 120px var(--gutter); }
.story__stage {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 460px); justify-content: center; align-items: center; gap: 48px;
}
.story__wipe, .story__titles, .story__line, .story__particles { display: none; }
.story__figure { position: relative; aspect-ratio: 1024 / 1536; }
.story__sketch {
  position: absolute; inset: 0; display: none; background: var(--ink);
  --sketch: linear-gradient(transparent, transparent);
  -webkit-mask-image: var(--sketch); mask-image: var(--sketch);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-tablet); }
/* Generated cut-out: no frame needed in either theme */
.story__photo.is-cutout { object-fit: contain; border-radius: 0; box-shadow: none; }
/* Floor shadow under the chair: a wide soft pool plus a darker contact core under the legs */
.story__shadow {
  position: absolute; left: 4%; right: 2%; top: 88.5%; height: 12%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(42, 13, 16, 0.26), rgba(42, 13, 16, 0.1) 60%, transparent),
    radial-gradient(closest-side at 50% 45%, rgba(42, 13, 16, 0.22), transparent 80%) center / 80% 50% no-repeat;
  filter: blur(4px);
}
[data-theme="dark"] .story__shadow {
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 60%, transparent),
    radial-gradient(closest-side at 50% 45%, rgba(0, 0, 0, 0.6), transparent 80%) center / 80% 50% no-repeat;
}
.motion .story__shadow, .motion .story__floor { opacity: 0; }
/* Built from the photo's silhouette (script.js): leg contacts + occlusion pool, drawn below the feet too */
.story__shadow.is-built {
  right: auto; filter: none;
  background: none no-repeat 0 0 / 100% 100%;
}
/* On a near-black page a warm brown would read lighter than the floor: keep the shape, make it black */
[data-theme="dark"] .story__shadow.is-built { filter: brightness(0); }
/* Dark mode: a faint pool of light on the floor, so the shadow has something to fall on */
.story__floor { display: none; }
[data-theme="dark"] .story__floor {
  display: block; position: absolute; left: -30%; right: -30%; top: 76%; height: 38%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(254, 215, 184, 0.13), rgba(254, 215, 184, 0.085) 25%, rgba(254, 215, 184, 0.04) 50%, rgba(254, 215, 184, 0.012) 75%, rgba(254, 215, 184, 0));
}
/* Fallback (no cut-out) in dark: the black backdrop dissolves into the page */
[data-theme="dark"] .story__photo:not(.is-cutout) {
  border-radius: 0; box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 42%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 60% at 50% 42%, #000 55%, transparent 100%);
}

/* The silhouette line and its pen */
.story__line {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1;
}
.story__path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.story__pen { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 6px var(--accent)); }

/* Name block in the flood */
.story__titles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  place-content: center; justify-items: center; text-align: center; color: var(--ink);
}
.story__titles .mono { color: inherit; opacity: 0.75; }
.story__kicker { margin-bottom: 20px; }
.story__role { margin-top: 20px; }
.story__name {
  font-family: var(--display); font-weight: 500; font-size: clamp(3.6rem, 11.5vw, 11rem);
  letter-spacing: -0.055em; line-height: 0.95; white-space: nowrap;
}
.story__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* The intro card as a cream tablet */
.story__card {
  position: relative; padding: 30px 32px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 0 0 10px var(--bezel), 0 0 0 11px var(--line), var(--shadow-tablet);
}
.story__card h2 {
  margin-top: 16px; font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.04em;
}
.story__card h2 span { display: block; }
.story__lead { margin: 16px 0 10px; font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.story__body { color: var(--ink-soft); font-size: 0.95rem; }
.story__pair { margin-top: 22px; }
.story__pair div { padding: 12px 0; border-top: 1px solid var(--line); }
.story__pair dd { margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; }
.story__pair .accent { color: var(--accent); }

/* ---------- Scene 3: the manifesto tablets ---------- */
.tag b { color: var(--accent); font-weight: 500; }
.manifesto__title {
  margin-top: 18px; font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; letter-spacing: -0.04em;
}
.manifesto__title span { display: block; }
.manifesto__title .accent { color: var(--accent); }
.manifesto { display: flex; flex-direction: column; }
.manifesto > * { flex: none; }
.manifesto--philosophy { text-align: center; }
/* Centre the philosophy between its label and footer */
.manifesto--philosophy .manifesto__title { margin-top: auto; padding-top: 18px; }
.manifesto__quote { display: block; height: 0.5em; margin-top: 16px; font-family: var(--display); font-size: 2.6rem; line-height: 0.9; color: var(--accent); }
.manifesto__lead { margin: 12px 0 12px; font-size: 1.12rem; font-weight: 500; line-height: 1.4; }
.manifesto__body { color: var(--ink-soft); font-size: 0.92rem; }
.manifesto__sign { margin-top: 12px; font-family: "Allura", cursive; font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
.manifesto__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); text-align: left;
}
.manifesto__sign, .manifesto--background .manifesto__body { margin-bottom: 20px; }
.manifesto__foot i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Staircase: each step hangs off the one above with a burgundy elbow arrow */
.stairs {
  list-style: none; margin: 18px 0 14px; padding: 0;
  font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.6; letter-spacing: -0.03em;
}
.stairs li { position: relative; width: max-content; }
.stairs li:nth-child(2) { margin-left: 2.1em; }
.stairs li:nth-child(3) { margin-left: 4.2em; }
.stairs li.accent { color: var(--accent); }
.stairs li + li::before {
  content: ""; position: absolute; right: 100%; margin-right: 10px; top: -0.3em; width: 1.45em; height: 1.1em;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); border-bottom-left-radius: 4px;
}
.stairs li + li::after {
  content: ""; position: absolute; right: 100%; margin-right: 4px; top: calc(0.8em - 4.5px);
  border-left: 7px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.stairs__note { padding-top: 10px; margin-bottom: 8px; border-top: 1px solid var(--line); }

/* Motion layout: one pinned stage, layers animated by scroll */
.motion .story { height: 940vh; padding: 0; }
.motion .story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: block; }
.motion .story__wipe { display: block; position: absolute; inset: 0; background: var(--wipe-1); }
.motion .story__figure { position: absolute; left: 50%; top: 51%; height: 76svh; } /* centred by GSAP */
.motion .story__line, .motion .story__sketch, .motion .story__particles { display: block; }
.motion .story__titles { display: grid; }
.motion .story__sketch { opacity: 0; }
.motion .story__photo { opacity: 0; }
.motion .story__card { position: absolute; right: max(var(--gutter), 6vw); top: 50%; translate: none; width: min(440px, 40vw); z-index: 4; opacity: 0; }
/* The two manifesto tablets start centred; script.js places all three */
.motion .manifesto { right: auto; left: 50%; translate: none; }
.motion .manifesto--philosophy { z-index: 5; }
/* A soft pool of shadow under each floating tablet */
.motion .story__card::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(100% + 34px); height: 34px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 13, 16, 0.2), rgba(42, 13, 16, 0.06) 60%, transparent);
}
[data-theme="dark"] .motion .story__card::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 60%, transparent); }

/* ---------- Scene 4: the practice (3 chapters around a 3D ribbon) ---------- */
/* Static layout (no motion): chapters stacked under the tablet */
.practice__stage { position: relative; display: grid; justify-items: center; gap: 36px; padding: 120px var(--gutter); }
.practice__corner { display: none; }
.pr-tablet {
  position: relative; width: min(360px, 80vw); aspect-ratio: 4 / 5; padding: 10px; border-radius: 26px;
  background: var(--bezel); box-shadow: 0 0 0 1px var(--line), var(--shadow-tablet), 0 70px 80px -60px rgba(42, 13, 16, 0.4);
}
.pr-tablet__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 28%, #fbf3ea, #eadccd);
}
[data-theme="dark"] .pr-tablet__screen { background: radial-gradient(120% 90% at 50% 28%, #2e1115, #170608); }
[data-theme="dark"] .pr-tablet { box-shadow: 0 0 0 1px var(--line), var(--shadow-tablet), 0 70px 80px -60px rgba(0, 0, 0, 0.9); }
.pr-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.pr-ribbon:active { cursor: grabbing; }
.pr-tablet__shadow {
  position: absolute; left: 18%; right: 18%; bottom: 11%; height: 9%;
  background: radial-gradient(closest-side, rgba(42, 13, 16, 0.24), rgba(42, 13, 16, 0.08) 60%, transparent);
}
[data-theme="dark"] .pr-tablet__shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25) 60%, transparent); }
.pr-cards { display: none; }
.pr-card { position: absolute; left: 50%; top: 52%; width: clamp(150px, 15vw, 250px); aspect-ratio: 16 / 9; margin: 0; z-index: 3; }
.pr-card__in {
  width: 100%; height: 100%; padding: 5px; border-radius: 12px; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--line), 0 26px 40px -24px rgba(42, 13, 16, 0.55);
}
[data-theme="dark"] .pr-card__in { box-shadow: 0 0 0 1px var(--line), 0 26px 40px -20px rgba(0, 0, 0, 0.9); }
.pr-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--surface); }
.pr-copy { max-width: 560px; }
.pr-word {
  margin: 12px 0 20px; font-family: var(--display); font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.05em;
}
.pr-word i { font-style: normal; color: var(--accent); }
.pr-word .ch { display: inline-block; }
.pr-lines { font-size: 1.25rem; font-weight: 500; line-height: 1.45; }
.pr-text { margin-top: 18px; max-width: 38ch; color: var(--ink-soft); font-size: 0.95rem; }
.pr-sub { color: var(--ink-soft); font-size: 1.05rem; }
.pr-drag { display: none; }
.pr-bar { display: none; }

/* Motion layout: one pinned stage, chapters animated by scroll */
.motion .practice { height: 760vh; }
.motion .practice__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: block; padding: 0; }
.motion .practice__corner { display: block; position: absolute; top: 96px; z-index: 5; }
.motion .practice__corner--l { left: max(var(--gutter), 3vw); }
.motion .practice__corner--r { right: max(var(--gutter), 3vw); }
.motion .pr-tablet { position: absolute; left: 50%; top: 50%; width: min(26vw, 50svh * 0.8); z-index: 2; opacity: 0; }
.motion .pr-cards { display: block; }
.motion .pr-card { opacity: 0; }
.motion .pr-copy { position: absolute; top: 50%; z-index: 4; width: min(400px, 30vw); max-width: none; opacity: 0; }
.motion .pr-copy--1 { left: max(var(--gutter), 6vw); }
.motion .pr-copy--2 { right: max(var(--gutter), 6vw); }
.motion .pr-copy--3 { left: 50%; top: 14svh; width: min(720px, 90vw); text-align: center; }
.motion .pr-copy--3 .pr-word { font-size: clamp(3rem, 6vw, 5.4rem); margin: 8px 0 10px; }
.motion .pr-drag { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--accent); }
.motion .pr-bar {
  position: absolute; left: max(var(--gutter), 3vw); right: max(var(--gutter), 3vw); bottom: 92px; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pr-bar__l { line-height: 1.6; }
.pr-tabs { display: flex; list-style: none; margin: 0; padding: 0; }
.pr-tabs button {
  position: relative; display: grid; gap: 4px; padding: 2px 22px 0; border: 0; background: none; cursor: pointer;
  font: 500 0.92rem var(--body); color: var(--label); text-align: left; transition: color 0.3s;
}
.pr-tabs button::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -15px; height: 2px; background: var(--accent);
  transform: scaleX(var(--fill, 0)); transform-origin: left;
}
.pr-tabs button.is-active { color: var(--ink); }
.pr-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.pr-bar__r { display: grid; justify-items: end; text-align: right; }
.pr-cap { grid-area: 1 / 1; display: grid; gap: 4px; opacity: 0; }
.pr-cap b { font-weight: 500; font-size: 0.95rem; }

/* ---------- Scene 5: the selected-work tunnel ---------- */
/* Static layout (no motion): title, then the covers as a simple grid */
.tunnel__stage { position: relative; padding: 120px var(--gutter); }
.tunnel__corner, .tunnel__hint, .tunnel__now { display: none; }
.tunnel__head { text-align: center; margin-bottom: 40px; }
.tunnel__title {
  font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.92; letter-spacing: -0.055em;
}
.tunnel__title span { display: block; color: var(--accent); }
.tunnel__sub { margin-top: 20px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }
.tunnel__world { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; max-width: var(--wrap); margin: 0 auto; }
.tunnel__card {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 5px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(160deg, #fbf6f0, var(--bezel)); box-shadow: 0 0 0 1px var(--line), 0 34px 44px -30px rgba(42, 13, 16, 0.4), 0 70px 60px -60px rgba(42, 13, 16, 0.35);
  transition: filter 0.3s;
}
[data-theme="dark"] .tunnel__card { background: linear-gradient(160deg, #34161a, var(--bezel)); box-shadow: 0 0 0 1px var(--line), 0 34px 44px -26px rgba(0, 0, 0, 0.9); }
.tunnel__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--surface); }
.tunnel__card { position: relative; }
.tunnel__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--fog, 0); pointer-events: none; }
.tunnel__card:hover { filter: brightness(1.04) saturate(1.05); }
.tunnel__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Motion layout: a pinned stage; the covers line a corridor and the camera walks down it */
.motion .tunnel { height: 820vh; }
.motion .tunnel__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: 0; }
.motion .tunnel__corner { display: block; position: absolute; top: 96px; z-index: 5; }
.motion .tunnel__corner--l { left: max(var(--gutter), 3vw); }
.motion .tunnel__corner--r { right: max(var(--gutter), 3vw); }
.motion .tunnel__head { position: absolute; left: 50%; top: 50%; z-index: 4; width: min(900px, 92vw); margin: 0; pointer-events: none; }
.motion .tunnel__view { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 46%; z-index: 2; }
/* Haze along the top and under the labels, so the walls dissolve into the page like the reference */
.motion .tunnel__stage::before, .motion .tunnel__stage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; }
.motion .tunnel__stage::before { top: 0; height: 24%; background: linear-gradient(var(--bg) 30%, transparent); }
.motion .tunnel__stage::after { bottom: 0; height: 22%; background: linear-gradient(transparent, var(--bg) 75%); }
.motion .tunnel__world { position: absolute; left: 50%; top: 46%; display: block; max-width: none; transform-style: preserve-3d; }
.motion .tunnel__card { position: absolute; left: 0; top: 0; width: 600px; visibility: hidden; }
.motion .tunnel__now {
  display: grid; gap: 8px; position: absolute; left: max(var(--gutter), 3vw); bottom: 34px; z-index: 5; opacity: 0;
}
.motion .tunnel__hint { display: block; position: absolute; right: max(var(--gutter), 3vw); bottom: 40px; z-index: 5; opacity: 0; }
.tunnel__hint span { display: inline-block; margin-left: 6px; color: var(--accent); }
.tunnel__now b { color: var(--accent); font-weight: 500; }
.tunnel__open {
  display: inline-flex; align-items: baseline; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.035em; color: var(--ink);
}
.tunnel__open i { font-style: normal; font-size: 0.7em; color: var(--accent); transition: translate 0.3s; }
.tunnel__open:hover i { translate: 3px -3px; }
.tunnel__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }

/* ---------- Scene 6: experience as end credits ---------- */
/* Static layout (no motion): a centred list with every detail shown */
.credits__stage { position: relative; padding: 120px var(--gutter); }
.credits__corner, .credits__band, .credits__card { display: none; }
.credits__head { text-align: center; margin-bottom: 56px; }
.credits__title {
  font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: 0.92; letter-spacing: -0.055em;
}
.credits__title span { display: block; color: var(--accent); }
.credits__sub { margin-top: 20px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }
.credits__roll { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: 48px; text-align: center; }
.credit__name { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; }
.credit__detail { margin-top: 14px; }
.credit__years { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.credit__stat { display: grid; gap: 4px; margin-top: 12px; }
.credit__stat b { font-family: var(--display); font-weight: 500; font-size: 3.4rem; line-height: 1; letter-spacing: -0.05em; color: var(--accent); }
.credit__stat span { color: var(--ink); font-weight: 500; }
.credit__desc { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.credit__desc strong { color: var(--ink); font-weight: 500; }
.credit__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.credit__tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--ink-soft); }
.credit__toolkit { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.credit__toolkit li { display: flex; align-items: center; gap: 12px; font-weight: 500; }

/* Motion layout: names roll up like film credits; the one on the centre line lights up */
.motion .credits { height: 860vh; }
.credits__wave { display: none; }
.motion .credits__wave { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; pointer-events: none; }
/* Tool wave: liquid-glass tiles (Apple-style) riding the light trails */
.credits__tiles { display: none; }
.motion .credits__tiles { display: block; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; --tile: 82px; }
.lg-tile {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; will-change: transform;
  border-radius: calc(var(--tile) * 0.3);
  /* the glass: blurs and brightens whatever passes behind it */
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -14px 24px -14px rgba(255, 255, 255, 0.22),
    0 22px 44px -20px rgba(0, 0, 0, 0.6);
}
/* bright refractive rim, strongest on the top-left and bottom-right like light bending at the edge */
.lg-tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.55) 88%, rgba(255, 255, 255, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lg-tile--icon { width: var(--tile); height: var(--tile); }
.lg-tile--icon svg { width: 58%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.lg-tile--label { height: calc(var(--tile) * 0.72); padding: 0 calc(var(--tile) * 0.3); border-radius: calc(var(--tile) * 0.26); }
.lg-tile--label span {
  font-family: var(--display); font-weight: 500; font-size: calc(var(--tile) * 0.25); letter-spacing: -0.02em; white-space: nowrap;
  color: #fff7f0; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
/* On the cream page the glass reads as frosted pearl with ink text */
:root:not([data-theme="dark"]) .lg-tile {
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -14px 24px -14px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(89, 23, 27, 0.08), 0 22px 40px -22px rgba(42, 13, 16, 0.45);
}
:root:not([data-theme="dark"]) .lg-tile--label span { color: var(--ink); text-shadow: none; }
@media (max-width: 820px) { .motion .credits__tiles { --tile: 58px; } }
/* The details tablet steps aside while the wave plays (its tool list is the same) */
.motion .credits__card { filter: opacity(calc(1 - var(--wave, 0))); }


.motion .credits__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: 0; }
.motion .credits__corner { display: block; position: absolute; top: 96px; z-index: 5; }
.motion .credits__corner--l { left: max(var(--gutter), 3vw); }
.motion .credits__corner--r { right: max(var(--gutter), 3vw); }
.motion .credits__head { position: absolute; left: 50%; top: 50%; z-index: 4; width: min(900px, 92vw); margin: 0; }
.motion .credits__roll {
  position: absolute; left: max(var(--gutter), 5vw); width: min(52vw, 760px); top: 0; max-width: none; gap: 0;
  -webkit-mask-image: linear-gradient(transparent 15%, #000 34%, #000 70%, transparent 92%);
  mask-image: linear-gradient(transparent 15%, #000 34%, #000 70%, transparent 92%);
}
.motion .credits__roll { height: 100%; }
.motion .credits__roll .credit { position: absolute; left: 0; right: 0; top: 0; padding: 0 2vw; transform-origin: 50% 50%; opacity: 0; }
.motion .credit__detail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motion .credit__name { font-size: clamp(2.2rem, 4.6vw, 4.6rem); transition: color 0.35s; }
.motion .credit.is-active .credit__name { color: var(--accent); }
.motion .credit .credit__role { transition: color 0.35s; }
.motion .credit.is-active .credit__role { color: var(--ink); }
/* Viewfinder ticks on the focus line */
.motion .credits__band {
  display: block; position: absolute; left: max(var(--gutter), 5vw); width: min(52vw, 760px); top: 50%; height: 0; z-index: 1; opacity: 0;
}
.motion .credits__band::before, .motion .credits__band::after {
  content: ""; position: absolute; top: 0; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.motion .credits__band::before { left: 0; }
.motion .credits__band::after { right: 0; }

.motion .credits__card {
  display: block; position: absolute; right: max(var(--gutter), 6vw); top: 50%; width: min(420px, 34vw); z-index: 4; opacity: 0;
  padding: 28px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 0 0 10px var(--bezel), 0 0 0 11px var(--line), var(--shadow-tablet);
}
.motion .credits__card::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(100% + 34px); height: 34px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 13, 16, 0.2), rgba(42, 13, 16, 0.06) 60%, transparent);
}
[data-theme="dark"] .motion .credits__card::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 60%, transparent); }
.cc__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cc__count { color: var(--accent); }
.cc__body { padding-top: 18px; }
.cc__body .credit__name { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 0; }
.cc__body .credit__stat { margin-top: 18px; }
.cc__body .credit__stat b { font-size: clamp(2.6rem, 4.2vw, 3.8rem); }
.cc__body .credit__years { margin-top: 10px; }
.cc__body .credit__tags { justify-content: flex-start; }

/* ---------- Scene 7: contact finale + footer ---------- */
.contact { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding-top: 110px; }
.contact__inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 4vw;
  width: min(1200px, 100% - 2 * var(--gutter)); margin: 0 auto;
}
.contact__figure { position: relative; justify-self: center; width: min(100%, calc(64svh * 1448 / 1086), 760px); aspect-ratio: 1448 / 1086; margin: 0; }
.contact__photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.contact__shadow { position: absolute; pointer-events: none; background: no-repeat 0 0 / 100% 100%; }
[data-theme="dark"] .contact__shadow { filter: brightness(0); }
.contact__floor { display: none; }
[data-theme="dark"] .contact__floor {
  display: block; position: absolute; left: -30%; right: -30%; top: 76%; height: 38%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(254, 215, 184, 0.13), rgba(254, 215, 184, 0.085) 25%, rgba(254, 215, 184, 0.04) 50%, rgba(254, 215, 184, 0.012) 75%, rgba(254, 215, 184, 0));
}
.contact__kicker { color: var(--accent); }
.contact__title {
  margin: 18px 0 20px; font-family: var(--display); font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: 0.92; letter-spacing: -0.055em;
}
.contact__title .ln { display: block; }
.contact__title .accent { color: var(--accent); }
.contact__sub { margin-bottom: 38px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.5; }
.contact__note { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--ink-soft); font-size: 0.92rem; }
.contact__note i { flex: none; width: 28px; height: 1px; background: var(--accent); }
.contact__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact__note a:hover { text-decoration-color: var(--accent); }

/* Glossy pill button: pearl in light mode, burgundy glass in dark */
.gloss {
  position: relative; display: inline-flex; align-items: center; gap: 22px; padding: 10px 10px 10px 34px; overflow: hidden;
  border-radius: 999px; text-decoration: none; color: var(--brand);
  font: 500 0.92rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #fffbf7 0%, #f1e6db 47%, #e4d4c6 53%, #f6ede4 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(89, 23, 27, 0.1), 0 0 0 1px rgba(89, 23, 27, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.6), 0 0 0 7px rgba(89, 23, 27, 0.12), 0 26px 40px -18px rgba(42, 13, 16, 0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}
.gloss::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent); transform: skewX(-20deg);
  transition: left 0.8s ease;
}
.gloss:hover { transform: translateY(-2px); }
.gloss:hover::before { left: 130%; }
.gloss:active { transform: translateY(0) scale(0.98); }
.gloss:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.gloss__label { position: relative; }
.gloss__orb {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fed7b8;
  background: radial-gradient(circle at 35% 28%, #8f2e35, #59171b 58%, #360b0e);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -4px 8px rgba(0, 0, 0, 0.35), 0 8px 16px -6px rgba(89, 23, 27, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gloss__orb svg { width: 22px; height: 22px; }
.gloss:hover .gloss__orb { transform: translateX(4px); }
[data-theme="dark"] .gloss {
  color: #fed7b8;
  background: linear-gradient(180deg, #4a2025 0%, #2e1013 47%, #230a0d 53%, #3a181c 100%);
  box-shadow: inset 0 1px 0 rgba(254, 215, 184, 0.25), inset 0 -3px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(254, 215, 184, 0.2),
    0 0 0 6px rgba(254, 215, 184, 0.05), 0 0 0 7px rgba(254, 215, 184, 0.14), 0 26px 40px -18px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .gloss::before { background: linear-gradient(100deg, transparent, rgba(254, 215, 184, 0.25), transparent); }
[data-theme="dark"] .gloss__orb { color: #59171b; background: radial-gradient(circle at 35% 28%, #fff1e4, #fed7b8 55%, #e2ae88); }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px;
  width: min(1200px, 100% - 2 * var(--gutter)); margin: 48px auto 0; padding: 22px 0 100px; border-top: 1px solid var(--line);
}
.footer__id { display: grid; gap: 6px; }
.footer__id b { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { color: var(--ink); font-size: 0.92rem; text-decoration: none; transition: color 0.25s; }
.footer__links a:hover { color: var(--accent); }
.footer__links a.is-pending { color: var(--label); opacity: 0.6; cursor: default; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 140px 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.h2 {
  margin-top: 14px; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.96; letter-spacing: -0.045em;
}
.h2 span { display: block; color: var(--muted); }
.head__lead { max-width: 360px; color: var(--ink-soft); font-size: 1.06rem; font-weight: 500; }

/* Tablet frame used across sections */
.tablet {
  background: var(--bezel); border: 1px solid var(--line); border-radius: 30px; padding: 10px;
  box-shadow: var(--shadow-tablet);
}
.tablet__screen { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 11; }
.tablet__screen .card__inner { height: 100%; }
.tablet--flat { padding: 24px 26px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc__body { padding: 22px 14px 12px; }
.svc__body h3 { margin: 6px 0 8px; font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.035em; line-height: 1.05; }
.svc__body > p:not(.tag) { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--control-bg); font-size: 0.82rem; font-weight: 500; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500; background: var(--control-bg); color: var(--ink-soft); transition: background 0.2s, color 0.2s;
}
.filter span { font-family: var(--mono); font-size: 0.72rem; opacity: 0.8; }
.filter:hover { background: var(--control-bg-hover); color: var(--ink); }
.filter.is-active { background: var(--seg-active-bg); color: var(--seg-active-ink); }

.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { cursor: pointer; outline: none; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.work-card[hidden] { display: none; }
.work-card .tablet__screen { aspect-ratio: 1 / 0.78; }
.work-card:hover { transform: translateY(-6px); }
.work-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.work-card:hover .play { scale: 1.1; }
.work-card .card__inner:not(.thumb--reel)::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 13cqw; height: 13cqw;
  translate: -50% -50%; scale: 0.6; opacity: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) no-repeat center / 34% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1 0l9 6-9 6z' fill='%2359171b'/%3E%3C/svg%3E");
  transition: opacity 0.3s, scale 0.3s;
}
.work-card:hover .card__inner::after { opacity: 1; scale: 1; }
.work-more {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 24px; padding: 20px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -0.02em;
}
.work-more i { font-style: normal; color: var(--accent); transition: translate 0.25s; }
.work-more:hover i { translate: 4px -4px; }

/* Experience */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1.4fr 1fr 110px; gap: 24px; align-items: baseline;
  padding: 24px 8px; border-bottom: 1px solid var(--line);
  transition: padding 0.35s cubic-bezier(.2, .8, .2, 1), background 0.3s;
}
.row:hover { padding-left: 20px; background: var(--control-bg); }
.row__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.05; }
.row__role { color: var(--ink-soft); font-weight: 500; }
.row__year { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); text-align: right; }
time.tbc { font-style: italic; color: var(--label); }

.exp-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.edu { margin-top: 14px; }
.edu li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.edu b { font-weight: 600; }
.edu span { grid-column: 1; color: var(--ink-soft); font-size: 0.9rem; }
.edu time { grid-column: 2; grid-row: 1 / span 2; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.toolkit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toolkit li { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--control-bg); font-weight: 500; font-size: 0.92rem; }

.tool { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 0.68rem; font-weight: 700; }
.tool--ae { background: #1f0a40; color: #d8a1ff; }
.tool--pr { background: #0e0a40; color: #a9a5ff; }
.tool--ps { background: #001e36; color: #31a8ff; }
.tool--dr { background: #2a2a2a; color: #f3b54a; }
.tool--ai { background: linear-gradient(135deg, var(--brand), var(--brand-soft)); color: var(--peach); }
.tool--ai svg { width: 55%; height: 55%; }

.spacer { height: 40vh; }

/* ---------- Thumbnails (sized in cqw so they scale with any card) ---------- */
.card__inner { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: inline-size; }
.card__meta { position: absolute; left: 4.5cqw; bottom: 4cqw; display: flex; flex-direction: column; gap: 2px; font-size: max(12px, 3cqw); line-height: 1.3; }
.card__meta b { font-family: var(--display); font-weight: 600; font-size: max(15px, 5cqw); letter-spacing: -0.03em; }
.card__meta span { opacity: 0.8; }
.thumb__time {
  position: absolute; top: 4cqw; right: 4cqw; padding: 0.6cqw 1.8cqw; border-radius: 1.6cqw;
  font-family: var(--mono); font-size: max(11px, 2.4cqw); background: rgba(0, 0, 0, 0.3); color: #fff;
}
.thumb__big { position: absolute; left: 4.5cqw; top: 18%; font-family: var(--display); font-size: 19cqw; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.thumb__small { position: absolute; left: 5cqw; top: calc(18% + 20cqw); font-size: max(12px, 3.2cqw); font-weight: 500; opacity: 0.85; }
.thumb--course { background: linear-gradient(150deg, var(--brand-soft), #a4645a); color: #fff; }
.thumb--doc { background: radial-gradient(circle at 80% 20%, #4a1c1f, #1c0709 70%); color: var(--peach); }
.thumb--ghost { background: linear-gradient(160deg, var(--peach-soft), var(--peach)); color: var(--brand); }
.thumb--ghost .thumb__time { background: rgba(89, 23, 27, 0.15); color: var(--brand); }
.ghost { position: absolute; left: 50%; top: 14%; width: 24%; translate: -50% 0; animation: hover-ghost 3s ease-in-out infinite; }
@keyframes hover-ghost { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.thumb--reel { background: radial-gradient(circle at 25% 25%, #9c4a45, #6e2226 50%, #3d0e11); color: #fff; }
.thumb--social { background: linear-gradient(140deg, #8e3f3d, #c98a76 60%, #fed7b8); color: #fff; }
.phone { position: absolute; bottom: -6%; width: 18%; aspect-ratio: 9 / 16; border-radius: 3cqw; border: 1.2cqw solid rgba(255, 255, 255, 0.85); background: rgba(89, 23, 27, 0.35); }
.phone--1 { right: 32%; rotate: -8deg; }
.phone--2 { right: 16%; bottom: 2%; z-index: 1; background: rgba(89, 23, 27, 0.6); }
.phone--3 { right: 2%; rotate: 8deg; }
.shape { position: absolute; display: block; }
.shape--circle { width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--peach); left: 12%; top: 16%; animation: bounce 2.4s cubic-bezier(.5, 0, .5, 1) infinite; }
.shape--square { width: 11%; aspect-ratio: 1; border-radius: 24%; background: var(--brand-soft); right: 16%; top: 20%; animation: spin 6s linear infinite; }
.shape--pill { width: 28%; height: 6%; border-radius: 999px; background: rgba(254, 215, 184, 0.85); right: 10%; bottom: 24%; animation: grow 3s ease-in-out infinite; transform-origin: left; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(70%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { 0%, 100% { transform: scaleX(0.3); } 50% { transform: scaleX(1); } }
.play {
  position: absolute; left: 50%; top: 46%; width: 15cqw; height: 15cqw; translate: -50% -50%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 2.2cqw rgba(255, 255, 255, 0.2); transition: scale 0.25s;
}
.play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 32%; height: 38%; translate: 12% 0; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Floating dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px;
  background: var(--glass-fill); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  translate: -50% 140%; opacity: 0; transition: translate 0.5s cubic-bezier(.2, .8, .2, 1), opacity 0.4s;
}
.dock.is-visible { translate: -50% 0; opacity: 1; }
.dock__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 24%; }
.dock__text { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.75rem; padding-right: 8px; white-space: nowrap; }
.dock__text b { font-size: 0.85rem; font-weight: 600; }
.dock__text span { color: var(--ink-soft); }
.dock__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--control-bg); color: var(--ink); transition: background 0.2s; }
.dock__btn:hover { background: var(--control-bg-hover); }
.dock__btn svg { width: 16px; height: 16px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1.45fr 1fr;
  background: var(--bezel); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97); transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__media { position: relative; padding: 10px; }
.modal__media .card__inner { aspect-ratio: 5 / 4; height: auto; border-radius: 20px; }
.modal__media .modal__art { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.modal__soon { position: absolute; left: 24px; top: 24px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--brand); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; }
.modal__info { padding: 34px 30px 30px 18px; display: flex; flex-direction: column; }
.modal__title { margin: 10px 0 12px; font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.05; letter-spacing: -0.035em; }
.modal__desc { color: var(--ink-soft); font-weight: 500; }
.modal__facts { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.modal__facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.modal__facts dt { color: var(--ink-soft); font-weight: 500; }
.modal__facts dd { font-weight: 600; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-size: 1.3rem; line-height: 1; color: var(--ink); }
.modal__close:hover { background: var(--ink); color: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .seg a span { display: none; }
  .seg a { padding: 9px 12px; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__info { padding: 8px 24px 28px; }
}
@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .nav { grid-template-columns: auto 1fr auto; }
  .brand__text { display: none; }
  .seg { justify-self: center; }
  .intro__meta { display: none; }
  .intro__bar { left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: flex-start; gap: 16px; }
  .ribbons { position: static; translate: none; }
  .intro__title { font-size: 13vw; white-space: normal; width: 90%; text-align: center; }
  .discuss { display: none; }

  .story { padding: 90px var(--gutter); }
  .story__stage { grid-template-columns: 1fr; justify-items: center; }
  .story__figure { width: min(100%, 360px); }
  .motion .story__figure { top: 30%; height: 40svh; width: auto; }
  .motion .story__name { font-size: 15vw; }
  .motion .story__titles { place-content: start center; padding-top: 24svh; }
  /* Card sits above the floating contact dock */
  .motion .story__card { left: var(--gutter); right: var(--gutter); top: auto; bottom: 86px; translate: none; width: auto; padding: 20px 22px; }
  .motion .story__body { display: none; }
  .motion .manifesto { left: var(--gutter); right: var(--gutter); top: 50%; bottom: auto; translate: none; width: auto; padding: 22px 22px; }
  .motion .manifesto .manifesto__title { font-size: 2rem; }
  .motion .story__card::after { display: none; }
  .motion .practice__corner { display: none; }
  .motion .pr-tablet { width: min(58vw, 34svh * 0.8); top: 58%; }
  .pr-card { width: 36vw; }
  .motion .pr-copy, .motion .pr-copy--3 { left: var(--gutter); right: var(--gutter); top: 96px; width: auto; text-align: center; }
  .motion .pr-copy .pr-word { font-size: 3.2rem; margin: 6px 0 10px; }
  .motion .pr-lines { font-size: 1rem; }
  .motion .pr-text, .motion .pr-copy--3 .pr-sub { display: none; }
  .motion .pr-bar { grid-template-columns: 1fr; justify-items: center; bottom: 86px; }
  .motion .pr-bar__l, .motion .pr-bar__r { display: none; }
  .pr-tabs button { padding: 2px 14px 0; }
  .pr-tabs button::before { left: 14px; right: 14px; }
  .motion .tunnel__corner, .motion .tunnel__hint { display: none; }
  .motion .tunnel__now { left: var(--gutter); right: var(--gutter); bottom: 92px; justify-items: center; text-align: center; }
  .tunnel__open { font-size: 1.6rem; }
  .motion .tunnel__view { perspective: 700px; }
  .motion .credits__corner { display: none; }
  .motion .credits__roll, .motion .credits__band { left: var(--gutter); width: calc(100% - 2 * var(--gutter)); }
  .motion .credit__name { font-size: 2.1rem; }
  .motion .credits__card { left: var(--gutter); right: var(--gutter); top: auto; bottom: 86px; width: auto; padding: 20px 22px; }
  /* The tool wave takes over the lower half: the tablet steps down out of its way */
  .motion .credits__card { bottom: calc(86px - var(--wave, 0) * 75svh); }
  .motion .cc__body .credit__desc { display: none; }
  .motion .cc__body .credit__stat { margin-top: 10px; }
  .contact { padding-top: 92px; }
  .contact__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .contact__figure { width: min(100%, calc(38svh * 1448 / 1086)); }
  .contact__title { font-size: 3.2rem; }
  .contact__note { justify-content: center; flex-wrap: wrap; }
  .gloss { padding-left: 26px; gap: 16px; font-size: 0.8rem; }
  .gloss__orb { width: 50px; height: 50px; }
  .footer { flex-direction: column; align-items: center; text-align: center; padding-bottom: 104px; }
  .footer__links { justify-content: center; }

  .section { padding: 96px 0; }
  .svc-grid, .work__grid, .exp-extra { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .row__role { grid-column: 1; grid-row: 2; }
  .row__year { grid-column: 2; grid-row: 1; }
}


/* ---------- Responsive refinements (every screen size) ---------- */
/* Laptops and tablets with a shorter screen: a more compact intro card */
@media (min-width: 821px) and (max-height: 820px) {
  .motion .story__card:not(.manifesto) { padding: 24px 26px; }
  .story__card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .story__lead { margin: 12px 0 8px; font-size: 1rem; }
  .story__body { font-size: 0.86rem; }
  .story__pair { margin-top: 12px; }
  .story__pair div { padding: 8px 0; }
  .story__pair dd { font-size: 1.15rem; }
  .motion .credits__card { padding: 22px 24px; }
  .cc__body .credit__stat b { font-size: clamp(2.2rem, 3.6vw, 3rem); }
}
@media (min-width: 821px) and (max-height: 760px) {
  .motion .story__card:not(.manifesto) .story__body { display: none; }
  .motion .cc__body .credit__desc { font-size: 0.86rem; }
}
/* Very short screens (landscape phones): slimmer nav, no floating dock, everything scaled down */
@media (max-height: 520px) {
  .dock { display: none; }
  .nav { padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 821px) and (max-height: 520px) {
  .motion .story__figure { top: 56%; height: 68svh; }
  .motion .story__card:not(.manifesto) { top: calc(50% + 26px); width: min(360px, 42vw); padding: 16px 20px; }
  .motion .manifesto { top: calc(50% + 26px); }
  .story__card h2, .manifesto__title { margin-top: 8px; font-size: 1.55rem; }
  .story__lead { font-size: 0.9rem; margin: 8px 0 4px; }
  .story__pair { margin-top: 6px; }
  .story__pair div { padding: 5px 0; }
  .story__pair dd { font-size: 0.98rem; }
  .manifesto__lead { font-size: 0.92rem; margin: 6px 0; }
  .manifesto__quote, .manifesto__body, .stairs__note { display: none; }
  .manifesto__sign { font-size: 1.5rem; margin-top: 4px; }
  .stairs { font-size: 1.15rem; margin: 8px 0; }
  .manifesto__foot { margin-top: 8px; padding-top: 8px; }
  .motion .practice__corner, .motion .pr-bar__l, .motion .pr-bar__r { display: none; }
  .motion .pr-bar { bottom: 8px; padding-top: 8px; grid-template-columns: 1fr; justify-items: center; }
  .motion .pr-copy { top: calc(50% + 10px); }
  .motion .pr-copy--3 { top: 60px; }
  .motion .pr-copy .pr-word { font-size: 2.6rem; margin: 4px 0 8px; }
  .motion .pr-lines { font-size: 0.98rem; }
  .motion .pr-text, .motion .pr-copy--3 .pr-sub, .motion .pr-drag { display: none; }
  .motion .tunnel__corner { display: none; }
  .tunnel__title, .credits__title { font-size: 3rem; }
  .motion .credits__corner { display: none; }
  .motion .credit__name { font-size: min(4.2vw, 9svh); }
  .motion .credits__card { top: calc(50% + 24px); padding: 14px 18px; }
  .motion .cc__body .credit__desc, .motion .cc__body .credit__tags { display: none; }
  .cc__body .credit__name { font-size: 1.4rem; }
  .cc__body .credit__stat { margin-top: 8px; }
  .cc__body .credit__stat b { font-size: 2rem; }
  .contact { padding-top: 70px; }
  .contact__figure { width: min(100%, calc(70svh * 1448 / 1086)); }
  .contact__title { font-size: 2.8rem; margin: 10px 0 12px; }
  .contact__sub { margin-bottom: 22px; }
}
/* Phones with a shorter screen: compact cards so nothing slides under the nav */
@media (max-width: 820px) and (max-height: 760px) {
  .motion .story__card:not(.manifesto) { padding: 16px 18px; bottom: 78px; }
  .story__card h2 { font-size: 1.7rem; margin-top: 10px; }
  .story__lead { font-size: 0.95rem; margin: 10px 0 4px; }
  .story__pair { margin-top: 10px; }
  .story__pair div { padding: 7px 0; }
  .story__pair dd { font-size: 1.05rem; }
  .motion .manifesto { top: calc(50% + 22px); padding: 18px; }
  .motion .manifesto .manifesto__title { font-size: 1.7rem; }
  .manifesto__body, .stairs__note { display: none; }
  .manifesto__quote { margin-top: 8px; }
  .manifesto__lead { font-size: 1rem; }
  .manifesto__sign { font-size: 1.7rem; margin-top: 6px; }
  .stairs { font-size: 1.25rem; margin: 10px 0 6px; }
  .motion .pr-tablet { width: min(58vw, 30svh * 0.8); top: 57%; }
  .motion .credits__card { padding: 16px 18px; }
  .motion .cc__body .credit__tags { display: none; }
  .cc__body .credit__stat b { font-size: 2.2rem; }
}
@media (max-width: 820px) and (max-height: 620px) {
  .story__lead { display: none; }
  .manifesto__lead { font-size: 0.92rem; }
  .manifesto__sign { display: none; }
  .motion .pr-tablet { width: min(52vw, 26svh * 0.8); }
}
/* ---------- Accessibility preferences ---------- */
@media (pointer: coarse) {
  .theme-toggle, .dock__btn, .modal__close { width: 44px; height: 44px; }
  .filter, .seg a { min-height: 44px; }
}
@media (prefers-contrast: more) {
  :root { --ink-soft: var(--ink); --muted: #6b524d; --line: rgba(42, 13, 16, 0.3); --glass-border: rgba(42, 13, 16, 0.35); }
  :root[data-theme="dark"] { --ink-soft: var(--ink); --muted: #c9aaa0; --line: rgba(254, 215, 184, 0.35); --glass-border: rgba(254, 215, 184, 0.4); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .seg, .dock { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
