/* Crafty Cast studio design system.
   Tokens first, then base, layout, components, pages. Venture pages may set
   exactly one token of their own: --venture (an accent colour). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks keep the swap from shifting the layout. */
@font-face { font-family: "Fraunces fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 103%; ascent-override: 95%; descent-override: 25%; }
@font-face { font-family: "Inter fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Type */
  --font-display: "Fraunces", "Fraunces fallback", Georgia, serif;
  --font-text: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.16rem, 1.08rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.24rem + 0.8vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.62rem + 2.9vw, 4.2rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.6vw, 6rem);
  --leading-tight: 1.04;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --measure: 62ch;

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --space-l: clamp(2rem, 1.7rem + 1.4vw, 3rem);
  --space-xl: clamp(3rem, 2.4rem + 3vw, 5rem);
  --space-2xl: clamp(4.5rem, 3.4rem + 5.5vw, 8rem);
  --gutter: clamp(16px, 4vw, 40px);
  --page-max: 1240px;

  /* Shape and depth */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(22 32 30 / 0.06), 0 2px 8px rgb(22 32 30 / 0.05);
  --shadow-2: 0 2px 4px rgb(22 32 30 / 0.06), 0 14px 34px rgb(22 32 30 / 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;

  /* Colour: light (default) */
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #ebe6db;
  --ink: #16201e;
  --ink-2: #4b5551;
  --line: rgb(22 32 30 / 0.13);
  --accent: #1f6f63;
  --accent-strong: #175a50;
  --on-accent: #ffffff;
  --gold: #c08a1e;
  --focus: #1c5fd0;
  --header-bg: rgb(244 241 234 / 0.86);
  --band-bg: #16201e;
  --band-ink: #f4f1ea;
  --band-ink-2: #c9cfca;
  --band-accent: #e9c46a;

  --st-live-fg: #146038;   --st-live-bg: #d9eee0;
  --st-beta-fg: #1b4c8f;   --st-beta-bg: #dce7f7;
  --st-wait-fg: #7a4800;   --st-wait-bg: #f5e5c4;
  --st-dev-fg: #4a3e7d;    --st-dev-bg: #e6e2f4;

  /* The one token a venture may set. */
  --venture: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1413;
    --surface: #151d1b;
    --surface-2: #1c2725;
    --ink: #eef0ea;
    --ink-2: #a9b2ad;
    --line: rgb(238 240 234 / 0.13);
    --accent: #6cc4b4;
    --accent-strong: #8ad4c6;
    --on-accent: #0b1211;
    --gold: #e9c46a;
    --focus: #8ab8ff;
    --header-bg: rgb(14 20 19 / 0.84);
    --band-bg: #1c2725;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 2px 4px rgb(0 0 0 / 0.35), 0 16px 40px rgb(0 0 0 / 0.45);
    --st-live-fg: #8fe0b0;   --st-live-bg: #153226;
    --st-beta-fg: #a3c7ff;   --st-beta-bg: #172a45;
    --st-wait-fg: #f2c46c;   --st-wait-bg: #382a0f;
    --st-dev-fg: #c9bfff;    --st-dev-bg: #29233f;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1413;
  --surface: #151d1b;
  --surface-2: #1c2725;
  --ink: #eef0ea;
  --ink-2: #a9b2ad;
  --line: rgb(238 240 234 / 0.13);
  --accent: #6cc4b4;
  --accent-strong: #8ad4c6;
  --on-accent: #0b1211;
  --gold: #e9c46a;
  --focus: #8ab8ff;
  --header-bg: rgb(14 20 19 / 0.84);
  --band-bg: #1c2725;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.35), 0 16px 40px rgb(0 0 0 / 0.45);
  --st-live-fg: #8fe0b0;   --st-live-bg: #153226;
  --st-beta-fg: #a3c7ff;   --st-beta-bg: #172a45;
  --st-wait-fg: #f2c46c;   --st-wait-bg: #382a0f;
  --st-dev-fg: #c9bfff;    --st-dev-bg: #29233f;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: var(--leading-snug); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-s);
  background: var(--ink); color: var(--bg); border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-2xs); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.section + .section { border-top: 1px solid var(--line); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--space-s); }
.stack-l > * + * { margin-top: var(--space-m); }
.grid { display: grid; gap: var(--space-m); }
.split { display: grid; gap: var(--space-l); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.4em; height: 2px; background: currentColor; border-radius: 2px; }
.display { font-size: var(--step-5); line-height: var(--leading-tight); letter-spacing: -0.03em; font-weight: 560; }
.h2 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.025em; }
.h3 { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-s); }
.prose h2, .prose h3 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: end; justify-content: space-between; margin-bottom: var(--space-l); }
.section-head .stack { max-width: 40rem; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-m); }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 56px;
  text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink);
}
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark .mark-tile { fill: var(--ink); }
.wordmark .mark-arc { stroke: var(--bg); }
.wordmark .mark-dot { fill: var(--gold); }
.nav ul { display: flex; list-style: none; gap: 0.15rem; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 0.8rem;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 550; font-size: 0.97rem; color: var(--ink-2);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); background: color-mix(in oklab, var(--accent) 14%, transparent); }
@media (max-width: 639px) {
  .site-header { position: static; }
  .nav { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--line); }
  .nav ul { justify-content: space-between; padding: 0.2rem calc(var(--gutter) - 0.6rem); }
  .nav a { padding: 0 0.6rem; }
}

/* ---------- Buttons (CTA) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.35rem; border-radius: var(--radius-pill);
  font: 600 1rem/1.1 var(--font-text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--ink) 28%, transparent); }
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn--large { min-height: 56px; padding: 0 1.7rem; font-size: 1.08rem; }

/* Text link with a full-size tap target. */
.link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
}
.link:hover { text-decoration-thickness: 2.5px; }
.link svg { width: 1em; height: 1em; }

/* ---------- Status pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.28em 0.75em 0.3em; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap;
  color: var(--st-dev-fg); background: var(--st-dev-bg);
}
.pill::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.pill[data-status="live"] { color: var(--st-live-fg); background: var(--st-live-bg); }
.pill[data-status="live"]::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s ease-out infinite; }
.pill[data-status="beta"] { color: var(--st-beta-fg); background: var(--st-beta-bg); }
.pill[data-status="waitlist"] { color: var(--st-wait-fg); background: var(--st-wait-bg); }
.pill[data-status="in-development"] { color: var(--st-dev-fg); background: var(--st-dev-bg); }
.pill[data-status="in-development"]::before { background: transparent; border: 1.5px solid currentColor; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 0.45em transparent; } }

/* ---------- Media frame: the one treatment every project image gets ---------- */
/* A tinted panel in the venture's accent; the image sits inset and bleeds off the bottom edge. */
.frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10;
  padding: 7% 7% 0;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--venture) 30%, transparent), transparent 70%),
    color-mix(in oklab, var(--venture) 14%, var(--surface-2));
  border-radius: var(--radius-m);
}
.frame picture, .frame > img { height: 100%; }
.frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 40px -12px rgb(0 0 0 / 0.35);
  transition: transform var(--dur-slow) var(--ease-out);
  transform-origin: 50% 100%;
}
.frame--tall { aspect-ratio: 4 / 5; }
.tag--over { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--surface); box-shadow: var(--shadow-1); }
.frame--wide { aspect-ratio: 16 / 10.5; }

/* ---------- Project card ---------- */
.cards { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); list-style: none; }
.cards--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { position: relative; height: 100%; }
.card__link {
  display: flex; flex-direction: column; height: 100%;
  padding: var(--space-xs); border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}
.card__link:hover, .card__link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--venture) 45%, var(--line)); }
.card__link:hover .frame img, .card__link:focus-visible .frame img { transform: scale(1.025); }
.card__link:focus-visible { outline-offset: 4px; border-radius: var(--radius-l); }
.card__body { display: grid; gap: var(--space-2xs); padding: var(--space-s) var(--space-2xs) var(--space-2xs); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.card__kind { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.card__title { font-size: var(--step-2); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-s); }
.card__title svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ink-2); transition: transform var(--dur-med) var(--ease-out), color var(--dur-med) ease; }
.card__link:hover .card__title svg { transform: translate(3px, -3px); color: var(--ink); }
.card__text { color: var(--ink-2); }

/* ---------- Fact list ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: var(--space-s) var(--space-s) var(--space-s) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0.2rem 0 0; font-weight: 550; }

/* ---------- Gallery and lightbox ---------- */
.gallery { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; }
.gallery figure { margin: 0; }
.gallery__item {
  display: block; border-radius: var(--radius-m); text-decoration: none; color: inherit; cursor: zoom-in;
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery__item:hover { transform: translateY(-3px); }
.gallery__item:hover .frame img { transform: scale(1.03); }
.gallery figcaption { display: flex; gap: var(--space-2xs); align-items: baseline; padding: var(--space-2xs) 0.15rem 0; font-size: 0.92rem; color: var(--ink-2); }
.tag { flex: none; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1em 0.5em; border-radius: 4px; border: 1px solid var(--line); color: var(--ink); }

.lightbox {
  width: min(100vw - 2 * var(--gutter), 1400px); max-width: none; max-height: calc(100vh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
}
.lightbox::backdrop { background: rgb(8 12 11 / 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in var(--dur-med) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox__stage { position: relative; display: grid; place-items: center; background: var(--surface-2); min-height: 40vh; }
.lightbox__stage img { max-height: calc(100vh - 9rem); width: auto; margin-inline: auto; object-fit: contain; }
.lightbox__img-in { animation: lb-fade var(--dur-med) ease; }
@keyframes lb-fade { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-2xs) var(--space-xs); }
.lightbox__caption { font-size: 0.95rem; color: var(--ink-2); }
.lightbox__controls { display: flex; gap: 0.3rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-xl); border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--space-l) calc(var(--space-m) + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: var(--space-l); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1.5fr; } }
.site-footer h2 { font-family: var(--font-text); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-2xs); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-m); }
@media (min-width: 800px) { .site-footer nav ul { display: block; } }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 550; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer p { color: var(--ink-2); }
.site-footer__legal { margin-top: var(--space-l); padding-top: var(--space-s); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); color: var(--ink-2); font-size: 0.88rem; }

/* ---------- Page: home ---------- */
.hero { padding-block: var(--space-xl) var(--space-xl); }
.hero__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--space-xl); } }
.hero .display em { font-style: normal; color: var(--accent); }
.hero__text > * + * { margin-top: var(--space-m); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); font-size: 0.92rem; color: var(--ink-2); }
.hero__meta span + span::before { content: "·"; margin-right: var(--space-s); color: var(--ink-2); }

/* The reel: featured project frames, crossfaded by site.js (first frame only without JS or with reduced motion). */
.reel { position: relative; }
.reel__frames { position: relative; display: grid; }
.reel__frame { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.reel__frame.is-current { opacity: 1; visibility: visible; }
.reel__frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-xs); font-size: 0.92rem; color: var(--ink-2); }
.reel__frame figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--ink); text-decoration: none; }
.reel__frame figcaption a:hover { text-decoration: underline; }
.reel__dots { display: flex; gap: 6px; }
.reel__dots span { width: 22px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color var(--dur-med) ease; }
.reel__dots span.is-current { background: var(--accent); }

.principles { display: grid; gap: var(--space-m); list-style: none; counter-reset: p; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { counter-increment: p; padding-top: var(--space-s); border-top: 2px solid var(--ink); }
.principles li::before { content: "0" counter(p); display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--accent); margin-bottom: var(--space-2xs); }
.principles h3 { font-size: var(--step-2); margin-bottom: var(--space-2xs); }
.principles p { color: var(--ink-2); }

.contact-band {
  display: grid; gap: var(--space-m); padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-l); background: var(--band-bg); color: var(--band-ink);
  position: relative; overflow: hidden;
}
.contact-band::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--band-accent) 38%, transparent), transparent); pointer-events: none;
}
.contact-band .eyebrow { color: var(--band-accent); }
.contact-band .h2 { color: var(--band-ink); max-width: 18ch; }
.contact-band p { color: var(--band-ink-2); max-width: 44ch; }
.contact-band .btn--primary { background: var(--band-ink); color: var(--band-bg); }
.contact-band .btn--primary:hover { background: #ffffff; }
.contact-band > * { position: relative; z-index: 1; }

/* ---------- Page: project ---------- */
.project-hero { padding-block: var(--space-l) var(--space-xl); }
.project-hero__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .project-hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-xl); } }
.project-hero__text > * + * { margin-top: var(--space-m); }
.project-hero h1 { font-size: var(--step-5); line-height: var(--leading-tight); letter-spacing: -0.03em; }
.breadcrumb { display: flex; gap: var(--space-2xs); align-items: center; font-size: 0.92rem; color: var(--ink-2); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 550; }
.breadcrumb a:hover { text-decoration: underline; }
.status-line { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; font-weight: 550; }
.status-line span:last-child { color: var(--ink-2); }
.venture-rule { height: 4px; width: 64px; border-radius: 4px; background: var(--venture); }
.links-list { list-style: none; display: grid; gap: var(--space-2xs); }

/* ---------- Page: not found ---------- */
.notfound { padding-block: var(--space-2xl); text-align: left; }
.notfound .display { font-size: clamp(5rem, 3rem + 14vw, 13rem); color: var(--accent); line-height: 0.9; }

/* ---------- Motion: page-load reveal ---------- */
.reveal { animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .card__link:hover, .card__link:focus-visible, .gallery__item:hover { transform: none; }
  .frame img { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
