/* AUTO-GENERATED — do not edit by hand.
 * Sources: css/{base,layout,components,home,pages}/*.css
 * Rebuild: python tools/build-css.py
 */

/* ===== base/reset-tokens.css ===== */
/* =============================================
   Park Seongjin Portfolio — tokens in /DESIGN.md
   ============================================= */

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

:root {
  /* Grid */
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  /* Shared content / solid-header / mobile-page track (100% resolves per element) */
  --shell-track: min(100% - (var(--gutter) * 2), var(--container));
  --gap: 24px;
  --gap-lg: 40px;
  --section-y: clamp(80px, 12vw, 96px);
  --header-h: 88px;
  --header-offset: 12px;
  --header-bar-h: 60px;
  /* Max-expanded header side inset (~212px @ 2145px ref) */
  --header-pad-x: clamp(40px, 9.9vw, 212px);
  /* Scroll-lock scrollbar compensation (js/core/scroll-lock.js) */
  --scroll-lock-pad: 0px;

  /* Glass morphism — header is the source of truth */
  --glass-wash: rgba(255, 255, 255, 0.1);
  --glass-base: rgba(18, 20, 24, 0.42);
  --glass-bg: linear-gradient(var(--glass-wash), var(--glass-wash)), var(--glass-base);
  --glass-backdrop: blur(48px) saturate(1.8);
  --glass-fallback: rgba(18, 20, 24, 0.94);

  /* HUD glass — profile panel only (not header glass) */
  --hud-glass-base: rgba(6, 6, 8, 0.72);
  --hud-glass-wash: rgba(232, 80, 2, 0.08);
  --hud-glass-bg: linear-gradient(180deg, var(--hud-glass-wash) 0%, transparent 28%), var(--hud-glass-base);
  --hud-glass-backdrop: blur(10px);
  --hud-glass-fallback: rgba(8, 8, 10, 0.96);

  /* Dark-first palette — equal RGB = true dark gray */
  --primary: #e85002;
  --on-primary: #ffffff;
  --primary-hover: #d14802;
  --ink: #e8e8e8;
  --ink-muted: #a3a3a3;
  --ink-subtle: #7a7a7a;
  /* deep black · pure black (mid) · dark grey (footer) · raised */
  --deep-black: #0b0b0b;
  --pure-black: #121212;
  --dark-grey: #2a2a2a;
  --shade-deep: var(--deep-black);
  --shade-base: var(--dark-grey);
  --shade-raised: #1a1a1a;
  --canvas: var(--deep-black);
  --surface-1: var(--shade-raised);
  --surface-2: #242424;
  --hairline: #2c2c2c;
  --canvas-dark: var(--deep-black);
  --surface-dark-1: var(--shade-raised);
  --ink-on-dark: #e8e8e8;
  --ink-muted-on-dark: #a3a3a3;
  --ink-subtle-on-dark: #7a7a7a;
  --hairline-dark: #2c2c2c;

  /* aliases — page fills use deep black; footer uses dark grey */
  --bg: var(--deep-black);
  --bg-alt: var(--deep-black);
  --bg-dark: var(--deep-black);
  --ink-2: var(--ink-muted);
  --ink-3: var(--ink-subtle);
  --line: var(--hairline);
  --accent: var(--primary);
  --accent-soft: #f0703a;

  /* Type — Latin: Google Sans Flex / Hangul: Noto Sans KR (LOCKED)
     Canonical: D1–D3 · S1–S3 · H1–H5 · Body · Overline/Label · Nav · Button · Caption
     Industry aliases: display-* · headline-* · title-* · lead · overline · quote · helper
     See TYPEGUIDE.md · live specimen type.html */
  --font: "Google Sans Flex", "Noto Sans KR", sans-serif;

  /* ——— Size (PC) ——— */
  /* Display */
  --text-d1: clamp(2.75rem, 6vw, 4.5rem); /* ~44–72 home Latin */
  --text-d2: clamp(2.25rem, 4.2vw, 3.75rem); /* ~36–60 page hero */
  --text-d3: clamp(1.875rem, 3.2vw, 2.75rem); /* ~30–44 mid display */
  /* Section titles */
  --text-s1: clamp(1.75rem, 2.7vw, 2.375rem); /* ~28–38 */
  --text-s2: clamp(1.3125rem, 1.8vw, 1.625rem); /* ~21–26 */
  --text-s3: 1.25rem; /* 20 — always above body */
  /* Body headings (prose / CMS) — same ladder as S */
  --text-h1: var(--text-s1);
  --text-h2: var(--text-s2);
  --text-h3: var(--text-s3);
  /* Body — never ≥ S3/H3 (headline / heading floor) */
  --text-body-lg: 1.1875rem; /* 19 lead < S3 20 */
  --text-body: 1.125rem; /* 18 */
  --text-body-sm: 1rem; /* 16 */
  /* UI */
  --text-label: 0.9375rem; /* 15 overline */
  --text-button: 1rem; /* 16 */
  --text-nav: 1.125rem; /* 18 */
  --text-caption: 0.875rem; /* 14 */

  /* Legacy aliases (do not invent new sizes here) */
  --text-hero: var(--text-d1);
  --text-display: var(--text-d2);
  --text-title: var(--text-s1);
  --text-subtitle: var(--text-s2);
  --text-heading-sm: var(--text-s3);
  --text-heading-xs: 1.125rem; /* H4 ≈ body + semibold */
  --text-heading-2xs: 1rem; /* H5 = body-sm */
  --text-label-lg: 1.0625rem;
  --text-label-md: 1rem;
  --text-label-xs: 0.8125rem;
  --text-nav-title: var(--text-s2);
  --text-nav-title-sm: var(--text-s3);
  --text-nav-sm: 0.9375rem;

  --icon-social: 24px;
  --icon-chrome: 1.3rem;
  --icon-chrome-solid: 1.2rem;
  --icon-control: 18px;

  /* ——— Leading (Apple HIG + Toss-style KR product; Hangul-aware) ———
     Display/Headline: tight optical stacks (Apple Large Title → Title 3)
     Body: open reading on dark (≥ WCAG 1.5; portfolio Hangul)
     UI: compact single-line chrome (Toss Label / Apple Caption) */
  --leading-d1: 1.05;
  --leading-d2: 1.18;
  --leading-d3: 1.22;
  --leading-s1: 1.25;
  --leading-s2: 1.3;
  --leading-s3: 1.35;
  --leading-h1: var(--leading-s1);
  --leading-h2: var(--leading-s2);
  --leading-h3: var(--leading-s3);
  --leading-h4: 1.4;
  --leading-h5: 1.4;
  --leading-lead: 1.6;
  --leading-body: 1.7;
  --leading-body-sm: 1.5;
  --leading-quote: 1.6;
  --leading-ui: 1.25;
  --leading-caption: 1.4;
  /* Legacy */
  --leading-hero: var(--leading-d1);
  --leading-display: var(--leading-d2);
  --leading-title: var(--leading-s1);
  --leading-subtitle: var(--leading-s2);
  --leading-heading-sm: var(--leading-s3);

  /* ——— Tracking ——— */
  --tracking-d1: -0.025em;
  --tracking-d2: -0.02em;
  --tracking-d3: -0.015em;
  --tracking-s1: -0.015em;
  --tracking-s2: -0.01em;
  --tracking-s3: 0;
  --tracking-h1: var(--tracking-s1);
  --tracking-h2: var(--tracking-s2);
  --tracking-h3: var(--tracking-s3);
  --tracking-body: 0;
  --tracking-ui: 0;
  --tracking-label: 0;
  --tracking-caption: 0;
  /* Legacy */
  --tracking-hero: var(--tracking-d1);
  --tracking-display: var(--tracking-d2);
  --tracking-title: var(--tracking-s1);
  --tracking-subtitle: var(--tracking-s2);
  --tracking-heading-sm: var(--tracking-s3);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ——— Semantic recipes (prefer these) ——— */
  --type-d1-size: var(--text-d1);
  --type-d1-leading: var(--leading-d1);
  --type-d1-tracking: var(--tracking-d1);
  --type-d1-weight: var(--fw-bold);

  --type-d2-size: var(--text-d2);
  --type-d2-leading: var(--leading-d2);
  --type-d2-tracking: var(--tracking-d2);
  --type-d2-weight: var(--fw-bold);

  --type-d3-size: var(--text-d3);
  --type-d3-leading: var(--leading-d3);
  --type-d3-tracking: var(--tracking-d3);
  --type-d3-weight: var(--fw-bold);

  --type-s1-size: var(--text-s1);
  --type-s1-leading: var(--leading-s1);
  --type-s1-tracking: var(--tracking-s1);
  --type-s1-weight: var(--fw-semibold);

  --type-s2-size: var(--text-s2);
  --type-s2-leading: var(--leading-s2);
  --type-s2-tracking: var(--tracking-s2);
  --type-s2-weight: var(--fw-semibold);

  --type-s3-size: var(--text-s3);
  --type-s3-leading: var(--leading-s3);
  --type-s3-tracking: var(--tracking-s3);
  --type-s3-weight: var(--fw-semibold);

  --type-h1-size: var(--text-h1);
  --type-h1-leading: var(--leading-h1);
  --type-h1-tracking: var(--tracking-h1);
  --type-h1-weight: var(--fw-semibold);

  --type-h2-size: var(--text-h2);
  --type-h2-leading: var(--leading-h2);
  --type-h2-tracking: var(--tracking-h2);
  --type-h2-weight: var(--fw-semibold);

  --type-h3-size: var(--text-h3);
  --type-h3-leading: var(--leading-h3);
  --type-h3-tracking: var(--tracking-h3);
  --type-h3-weight: var(--fw-semibold);

  --type-body-lg-size: var(--text-body-lg);
  --type-body-lg-leading: var(--leading-lead);
  --type-body-lg-tracking: var(--tracking-body);
  --type-body-lg-weight: var(--fw-regular);

  --type-body-size: var(--text-body);
  --type-body-leading: var(--leading-body);
  --type-body-tracking: var(--tracking-body);
  --type-body-weight: var(--fw-regular);

  --type-body-sm-size: var(--text-body-sm);
  --type-body-sm-leading: var(--leading-body-sm);
  --type-body-sm-tracking: var(--tracking-body);
  --type-body-sm-weight: var(--fw-regular);

  --type-label-size: var(--text-label);
  --type-label-leading: var(--leading-ui);
  --type-label-tracking: var(--tracking-label);
  --type-label-weight: var(--fw-semibold);

  --type-nav-size: var(--text-nav);
  --type-nav-leading: var(--leading-ui);
  --type-nav-tracking: var(--tracking-ui);
  --type-nav-weight: var(--fw-medium);

  --type-caption-size: var(--text-caption);
  --type-caption-leading: var(--leading-caption);
  --type-caption-tracking: var(--tracking-caption);
  --type-caption-weight: var(--fw-medium);

  /* Legacy semantic aliases → new scale */
  --type-hero-size: var(--type-d1-size);
  --type-hero-leading: var(--type-d1-leading);
  --type-hero-tracking: var(--type-d1-tracking);
  --type-hero-weight: var(--type-d1-weight);

  --type-display-size: var(--type-d2-size);
  --type-display-leading: var(--type-d2-leading);
  --type-display-tracking: var(--type-d2-tracking);
  --type-display-weight: var(--type-d2-weight);

  --type-title-size: var(--type-s1-size);
  --type-title-leading: var(--type-s1-leading);
  --type-title-tracking: var(--type-s1-tracking);
  --type-title-weight: var(--type-s1-weight);

  --type-subtitle-size: var(--type-s2-size);
  --type-subtitle-leading: var(--type-s2-leading);
  --type-subtitle-tracking: var(--type-s2-tracking);
  --type-subtitle-weight: var(--type-s2-weight);

  --type-heading-sm-size: var(--type-s3-size);
  --type-heading-sm-leading: var(--type-s3-leading);
  --type-heading-sm-tracking: var(--type-s3-tracking);
  --type-heading-sm-weight: var(--type-s3-weight);

  --type-heading-xs-size: var(--text-heading-xs);
  --type-heading-xs-leading: var(--leading-h4);
  --type-heading-xs-tracking: var(--tracking-s3);
  --type-heading-xs-weight: var(--fw-semibold);

  --type-heading-2xs-size: var(--text-heading-2xs);
  --type-heading-2xs-leading: var(--leading-h5);
  --type-heading-2xs-tracking: var(--tracking-s3);
  --type-heading-2xs-weight: var(--fw-semibold);

  --type-prose-lg-size: var(--type-body-lg-size);
  --type-prose-lg-leading: var(--type-body-lg-leading);
  --type-prose-lg-tracking: var(--type-body-lg-tracking);
  --type-prose-lg-weight: var(--type-body-lg-weight);

  --type-prose-size: var(--type-body-size);
  --type-prose-leading: var(--type-body-leading);
  --type-prose-tracking: var(--type-body-tracking);
  --type-prose-weight: var(--type-body-weight);

  --type-prose-sm-size: var(--type-body-sm-size);
  --type-prose-sm-leading: var(--type-body-sm-leading);
  --type-prose-sm-tracking: var(--type-body-sm-tracking);
  --type-prose-sm-weight: var(--type-body-sm-weight);

  --type-prose-lg-bold-size: var(--type-body-lg-size);
  --type-prose-lg-bold-leading: var(--type-body-lg-leading);
  --type-prose-lg-bold-tracking: var(--type-body-lg-tracking);
  --type-prose-lg-bold-weight: var(--fw-bold);

  --type-prose-bold-size: var(--type-body-size);
  --type-prose-bold-leading: var(--type-body-leading);
  --type-prose-bold-tracking: var(--type-body-tracking);
  --type-prose-bold-weight: var(--fw-bold);

  --type-prose-sm-bold-size: var(--type-body-sm-size);
  --type-prose-sm-bold-leading: var(--type-body-sm-leading);
  --type-prose-sm-bold-tracking: var(--type-body-sm-tracking);
  --type-prose-sm-bold-weight: var(--fw-bold);

  --type-caption-bold-size: var(--type-caption-size);
  --type-caption-bold-leading: var(--type-caption-leading);
  --type-caption-bold-tracking: var(--type-caption-tracking);
  --type-caption-bold-weight: var(--fw-bold);

  --type-label-lg-size: var(--text-label-lg);
  --type-label-lg-leading: var(--leading-ui);
  --type-label-lg-tracking: var(--tracking-label);
  --type-label-lg-weight: var(--fw-semibold);

  --type-label-md-size: var(--text-label-md);
  --type-label-md-leading: var(--leading-ui);
  --type-label-md-tracking: var(--tracking-label);
  --type-label-md-weight: var(--fw-semibold);

  --type-label-xs-size: var(--text-label-xs);
  --type-label-xs-leading: var(--leading-ui);
  --type-label-xs-tracking: var(--tracking-label);
  --type-label-xs-weight: var(--fw-medium);

  --type-nav-title-size: var(--text-nav-title);
  --type-nav-title-leading: var(--leading-s2);
  --type-nav-title-tracking: var(--tracking-s2);
  --type-nav-title-weight: var(--fw-bold);

  --type-nav-title-sm-size: var(--text-nav-title-sm);
  --type-nav-title-sm-leading: var(--leading-s3);
  --type-nav-title-sm-tracking: var(--tracking-s3);
  --type-nav-title-sm-weight: var(--fw-bold);

  --type-nav-bold-size: var(--type-nav-size);
  --type-nav-bold-leading: var(--type-nav-leading);
  --type-nav-bold-tracking: var(--type-nav-tracking);
  --type-nav-bold-weight: var(--fw-bold);

  --type-nav-sm-size: var(--text-nav-sm);
  --type-nav-sm-leading: var(--leading-ui);
  --type-nav-sm-tracking: var(--tracking-ui);
  --type-nav-sm-weight: var(--fw-medium);

  --type-nav-sm-bold-size: var(--text-nav-sm);
  --type-nav-sm-bold-leading: var(--leading-ui);
  --type-nav-sm-bold-tracking: var(--tracking-ui);
  --type-nav-sm-bold-weight: var(--fw-bold);

  /* Industry names (Material / Carbon / Apple / Seed) — aliases onto D/S/H/Body */
  --type-display-lg-size: var(--type-d1-size);
  --type-display-lg-leading: var(--type-d1-leading);
  --type-display-lg-tracking: var(--type-d1-tracking);
  --type-display-lg-weight: var(--type-d1-weight);

  --type-display-md-size: var(--type-d2-size);
  --type-display-md-leading: var(--type-d2-leading);
  --type-display-md-tracking: var(--type-d2-tracking);
  --type-display-md-weight: var(--type-d2-weight);

  --type-display-sm-size: var(--type-d3-size);
  --type-display-sm-leading: var(--type-d3-leading);
  --type-display-sm-tracking: var(--type-d3-tracking);
  --type-display-sm-weight: var(--type-d3-weight);

  --type-headline-lg-size: var(--type-s1-size);
  --type-headline-lg-leading: var(--type-s1-leading);
  --type-headline-lg-tracking: var(--type-s1-tracking);
  --type-headline-lg-weight: var(--type-s1-weight);

  --type-headline-md-size: var(--type-s2-size);
  --type-headline-md-leading: var(--type-s2-leading);
  --type-headline-md-tracking: var(--type-s2-tracking);
  --type-headline-md-weight: var(--type-s2-weight);

  --type-headline-sm-size: var(--type-s3-size);
  --type-headline-sm-leading: var(--type-s3-leading);
  --type-headline-sm-tracking: var(--type-s3-tracking);
  --type-headline-sm-weight: var(--type-s3-weight);

  --type-title-lg-size: var(--type-h1-size);
  --type-title-lg-leading: var(--type-h1-leading);
  --type-title-lg-tracking: var(--type-h1-tracking);
  --type-title-lg-weight: var(--type-h1-weight);

  --type-title-md-size: var(--type-h2-size);
  --type-title-md-leading: var(--type-h2-leading);
  --type-title-md-tracking: var(--type-h2-tracking);
  --type-title-md-weight: var(--type-h2-weight);

  --type-title-sm-size: var(--type-h3-size);
  --type-title-sm-leading: var(--type-h3-leading);
  --type-title-sm-tracking: var(--type-h3-tracking);
  --type-title-sm-weight: var(--type-h3-weight);

  --type-h4-size: var(--text-heading-xs);
  --type-h4-leading: var(--leading-h4);
  --type-h4-tracking: var(--tracking-s3);
  --type-h4-weight: var(--fw-semibold);

  --type-h5-size: var(--text-heading-2xs);
  --type-h5-leading: var(--leading-h5);
  --type-h5-tracking: var(--tracking-s3);
  --type-h5-weight: var(--fw-semibold);

  --type-lead-size: var(--type-body-lg-size);
  --type-lead-leading: var(--type-body-lg-leading);
  --type-lead-tracking: var(--type-body-lg-tracking);
  --type-lead-weight: var(--type-body-lg-weight);

  --type-body-strong-size: var(--type-body-size);
  --type-body-strong-leading: var(--type-body-leading);
  --type-body-strong-tracking: var(--type-body-tracking);
  --type-body-strong-weight: var(--fw-bold);

  --type-overline-size: var(--type-label-size);
  --type-overline-leading: var(--type-label-leading);
  --type-overline-tracking: var(--type-label-tracking);
  --type-overline-weight: var(--type-label-weight);

  --type-button-size: var(--text-button);
  --type-button-leading: 1;
  --type-button-tracking: var(--tracking-label);
  --type-button-weight: var(--fw-bold);

  --type-quote-size: var(--type-body-lg-size);
  --type-quote-leading: var(--leading-quote);
  --type-quote-tracking: var(--tracking-body);
  --type-quote-weight: var(--fw-regular);

  --type-helper-size: var(--type-caption-size);
  --type-helper-leading: var(--type-caption-leading);
  --type-helper-tracking: var(--type-caption-tracking);
  --type-helper-weight: var(--type-caption-weight);

  --prose-gap: 1rem;
  --prose-measure: 65ch;
  /* Body line-box half-leading (air above / below glyphs) — tables use these */
  --prose-lead-before: calc(var(--type-body-size) * (var(--type-body-leading) - 1) / 2);
  --prose-lead-after: calc(var(--type-body-size) * (var(--type-body-leading) - 1) / 2);
  /* Prose glow — pointer brightens text glyphs only (see prose-glow.css / js) */
  --prose-glow-radius: 10rem;
  --prose-glow-ink: var(--color-heading);
  --prose-glow-core: 22%;
  --prose-glow-mid: 48%;
  --prose-glow-edge: 72%;
  --prose-glow-fade: 0.22s ease;
  --title-stack-gap: 14px;
  --section-head-gap: 40px;

  --color-heading: #ffffff;
  --color-body: var(--ink-muted);
  --color-body-soft: rgba(255, 255, 255, 0.72);
  --color-label: var(--primary);
  --color-meta: var(--ink-subtle);

  --btn-h: 56px;
  --btn-radius: 9999px;
  --btn-font: var(--type-button-size);
  --btn-weight: 700;
  --btn-pad-x: 28px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  /* Header full ↔ glass: shared duration (opacity glass fades; width/height sync) */
  --header-morph: 0.9s;
  --motion-reveal: 0.95s;
  --motion-swap: 0.55s;
  --motion-ui: 0.35s;

  --modal-pad: 32px;
}

@media (max-width: 767px) {
  :root {
    /* Display */
    --text-d1: clamp(2.375rem, 9vw, 3rem);
    --text-d2: clamp(2rem, 7vw, 2.375rem);
    --text-d3: clamp(1.75rem, 6.5vw, 2.125rem);
    /* Section */
    --text-s1: clamp(1.625rem, 5.5vw, 1.875rem);
    --text-s2: 1.25rem;
    --text-s3: 1.1875rem; /* 19 > body 18 */
    /* Body — Lead/Body/Quote always < S3 */
    --text-body-lg: 1.125rem; /* 18 < S3 19 */
    --text-body: 1.125rem; /* 18 floor */
    --text-body-sm: 1rem; /* 16 */
    /* UI */
    --text-label: 0.875rem;
    --text-button: 0.9375rem; /* 15 */
    --text-nav: 1.125rem; /* 18 */
    --text-caption: 0.875rem;
    /* Legacy extras */
    --text-heading-xs: 1.125rem;
    --text-heading-2xs: 1rem;
    --text-label-lg: 1rem;
    --text-label-md: 0.9375rem;
    --text-label-xs: 0.8125rem;
    --text-nav-sm: 0.9375rem;
    --modal-pad: 24px;
  }
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  /* Do NOT set overflow-x on html/body — it breaks position:sticky in iOS Safari */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "ROND" 0;
  color: var(--ink);
  background: var(--bg);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-leading);
  letter-spacing: var(--type-prose-tracking);
  font-weight: var(--type-prose-weight);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-moz-selection {
  background: var(--primary);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
}

/* Mobile: roomier horizontal margins */
@media (max-width: 860px) {
  :root {
    --gutter: clamp(28px, 7vw, 36px);
  }
}

/* ===== base/type-roles.css ===== */
/* Type roles — hierarchy helpers. See TYPEGUIDE.md */

.type-d1,
.type-display-lg,
.type-hero {
  font-size: var(--type-d1-size);
  line-height: var(--type-d1-leading);
  letter-spacing: var(--type-d1-tracking);
  font-weight: var(--type-d1-weight);
  color: var(--color-heading);
}

.type-d2,
.type-display-md,
.type-display {
  font-size: var(--type-d2-size);
  line-height: var(--type-d2-leading);
  letter-spacing: var(--type-d2-tracking);
  font-weight: var(--type-d2-weight);
  color: var(--color-heading);
}

.type-d3,
.type-display-sm {
  font-size: var(--type-d3-size);
  line-height: var(--type-d3-leading);
  letter-spacing: var(--type-d3-tracking);
  font-weight: var(--type-d3-weight);
  color: var(--color-heading);
}

.type-s1,
.type-headline-lg,
.type-title {
  font-size: var(--type-s1-size);
  line-height: var(--type-s1-leading);
  letter-spacing: var(--type-s1-tracking);
  font-weight: var(--type-s1-weight);
  color: var(--color-heading);
}

.type-s2,
.type-headline-md,
.type-subtitle {
  font-size: var(--type-s2-size);
  line-height: var(--type-s2-leading);
  letter-spacing: var(--type-s2-tracking);
  font-weight: var(--type-s2-weight);
  color: var(--color-heading);
}

.type-s3,
.type-headline-sm,
.type-heading-sm {
  font-size: var(--type-s3-size);
  line-height: var(--type-s3-leading);
  letter-spacing: var(--type-s3-tracking);
  font-weight: var(--type-s3-weight);
  color: var(--color-heading);
}

.type-h1,
.type-title-lg {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
  font-weight: var(--type-h1-weight);
  color: var(--color-heading);
}

.type-h2,
.type-title-md {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-leading);
  letter-spacing: var(--type-h2-tracking);
  font-weight: var(--type-h2-weight);
  color: var(--color-heading);
}

.type-h3,
.type-title-sm {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
  font-weight: var(--type-h3-weight);
  color: var(--color-heading);
}

.type-h4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-leading);
  letter-spacing: var(--type-h4-tracking);
  font-weight: var(--type-h4-weight);
  color: var(--color-heading);
}

.type-h5 {
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-leading);
  letter-spacing: var(--type-h5-tracking);
  font-weight: var(--type-h5-weight);
  color: var(--color-heading);
}

.type-lead,
.type-body-lg,
.type-prose-lg {
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-leading);
  letter-spacing: var(--type-lead-tracking);
  font-weight: var(--type-lead-weight);
  color: var(--color-body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.type-body,
.type-prose {
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
  color: var(--color-body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.type-body-strong {
  font-size: var(--type-body-strong-size);
  line-height: var(--type-body-strong-leading);
  letter-spacing: var(--type-body-strong-tracking);
  font-weight: var(--type-body-strong-weight);
  color: var(--color-body-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.type-body-sm,
.type-prose-sm {
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-leading);
  letter-spacing: var(--type-body-sm-tracking);
  font-weight: var(--type-body-sm-weight);
  color: var(--color-body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.type-quote {
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-leading);
  letter-spacing: var(--type-quote-tracking);
  font-weight: var(--type-quote-weight);
  color: var(--color-body-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.type-overline,
.type-label {
  font-size: var(--type-overline-size);
  line-height: var(--type-overline-leading);
  letter-spacing: var(--type-overline-tracking);
  font-weight: var(--type-overline-weight);
  color: var(--color-label);
}

.type-button {
  font-size: var(--type-button-size);
  line-height: var(--type-button-leading);
  letter-spacing: var(--type-button-tracking);
  font-weight: var(--type-button-weight);
}

.type-nav {
  font-size: var(--type-nav-size);
  line-height: var(--type-nav-leading);
  letter-spacing: var(--type-nav-tracking);
  font-weight: var(--type-nav-weight);
}

.type-caption,
.type-helper {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
  font-weight: var(--type-caption-weight);
  color: var(--color-meta);
}

/* ===== layout/grid.css ===== */
/* ---------- Grid ---------- */
.container {
  width: var(--shell-track);
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

/* Subpage shade band utilities — adjacent sections must not share a step */
.section--deep {
  background: var(--deep-black);
}

.section--pure-black {
  background: var(--pure-black);
}

.section--base {
  background: var(--deep-black);
}

.section--raised {
  background: var(--deep-black);
}

.profile-list {
  max-width: 560px;
  border-top: 1px solid var(--hairline);
}

.profile-list__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 8px 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.profile-list dt {
  font-size: var(--type-caption-size);
  font-weight: var(--fw-medium);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-meta);
}

.profile-list dd {
  margin: 0;
  font-size: var(--type-nav-size);
  font-weight: var(--type-nav-weight);
  line-height: var(--type-nav-leading);
  letter-spacing: var(--type-nav-tracking);
  color: var(--ink);
}

.profile-list a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.profile-list a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

@media (max-width: 600px) {
  .profile-list__row {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 10px 16px;
  }
}

.section__label {
  font-size: var(--type-overline-size);
  font-weight: var(--type-overline-weight);
  line-height: var(--type-overline-leading);
  letter-spacing: var(--type-overline-tracking);
  color: var(--color-label);
  margin-bottom: var(--title-stack-gap);
}

.section__title {
  font-size: var(--type-s1-size);
  font-weight: var(--type-s1-weight);
  letter-spacing: var(--type-s1-tracking);
  line-height: var(--type-s1-leading);
  color: var(--color-heading);
  margin-bottom: var(--title-stack-gap);
}

.section__desc {
  max-width: var(--prose-measure);
  color: var(--color-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
}

.section__desc--wide {
  max-width: none;
}

/* ===== layout/header.css ===== */
/* ---------- Header (full-bleed → glass morph) ---------- */
.header {
  --header-t: 0;
  position: fixed;
  top: 12px;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  color: var(--color-heading);
  transition: top var(--header-morph) var(--ease-soft);
}

.header.is-solid {
  top: max(var(--header-offset), env(safe-area-inset-top, 0px));
  color: var(--color-heading);
}

/* Width track shared by bar + mobile menu (keeps edges aligned; glass stays on siblings) */
.header__shell {
  pointer-events: none;
  position: relative;
  z-index: 2;
  width: calc(100% - (var(--header-pad-x) * 2));
  max-width: none;
  margin-inline: auto;
  transition:
    width var(--header-morph) var(--ease-soft),
    max-width var(--header-morph) var(--ease-soft),
    margin var(--header-morph) var(--ease-soft);
}

/* Resize must track viewport instantly — width ease is for scroll/morph only */
html.is-resizing .header,
html.is-resizing .header__shell,
html.is-resizing .header__inner,
html.is-resizing .header__inner::before,
html.is-resizing .logo__icon,
html.is-resizing .nav__cta,
html.is-resizing .header__search-icon {
  transition: none !important;
}

.header.is-solid .header__shell {
  width: var(--shell-track);
  max-width: var(--shell-track);
}

.header__inner {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 68px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Always 20px — glass/width morph must never start as a hard rectangle.
     No border (avoids empty rounded hairline on dark hero). */
  border-radius: 20px;
  overflow: hidden;
  /* Surface lives on ::before so glass can opacity-fade (backdrop-filter
     does not interpolate when toggled on the bar itself). */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0 solid transparent;
  box-shadow: none;
  transition:
    height var(--header-morph) var(--ease-soft),
    padding var(--header-morph) var(--ease-soft);
}

.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--header-morph) var(--ease-soft);
}

.header.is-solid .header__inner {
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  padding: 0 14px 0 22px;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}

.header.is-solid .header__inner::before {
  opacity: 1;
}

/*
  Home: scroll-linked morph via --header-t (0 expand → 1 glass).
  Tracks scroll so expand↔glass stays continuous instead of a class snap.
*/
body:has(.hero) .header__shell,
body:has(.hero) .header.is-solid .header__shell {
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--shell-track) * var(--header-t)
  );
  max-width: none;
  transition: none;
}

body:has(.hero) .header__inner,
body:has(.hero) .header.is-solid .header__inner {
  height: calc(68px + (var(--header-bar-h) - 68px) * var(--header-t));
  padding: 0 calc(14px * var(--header-t)) 0 calc(22px * var(--header-t));
  transition: none;
}

body:has(.hero) .header__inner::before,
body:has(.hero) .header.is-solid .header__inner::before {
  opacity: var(--header-t);
  transition: none;
}

body:has(.hero) .logo__icon,
body:has(.hero) .header.is-solid .logo__icon {
  width: calc(
    var(--icon-chrome) + (var(--icon-chrome-solid) - var(--icon-chrome)) *
      var(--header-t)
  );
  height: calc(
    var(--icon-chrome) + (var(--icon-chrome-solid) - var(--icon-chrome)) *
      var(--header-t)
  );
  transition: none;
}

body:has(.hero) .header__search-icon,
body:has(.hero) .header.is-solid .header__search-icon {
  width: calc(
    var(--icon-chrome) + (var(--icon-chrome-solid) - var(--icon-chrome)) *
      var(--header-t)
  );
  height: calc(
    var(--icon-chrome) + (var(--icon-chrome-solid) - var(--icon-chrome)) *
      var(--header-t)
  );
  transition: none;
}

body:has(.hero) .nav__cta,
body:has(.hero) .header.is-solid .nav__cta {
  height: calc(40px - 4px * var(--header-t));
  padding: 0 calc(18px - 2px * var(--header-t)) !important;
  transition:
    background 0.25s var(--ease) !important,
    color 0.25s var(--ease) !important;
}

/* Cross-page home expand: briefly re-enable CSS ease after will-expand clears */
body:has(.hero) .header.is-page-morph .header__shell,
body:has(.hero) .header.is-page-morph .header__inner,
body:has(.hero) .header.is-page-morph .header__inner::before,
body:has(.hero) .header.is-page-morph .logo__icon,
body:has(.hero) .header.is-page-morph .header__search-icon,
body:has(.hero) .header.is-page-morph .nav__cta {
  transition:
    width var(--header-morph) var(--ease-soft),
    max-width var(--header-morph) var(--ease-soft),
    height var(--header-morph) var(--ease-soft),
    padding var(--header-morph) var(--ease-soft),
    opacity var(--header-morph) var(--ease-soft) !important;
}

.header__inner > * {
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  /* Match search/menu hit box so icon centers share one horizontal axis */
  width: 40px;
  height: 40px;
  margin-left: -8px;
  z-index: 2;
  color: inherit;
  line-height: 0;
  transition: color 0.3s var(--ease);
}

.logo__icon {
  display: block;
  width: var(--icon-chrome);
  height: var(--icon-chrome);
  fill: currentColor;
  transition:
    width var(--header-morph) var(--ease-soft),
    height var(--header-morph) var(--ease-soft);
}

.logo:hover {
  color: var(--primary);
}

.header.is-solid .logo {
  color: var(--color-heading);
}

.header.is-solid .logo:hover {
  color: var(--primary);
}

.header.is-solid .logo__icon {
  width: var(--icon-chrome-solid);
  height: var(--icon-chrome-solid);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  font-size: var(--type-nav-size);
  font-weight: var(--type-nav-weight);
  line-height: var(--type-nav-leading);
  letter-spacing: var(--type-nav-tracking);
  color: inherit;
  opacity: 0.78;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a:hover {
  color: var(--primary);
  background: transparent;
}

.header.is-solid .nav a {
  color: var(--color-heading);
}

.header.is-solid .nav a:hover {
  color: var(--primary);
  background: transparent;
}

.nav a.is-active {
  color: var(--primary);
  opacity: 1;
}

.nav__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  padding: 0 18px !important;
  margin-left: 10px;
  background: #fff !important;
  color: #111 !important;
  opacity: 1 !important;
  font-size: var(--type-nav-size) !important;
  font-weight: var(--type-nav-weight) !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--btn-radius) !important;
  transition:
    background 0.25s !important,
    color 0.25s !important,
    height var(--header-morph) var(--ease-soft) !important,
    padding var(--header-morph) var(--ease-soft) !important;
}

.header.is-solid .nav__cta {
  height: 36px;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111 !important;
}

.header.is-solid .nav__cta:hover,
.nav__cta:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  z-index: 2;
  color: inherit;
  flex-shrink: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
}

.header__search {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  z-index: 2;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.header__search:hover {
  color: var(--primary);
}

.header__search:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.header__search-icon {
  display: block;
  width: var(--icon-chrome);
  height: var(--icon-chrome);
  fill: currentColor;
}

.header.is-solid .header__search-icon {
  width: var(--icon-chrome-solid);
  height: var(--icon-chrome-solid);
}

.menu-btn__icon {
  display: block;
  width: var(--icon-chrome);
  height: var(--icon-chrome);
  fill: currentColor;
}

.menu-btn__icon--close {
  display: none;
}

.header.is-open .menu-btn__icon--bars {
  display: none;
}

.header.is-open .menu-btn__icon--close {
  display: block;
}

.nav-mobile {
  display: none;
  pointer-events: auto;
  /* Sibling of .header__inner under .header__shell — same width, header glass blur works */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Equal inset; horizontal matches solid header__inner left pad (18px) */
  padding: 16px 18px;
  flex-direction: column;
  gap: 0;
  z-index: 1;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid transparent;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  color: var(--color-heading);
  box-sizing: border-box;
}

/* Open: one glass panel unfolding from the bar (not two separate cards) */
.header.is-open.is-solid .header__inner {
  border-radius: 20px 20px 0 0;
  box-shadow: none;
}

.header.is-open.is-solid .header__inner::before {
  box-shadow: none;
}

.header.is-open .nav-mobile {
  display: flex;
  top: 100%;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.nav-mobile a {
  font-size: var(--type-nav-size);
  font-weight: var(--type-nav-weight);
  line-height: var(--type-nav-leading);
  letter-spacing: var(--type-nav-tracking);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
}

.nav-mobile a.is-active {
  color: var(--primary);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/*
  Cross-page morph:
  - header-will-morph: home expanded → subpage glass (first paint expanded)
  - header-will-expand: subpage glass → home expanded (first paint glass)
*/
html.header-will-morph .header.is-solid {
  top: 12px;
  top: max(12px, env(safe-area-inset-top, 0px));
}

html.header-will-morph .header.is-solid .header__shell {
  width: calc(100% - (var(--header-pad-x) * 2));
  max-width: none;
}

html.header-will-morph .header.is-solid .header__inner {
  height: 68px;
  padding: 0;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-color: transparent;
}

html.header-will-morph .header.is-solid .header__inner::before {
  opacity: 0;
}

html.header-will-morph .header.is-solid .logo {
  font-size: var(--type-nav-size);
}

html.header-will-morph .header.is-solid .nav__cta {
  height: 40px;
  padding: 0 18px !important;
  background: #fff !important;
}

html.header-will-expand .header {
  top: max(var(--header-offset), env(safe-area-inset-top, 0px));
  color: var(--color-heading);
}

html.header-will-expand .header__shell {
  width: var(--shell-track);
  max-width: var(--shell-track);
}

html.header-will-expand .header__inner {
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  padding: 0 14px 0 22px;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}

html.header-will-expand .header__inner::before {
  opacity: 1;
}

html.header-will-expand .logo {
  color: var(--color-heading);
}

html.header-will-expand .logo__icon {
  width: var(--icon-chrome-solid);
  height: var(--icon-chrome-solid);
}

html.header-will-expand .nav__cta {
  height: 36px;
  padding: 0 16px !important;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header__shell,
  .header__inner,
  .header__inner::before,
  .logo,
  .logo__icon,
  .nav__cta {
    transition: none;
  }

  html.header-will-morph .header.is-solid,
  html.header-will-morph .header.is-solid .header__shell,
  html.header-will-morph .header.is-solid .header__inner,
  html.header-will-morph .header.is-solid .header__inner::before,
  html.header-will-morph .header.is-solid .logo,
  html.header-will-morph .header.is-solid .nav__cta,
  html.header-will-expand .header,
  html.header-will-expand .header__shell,
  html.header-will-expand .header__inner,
  html.header-will-expand .header__inner::before,
  html.header-will-expand .logo,
  html.header-will-expand .nav__cta {
    /* Instant — no morph flash when motion is reduced */
    transition: none;
  }
}

/* ===== components/buttons.css ===== */
/* ---------- Buttons (Toss pill shape) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--btn-h);
  padding: 1px var(--btn-pad-x) 0;
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  letter-spacing: var(--type-button-tracking);
  line-height: var(--type-button-leading);
  text-align: center;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  border: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav a:focus-visible,
.work-card:focus-visible,
.work-track__btn:focus-visible,
.album-item:focus-visible,
.video-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn--accent {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--accent:hover {
  background: var(--primary-hover);
}

/* ===== home/hero.css ===== */
/* ---------- Hero ---------- */
.hero {
  --hero-bg: var(--bg-dark);
  --hero-grid-step: 88px;
  --hero-grid-radius: 260px;
  --hero-grid-radius-min: 260px;
  --hero-grid-radius-max: 260px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--hero-bg);
}

/* + mark grid (canvas paints marks only; CSS bg is the base) */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  background: transparent;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: var(--shell-track);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  text-align: center;
  gap: clamp(14px, 0.38em, 32px);
  font-size: var(--type-d1-size);
  font-weight: var(--type-d1-weight);
  letter-spacing: var(--type-d1-tracking);
  color: var(--color-heading);
}

.hero__row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: var(--type-d1-leading);
}

.hero__row--roles {
  color: var(--primary);
  line-height: 0;
}

.hero__roles {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  width: 100%;
  text-align: center;
  color: var(--primary);
  height: 1.25em;
  overflow: hidden;
  transition: height 0.32s var(--ease);
  line-height: var(--type-d1-leading);
}

.hero__role {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0.14em, 0);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0s linear 0.4s;
  white-space: nowrap;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero__role.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0s linear 0s;
  pointer-events: auto;
  z-index: 1;
}

.hero__scroll {
  position: fixed;
  left: 50%;
  bottom: max(28px, calc(12px + env(safe-area-inset-bottom, 0px)));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transform: translate3d(-50%, 0, 0);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    opacity 0.35s var(--ease);
  animation: hero-scroll-bob 1.8s var(--ease-soft) infinite;
}

.hero__scroll:hover:not(:disabled) {
  background: rgba(232, 80, 2, 0.12);
}

.hero__scroll:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.hero__scroll:disabled,
.hero__scroll.is-done {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  animation: none;
  border-color: rgba(232, 80, 2, 0.4);
  color: rgba(232, 80, 2, 0.55);
}

.hero__scroll-icon {
  display: block;
  width: var(--icon-control);
  height: var(--icon-control);
}

@keyframes hero-scroll-bob {
  0%,
  100% {
    transform: translate3d(-50%, 0, 0);
  }
  50% {
    transform: translate3d(-50%, 6px, 0);
  }
}

@media (max-width: 767px) {
  .hero {
    --hero-grid-step: 72px;
    min-height: auto;
    padding: calc(var(--header-h) + 48px) 0 64px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__roles {
    height: 2.5em;
  }

  .hero__role {
    white-space: normal;
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__roles {
    transition: none;
  }

  .hero__role {
    transition: none;
    will-change: auto;
  }

  .hero__scroll {
    animation: none;
  }
}

/* ===== home/story.css ===== */
/* ---------- Story pin (vertical stack + mid swap) ---------- */
.story-pin {
  position: relative;
  height: 952vh;
  background: var(--bg-dark);
  color: var(--color-heading);
}

.story-pin__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.story-pin__text {
  --story-gap: 0.12em;
  --left-opacity: 0;
  --right-opacity: 0;
  --swap-w: 0px;
  --swap-h: 0px;
  --swap-opacity: 0;
  --scene-opacity: 1;
  box-sizing: border-box;
  margin: 0;
  width: min(100%, var(--container));
  max-width: min(100%, var(--container));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--story-gap);
  text-align: center;
  font-size: var(--type-display-size);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  line-height: var(--type-display-leading);
  opacity: var(--scene-opacity);
  overflow: visible;
}

.story-pin__side {
  flex: 0 0 auto;
  color: var(--color-heading);
  white-space: nowrap;
  text-align: center;
}

.story-pin__side[data-story-side="left"] {
  opacity: var(--left-opacity);
}

.story-pin__side[data-story-side="right"] {
  opacity: var(--right-opacity);
}

/* Size driven by --swap-w / --swap-h (JS). Absolute mids — longest word never clips shorter ones. */
.story-pin__swap {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--swap-w);
  min-width: var(--swap-w);
  height: var(--swap-h);
  min-height: var(--swap-h);
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  opacity: var(--swap-opacity);
}

.story-pin__mid {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  /* Opacity-only swap — no Y translate (looked like shake on fast scroll). */
  transform: translateZ(0);
  transition: opacity var(--motion-swap) var(--ease);
  pointer-events: none;
  backface-visibility: hidden;
}

.story-pin__mid.is-on {
  opacity: 1;
}

@media (max-width: 767px) {
  /* Mobile: flatten pin runway — readable stack, no scroll theater */
  .story-pin {
    height: auto;
  }

  .story-pin__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 72px var(--gutter);
  }

  .story-pin__text {
    --story-gap: 0.20em;
    --left-opacity: 1;
    --right-opacity: 1;
    --swap-w: auto;
    --swap-h: auto;
    --swap-opacity: 1;
    --scene-opacity: 1;
    gap: 0.20em;
  }

  .story-pin__swap {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-width: 100%;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.20em;
  }

  .story-pin__mid {
    position: static;
    inset: auto;
    display: block;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-pin {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .story-pin__sticky {
    position: relative;
  }

  .story-pin__text {
    --story-gap: 0.20em;
    --left-opacity: 1;
    --right-opacity: 1;
    --swap-w: 8.5em;
    --swap-h: 1.22em;
    --swap-opacity: 1;
    --scene-opacity: 1;
  }

  .story-pin__mid {
    transition: none;
  }

  .story-pin__mid:not(.is-on) {
    display: none;
  }

  .story-pin__mid.is-on {
    opacity: 1;
    transform: none;
  }
}

/* ===== home/vision.css ===== */
/* ---------- Vision cards - dark glass + bottom orange aurora ---------- */
.vision-pin {
  position: relative;
  height: 616vh;
  color: var(--color-heading);
  background: var(--bg-dark);
}

.vision-pin__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow: visible;
}

.vision-cards {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
  overflow: visible;
}

.vision-card {
  --vision-hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min(62vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  /* layout only — paint containment flattens 3D orb transforms */
  contain: layout;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(12, 12, 16, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    visibility 0s linear 0.7s;
}

/* Bottom aurora blobs (brand orange) — layered soft bloom, wide falloff */
.vision-card::before {
  content: "";
  position: absolute;
  left: -38%;
  right: -38%;
  bottom: -46%;
  height: 98%;
  border-radius: 50%;
  background:
    /* Wide base wash — carries light farther up the card */
    radial-gradient(
      ellipse 95% 78% at 50% 82%,
      rgba(232, 80, 2, 0.5) 0%,
      rgba(232, 80, 2, 0.26) 28%,
      rgba(232, 80, 2, 0.1) 52%,
      rgba(232, 80, 2, 0.03) 70%,
      transparent 86%
    ),
    /* Soft left ember */
    radial-gradient(
      circle at 28% 64%,
      rgba(255, 140, 64, 0.4) 0%,
      rgba(232, 80, 2, 0.16) 38%,
      rgba(232, 80, 2, 0.04) 62%,
      transparent 78%
    ),
    /* Soft right ember */
    radial-gradient(
      circle at 74% 70%,
      rgba(232, 80, 2, 0.36) 0%,
      rgba(232, 80, 2, 0.14) 42%,
      rgba(232, 80, 2, 0.03) 66%,
      transparent 80%
    );
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

/* Soft glass wash (no grain/dot texture) */
.vision-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.08) 72%,
    rgba(0, 0, 0, 0.14) 100%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.vision-card.is-in {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    box-shadow 0.18s var(--vision-hover-ease),
    visibility 0s linear 0s;
}

/* Fine pointer: deepen shadow only — no lift (home-motion-lock) */
@media (hover: hover) and (pointer: fine) {
  .vision-card.is-in:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 16px 40px rgba(0, 0, 0, 0.42);
  }
}

.vision-card__visual {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 180px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.vision-orb {
  position: relative;
  width: min(78%, 228px);
  aspect-ratio: 1;
}

.vision-orb--clarity {
  /* Nudge mass toward mid-card to match depth/lean optical center */
  transform: translateY(10%);
}

.vision-orb__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.22);
  will-change: left, top, width, height, opacity;
  pointer-events: none;
}

.vision-orb--clarity .vision-orb__dot {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.16);
}

.vision-orb__dot--soft {
  /* opacity driven in JS; keep slightly softer fill */
  background: rgba(255, 255, 255, 0.75);
}

.vision-orb--depth .vision-orb__dot {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.vision-orb--lean .vision-orb__dot {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
}

.vision-orb__dot--core {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 0 22px rgba(232, 80, 2, 0.35);
}

.vision-orb__dot--clarity-core {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.vision-orb__dot--lean-core {
  animation: vision-orb-pulse 2.4s ease-in-out infinite;
}

.vision-card:not(.is-in) .vision-orb__dot--lean-core {
  animation-play-state: paused;
}

@keyframes vision-orb-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}

.vision-card__copy {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
}

.vision-card__title {
  margin: 0 0 12px;
  font-size: var(--type-subtitle-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-subtitle-leading);
  color: rgba(255, 255, 255, 0.94);
}

.vision-card__desc {
  margin: 0;
  max-width: 17.5rem;
  font-size: var(--type-prose-sm-size);
  font-weight: 400;
  line-height: var(--type-prose-sm-leading);
  letter-spacing: var(--type-display-tracking);
  word-break: keep-all;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  .vision-pin {
    height: auto;
  }

  .vision-pin__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding-block: 64px;
  }

  .vision-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vision-card {
    min-height: 420px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vision-pin {
    height: auto;
  }

  .vision-pin__sticky {
    position: relative;
    height: auto;
    padding-block: 72px;
  }

  .vision-card {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .vision-orb__dot--lean-core {
    animation: none !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vision-card {
    background: rgba(18, 16, 14, 0.96);
  }
}

/* ===== home/fields.css ===== */
/* ---------- Fields scenes (Toss-style pinned cards) ---------- */
.prd {
  position: relative;
  /* ~4+ viewports per card — equal switch pace */
  height: 1190vh;
  background: var(--bg-dark);
  color: var(--color-heading);
}

.prd__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 8px) var(--gutter) 40px;
  overflow: hidden;
}

.prd-scenes {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  height: min(420px, 58dvh);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prd-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 20px, 0) scale(0.99);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    visibility 0s linear 0.7s;
}

.prd-scene.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 1;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    visibility 0s linear 0s;
}

.prd-card {
  --prd-glow-a: rgba(232, 80, 2, 0.18);
  --prd-glow-b: rgba(120, 70, 30, 0.14);
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  color: inherit;
  cursor: default;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 70% at 14% 90%, rgba(232, 80, 2, 0.14), transparent 58%),
    linear-gradient(160deg, #0c0c0e 0%, #141210 50%, #1a1612 100%);
  outline: none;
  /* Precise inner highlight — no hover lift */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: none;
}

.prd-card::before,
.prd-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  will-change: transform, opacity;
}

.prd-scene:not(.is-on) .prd-card::before,
.prd-scene:not(.is-on) .prd-card::after {
  animation-play-state: paused;
}

.prd-card::before {
  width: min(110%, 760px);
  aspect-ratio: 1;
  left: -28%;
  top: -18%;
  background: radial-gradient(circle, var(--prd-glow-a) 0%, transparent 72%);
  opacity: 0.65;
  animation: prd-glow-a 9s ease-in-out infinite alternate;
}

.prd-card::after {
  width: min(95%, 640px);
  aspect-ratio: 1;
  right: -22%;
  bottom: -28%;
  background: radial-gradient(circle, var(--prd-glow-b) 0%, transparent 74%);
  opacity: 0.55;
  animation: prd-glow-b 11s ease-in-out infinite alternate;
}

.prd-card:hover,
.prd-card:focus,
.prd-card:active {
  transform: none;
  filter: none;
}

.prd-card:focus-visible {
  outline: 1px solid var(--primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* Design — muted warm amber */
.prd-scene[data-tone="design"] .prd-card {
  --prd-glow-a: rgba(200, 130, 60, 0.2);
  --prd-glow-b: rgba(90, 55, 30, 0.16);
  background:
    radial-gradient(ellipse 80% 70% at 12% 92%, rgba(180, 110, 50, 0.18), transparent 58%),
    linear-gradient(155deg, #0c0b0a 0%, #151210 45%, #2a2118 100%);
}

/* Photography — looping video */
.prd-scene[data-tone="photo"] .prd-card {
  --prd-glow-a: rgba(80, 140, 190, 0);
  --prd-glow-b: rgba(30, 60, 100, 0);
  background: #0a0a0c;
}

.prd-scene[data-tone="photo"] .prd-card:not(.prd-card--media)::before,
.prd-scene[data-tone="photo"] .prd-card:not(.prd-card--media)::after {
  opacity: 0;
}

/* Film — looping video */
.prd-scene[data-tone="film"] .prd-card {
  --prd-glow-a: rgba(50, 150, 120, 0);
  --prd-glow-b: rgba(20, 70, 60, 0);
  background: #0a0a0c;
}

.prd-scene[data-tone="film"] .prd-card:not(.prd-card--media)::before,
.prd-scene[data-tone="film"] .prd-card:not(.prd-card--media)::after {
  opacity: 0;
}

/* AI Visual — looping video */
.prd-scene[data-tone="ai"] .prd-card {
  --prd-glow-a: rgba(120, 100, 190, 0);
  --prd-glow-b: rgba(60, 45, 120, 0);
  background: #0a0a0c;
}

.prd-scene[data-tone="ai"] .prd-card:not(.prd-card--media)::before,
.prd-scene[data-tone="ai"] .prd-card:not(.prd-card--media)::after {
  opacity: 0;
}

.prd-card--media {
  position: relative;
}

.prd-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: inherit;
}

.prd-card--media .prd-card__copy {
  position: relative;
  z-index: 2;
  text-shadow: none;
}

.prd-card--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: none;
  animation: none;
  border-radius: inherit;
  width: auto;
  aspect-ratio: auto;
  left: 0;
  top: 0;
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0) 78%
  );
  /* Keep rim crisp above video; card box-shadow draws the highlight */
  box-shadow: none;
}

.prd-card--media::after {
  display: none;
}

@keyframes prd-glow-a {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(28%, 18%) scale(1.28);
    opacity: 0.65;
  }
  100% {
    transform: translate(16%, -22%) scale(1.16);
    opacity: 0.55;
  }
}

@keyframes prd-glow-b {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-30%, -18%) scale(1.34);
    opacity: 0.58;
  }
  100% {
    transform: translate(-14%, 22%) scale(1.2);
    opacity: 0.48;
  }
}

.prd-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
  width: 100%;
  text-align: left;
  padding: clamp(40px, 5vw, 64px) clamp(36px, 4.5vw, 64px);
  text-shadow: none;
}

.prd-card__label,
.prd-card__title,
.prd-card__desc {
  text-shadow: none;
}

.prd-card__label {
  margin: 0;
  min-height: 1.25em;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-label);
}

.prd-card__title {
  margin: 0;
  max-width: none;
  width: 100%;
  min-height: calc(var(--type-title-leading) * 2em);
  font-size: var(--type-title-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  word-break: keep-all;
  overflow-wrap: break-word;
  color: var(--color-heading);
  text-align: left;
}

.prd-card__desc {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: var(--type-prose-sm-size);
  font-weight: var(--type-prose-sm-weight);
  line-height: var(--type-prose-sm-leading);
  letter-spacing: var(--type-prose-sm-tracking);
  word-break: keep-all;
  overflow-wrap: break-word;
  color: var(--color-body-soft);
  text-align: left;
}

@media (max-width: 767px) {
  .prd {
    height: auto;
    padding: 48px 0 64px;
  }

  .prd__sticky {
    position: relative;
    height: auto;
    padding: 0 var(--gutter);
  }

  .prd-scenes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .prd-scene {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .prd-card {
    min-height: 0;
    height: auto;
  }

  .prd-card__copy {
    padding: 28px 24px;
    gap: 12px;
  }

  .prd-card__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prd {
    height: auto;
    padding: 64px 0;
  }

  .prd__sticky {
    position: relative;
    height: auto;
  }

  .prd-scenes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
  }

  .prd-scene {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .prd-card::before,
  .prd-card::after {
    animation: none;
  }
}

/* ===== home/fields-morph.css ===== */
/* One layer: fullscreen image shrinks → becomes the Design card */
.prd-morph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  border-radius: 0;
  background: var(--deep-black);
  will-change: top, left, width, height, border-radius, opacity;
}

.prd-morph.is-active {
  visibility: visible;
  /* Soft rim — follows live border-radius from morph JS */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.prd-morph img,
.prd-morph video,
.prd-morph__media {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.prd-morph__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0) 78%
  );
  opacity: var(--morph-veil, 0);
}

.prd-morph__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(40px, 5vw, 64px) clamp(36px, 4.5vw, 64px);
  text-align: left;
  opacity: 0;
  text-shadow: none;
}

/* Measure target only on desktop — never a second visible card */
.prd-card--morph:not(.is-morph-static) {
  visibility: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

.prd-card--morph:not(.is-morph-static)::before,
.prd-card--morph:not(.is-morph-static)::after {
  display: none;
}

.prd-card--morph.is-morph-static {
  visibility: visible;
  background: #0c0c0e;
}

.prd-card--morph .prd-card__media {
  display: none;
}

.prd-card--morph.is-morph-static .prd-card__media {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.prd-card--morph.is-morph-static .prd-card__copy {
  position: relative;
  z-index: 2;
  opacity: 1;
  text-shadow: none;
}

.prd-card--morph.is-morph-static::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  aspect-ratio: auto;
  z-index: 1;
  border-radius: inherit;
  filter: none;
  animation: none;
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0) 78%
  );
}

.prd-card--morph.is-morph-static::after {
  display: none;
}

/* ===== home/career.css ===== */
/* ---------- Career ---------- */
.section--career {
  border-block: none;
}

.section--career .section__head {
  margin-bottom: var(--section-head-gap);
}

/* Home career: centered axis with alternating sides */
#career .section__head {
  text-align: center;
}

#career .section__desc {
  margin-inline: auto;
}

#career .timeline {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  border-left: none;
}

#career .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

#career .timeline__item {
  width: calc(50% - 28px);
  margin-left: calc(50% + 28px);
  padding: 0 0 64px;
}

#career .timeline__item.reveal {
  opacity: 0;
  transform: translate3d(14px, 12px, 0);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  will-change: opacity, transform;
}

#career .timeline__item--opposite.reveal {
  opacity: 0;
  transform: translate3d(-14px, 12px, 0);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  will-change: opacity, transform;
}

#career .timeline__item.reveal.is-in,
#career .timeline__item--opposite.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

#career .timeline__item .timeline__marker {
  left: -32.5px;
}

#career .timeline__item--opposite {
  margin-left: 0;
  text-align: right;
}

#career .timeline__item--opposite .timeline__marker {
  left: auto;
  right: -32.5px;
}

#career .timeline__item--opposite .timeline__meta {
  justify-content: flex-end;
}

#career .timeline__item--opposite .timeline__duty {
  margin-left: auto;
}

@media (max-width: 900px) {
  #career .timeline::before {
    left: 0;
    transform: none;
  }

  #career .timeline__item,
  #career .timeline__item--opposite {
    width: 100%;
    margin-left: 0;
    padding-left: 28px;
    text-align: left;
  }

  #career .timeline__item.reveal,
  #career .timeline__item--opposite.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  #career .timeline__item.reveal.is-in,
  #career .timeline__item--opposite.reveal.is-in {
    opacity: 1;
    transform: none;
  }

  #career .timeline__item .timeline__marker,
  #career .timeline__item--opposite .timeline__marker {
    left: -5px;
    right: auto;
    transform: none;
  }

  #career .timeline__item--opposite .timeline__meta {
    justify-content: flex-start;
  }

  #career .timeline__item--opposite .timeline__duty {
    margin-left: 0;
  }

  #career .section__head {
    text-align: left;
  }

  #career .section__desc {
    margin-inline: 0;
  }
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
  border-left: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -5px;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f3f46;
  box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline__item.is-current .timeline__marker {
  background: var(--primary);
  box-shadow:
    0 0 0 4px var(--bg-dark),
    0 0 0 7px rgba(232, 80, 2, 0.28);
}

.timeline__body {
  display: grid;
  gap: 8px;
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline__period {
  font-size: var(--type-label-size);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-meta);
  font-variant-numeric: tabular-nums;
}

.timeline__item.is-current .timeline__period {
  color: var(--color-label);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(232, 80, 2, 0.16);
  color: var(--color-label);
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  line-height: 1;
}

.timeline__org {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-subtitle-leading);
  color: var(--color-heading);
}

.timeline__role {
  margin: 0;
  font-size: var(--type-prose-sm-size);
  font-weight: 500;
  letter-spacing: var(--type-display-tracking);
  color: var(--color-label);
}

.timeline__duty {
  margin: 4px 0 0;
  max-width: 36rem;
  font-size: var(--type-prose-sm-size);
  font-weight: 400;
  line-height: var(--type-prose-sm-leading);
  color: var(--color-body);
}

@media (max-width: 600px) {
  .timeline__item {
    padding-left: 28px;
    padding-bottom: 32px;
  }
}

/* ===== home/works.css ===== */
/* ---------- Works billboard track ---------- */
#works {
  background: var(--bg-dark);
  overflow-x: visible;
  overflow-y: visible;
}

#works .section__head {
  margin-bottom: var(--section-head-gap);
  text-align: center;
}

#works .section__desc {
  margin-inline: auto;
}

.work-track {
  --work-gap: 16px;
  --work-card-w: 340px; /* JS layout() sets exact 3-up width */
  --works-auto-ms: 4200ms;
  --slider-btn-out: 76px;
  position: relative;
  width: 100%;
  margin-inline: 0;
  padding-bottom: 0;
}

#works .section__head.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  will-change: opacity, transform;
}

#works .section__head.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

#works .work-track.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.95s var(--ease) 0.08s,
    transform 0.95s var(--ease) 0.08s;
  will-change: opacity, transform;
}

#works .work-track.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Match .container / header shell width */
.work-track__progress,
.work-track__stage {
  width: var(--shell-track);
  margin-inline: auto;
  box-sizing: border-box;
}

.work-track__progress {
  margin-bottom: 18px;
}

.work-track__stage {
  position: relative;
}

.work-track__nav {
  position: absolute;
  inset: 0 calc(-1 * var(--slider-btn-out));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.work-track__btn svg {
  width: var(--icon-control);
  height: var(--icon-control);
}

.work-track__btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 12, 14, 0.78);
  color: var(--color-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.work-track__btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(24, 24, 28, 0.92);
  color: var(--color-heading);
}

.work-track__btn:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.work-track__progress-track {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.work-track__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transform-origin: left center;
}

.work-track.is-playing .work-track__progress-bar {
  animation: works-line-progress var(--works-auto-ms, 4200ms) linear forwards;
}

.work-track.is-paused .work-track__progress-bar {
  animation-play-state: paused;
}

@keyframes works-line-progress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .work-track.is-playing .work-track__progress-bar {
    animation: none;
    width: 100%;
  }
}

.work-track__viewport {
  overflow: hidden;
  width: 100%;
  /* Room for card hover lift so tops are not clipped */
  padding-block: 10px;
  margin-block: -10px;
}

@media (max-width: 800px) {
  .work-track__nav {
    display: none !important;
  }
}

.work-track__list {
  display: flex;
  align-items: stretch;
  gap: var(--work-gap);
  width: max-content;
  will-change: transform;
  transition: transform 0.55s var(--ease);
}

.work-track__list.is-snapping {
  transition: none;
}

.work-card {
  --work-lift-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex: 0 0 var(--work-card-w);
  width: var(--work-card-w);
  height: 180px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border-radius: 22px;
  color: #1a1a1a;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  background: #F5F5F5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0.72;
  filter: brightness(0.9);
  transition:
    transform 0.22s var(--work-lift-ease),
    box-shadow 0.22s var(--work-lift-ease),
    opacity 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.work-card.is-focus {
  opacity: 1;
  filter: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.work-card__cat,
.work-card__title,
.work-card__desc {
  position: relative;
  z-index: 1;
}

.work-card__cat {
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-label);
}

.work-card__title {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-subtitle-leading);
  color: #141414;
}

.work-card__desc {
  margin: 0;
  font-size: var(--type-caption-size);
  font-weight: 400;
  color: rgba(26, 26, 26, 0.55);
  line-height: var(--type-caption-leading);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }
}

.work-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
  .work-card:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-track__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .work-track__list {
    transition: none;
  }

  #works .work-track.reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 700px) {
  .work-card {
    height: 168px;
  }
}

/* ===== home/page.css ===== */
/* Page shell — deep black everywhere except footer (dark grey) */
body,
body.home #main > section,
body.home .section--career,
body.home #works {
  background: var(--bg-dark);
}

body.home #main > section.section--pure-black {
  background: var(--pure-black);
}

/* Every page footer stays dark grey */
body > footer.footer,
body > .footer {
  background: var(--dark-grey);
  background-color: var(--dark-grey);
}

/* ===== pages/about-profile.css ===== */
/* ---------- Profile section with full-bleed looping video ---------- */
.section--profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-heading);
  /* Video defines section height; cancel default section padding */
  padding-block: 0;
}

.section-profile__bg {
  position: relative;
  z-index: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.section-profile__video {
  display: block;
  width: 100%;
  height: auto;
}

.section-profile__shade {
  position: absolute;
  inset: 0;
  /* Flat light wash — avoid stacked gradient bands over the video */
  background: rgba(0, 0, 0, 0.12);
}

.section--profile .section__label {
  color: var(--color-label);
}

.section--profile .section__title {
  color: var(--color-heading);
}

.section--profile .profile-hud-dock {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
}

.section--profile .profile-hud__toggle {
  position: absolute;
  /* Default: panel opens horizontally centered in section at this height */
  left: calc((100% - min(560px, 100% - 48px)) / 2 + 14px);
  top: 52%;
  z-index: 3;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  user-select: none;
}

.section--profile .profile-hud__toggle.is-dragging {
  cursor: grabbing;
  z-index: 5;
}

.section--profile .profile-hud__toggle-icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: var(--primary);
  box-shadow: none;
}

.section--profile .profile-hud__toggle-icon::before,
.section--profile .profile-hud__toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--color-heading);
  transform: translate(-50%, -50%);
}

.section--profile .profile-hud__toggle-icon::before {
  width: 12px;
  height: 2px;
}

.section--profile .profile-hud__toggle-icon::after {
  width: 2px;
  height: 12px;
}

.section--profile .profile-hud__toggle[aria-expanded="true"] .profile-hud__toggle-icon::after {
  display: none;
}

@keyframes profile-hud-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .section--profile .profile-hud__toggle:hover:not(.is-loading):not(.is-idle-spin):not([aria-expanded="true"]) .profile-hud__toggle-icon {
    animation: profile-hud-spin 2s linear infinite;
  }
}

.section--profile .profile-hud__toggle.is-loading .profile-hud__toggle-icon {
  animation: profile-hud-spin 0.55s linear infinite;
}

.section--profile .profile-hud__toggle.is-idle-spin:not(.is-loading) .profile-hud__toggle-icon {
  animation: profile-hud-spin 0.7s linear;
}

.section--profile .profile-hud__toggle:focus-visible .profile-hud__toggle-icon {
  outline: 2px solid var(--color-heading);
  outline-offset: 3px;
}

.section--profile .profile-hud__toggle-label {
  display: none;
}

.section--profile .profile-hud {
  --hud-line: rgba(232, 80, 2, 0.55);
  --hud-line-dim: rgba(255, 255, 255, 0.22);
  position: absolute;
  left: calc((100% - min(560px, 100% - 48px)) / 2);
  top: calc(52% - 14px);
  z-index: 2;
  width: min(calc(100% - 48px), 560px);
  max-height: min(78%, 520px);
  overflow: auto;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 2.8vw, 28px);
  border: none;
  border-radius: 0;
  background: var(--hud-glass-bg);
  backdrop-filter: var(--hud-glass-backdrop);
  -webkit-backdrop-filter: var(--hud-glass-backdrop);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: none;
}

.section--profile .profile-hud.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: profile-hud-laser 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section--profile .profile-hud.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: profile-hud-laser-close 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section--profile .profile-hud.is-open .profile-hud__scan {
  opacity: 1;
  /* Slow top→bottom sweep to match profile video scan pace */
  animation: profile-hud-scan-loop 7.2s ease-in-out infinite;
}

.section--profile .profile-hud.is-closing .profile-hud__scan {
  animation: none;
  opacity: 0;
}

@keyframes profile-hud-laser {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0.55;
  }
  18% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes profile-hud-laser-close {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0.35;
  }
}

@keyframes profile-hud-scan-loop {
  0% {
    top: -8%;
    opacity: 0;
  }
  5% {
    opacity: 0.55;
  }
  40% {
    top: 100%;
    opacity: 0;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.section--profile .profile-hud__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section--profile .profile-hud__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(232, 80, 2, 0.16) 45%,
    transparent 100%
  );
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.section--profile .profile-hud .section__head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.section--profile .profile-hud__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section--profile .profile-hud__topline .section__label {
  margin: 0;
}

.section--profile .profile-hud__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-caption-tracking);
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.section--profile .profile-hud__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(232, 80, 2, 0.55);
  animation: profile-hud-pulse 1.8s ease-out infinite;
}

.section--profile .profile-hud__status[data-status="offline"] .profile-hud__dot {
  background: #7a7a80;
  box-shadow: none;
  animation: none;
  opacity: 0.9;
}

.section--profile .profile-hud__status[data-status="offline"] .profile-hud__status-label {
  color: rgba(255, 255, 255, 0.42);
}

.section--profile .profile-hud__status[data-status="connecting"] .profile-hud__dot {
  background: #3ecf8e;
  box-shadow: none;
  animation: profile-hud-blink 0.42s steps(1, end) infinite;
}

@keyframes profile-hud-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.12;
  }
}

@keyframes profile-hud-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 80, 2, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(232, 80, 2, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 80, 2, 0);
  }
}

.section--profile .profile-hud .section__title {
  margin: 0;
  letter-spacing: var(--type-display-tracking);
}

.section--profile .profile-list,
.section--profile .profile-hud__list {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--hud-line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section--profile .profile-list__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section--profile .profile-list__row:last-child {
  border-bottom: 0;
}

.section--profile .profile-list dt {
  margin: 0;
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-caption-tracking);
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
}

.section--profile .profile-list dd {
  margin: 0;
  font-size: var(--type-nav-size);
  font-weight: 600;
  letter-spacing: var(--type-title-tracking);
  font-variant-numeric: tabular-nums;
  color: var(--color-heading);
}

.section--profile .profile-list a {
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: none;
}

.section--profile .profile-list a:hover {
  color: var(--primary);
}

@media (max-width: 700px) {
  .section--profile .profile-hud-dock {
    width: 100%;
  }
}

/* Mobile ≤767: Profile pill → centered fade popup (no + / fold) */
@media (max-width: 767px) {
  .section--profile {
    overflow: hidden;
  }

  .section-profile__bg {
    position: relative;
    max-height: min(48vh, 360px);
    overflow: hidden;
  }

  .section-profile__video {
    width: 100%;
    height: min(48vh, 360px);
    object-fit: cover;
    object-position: center 20%;
  }

  .section--profile .profile-hud-dock {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .section--profile .profile-hud-dock::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100020;
    background: rgba(0, 0, 0, 0.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .section--profile .profile-hud-dock:has(.profile-hud.is-open)::before,
  .section--profile .profile-hud-dock:has(.profile-hud.is-closing)::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Lift above later sections; allow fixed popup to paint outside video frame */
  .section--profile:has(.profile-hud.is-open),
  .section--profile:has(.profile-hud.is-closing) {
    z-index: 100020;
    overflow: visible;
  }

  .section--profile .profile-hud__toggle {
    position: absolute;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: auto;
    bottom: 20px;
    z-index: 72;
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 11px 18px;
    border: 1px solid rgba(232, 80, 2, 0.7);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    color: var(--primary);
    transform: translateX(-50%);
    animation: profile-hud-pill-pulse 2.4s ease-in-out infinite;
  }

  .section--profile .profile-hud__toggle-icon {
    display: none !important;
  }

  .section--profile .profile-hud__toggle-label {
    display: block;
    font-family: var(--font);
    font-size: var(--type-caption-size);
    font-weight: 600;
    letter-spacing: var(--type-display-tracking);
    text-transform: none;
    color: inherit;
    line-height: var(--type-prose-leading);
  }

  @keyframes profile-hud-pill-pulse {
    0%,
    100% {
      opacity: 0.42;
    }
    50% {
      opacity: 1;
    }
  }

  .section--profile .profile-hud__toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  /* Open: hide pill; close via backdrop / Escape */
  .section--profile .profile-hud-dock.is-expanded .profile-hud__toggle {
    display: none !important;
  }

  .section--profile .profile-hud {
    /* Centered fixed popup (fade) — section overflow:visible while open */
    --hud-line-dim: rgba(255, 255, 255, 0.22);
    --hud-glass-base: var(--hud-glass-fallback);
    position: fixed;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    z-index: 100021;
    width: calc(100% - 32px) !important;
    max-width: 400px;
    max-height: calc(
      100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    padding: 20px 18px 22px;
    border: none;
    border-radius: 0;
    outline: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--hud-glass-bg);
    backdrop-filter: var(--hud-glass-backdrop);
    -webkit-backdrop-filter: var(--hud-glass-backdrop);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    clip-path: none !important;
    transform-origin: center center;
    animation: none !important;
    transform: translate(-50%, -50%) translate3d(0, 10px, 0) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.28s ease;
  }

  .section--profile .profile-hud .profile-list,
  .section--profile .profile-hud .profile-hud__list {
    border-top: 1px solid var(--hud-line);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section--profile .profile-hud .profile-list__row {
    grid-template-columns: minmax(4.75rem, 5.5rem) minmax(0, 1fr);
    gap: 8px 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section--profile .profile-hud .profile-list__row:last-child {
    border-bottom: 0;
  }

  .section--profile .profile-hud .profile-list dt {
    font-size: var(--type-caption-size);
    font-weight: 500;
  }

  .section--profile .profile-hud .profile-list dd {
    font-size: var(--type-prose-sm-size);
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section--profile .profile-hud.is-open {
    animation: none !important;
    clip-path: none !important;
    border: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .section--profile .profile-hud.is-closing {
    animation: none !important;
    clip-path: none !important;
    border: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) translate3d(0, 10px, 0) scale(0.98);
  }

  .section--profile .profile-hud.is-open .profile-hud__scan {
    display: block;
    opacity: 1;
  }

  .prose-glow > .prose-lit {
    display: none;
  }
}

html.profile-hud-modal-open {
  overflow: hidden;
  padding-right: var(--scroll-lock-pad, 0px);
}

html.profile-hud-modal-open body {
  overflow: hidden;
  padding-right: var(--scroll-lock-pad, 0px);
}

html.profile-hud-modal-open .header {
  padding-right: var(--scroll-lock-pad, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .section--profile .profile-hud {
    transition: none;
  }

  .section--profile .profile-hud__toggle {
    animation: none;
    opacity: 1;
  }

  .section--profile .profile-hud.is-open .profile-hud__scan,
  .section--profile .profile-hud__scan,
  .section--profile .profile-hud__dot {
    animation: none;
  }

  .section--profile .profile-hud__dot {
    box-shadow: none;
    opacity: 1;
  }

  @media (max-width: 767px) {
    .section--profile .profile-hud:not(.is-open):not(.is-closing) {
      opacity: 0;
      visibility: hidden;
    }
  }
}

/* ===== pages/about-cred.css ===== */
/* ---------- Credentials / Preference (About) ---------- */
.cred-list {
  border-top: 1px solid var(--hairline);
}

.cred-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 16px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.cred-list__date {
  font-size: var(--type-label-size);
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.cred-list__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.cred-list__body strong {
  font-size: var(--type-nav-size);
  font-weight: 600;
  letter-spacing: var(--type-title-tracking);
  color: var(--ink);
}

.cred-list__status {
  font-size: var(--type-label-size);
  color: var(--ink-muted);
}

.cred-list__sep {
  color: var(--ink-subtle);
  font-weight: 400;
}

.cred-list__org {
  font-size: var(--type-label-size);
  color: var(--ink-subtle);
}

@media (max-width: 700px) {
  .cred-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cred-list__date {
    font-size: var(--type-caption-size);
  }

  /* Title alone, then status | org on next line (date stays above) */
  .cred-list__body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }

  .cred-list__body strong {
    flex: 1 0 100%;
    width: 100%;
  }

  .cred-list__status,
  .cred-list__sep,
  .cred-list__org {
    font-size: var(--type-caption-size);
  }
}

/* ===== pages/about.css ===== */
/* About intro — type lock; glow chrome lives in components/prose-glow.css */
.section--about-intro .prose {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
}

.section--about-intro .prose > p {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
}

.section--about-intro .prose.is-lit,
.section--about-intro .prose.is-lit > p {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  transform: none;
  filter: none;
}

/* ===== components/inquiry.css ===== */
/* ---------- Inquiry banner (contact) ---------- */
.section--inquiry {
  padding-block: clamp(48px, 7vw, 72px);
}

.inquiry {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  min-height: 280px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
  border-radius: 28px;
  overflow: hidden;
  color: var(--color-heading);
  isolation: isolate;
  /* Slightly lifted from section deep so ambient light can define the edge */
  background: linear-gradient(145deg, #14110f 0%, #0c0b0a 48%, #12100e 100%);
  box-shadow: none;
}

/* Organic orange ambient — drifts inside the card (no stroke, no outer glow) */
.inquiry::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 18% 28%, rgba(232, 80, 2, 0.34), transparent 62%),
    radial-gradient(ellipse 48% 42% at 88% 38%, rgba(240, 112, 58, 0.3), transparent 60%),
    radial-gradient(ellipse 38% 46% at 62% 92%, rgba(232, 80, 2, 0.22), transparent 58%),
    radial-gradient(ellipse 36% 40% at 8% 78%, rgba(180, 70, 24, 0.18), transparent 55%);
  filter: blur(36px);
  transform-origin: 50% 50%;
  animation: inquiry-ambient 16s var(--ease-soft) infinite alternate;
  will-change: transform;
}

.inquiry.reveal:not(.is-in)::before,
.inquiry.is-offscreen::before {
  animation-play-state: paused;
}

/* Soft grid wash above ambient, below copy */
.inquiry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  opacity: 0.5;
}

@keyframes inquiry-ambient {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate3d(4%, 1%, 0) scale(1.08) rotate(2deg);
  }
  66% {
    transform: translate3d(1%, 4%, 0) scale(1.04) rotate(-1.5deg);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.06) rotate(1deg);
  }
}

.section--inquiry .inquiry.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.section--inquiry .inquiry.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.section--inquiry .inquiry.reveal .inquiry__copy,
.section--inquiry .inquiry.reveal .inquiry__actions {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.section--inquiry .inquiry.reveal .inquiry__actions {
  transform: translate3d(10px, 10px, 0);
}

.section--inquiry .inquiry.reveal.is-in .inquiry__copy {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.section--inquiry .inquiry.reveal.is-in .inquiry__actions {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.inquiry__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.inquiry__label {
  margin: 0 0 12px;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-label);
}

.inquiry__title {
  margin: 0 0 14px;
  font-size: var(--type-title-size);
  font-weight: var(--type-hero-weight);
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  color: var(--color-heading);
}

.inquiry__desc {
  margin: 0;
  font-size: var(--type-prose-size);
  font-weight: var(--type-prose-weight);
  line-height: var(--type-prose-leading);
  letter-spacing: var(--type-prose-tracking);
  color: var(--color-body-soft);
  word-break: keep-all;
  overflow-wrap: normal;
}

.inquiry__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  justify-self: end;
  width: auto;
  max-width: 100%;
}

.inquiry__btn {
  width: auto;
  min-width: 10.5rem;
  min-height: 52px;
  height: 52px;
  padding-inline: 28px;
  line-height: 1;
  padding-top: 1px;
  padding-bottom: 0;
}

@media (max-width: 800px) {
  .inquiry {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px 24px;
  }

  .section--inquiry .inquiry.reveal .inquiry__actions {
    transform: translate3d(0, 18px, 0);
  }

  .section--inquiry .inquiry.reveal.is-in .inquiry__actions {
    transform: none;
  }

  .inquiry__actions {
    justify-self: stretch;
    align-items: stretch;
    width: 100%;
  }

  .inquiry__btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    height: 52px;
  }
}

@media (max-width: 767px) {
  .inquiry {
    padding: 28px 18px;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry::before {
    animation: none;
    will-change: auto;
    transform: none;
  }

  .section--inquiry .inquiry.reveal,
  .section--inquiry .inquiry.reveal .inquiry__copy,
  .section--inquiry .inquiry.reveal .inquiry__actions {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== components/inquiry-modal.css ===== */
/* ---------- Inquiry form modal (Formspree) ---------- */
/* Open/close motion matches .site-search (backdrop fade + dialog opacity/transform). */
.inquiry-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100010;
  align-items: center;
  justify-content: center;
  padding:
    max(var(--gutter), env(safe-area-inset-top, 0px))
    calc(var(--gutter) + var(--scroll-lock-pad, 0px))
    max(var(--gutter), env(safe-area-inset-bottom, 0px))
    var(--gutter);
  background: transparent;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.36s;
}

.inquiry-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.36s var(--ease);
  pointer-events: none;
}

.inquiry-modal.is-open .inquiry-modal__backdrop {
  opacity: 1;
}

.inquiry-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(90vh, 760px);
  overflow: hidden;
  padding: var(--modal-pad);
  border-radius: 28px;
  color: var(--color-heading);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: none;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.inquiry-modal.is-open .inquiry-modal__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .inquiry-modal__dialog {
    background: var(--glass-fallback, var(--shade-raised));
  }
}

.inquiry-modal__dialog > * {
  position: relative;
  z-index: 1;
}

.inquiry-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  min-height: 28px;
}

.inquiry-modal__close {
  position: static;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.inquiry-modal__close span {
  position: relative;
  width: 10px;
  height: 10px;
}

.inquiry-modal__close span::before,
.inquiry-modal__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.25px;
  background: currentColor;
}

.inquiry-modal__close span::before {
  transform: rotate(45deg);
}

.inquiry-modal__close span::after {
  transform: rotate(-45deg);
}

.inquiry-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-heading);
}

.inquiry-modal__close:focus-visible {
  outline: none;
  border-color: var(--primary);
  color: var(--color-heading);
}

.inquiry-modal__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--primary);
  line-height: 1;
}

.inquiry-modal__title {
  margin: 0 0 12px;
  font-size: var(--type-title-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  color: var(--color-heading);
}

.inquiry-modal__hint {
  margin: 0 0 36px;
  font-size: var(--type-prose-sm-size);
  font-weight: 400;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-prose-leading);
  color: rgba(255, 255, 255, 0.62);
}

.inquiry-modal__form {
  display: grid;
  gap: 0;
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
}

.inquiry-modal__field {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.inquiry-modal__field:last-of-type {
  margin-bottom: 28px;
}

.inquiry-modal__field span {
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.inquiry-modal__field input,
.inquiry-modal__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  font-size: var(--type-prose-size);
  letter-spacing: var(--type-title-tracking);
  transition: border-color 0.2s;
}

.inquiry-modal__field input::placeholder,
.inquiry-modal__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.inquiry-modal__field textarea {
  min-height: 8rem;
  max-height: 8rem;
  resize: none;
  line-height: var(--type-prose-leading);
  overflow-y: auto;
}

.inquiry-modal__field input:hover,
.inquiry-modal__field textarea:hover {
  border-bottom-color: rgba(255, 255, 255, 0.36);
}

.inquiry-modal__field input:focus,
.inquiry-modal__field textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.inquiry-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-modal__submit {
  width: 100%;
  margin-top: 0;
  min-height: 52px;
  height: 52px;
}

.inquiry-modal__status {
  min-height: 0;
  margin: 14px 0 0;
  font-size: var(--type-caption-size);
  letter-spacing: var(--type-label-tracking);
  color: rgba(255, 255, 255, 0.58);
}

.inquiry-modal__status:empty {
  display: none;
  margin: 0;
}

.inquiry-modal__status[data-kind="ok"] {
  color: #86efac;
}

.inquiry-modal__status[data-kind="error"] {
  color: #fca5a5;
}

.inquiry-modal__status[data-kind="pending"] {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .inquiry-modal__head {
    margin-bottom: 16px;
  }

  .inquiry-modal__hint {
    margin-bottom: 28px;
  }

  .inquiry-modal__field {
    margin-bottom: 20px;
  }

  .inquiry-modal__field:last-of-type {
    margin-bottom: 24px;
  }
}

/* Mobile chrome (≤1100): contact as a full-screen page, not a floating card */
@media (max-width: 1100px) {
  .inquiry-modal {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    padding-right: var(--scroll-lock-pad, 0px);
    background: var(--pure-black);
  }

  .inquiry-modal__backdrop {
    background: transparent;
  }

  .inquiry-modal__dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    min-height: 100svh;
    border-radius: 0;
    border: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    padding: calc(var(--modal-pad) + env(safe-area-inset-top, 0px)) 0
      calc(var(--modal-pad) + env(safe-area-inset-bottom, 0px));
    background: var(--pure-black);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Same horizontal track as .header__shell / .container */
  .inquiry-modal__dialog > * {
    width: var(--shell-track);
    max-width: var(--shell-track);
    box-sizing: border-box;
  }

  .inquiry-modal__form {
    overflow: visible;
    flex: 0 0 auto;
  }

  .inquiry-modal__field textarea {
    max-height: none;
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-modal,
  .inquiry-modal__backdrop,
  .inquiry-modal__dialog {
    transition-duration: 0.01ms !important;
  }

  .inquiry-modal__dialog {
    transform: none;
  }
}

/* ===== components/search.css ===== */
/* Site-wide search modal — header glass + modal-pad */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  /* PC: clear expanded header (top + 68px bar) + gap — never sit under chrome */
  --search-top-clear: calc(
    max(12px, env(safe-area-inset-top, 0px)) + 68px + 28px
  );
  /* Right + scroll-lock pad so width matches header shell while body is locked */
  padding:
    var(--search-top-clear)
    calc(var(--gutter) + var(--scroll-lock-pad, 0px))
    var(--gutter)
    var(--gutter);
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.36s;
}

/* Keep header search clickable to toggle-close while modal is open */
html.search-is-open .header {
  z-index: 130;
}

.site-search.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.36s var(--ease);
}

.site-search.is-open .site-search__backdrop {
  opacity: 1;
}

.site-search__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  height: auto;
  max-height: min(
    900px,
    calc(100dvh - var(--search-top-clear) - var(--gutter) - 8px)
  );
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--modal-pad);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  color: var(--color-body);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.site-search.is-open .site-search__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-search__dialog {
    background: var(--glass-fallback, var(--shade-raised));
  }
}

.site-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.site-search__title {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: 700;
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-subtitle-leading);
  color: var(--color-heading);
}

.site-search__close {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-heading);
  cursor: pointer;
}

.site-search__close span,
.site-search__close span::before,
.site-search__close span::after {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.site-search__close span {
  background: transparent;
  transform: translate(-50%, -50%);
}

.site-search__close span::before {
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-search__close span::after {
  content: "";
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-search__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-search__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-search__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.site-search__field,
.site-search__chips {
  flex-shrink: 0;
}

.site-search__field {
  position: relative;
  display: block;
  margin: 0;
}

.site-search__field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: var(--icon-chrome);
  height: var(--icon-chrome);
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.site-search__field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--btn-radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-heading);
  font: inherit;
  font-size: var(--type-prose-sm-size);
}

.site-search__field input::placeholder {
  color: var(--ink-muted);
}

.site-search__field input:focus {
  outline: none;
  border-color: var(--primary);
}

.site-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-search__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-body);
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.site-search__chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-heading);
}

.site-search__chip.is-active {
  border-color: rgba(232, 80, 2, 0.75);
  background: rgba(232, 80, 2, 0.16);
  color: var(--color-heading);
}

.site-search__chip:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.site-search__chip.is-active:focus-visible {
  border-color: rgba(232, 80, 2, 0.75);
}

.site-search__results {
  --search-visible: 5;
  --search-row: 68px;
  --search-gap: 0;
  flex: 1 1 auto;
  height: auto;
  max-height: calc(
    16px + (var(--search-visible) * var(--search-row)) +
      ((var(--search-visible) - 1) * var(--search-gap))
  );
  min-height: 0;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 8px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.site-search__empty {
  margin: 0;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--color-body);
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-sm-leading);
  letter-spacing: var(--type-prose-sm-tracking);
  font-weight: var(--type-prose-sm-weight);
}

/* Author display:grid beats UA [hidden] { display:none } */
.site-search__empty[hidden] {
  display: none !important;
}

.site-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.site-search__item {
  margin: 0;
}

.site-search__link {
  display: grid;
  gap: 4px;
  align-content: start;
  box-sizing: border-box;
  min-height: var(--search-row, 68px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.site-search__link:hover,
.site-search__link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.site-search__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.site-search__cat {
  margin: 0;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--primary);
}

.site-search__results.is-searching {
  --search-row: 88px;
}

.site-search__name {
  margin: 0;
  font-size: var(--type-prose-sm-size);
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: var(--type-label-tracking);
}

.site-search__match {
  margin: 0;
  font-size: var(--type-label-size);
  color: var(--ink-muted);
  line-height: var(--type-prose-leading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  /* Full-screen page (like inquiry/album ≤1100); cover header chrome */
  html.search-is-open .header {
    z-index: 100;
  }

  .site-search {
    place-items: stretch;
    padding: 0;
    padding-right: var(--scroll-lock-pad, 0px);
    background: var(--pure-black);
  }

  .site-search__backdrop {
    background: transparent;
  }

  .site-search__dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    min-height: 100svh;
    border-radius: 0;
    border: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    padding: calc(var(--modal-pad) + env(safe-area-inset-top, 0px)) 0
      calc(var(--modal-pad) + env(safe-area-inset-bottom, 0px));
    background: var(--pure-black);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-search__dialog > * {
    width: var(--shell-track);
    max-width: var(--shell-track);
    box-sizing: border-box;
  }

  .site-search__results {
    --search-row: 64px;
  }

  .site-search__results.is-searching {
    --search-row: 84px;
  }
}

@media (max-height: 720px) {
  .site-search__results {
    --search-visible: 4;
  }

  .site-search__empty {
    min-height: 112px;
    padding: 16px;
  }
}

@media (max-height: 640px) {
  .site-search__head {
    margin-bottom: 12px;
  }

  .site-search__stack {
    gap: 12px;
  }

  .site-search__results {
    --search-visible: 3;
  }

  .site-search__empty {
    min-height: 80px;
  }
}

@media (max-height: 520px) {
  .site-search__results {
    --search-visible: 2;
  }

  .site-search__field input {
    min-height: 46px;
  }

  .site-search__chip {
    min-height: 32px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search,
  .site-search__backdrop,
  .site-search__dialog {
    transition-duration: 0.01ms !important;
  }

  .site-search__dialog {
    transform: none;
  }
}

/* ===== components/prose-glow.css ===== */
/*
  Prose glow — body <p> only. White glyph clone + pointer mask.
  Tokens: --prose-glow-* in reset-tokens.css
*/

p.prose-glow {
  position: relative;
}

p.prose-glow > .prose-lit {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  color: var(--prose-glow-ink);
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  transition: opacity var(--prose-glow-fade);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

p.prose-glow.is-lit > .prose-lit {
  opacity: 1;
}

/* Pure white — identical metrics to the base paragraph */
p.prose-glow > .prose-lit,
p.prose-glow > .prose-lit * {
  color: var(--prose-glow-ink) !important;
  -webkit-text-fill-color: var(--prose-glow-ink);
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-shadow: none;
  filter: none;
  transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p.prose-glow.is-lit {
  transform: none;
  filter: none;
}

@media (max-width: 767px) {
  p.prose-glow > .prose-lit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  p.prose-glow > .prose-lit {
    display: none;
  }
}

/* ===== layout/footer.css ===== */
/* ---------- Footer ---------- */
footer.footer,
.footer {
  background: var(--dark-grey);
  background-color: var(--dark-grey);
  padding: 40px 0 28px;
  font-size: var(--type-caption-size);
  color: var(--color-meta);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__brand {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 4px;
  margin: 20px 0 0;
}

.footer__contact a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--ink);
}

.footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px;
  color: var(--ink-3);
  border-radius: 0;
  background: transparent;
  transition: color 0.2s ease;
}

.footer__social svg {
  width: var(--icon-social);
  height: var(--icon-social);
  fill: currentColor;
}

.footer__social:hover {
  color: var(--ink);
  background: transparent;
}

.footer__bottom {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  text-align: left;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  letter-spacing: var(--type-caption-tracking);
  line-height: var(--type-caption-leading);
  color: var(--color-meta);
}

/* Stealth gate — looks like plain text; no link chrome */
a.footer__admin-gate,
a.footer__admin-gate:link,
a.footer__admin-gate:visited,
a.footer__admin-gate:hover,
a.footer__admin-gate:active,
a.footer__admin-gate:focus,
a.footer__admin-gate:focus-visible {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: inherit;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-wrap: nowrap;
    gap: 0.35em;
  }
}

@media (max-width: 767px) {
  footer.footer,
  .footer {
    padding: 32px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Match .header.is-solid .header__inner (mobile glass bar) */
  .footer > .container {
    width: var(--shell-track);
    max-width: var(--shell-track);
    box-sizing: border-box;
    padding-left: 18px;
    padding-right: 14px;
  }

  .footer__top {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 16px;
  }

  .footer__links {
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }

  .footer__social {
    width: auto;
    height: auto;
    padding: 0;
  }

  .footer__social svg {
    width: var(--icon-social);
    height: var(--icon-social);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* ===== pages/subpage.css ===== */
/* ---------- Subpage hero ---------- */
.page-hero {
  --hero-bg: var(--bg-dark);
  --hero-grid-step: 88px;
  --hero-grid-radius: 260px;
  --hero-grid-radius-min: 260px;
  --hero-grid-radius-max: 260px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  /* Shared height — room below copy for + grid fade */
  min-height: clamp(28rem, 46vh, 34rem);
  padding: calc(var(--header-h) + 56px) 0 7.5rem;
  background: var(--hero-bg);
  color: var(--ink);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--hero-bg);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  /* Vertical fade painted in hero-grid.js (100% → ~10%) */
}

.page-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 28%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.page-hero > .container {
  position: relative;
  z-index: 4;
}

@media (max-width: 767px) {
  .page-hero {
    --hero-grid-step: 64px;
    min-height: 0;
    padding: calc(var(--header-h) + 28px) 0 3.25rem;
  }

  .page-hero .section__title {
    margin-bottom: 10px;
  }

  .page-hero .section__desc,
  .page-hero .section__desc--wide {
    max-width: none;
  }
}

.page-hero .section__title {
  font-size: var(--type-d2-size);
  font-weight: var(--type-d2-weight);
  letter-spacing: var(--type-d2-tracking);
  line-height: var(--type-d2-leading);
  color: var(--color-heading);
  margin-bottom: 14px;
}

.page-hero .section__desc {
  font-size: var(--type-body-size);
  color: var(--color-body-soft);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
}

/* PC-only sentence break; mobile wraps to full container width */
.hero-desc-break {
  display: inline;
}

@media (max-width: 767px) {
  .hero-desc-break {
    display: none;
  }
}

/* ===== pages/content.css ===== */
/* ---------- Content helpers — Hangul type system (TYPEGUIDE.md) ---------- */
.prose {
  max-width: none;
  width: 100%;
  color: var(--color-body);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.prose p + p {
  margin-top: var(--prose-gap);
}

.prose strong {
  color: inherit;
  font-weight: inherit;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .feature {
    padding: 20px 18px;
  }

  .feature h3 {
    font-size: var(--type-subtitle-size);
  }

  .feature p {
    font-size: var(--type-prose-sm-size);
    line-height: var(--type-prose-sm-leading);
  }

  .tool-btn {
    height: 44px;
    padding: 0 14px;
    font-size: var(--type-label-size);
  }
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--bg);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

a.feature--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature.reveal.is-in {
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .feature--link.reveal.is-in:hover,
  .feature--soon.reveal.is-in:hover,
  .feature--link:not(.reveal):hover,
  .feature--soon:not(.reveal):hover {
    transform: translate3d(0, -8px, 0);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }
}

.feature--link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .feature,
  .feature.reveal.is-in {
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .feature--link.reveal.is-in:hover,
  .feature--soon.reveal.is-in:hover,
  .feature--link:not(.reveal):hover,
  .feature--soon:not(.reveal):hover {
    transform: none;
  }
}

.feature__tag {
  display: inline-block;
  font-size: var(--type-caption-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-label);
  /* Sentence case — CMS may store ALL CAPS */
  text-transform: lowercase;
  margin-bottom: 12px;
}

.feature__tag::first-letter {
  text-transform: uppercase;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--ink);
  font-size: var(--type-label-size);
  font-weight: var(--fw-medium);
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-label-leading);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tool-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.feature h3 {
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  line-height: var(--type-subtitle-leading);
  letter-spacing: var(--type-subtitle-tracking);
  color: var(--color-heading);
  margin-bottom: 8px;
}

.feature p {
  color: var(--color-body);
  font-size: var(--type-prose-sm-size);
  font-weight: var(--type-prose-sm-weight);
  line-height: var(--type-prose-sm-leading);
  letter-spacing: var(--type-prose-sm-tracking);
}

/* ===== pages/work-case.css ===== */
/* ---------- Work case (leave app) ---------- */

/* Short Work listing: fill viewport so footer sits at the bottom */
body.page-work {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-work #main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body.page-work #main > .section.section--pure-black {
  flex: 1 1 auto;
}

/* Work list — Foundations-style image thumbs, title on hover */
.work-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

@media (max-width: 560px) {
  .work-thumb-grid {
    grid-template-columns: 1fr;
  }
}

.work-thumb {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  outline: none;
}

.work-thumb--empty {
  pointer-events: none;
}

.work-thumb__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: inherit;
  background: var(--shade-raised);
  border: 1px solid rgba(255, 255, 255, 0.1);
  isolation: isolate;
}

.work-thumb__media--empty {
  background: linear-gradient(160deg, var(--shade-raised) 0%, var(--pure-black) 100%);
}

.work-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-thumb__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.72) 100%
  );
  opacity: 0.35;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.work-thumb__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-thumb__tag {
  font-size: var(--type-caption-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-caption-tracking);
  line-height: var(--type-caption-leading);
  text-transform: none;
  color: var(--color-label);
}

.work-thumb__title {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  letter-spacing: var(--type-subtitle-tracking);
  line-height: var(--type-subtitle-leading);
  color: var(--color-heading);
}

.work-thumb__sub {
  margin: 0;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-body-soft);
}

/* Touch / no-hover: keep title readable */
.work-thumb__meta {
  opacity: 1;
  transform: none;
}

.work-thumb__shade {
  opacity: 0.55;
}

@media (hover: hover) and (pointer: fine) {
  .work-thumb:not(.work-thumb--empty) .work-thumb__meta:not(.is-static) {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  .work-thumb:not(.work-thumb--empty) .work-thumb__shade {
    opacity: 0.2;
  }

  .work-thumb:not(.work-thumb--empty):hover .work-thumb__meta:not(.is-static),
  .work-thumb:not(.work-thumb--empty):focus-visible .work-thumb__meta:not(.is-static) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .work-thumb:not(.work-thumb--empty):hover .work-thumb__shade,
  .work-thumb:not(.work-thumb--empty):focus-visible .work-thumb__shade {
    opacity: 0.78;
  }

  .work-thumb:not(.work-thumb--empty):hover .work-thumb__img,
  .work-thumb:not(.work-thumb--empty):focus-visible .work-thumb__img {
    transform: scale(1.035);
  }
}

.work-thumb:focus-visible .work-thumb__media {
  box-shadow: 0 0 0 2px var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .work-thumb__img,
  .work-thumb__shade,
  .work-thumb__meta {
    transition: none;
  }

  .work-thumb:not(.work-thumb--empty):hover .work-thumb__img,
  .work-thumb:not(.work-thumb--empty):focus-visible .work-thumb__img {
    transform: none;
  }
}

[data-work-case]:not([hidden]) {
  animation: cms-case-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cms-case-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-work-case]:not([hidden]) {
    animation: none;
  }
}

.case-back {
  margin: 0 0 20px;
}

.case-back__link {
  display: inline-flex;
  align-items: center;
  font-size: var(--type-label-size);
  font-weight: 600;
  color: var(--color-body);
  transition: color 0.2s;
}

.case-back__link:hover {
  color: var(--primary);
}

/* Case shell: main stays on header 1120 track; sidebar sits in left gutter only */
.case-shell {
  --case-side-w: 184px;
  --case-side-item-h: 36px;
  --case-side-gap: 48px;
  display: block;
  width: 100%;
  background: var(--pure-black);
}

.case-main {
  min-width: 0;
  width: 100%;
  background: var(--pure-black);
}

.case-side-nav {
  display: none;
}

/* Sidebar when left gutter fits: ≥1512 (narrow) · full widths from 1620 */
@media (min-width: 1512px) {
  .case-shell {
    --case-side-w: 144px;
    --case-side-item-h: 34px;
    --case-side-gap: 48px;
  }

  .case-side-nav {
    display: block;
    position: fixed;
    z-index: 40;
    top: var(--case-side-top, calc(var(--header-h) + 12px));
    left: max(
      12px,
      calc(
        (100vw - min(var(--container), 100% - (var(--gutter) * 2))) / 2 - var(--case-side-w) -
          var(--case-side-gap)
      )
    );
    width: var(--case-side-w);
    max-height: calc(
      100vh - var(--case-side-top, calc(var(--header-h) + 12px)) - 24px
    );
    padding: 0 4px 80px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: transparent;
    box-sizing: border-box;
  }

  .case-side-nav::-webkit-scrollbar {
    width: 6px;
  }

  .case-side-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
  }

  .case-back {
    display: none;
  }
}

@media (min-width: 1620px) {
  .case-shell {
    --case-side-w: 184px;
    --case-side-item-h: 36px;
  }
}

@media (min-width: 1680px) {
  .case-shell {
    --case-side-w: 208px;
    --case-side-item-h: 38px;
  }
}

@media (min-width: 1840px) {
  .case-shell {
    --case-side-w: 240px;
    --case-side-item-h: 40px;
  }
}

.case-side-nav__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-side-nav__link--home {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.case-side-nav__link--home:hover {
  color: var(--color-heading);
}

.case-side-nav__link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--case-side-item-h);
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--type-label-size);
  font-weight: var(--fw-medium);
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-label-leading);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.case-side-nav__link:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.case-side-nav__link.is-active,
.case-side-nav__link[aria-current="page"] {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.07);
}

.case-side-nav__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* One canvas color through the case (footer excluded) */
body.page-work:has([data-work-case]:not([hidden])) {
  background: var(--pure-black);
}

body.page-work:has([data-work-case]:not([hidden])) #main,
body.page-work:has([data-work-case]:not([hidden])) [data-work-case] {
  background: var(--pure-black);
}

/* Doc-style case header (no + grid hero) — revert with this commit if needed */
.case-head {
  padding: calc(var(--header-h) + 28px) 0 28px;
  background: var(--pure-black);
  color: var(--ink);
  border-bottom: 0;
}

.case-head .section__label {
  margin-bottom: 10px;
}

.case-head__title {
  margin: 0 0 10px;
  font-size: var(--type-title-size);
  font-weight: var(--type-hero-weight);
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  color: var(--color-heading);
}

.case-head__desc {
  margin: 0;
  max-width: none;
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-prose-weight);
  color: var(--color-body-soft);
}

@media (max-width: 767px) {
  .case-head {
    padding: calc(var(--header-h) + 20px) 0 22px;
  }

  .case-head__title {
    font-size: var(--type-subtitle-size);
  }
}

.case-body {
  padding-top: clamp(36px, 5vw, 56px);
  background: var(--pure-black);
}

/* Match .header.is-solid .header__shell / .container shell */
.page-work .page-hero > .container,
.page-work .case-head > .container,
.page-work main .section > .container,
.page-work .case-gallery {
  width: var(--shell-track);
  max-width: var(--shell-track);
  margin-inline: auto;
  box-sizing: border-box;
}

.page-work .case-gallery {
  /* Hangul reading: never break-all (that shreds syllables) */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

@media (max-width: 860px) {
  .page-work .page-hero > .container,
  .page-work .case-head > .container,
  .page-work main .section > .container,
  .page-work .case-gallery {
    width: var(--shell-track);
    max-width: var(--shell-track);
  }
}

.case-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
  align-items: stretch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.case-intro__thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--shade-raised);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-intro__thumb:empty {
  display: none;
}

.case-intro__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-intro__copy {
  max-width: none;
  width: 100%;
}

.case-intro__title {
  margin: 0 0 var(--prose-gap);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  letter-spacing: var(--type-subtitle-tracking);
  line-height: var(--type-subtitle-leading);
  color: var(--color-heading);
}

.case-intro__title:empty {
  display: none;
}

.case-intro__body {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  color: var(--color-body);
  font-weight: var(--type-prose-weight);
}

.case-intro__body p {
  margin: 0 0 var(--prose-gap);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
}

.case-intro__body p:last-child {
  margin-bottom: 0;
}

.case-intro__body strong,
.case-intro__body b,
.case-text-block__body strong,
.case-text-block__body b,
.case-article strong,
.case-article b {
  color: inherit;
  font-weight: 600;
}

/* CMS color presets override type colors (heading/body) */
.case-article [data-cms-color="#E85002"],
.case-article [data-cms-color="#E85002"] *,
.case-intro__body [data-cms-color="#E85002"],
.case-intro__body [data-cms-color="#E85002"] *,
.case-text-block__body [data-cms-color="#E85002"],
.case-text-block__body [data-cms-color="#E85002"] * {
  color: #e85002 !important;
}
.case-article [data-cms-color="#FFFFFF"],
.case-article [data-cms-color="#FFFFFF"] *,
.case-intro__body [data-cms-color="#FFFFFF"],
.case-intro__body [data-cms-color="#FFFFFF"] *,
.case-text-block__body [data-cms-color="#FFFFFF"],
.case-text-block__body [data-cms-color="#FFFFFF"] * {
  color: #ffffff !important;
}
.case-article [data-cms-color="#A3A3A3"],
.case-article [data-cms-color="#A3A3A3"] *,
.case-intro__body [data-cms-color="#A3A3A3"],
.case-intro__body [data-cms-color="#A3A3A3"] *,
.case-text-block__body [data-cms-color="#A3A3A3"],
.case-text-block__body [data-cms-color="#A3A3A3"] * {
  color: #a3a3a3 !important;
}
.case-article [data-cms-color="#7A7A7A"],
.case-article [data-cms-color="#7A7A7A"] *,
.case-intro__body [data-cms-color="#7A7A7A"],
.case-intro__body [data-cms-color="#7A7A7A"] *,
.case-text-block__body [data-cms-color="#7A7A7A"],
.case-text-block__body [data-cms-color="#7A7A7A"] * {
  color: #7a7a7a !important;
}

.case-intro__body h1,
.case-text-block__body h1 {
  margin: 1em 0 0.35em;
  color: var(--color-heading);
  font-size: var(--type-h1-size);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
}

.case-intro__body h2,
.case-text-block__body h2 {
  margin: 0.9em 0 0.3em;
  color: var(--color-heading);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-leading);
  letter-spacing: var(--type-h2-tracking);
}

.case-intro__body h3,
.case-text-block__body h3 {
  margin: 0.85em 0 0.28em;
  color: var(--color-heading);
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
}

.case-intro__body h1:first-child,
.case-intro__body h2:first-child,
.case-intro__body h3:first-child,
.case-text-block__body h1:first-child,
.case-text-block__body h2:first-child,
.case-text-block__body h3:first-child {
  margin-top: 0;
}

.case-intro__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75em 0;
  border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
  .case-intro {
    gap: 16px;
    margin-bottom: 32px;
  }
}

.case-modes__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-modes__tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 28px;
  padding-inline: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  overflow-x: auto;
  scrollbar-width: none;
}

.case-modes__tabs::-webkit-scrollbar {
  display: none;
}

.case-modes__ink {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  height: 2px;
  width: 0;
  background: var(--color-heading);
  border-radius: 1px;
  transform: translate3d(0, 0, 0);
  transform-origin: left center;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.45, 0.64, 1),
    width 0.34s cubic-bezier(0.34, 1.45, 0.64, 1);
  pointer-events: none;
  will-change: transform, width;
}

.case-modes__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: var(--type-nav-size);
  font-weight: 400;
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-nav-leading);
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.case-modes__tab:hover {
  color: rgba(255, 255, 255, 0.72);
}

.case-modes__tab.is-active,
.case-modes__tab[aria-selected="true"] {
  color: var(--color-heading);
}

.case-modes__tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .case-modes__ink {
    transition: none;
  }
}

.case-modes__panel {
  display: none;
}

.case-modes__panel.is-active,
.case-modes__panel:not([hidden]) {
  display: block;
}

.case-shots {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* All CMS prose / media fill the same shell track as .case-gallery */
.case-gallery .case-intro,
.case-gallery .case-intro__copy,
.case-gallery .case-intro__body,
.case-gallery .case-modes,
.case-gallery .case-modes__panels,
.case-gallery .case-modes__panel,
.case-gallery .case-shots,
.case-gallery .case-article {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.case-article {
  display: block;
  width: 100%;
  max-width: none;
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  color: var(--color-body);
  font-weight: var(--type-prose-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/*
  Match admin writing surface: no automatic block gaps.
  Vertical rhythm comes only from user Enter / soft <br> / empty lines.
*/
.case-article > * {
  margin: 0;
}

.case-article > h1,
.case-article > h2,
.case-article > h3,
.case-article > h4,
.case-article > h5 {
  color: var(--color-heading);
}

.case-article h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
  font-weight: var(--type-h1-weight);
}

.case-article h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-leading);
  letter-spacing: var(--type-h2-tracking);
  font-weight: var(--type-h2-weight);
}

.case-article h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
  font-weight: var(--type-h3-weight);
}

.case-article h4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-leading);
  letter-spacing: var(--type-h4-tracking);
  font-weight: var(--type-h4-weight);
}

.case-article h5 {
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-leading);
  letter-spacing: var(--type-h5-tracking);
  font-weight: var(--type-h5-weight);
}

.case-article p {
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
}

/* Empty Enter line = one body line only (no CK min-height inflation) */
.case-article > p:has(> br:only-child),
.case-article > p:has(> br:first-child:last-child),
.case-article > p:empty {
  min-height: 0;
  line-height: var(--type-body-leading);
}

/*
  Tables/images/media: body half-leading only.
  Top = --prose-lead-before (air above body glyphs);
  bottom = --prose-lead-after (air below body glyphs).
*/
.case-article > figure.table,
.case-article > figure.image,
.case-article > figure.media,
.case-article > figure:has(> table) {
  margin-top: var(--prose-lead-before);
  margin-bottom: var(--prose-lead-after);
}

.case-article > figure.table:first-child,
.case-article > figure.image:first-child,
.case-article > figure.media:first-child,
.case-article > figure:has(> table):first-child {
  margin-top: 0;
}

.case-article > figure.table:last-child,
.case-article > figure.image:last-child,
.case-article > figure.media:last-child,
.case-article > figure:has(> table):last-child {
  margin-bottom: 0;
}

/* Enter blank already = one body line — don't stack half-lead */
.case-article > p:has(> br:only-child) + figure.table,
.case-article > p:has(> br:only-child) + figure.image,
.case-article > p:has(> br:only-child) + figure.media,
.case-article > p:has(> br:only-child) + figure:has(> table),
.case-article > p:has(> br:first-child:last-child) + figure.table,
.case-article > p:has(> br:first-child:last-child) + figure.image,
.case-article > p:has(> br:first-child:last-child) + figure.media,
.case-article > p:has(> br:first-child:last-child) + figure:has(> table),
.case-article > p:empty + figure.table,
.case-article > p:empty + figure.image,
.case-article > p:empty + figure.media,
.case-article > p:empty + figure:has(> table) {
  margin-top: 0;
}

.case-article ul,
.case-article ol,
.case-intro__body ul,
.case-intro__body ol,
.case-text-block__body ul,
.case-text-block__body ol {
  padding-left: 1.25rem;
  margin: 0;
}

.case-article ul,
.case-intro__body ul,
.case-text-block__body ul {
  list-style: disc;
}

.case-article ol,
.case-intro__body ol,
.case-text-block__body ol {
  list-style: decimal;
}

.case-article li,
.case-intro__body li,
.case-text-block__body li {
  margin: 0;
  padding-left: 0.1rem;
  line-height: var(--type-body-leading);
}

.case-article li + li,
.case-intro__body li + li,
.case-text-block__body li + li {
  margin-top: 0;
}

.case-article li::marker,
.case-intro__body li::marker,
.case-text-block__body li::marker {
  color: var(--color-body-soft);
}

.case-article li > p {
  margin: 0;
}

.case-article a {
  color: var(--primary);
}

.case-article u,
.case-intro__body u,
.case-text-block__body u {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

.case-article s,
.case-intro__body s,
.case-text-block__body s {
  text-decoration: line-through;
  text-decoration-thickness: from-font;
}

.case-article table,
.case-intro__body table,
.case-text-block__body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-sm-leading);
  letter-spacing: var(--type-prose-sm-tracking);
  color: var(--color-body);
  table-layout: fixed;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.case-article figure.table,
.case-article figure.image,
.case-article figure:has(> table),
.case-intro__body figure.table,
.case-intro__body figure.image {
  width: 100%;
  max-width: 100%;
}

.case-article figure.table,
.case-article figure:has(> table),
.case-intro__body figure.table,
.case-text-block__body figure.table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.case-article thead,
.case-intro__body thead,
.case-text-block__body thead {
  color: var(--color-heading);
}

.case-article table col,
.case-intro__body table col,
.case-text-block__body table col {
  box-sizing: border-box;
}

.case-article th,
.case-article td,
.case-intro__body th,
.case-intro__body td,
.case-text-block__body th,
.case-text-block__body td {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.case-article th,
.case-intro__body th,
.case-text-block__body th,
.case-article td.cms-cell-header,
.case-article th.cms-cell-header,
.case-article td[data-cms-header],
.case-article th[data-cms-header],
.case-intro__body td.cms-cell-header,
.case-intro__body th.cms-cell-header,
.case-intro__body td[data-cms-header],
.case-intro__body th[data-cms-header],
.case-text-block__body td.cms-cell-header,
.case-text-block__body th.cms-cell-header,
.case-text-block__body td[data-cms-header],
.case-text-block__body th[data-cms-header] {
  font-weight: 600 !important;
  color: var(--color-heading) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Cell <p> must inherit table type — not body paragraph tokens */
.case-article th p,
.case-article td p,
.case-intro__body th p,
.case-intro__body td p,
.case-text-block__body th p,
.case-text-block__body td p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  color: inherit;
}

.case-article blockquote,
.case-intro__body blockquote,
.case-text-block__body blockquote {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 3px solid rgba(232, 80, 2, 0.7);
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-leading);
  letter-spacing: var(--type-quote-tracking);
  font-weight: var(--type-quote-weight);
  color: var(--color-body-soft);
}

.case-article hr,
.case-intro__body hr,
.case-text-block__body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0;
  height: 0;
}

.case-article__figure,
.case-article figure {
  margin: 0;
  width: 100%;
  max-width: none;
}

.case-article img,
.case-shots img,
.case-article video,
.case-shots video,
.case-article iframe,
.case-shots iframe {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-modes img {
  cursor: zoom-in;
}

.case-modes img:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.case-intro__thumb img {
  cursor: default;
}

.case-article figure.media,
.case-intro__body figure.media,
.case-text-block__body figure.media {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.case-article figure.media iframe,
.case-intro__body figure.media iframe,
.case-text-block__body figure.media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  border: 0;
  background: #000;
}

.case-article__empty {
  color: var(--ink-muted);
  font-size: var(--type-prose-sm-size);
}

@media (max-width: 767px) {
  .case-modes__tabs {
    margin-bottom: 20px;
  }

  .case-intro__copy,
  .case-intro__body,
  .case-article {
    max-width: none;
  }

  .case-article {
    line-height: var(--type-prose-leading);
    letter-spacing: var(--type-prose-tracking);
  }
}

.case-footer {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.case-footer__updated {
  margin: 0 0 20px;
  font-size: var(--type-caption-size);
  font-weight: 400;
  line-height: var(--type-prose-leading);
  color: var(--color-body);
  opacity: 0.72;
}

.case-footer__updated time {
  font-style: normal;
}

.case-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.case-pager__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    background 0.25s;
}

.case-pager__link--next {
  align-items: flex-end;
  text-align: right;
}

.case-pager__dir {
  font-size: var(--type-caption-size);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-body);
}

.case-pager__title {
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-title-tracking);
  color: var(--color-heading);
}

.case-pager__link--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  a.case-pager__link:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
  }

  a.case-pager__link:hover .case-pager__dir {
    color: var(--primary);
  }
}

a.case-pager__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .case-pager {
    grid-template-columns: 1fr;
  }

  .case-pager__link--next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-pager__link {
    transition: border-color 0.2s, background 0.2s;
  }

  a.case-pager__link:hover {
    transform: none;
  }
}

/* ===== pages/admin.css ===== */
/* Admin CMS — aligned with DESIGN.md tokens (header glass, scarce primary) */
.page-admin {
  --admin-field-gap: 24px;
  --admin-label-gap: 12px;
  --admin-section-gap: 28px;
  --admin-section-pad: clamp(28px, 3vw, 36px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-dark);
  color: var(--color-body);
  font-family: var(--font);
}

/* ---------- Login (viewport-centered) ---------- */
.admin-boot {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  box-sizing: border-box;
  color: var(--ink-muted);
  font-size: var(--type-prose-sm-size);
}

.admin-boot[hidden] {
  display: none !important;
}

.admin-login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  box-sizing: border-box;
  overflow: hidden;
}

.admin-login[hidden] {
  display: none !important;
}

.admin-login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(232, 80, 2, 0.1), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 55%);
}

.admin-login__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
}

.admin-login__panel {
  width: 100%;
  box-sizing: border-box;
  padding: var(--modal-pad);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-login__panel {
    background: var(--glass-fallback);
  }
}

.admin-login__head {
  margin: 0 0 28px;
}

.admin-login__head .admin-label {
  margin-bottom: 10px;
}

.admin-login__title {
  margin: 0 0 10px;
  font-size: var(--type-title-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  color: var(--color-heading);
}

.admin-login__desc {
  margin: 0;
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-sm-leading);
  color: var(--ink-muted);
}

.admin-login__form {
  display: grid;
  gap: var(--admin-field-gap);
}

.admin-login__field {
  display: grid;
  gap: var(--admin-label-gap);
  margin: 0;
  font-size: var(--type-label-size);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-body);
}

.admin-login__field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-heading);
  padding: 12px 14px;
  font: inherit;
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-sm-leading);
}

.admin-login__field input::placeholder {
  color: var(--ink-subtle);
}

.admin-login__field input:focus,
.admin-login__field input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: none;
}

.admin-login__submit {
  width: 100%;
  margin-top: 4px;
}

.admin-login__status {
  margin: 0;
  min-height: 1.4em;
  font-size: var(--type-label-size);
  line-height: var(--type-label-leading);
  color: var(--ink-muted);
}

.admin-login__status.admin-error {
  color: #ff8a80;
}

/* ---------- Dashboard chrome (matches site solid header) ---------- */
.admin-dash {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-dark);
}

.admin-dash[hidden] {
  display: none !important;
}

.admin-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: var(--header-offset) 0 0;
}

.admin-chrome__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: var(--header-bar-h);
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-chrome__inner {
    background: var(--glass-fallback);
  }
}

@media (max-width: 860px) {
  .admin-chrome__inner {
    width: var(--shell-track);
  }
}

.admin-chrome__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  text-decoration: none;
  color: var(--color-heading);
}

.admin-chrome__eyebrow {
  color: var(--primary);
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
}

.admin-chrome__name {
  font-size: var(--type-nav-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
}

.admin-chrome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-shell {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 48px 0 72px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

@media (max-width: 860px) {
  .admin-shell {
    width: var(--shell-track);
  }
}

.admin-page-head {
  display: grid;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-page-head .admin-label,
.admin-page-head .admin-title,
.admin-page-head .admin-desc {
  margin: 0;
}

.admin-label {
  margin: 0 0 8px;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-label);
}

.admin-title {
  margin: 0 0 12px;
  font-size: var(--type-title-size);
  font-weight: 700;
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-leading);
  color: var(--color-heading);
}

.admin-desc {
  margin: 0;
  max-width: 40rem;
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-sm-leading);
  color: var(--ink-muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.admin-tabs a,
.admin-tabs button {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: var(--type-nav-size);
  font-weight: 400;
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-nav-leading);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.admin-tabs a::after,
.admin-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.admin-tabs a:hover,
.admin-tabs button:hover {
  color: rgba(255, 255, 255, 0.72);
}

.admin-tabs a.is-active,
.admin-tabs button.is-active {
  background: transparent;
  color: var(--color-heading);
}

.admin-tabs a.is-active::after,
.admin-tabs button.is-active::after {
  background: var(--color-heading);
}

.admin-tabs a:focus-visible,
.admin-tabs button:focus-visible {
  outline: none;
  color: var(--color-heading);
}

.admin-tabs a:focus-visible::after,
.admin-tabs button:focus-visible::after {
  background: var(--primary);
}

.admin-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--modal-pad);
}

.admin-form {
  display: grid;
  gap: var(--admin-field-gap);
}

.admin-form[hidden] {
  display: none !important;
}

.admin-form label,
.admin-form .admin-field {
  display: grid;
  gap: var(--admin-label-gap);
  font-size: var(--type-label-size);
  color: var(--color-body);
}

.admin-field__label {
  display: block;
}

.admin-form label.admin-btn,
.admin-form label.admin-check {
  display: inline-flex;
  gap: 8px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-heading);
  padding: 12px 14px;
  font: inherit;
  font-size: var(--type-prose-sm-size);
}

.admin-form textarea {
  resize: vertical;
  min-height: 96px;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-form input:focus-visible,
.admin-form textarea:focus-visible,
.admin-form select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  align-items: center;
}

.admin-studio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--admin-section-gap);
}

.admin-section-card {
  display: grid;
  gap: var(--admin-field-gap);
  align-content: start;
  border-radius: var(--radius-md);
  padding: var(--admin-section-pad);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--shade-raised);
  box-sizing: border-box;
  grid-column: 1;
  width: 100%;
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
}

.admin-section-head__title {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: 700;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-heading);
}

.admin-section-head .admin-muted {
  margin: 0;
}

.admin-field-grid {
  display: grid;
  gap: var(--admin-field-gap);
}

.admin-field-grid--2 {
  grid-template-columns: 1fr;
}

.admin-section-card--side,
.admin-section-card--span2 {
  grid-column: 1;
  width: 100%;
}

@media (min-width: 860px) {
  .admin-field-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-field-block {
  display: grid;
  gap: var(--admin-label-gap);
  font-size: var(--type-label-size);
  color: var(--color-body);
}

.admin-field-block__label {
  display: block;
}

.admin-option-picker {
  display: grid;
  gap: 10px;
}

.admin-option-picker__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.admin-option-picker__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.admin-option-picker__actions .admin-btn {
  min-height: 0;
  height: 100%;
  min-width: 4.25rem;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.admin-option-picker__actions .admin-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.admin-option-picker__compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
}

.admin-option-picker__compose[hidden] {
  display: none !important;
}

.admin-option-picker__compose .admin-btn {
  min-height: 0;
  height: auto;
  border-radius: var(--radius-sm);
}

@media (max-width: 560px) {
  .admin-option-picker__main,
  .admin-option-picker__compose {
    grid-template-columns: 1fr;
  }

  .admin-option-picker__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-option-picker__actions .admin-btn {
    min-height: 44px;
  }
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 40px;
  border: 0;
  border-radius: var(--btn-radius);
  padding: 0 16px;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--btn-weight);
  letter-spacing: var(--type-label-tracking);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  color: var(--on-primary);
  background: var(--primary);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.admin-btn:hover {
  background: var(--primary-hover);
}

.admin-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-heading);
}

.admin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.admin-btn--danger {
  background: transparent;
  border: 1px solid rgba(255, 90, 90, 0.45);
  color: #ff8a80;
}

.admin-btn--danger:hover {
  background: rgba(255, 90, 90, 0.08);
}

.admin-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.admin-btn--ghost:focus-visible,
.admin-btn--danger:focus-visible {
  border-color: var(--primary);
  box-shadow: none;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: var(--header-offset) 0 0;
}

.admin-top__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: var(--header-bar-h);
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

.admin-top__brand {
  margin: 0;
  font-size: var(--type-nav-size);
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}

.admin-top__brand span {
  color: var(--primary);
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  margin-right: 8px;
}

.admin-top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-shell--narrow {
  width: min(100% - (var(--gutter) * 2), 420px);
}

.admin-dash .footer {
  margin-top: auto;
  flex-shrink: 0;
}

.admin-muted {
  color: var(--ink-muted);
  margin: 0;
  font-size: var(--type-prose-sm-size);
  line-height: var(--type-prose-leading);
}

.admin-error {
  color: #ff8f8f;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-prose-size);
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.admin-table th {
  font-size: var(--type-label-size);
  color: var(--ink-muted);
  font-weight: 600;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--btn-radius);
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  text-transform: capitalize;
}

.admin-badge--published {
  background: rgba(232, 80, 2, 0.18);
  color: var(--primary);
}

.admin-badge--draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

.admin-grid-2 {
  display: grid;
  gap: var(--admin-field-gap);
}

@media (min-width: 860px) {
  .admin-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-thumb-preview {
  margin: 0;
  max-width: 280px;
}

.admin-thumb-preview img,
.admin-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.admin-cover-preview {
  max-width: 200px;
}

.admin-block {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  display: grid;
  gap: var(--admin-label-gap);
  background: rgba(0, 0, 0, 0.2);
}

.admin-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-block__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-block__tools button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--color-heading);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
}

.admin-block__img,
.admin-block__pair img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 6px;
}

.admin-block__pair {
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .admin-block__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-block__pair figcaption {
  margin: 0 0 6px;
  font-size: var(--type-label-size);
  color: var(--ink-muted);
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.admin-meta-fetch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin: 0;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--type-label-size);
  color: var(--ink-muted);
  cursor: pointer;
}

.admin-check input {
  width: auto;
  margin: 0;
}

.admin-hint {
  margin: 0;
  font-size: var(--type-label-size);
  line-height: var(--type-prose-leading);
  color: var(--ink-muted);
}

.admin-hint code {
  font-size: var(--type-prose-sm-size);
}

.admin-work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-body-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-body-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-body-panel {
  display: grid;
  gap: var(--admin-field-gap);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.admin-work-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-body);
  padding: 0 16px;
  min-height: 40px;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: 500;
  line-height: 1;
  cursor: grab;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-work-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-heading);
}

.admin-work-tab.is-active {
  border-color: rgba(232, 80, 2, 0.75);
  color: var(--color-heading);
  background: rgba(232, 80, 2, 0.14);
}

.admin-work-tab.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.admin-work-tab.is-drop-target {
  border-color: var(--primary);
  color: var(--color-heading);
}

.admin-work-tab:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.admin-panel[hidden] {
  display: none !important;
}

.case-text-block {
  margin: 0 0 24px;
}

.case-text-block__title {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: var(--type-subtitle-size);
  line-height: var(--type-subtitle-leading);
}

.case-text-block__body {
  margin: 0;
  max-width: none;
  width: 100%;
  line-height: var(--type-prose-leading);
}

.case-text-block__body p {
  margin: 0 0 0.65em;
}

.case-text-block__body p:last-child {
  margin-bottom: 0;
}

.admin-rte {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  /* sticky chrome needs a non-clipping ancestor */
  overflow: visible;
}

.admin-rte-chrome {
  position: sticky;
  /* Sit just under .admin-chrome (offset + bar), never overlap */
  top: calc(
    max(var(--header-offset), env(safe-area-inset-top, 0px)) + var(--header-bar-h) + 8px
  );
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 14, 0.97);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* CK sticky panel is disabled — our chrome owns stickiness */
.admin-rte-chrome .ck-sticky-panel__content,
.admin-rte-chrome .ck-sticky-panel__content_sticky {
  position: static !important;
  top: auto !important;
  width: auto !important;
  box-shadow: none !important;
}

.admin-rte .ck.ck-editor {
  border: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  background: transparent;
}

.admin-rte:focus-within {
  border-color: var(--primary);
  outline: none;
  box-shadow: none;
}

.admin-rte > textarea {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 160px;
  pointer-events: none;
}

.admin-rte[data-html-mode="1"] > textarea {
  pointer-events: auto;
}

.admin-rte > textarea:focus,
.admin-rte > textarea:focus-visible {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-rte-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.admin-rte-presets__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-rte-presets__label {
  margin-right: 4px;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--ink-muted);
}

.admin-rte-presets__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--btn-weight);
  letter-spacing: var(--type-label-tracking);
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-rte-presets__btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.admin-rte-presets__btn:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.admin-rte-presets__btn.is-active,
.admin-rte-presets__btn[aria-pressed="true"] {
  border-color: rgba(232, 80, 2, 0.85);
  background: rgba(232, 80, 2, 0.22);
  color: var(--color-heading);
}

.admin-rte-presets__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-rte-presets__swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: var(--swatch, #fff);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-rte-presets__swatch:hover,
.admin-rte-presets__swatch:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.case-text-block__body img,
.case-intro__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75em 0;
  border-radius: var(--radius-sm);
}

.page-admin .ck.ck-editor {
  width: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* Toolbar lives in .admin-rte-chrome (outside .ck-editor) — tokens must reach it too */
.page-admin .admin-rte,
.page-admin .admin-rte .ck.ck-editor {
  --ck-color-base-border: transparent;
  --ck-color-base-background: transparent;
  --ck-color-base-foreground: var(--color-heading);
  --ck-color-text: var(--color-heading);
  --ck-color-content-font: var(--color-body);
  --ck-color-shadow-drop: transparent;
  --ck-color-shadow-inner: transparent;
  --ck-inner-shadow: none;
  --ck-drop-shadow: none;
  --ck-color-toolbar-background: rgba(255, 255, 255, 0.04);
  --ck-color-toolbar-border: rgba(255, 255, 255, 0.1);
  --ck-color-button-default-background: transparent;
  --ck-color-button-default-hover-background: rgba(255, 255, 255, 0.1);
  --ck-color-button-default-active-background: rgba(255, 255, 255, 0.14);
  --ck-color-button-on-background: rgba(232, 80, 2, 0.28);
  --ck-color-button-on-hover-background: rgba(232, 80, 2, 0.36);
  --ck-color-button-on-color: #ffffff;
  --ck-color-list-button-on-background: rgba(232, 80, 2, 0.28);
  --ck-color-list-button-on-text: #ffffff;
  --ck-color-dropdown-panel-background: var(--shade-raised);
  --ck-color-dropdown-panel-border: rgba(255, 255, 255, 0.14);
  --ck-color-list-background: var(--shade-raised);
  --ck-color-list-button-hover-background: rgba(255, 255, 255, 0.08);
  --ck-color-panel-background: var(--shade-raised);
  --ck-color-panel-border: rgba(255, 255, 255, 0.14);
  --ck-color-input-background: rgba(0, 0, 0, 0.35);
  --ck-color-input-border: rgba(255, 255, 255, 0.14);
  --ck-color-input-text: var(--color-heading);
  --ck-color-tooltip-background: var(--shade-raised);
  --ck-color-tooltip-text: var(--color-heading);
  --ck-color-engine-placeholder-text: var(--ink-subtle);
  --ck-color-focus-border: transparent;
  --ck-focus-ring: 0;
  --ck-border-radius: 0;
}

.page-admin .ck.ck-editor.ck-rounded-corners,
.page-admin .ck.ck-editor.ck-rounded-corners > .ck-editor__top .ck-sticky-panel__content,
.page-admin .ck.ck-editor.ck-rounded-corners > .ck-editor__main > .ck-editor__editable {
  border-radius: 0 !important;
}

.page-admin .ck.ck-editor:focus-within {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

.page-admin .ck-content {
  max-width: none;
  font-family: var(--font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
  color: var(--color-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-admin .ck-content h1,
.page-admin .ck-content h1.ck-heading_heading1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-leading);
  font-weight: var(--type-h1-weight);
  letter-spacing: var(--type-h1-tracking);
  color: var(--color-heading);
}

.page-admin .ck-content h2,
.page-admin .ck-content h2.ck-heading_heading2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-leading);
  font-weight: var(--type-h2-weight);
  letter-spacing: var(--type-h2-tracking);
  color: var(--color-heading);
}

.page-admin .ck-content h3,
.page-admin .ck-content h3.ck-heading_heading3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-leading);
  font-weight: var(--type-h3-weight);
  letter-spacing: var(--type-h3-tracking);
  color: var(--color-heading);
}

.page-admin .ck-content h4,
.page-admin .ck-content h4.ck-heading_heading4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-leading);
  font-weight: var(--type-h4-weight);
  letter-spacing: var(--type-h4-tracking);
  color: var(--color-heading);
}

.page-admin .ck-content h5,
.page-admin .ck-content h5.ck-heading_heading5 {
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-leading);
  font-weight: var(--type-h5-weight);
  letter-spacing: var(--type-h5-tracking);
  color: var(--color-heading);
}

.page-admin .ck-content p,
.page-admin .ck-content p.ck-heading_paragraph {
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
  color: var(--color-body);
}

.page-admin .ck-content strong,
.page-admin .ck-content b {
  color: inherit;
  font-weight: var(--type-body-strong-weight, 700);
}

.page-admin .ck-content a {
  color: var(--primary);
}

/* Preset color spans must beat heading / link / strong type colors */
.page-admin .ck-content [data-cms-color="#E85002"],
.page-admin .ck-content [data-cms-color="#E85002"] * {
  color: #e85002 !important;
}
.page-admin .ck-content [data-cms-color="#FFFFFF"],
.page-admin .ck-content [data-cms-color="#FFFFFF"] * {
  color: #ffffff !important;
}
.page-admin .ck-content [data-cms-color="#A3A3A3"],
.page-admin .ck-content [data-cms-color="#A3A3A3"] * {
  color: #a3a3a3 !important;
}
.page-admin .ck-content [data-cms-color="#7A7A7A"],
.page-admin .ck-content [data-cms-color="#7A7A7A"] * {
  color: #7a7a7a !important;
}

.page-admin .ck-content u {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

.page-admin .ck-content s {
  text-decoration: line-through;
  text-decoration-thickness: from-font;
}

.page-admin .ck-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.page-admin .ck-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.page-admin .ck-content li {
  margin: 0;
  padding-left: 0.1rem;
  line-height: var(--type-body-leading);
  color: var(--color-body);
}

.page-admin .ck-content li + li {
  margin-top: 0;
}

.page-admin .ck-content li::marker {
  color: var(--color-body-soft);
}

.page-admin .ck-content li > p {
  margin: 0;
}

.page-admin .ck-content table,
.page-admin .ck-content .table table,
.page-admin .ck-content figure.table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0;
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-leading);
  letter-spacing: var(--type-body-sm-tracking);
  color: var(--color-body);
  table-layout: fixed;
  box-sizing: border-box;
  /* Beat CK default #bfbfbf (invisible on dark admin) */
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

.page-admin .ck-content figure.table {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: block;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
}

.page-admin .ck-content table col {
  box-sizing: border-box;
}

.page-admin .ck-editor__editable.is-col-resizing,
.page-admin .ck-editor__editable.is-row-resizing {
  cursor: inherit;
  user-select: none;
}

.page-admin .ck-editor__editable.is-col-resizing {
  cursor: col-resize !important;
}

.page-admin .ck-editor__editable.is-row-resizing {
  cursor: row-resize !important;
}

.page-admin .ck-content figure.table {
  position: relative;
}

.page-admin .ck-content table {
  table-layout: fixed;
  width: 100%;
}

.page-admin .ck-content th,
.page-admin .ck-content td,
.page-admin .ck-content .table table th,
.page-admin .ck-content .table table td,
.page-admin .ck-content figure.table table th,
.page-admin .ck-content figure.table table td {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: middle;
  color: var(--color-body);
  background: transparent;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.page-admin .ck-content th,
.page-admin .ck-content td.cms-cell-header,
.page-admin .ck-content th.cms-cell-header,
.page-admin .ck-content td[data-cms-header],
.page-admin .ck-content th[data-cms-header] {
  font-weight: 600 !important;
  color: var(--color-heading) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Cell <p> must inherit table type — not body paragraph tokens */
.page-admin .ck-content th p,
.page-admin .ck-content td p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  color: inherit;
}

.page-admin .ck-content table .ck-editor__nested-editable {
  min-height: 0 !important;
}

.page-admin .ck-content blockquote {
  margin: 0 !important;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid rgba(232, 80, 2, 0.7);
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-leading);
  letter-spacing: var(--type-quote-tracking);
  font-weight: var(--type-quote-weight);
  color: var(--color-body-soft);
  font-style: normal;
}

.page-admin .ck-content hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0;
  height: 0;
}

/* Selectable horizontal rule (editing view wrapper) */
.page-admin .ck-content .ck-horizontal-line {
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 10px 0;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-color 0.15s, background 0.15s;
}

.page-admin .ck-content .ck-horizontal-line:hover {
  background: rgba(255, 255, 255, 0.03);
  outline-color: rgba(255, 255, 255, 0.18);
}

.page-admin .ck-content .ck-horizontal-line.ck-widget_selected,
.page-admin .ck-content .ck-horizontal-line:focus,
.page-admin .ck.ck-editor__editable.ck-focused .ck-horizontal-line[aria-selected="true"] {
  background: rgba(232, 80, 2, 0.08);
  outline-color: rgba(232, 80, 2, 0.7);
}

.page-admin .ck-content .ck-horizontal-line > hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 0;
  height: 0;
  pointer-events: none;
}

.page-admin .ck-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.page-admin .ck-content figure {
  margin: 0;
}

.page-admin .ck-content figure.media {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-admin .ck-content figure.media iframe,
.page-admin .ck-content figure.media > div {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.page-admin .ck-content figure.media iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  background: #000;
}

.page-admin .ck-content figure img {
  margin: 0;
}

.page-admin .ck-content figcaption {
  margin-top: 0.35em;
  font-size: var(--type-caption-size);
  color: var(--ink-muted);
}

.page-admin .ck-editor__editable {
  min-height: 160px;
  color: var(--color-body);
  background: transparent !important;
  padding: 18px 20px !important;
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  letter-spacing: var(--type-body-tracking);
  font-weight: var(--type-body-weight);
  border: 0 !important;
  box-shadow: none !important;
}

/*
  Editor = plain writing surface. Kill UA/CK block margins.
  Same flush rhythm as public .case-article (heading→p / heading→table).
*/
.page-admin .ck-content p,
.page-admin .ck-content h1,
.page-admin .ck-content h2,
.page-admin .ck-content h3,
.page-admin .ck-content h4,
.page-admin .ck-content h5,
.page-admin .ck-content ul,
.page-admin .ck-content ol,
.page-admin .ck-content li,
.page-admin .ck-content blockquote,
.page-admin .ck-content figure,
.page-admin .ck-content hr,
.page-admin .ck-content > * {
  margin: 0 !important;
}

/*
  Tables/images/media: body half-leading (same tokens as public case-article).
*/
.page-admin .ck-content > figure.table,
.page-admin .ck-content > figure.image,
.page-admin .ck-content > figure.media {
  margin-top: var(--prose-lead-before) !important;
  margin-bottom: var(--prose-lead-after) !important;
}

.page-admin .ck-content > figure.table:first-child,
.page-admin .ck-content > figure.image:first-child,
.page-admin .ck-content > figure.media:first-child {
  margin-top: 0 !important;
}

.page-admin .ck-content > figure.table:last-child,
.page-admin .ck-content > figure.image:last-child,
.page-admin .ck-content > figure.media:last-child {
  margin-bottom: 0 !important;
}

.page-admin .ck-content > p:has(> br:only-child) + figure.table,
.page-admin .ck-content > p:has(> br:only-child) + figure.image,
.page-admin .ck-content > p:has(> br:only-child) + figure.media,
.page-admin .ck-content > p:has(> br:first-child:last-child) + figure.table,
.page-admin .ck-content > p:has(> br:first-child:last-child) + figure.image,
.page-admin .ck-content > p:has(> br:first-child:last-child) + figure.media,
.page-admin .ck-content > p:empty + figure.table,
.page-admin .ck-content > p:empty + figure.image,
.page-admin .ck-content > p:empty + figure.media {
  margin-top: 0 !important;
}

.page-admin .ck-content > h1 {
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
}

.page-admin .ck-content > h2 {
  line-height: var(--type-h2-leading);
  letter-spacing: var(--type-h2-tracking);
}

.page-admin .ck-content > h3 {
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
}

.page-admin .ck-content > h4 {
  line-height: var(--type-h4-leading);
  letter-spacing: var(--type-h4-tracking);
}

.page-admin .ck-content > h5 {
  line-height: var(--type-h5-leading);
  letter-spacing: var(--type-h5-tracking);
}

/* Empty paragraphs must not invent extra block gaps — one body line only */
.page-admin .ck-content p:has(> br:only-child),
.page-admin .ck-content p:has(> br:first-child:last-child),
.page-admin .ck-content p:empty {
  min-height: 0 !important;
  height: auto !important;
  line-height: var(--type-body-leading) !important;
  padding: 0 !important;
}

.page-admin .admin-rte--compact .ck-editor__editable {
  min-height: 240px;
}

.page-admin .admin-rte--tall .ck-editor__editable {
  min-height: 420px;
}

.page-admin .ck.ck-toolbar {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.page-admin .ck.ck-toolbar .ck-toolbar__separator {
  background: rgba(255, 255, 255, 0.14) !important;
}

.page-admin .ck.ck-toolbar .ck-button,
.page-admin .ck.ck-toolbar .ck-dropdown__button,
.page-admin .ck.ck-toolbar .ck-button__label {
  color: var(--color-heading) !important;
}

.page-admin .ck.ck-toolbar .ck-button_with-text {
  padding-inline: 8px !important;
}

.page-admin .ck.ck-toolbar .ck-button_with-text .ck-button__label {
  font-size: var(--type-label-size) !important;
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
}

.page-admin .ck.ck-toolbar .ck-icon {
  color: var(--color-heading) !important;
  fill: currentColor !important;
}

.page-admin .ck.ck-toolbar .ck-button:not(.ck-disabled):hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-heading) !important;
}

/* Active (ck-on): never use CK light-theme white — icon must stay visible */
.page-admin .ck.ck-toolbar .ck-button.ck-on,
.page-admin .ck.ck-toolbar .ck-button.ck-on:hover,
.page-admin .ck.ck-toolbar .ck-button.ck-on:not(.ck-disabled):hover {
  background: rgba(232, 80, 2, 0.32) !important;
  color: #ffffff !important;
}

.page-admin .ck.ck-toolbar .ck-button.ck-on .ck-button__label,
.page-admin .ck.ck-toolbar .ck-button.ck-on .ck-icon {
  color: #ffffff !important;
  fill: currentColor !important;
}

.page-admin .ck.ck-toolbar .ck-button.ck-on .ck-icon svg,
.page-admin .ck.ck-toolbar .ck-button.ck-on .ck-icon svg * {
  fill: currentColor !important;
  color: inherit !important;
}

.page-admin .ck.ck-dropdown__panel,
.page-admin .ck.ck-list,
.page-admin .ck.ck-balloon-panel {
  background: var(--shade-raised) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--color-heading) !important;
}

.page-admin .ck.ck-list__item .ck-button,
.page-admin .ck.ck-list__item .ck-button__label {
  color: var(--color-heading) !important;
}

.page-admin .ck.ck-editor__top .ck-sticky-panel__content,
.page-admin .ck.ck-editor__main > .ck-editor__editable,
.page-admin .ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
  border: 0 !important;
  box-shadow: none !important;
}

.page-admin .ck.ck-editor__editable.ck-focused {
  border: 0 !important;
  box-shadow: none !important;
}

.admin-item-cards {
  display: grid;
  gap: 16px;
}

.admin-item-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
}

.admin-item-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-item-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: var(--type-prose-sm-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--color-heading);
}

.admin-item-card__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-size: var(--type-caption-size);
  font-weight: 600;
}

.admin-item-card__sub {
  color: var(--ink-muted);
  font-size: var(--type-label-size);
  line-height: var(--type-prose-leading);
}

.admin-item-card__sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: var(--type-prose-sm-size);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-heading);
}

.admin-item-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-top__bar,
  .admin-chrome__inner,
  .admin-card,
  .admin-login__panel {
    background: var(--glass-fallback, var(--shade-raised));
  }
}

/* ===== pages/album.css ===== */
/* ---------- Album ---------- */
.page-hero .section__desc--wide {
  max-width: none;
  width: 100%;
}

@media (max-width: 700px) {
  .album-desc-break {
    display: none;
  }
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow: visible;
}

@media (max-width: 700px) {
  .album-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.album-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.album-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.album-item.album-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.985);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  will-change: opacity, transform;
}

.album-item.album-reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
  transition: transform 0.35s var(--ease);
}

.album-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .album-item.album-reveal.is-in:hover,
  .album-item:not(.album-reveal):hover {
    z-index: 2;
    transform: translate3d(0, -8px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-item.album-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .album-item.album-reveal.is-in:hover,
  .album-item:not(.album-reveal):hover {
    transform: none;
  }
}

.album-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-2);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}

/* ===== pages/album-info.css ===== */
/* Album info popup — aligned with inquiry-modal system */
.album-info {
  position: fixed;
  inset: 0;
  z-index: 100040;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding:
    max(var(--gutter), env(safe-area-inset-top, 0px))
    calc(var(--gutter) + var(--scroll-lock-pad, 0px))
    max(var(--gutter), env(safe-area-inset-bottom, 0px))
    var(--gutter);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.36s;
}

.album-info.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.album-info__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.36s var(--ease);
}

.album-info.is-open .album-info__backdrop {
  opacity: 1;
}

.album-info__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(100%, 520px);
  /* Outer .album-info gutter pad already reserved — fit remaining viewport */
  max-height: calc(
    100dvh - (var(--gutter) * 2) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
  );
  max-height: calc(
    100svh - (var(--gutter) * 2) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
  );
  overflow: hidden;
  padding: var(--modal-pad);
  border-radius: 28px;
  color: var(--color-heading);
  border: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.album-info.is-open .album-info__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.album-info__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.album-info__scroll-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: album-scroll-bob 1.6s var(--ease-soft) infinite;
}

.album-info__scroll-hint[hidden] {
  display: none !important;
}

.album-info__scroll-hint span {
  position: relative;
  width: 10px;
  height: 10px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.album-info__scroll-hint:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(8, 8, 10, 0.72);
  color: var(--color-heading);
}

.album-info__scroll-hint:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@keyframes album-scroll-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 7px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-info__scroll-hint {
    animation: none;
  }
}

.album-info__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin: 0 0 16px;
  min-height: 28px;
}

.album-info__cover {
  --album-cover-budget: calc(
    100dvh - 32px - 22rem - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px)
  );
  --album-cover-budget-svh: calc(
    100svh - 32px - 22rem - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px)
  );
  position: relative;
  z-index: 1;
  /* Square capped by viewport leftover after head + meta + pads */
  width: min(100%, var(--album-cover-budget), var(--album-cover-budget-svh));
  max-height: min(var(--album-cover-budget), var(--album-cover-budget-svh));
  margin: 0 auto;
  flex: 0 1 auto;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  height: auto;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  box-shadow: none;
}

.album-info__cover-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

.album-info__cover-link.is-static {
  cursor: default;
  pointer-events: none;
}

.album-info__cover-link:focus,
.album-info__cover-link:focus-visible {
  outline: none;
}

.album-info.is-open .album-info__cover-link:not(.is-static):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.album-info__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  outline: none;
  background: transparent;
}

@media (min-width: 901px) {
  .album-info__dialog {
    width: min(100%, 520px);
  }
}

.album-info__close {
  position: static;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.album-info__close span {
  position: relative;
  width: 10px;
  height: 10px;
}

.album-info__close span::before,
.album-info__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.25px;
  background: currentColor;
}

.album-info__close span::before {
  transform: rotate(45deg);
}

.album-info__close span::after {
  transform: rotate(-45deg);
}

.album-info__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-heading);
}

.album-info__close:focus-visible {
  outline: none;
  border-color: var(--primary);
  color: var(--color-heading);
}

.album-info__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  color: var(--primary);
  line-height: 1;
}

.album-info__meta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.album-info__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.album-info__row:first-child {
  border-top: none;
}

.album-info__row dt,
.album-info__row dd {
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

.album-info__row dt {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-meta);
}

.album-info__row dd {
  font-size: var(--type-prose-sm-size);
  font-weight: var(--type-prose-sm-weight);
  letter-spacing: var(--type-prose-sm-tracking);
  color: var(--color-body-soft);
  overflow-wrap: anywhere;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-info__body:has(.album-info__cover-link:not(.is-static):hover) .album-info__row dd,
.album-info__body:has(.album-info__cover-link:not(.is-static):focus-visible) .album-info__row dd {
  color: var(--primary);
}

/* Mobile chrome (≤1100): album info as full-screen page; content = header shell */
@media (max-width: 1100px) {
  .album-info {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    padding-right: var(--scroll-lock-pad, 0px);
    background: var(--pure-black);
  }

  .album-info__backdrop {
    background: var(--pure-black);
    cursor: default;
  }

  .album-info__dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    min-height: 100svh;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    padding: calc(var(--modal-pad) + env(safe-area-inset-top, 0px)) 0
      calc(var(--modal-pad) + env(safe-area-inset-bottom, 0px));
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .album-info__body {
    width: var(--shell-track);
    max-width: var(--shell-track);
    box-sizing: border-box;
    overflow: visible;
    flex: 0 0 auto;
    min-height: 0;
  }

  .album-info__scroll-hint {
    display: none !important;
  }

  .album-info__head {
    margin: 0 0 20px;
    min-height: 28px;
  }

  .album-info__cover {
    /* Always match .album-info__body width (header shell); page scrolls if tall */
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
  }

  .album-info__meta {
    margin: 20px 0 0;
    padding: 0;
  }

  .album-info__row {
    padding: 12px 0;
    gap: 6px 12px;
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-info,
  .album-info__backdrop,
  .album-info__dialog {
    transition-duration: 0.01ms !important;
  }

  .album-info__dialog {
    transform: none;
  }
}

/* ===== pages/video.css ===== */
/* ---------- Video ---------- */
.section:has(.video-group) {
  overflow: visible;
}

.section:has(.video-group) > .container {
  overflow: visible;
}

.video-group + .video-group {
  margin-top: 56px;
}

.video-group__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.video-group__title {
  --title-size: var(--type-prose-size);
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45em;
  font-size: var(--title-size);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  line-height: 1;
  color: var(--ink);
}

.video-group__name {
  min-width: 0;
  display: inline-block;
  line-height: var(--type-s3-leading);
}

.video-group__badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  /* Size off title, not nested em — keeps circle stable */
  width: calc(var(--title-size) * 1.08);
  height: calc(var(--title-size) * 1.08);
  min-width: calc(var(--title-size) * 1.08);
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background: rgba(232, 80, 2, 0.14);
  color: var(--primary);
  font-size: calc(var(--title-size) * 0.52);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--type-prose-tracking);
  line-height: 1;
  /* Optical center for digits in a circle */
  padding-top: 0.08em;
}

.video-slider {
  position: relative;
  /* Keep controls fully outside the slide strip */
  --slider-btn-out: 76px;
  overflow: visible;
}

.video-slider__nav {
  position: absolute;
  top: 0;
  bottom: 4px;
  left: calc(-1 * var(--slider-btn-out));
  right: calc(-1 * var(--slider-btn-out));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  pointer-events: none;
}

.video-slider__nav[hidden] {
  display: none !important;
}

.video-slider__btn svg {
  width: var(--icon-control);
  height: var(--icon-control);
}

.video-slider__btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 12, 14, 0.78);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.video-slider__btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(24, 24, 28, 0.92);
  color: var(--color-heading);
}

.video-slider__btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.video-slider__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.video-grid {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Room for hover lift so cards aren't clipped at the top */
  padding-top: 10px;
  padding-bottom: 6px;
  margin-top: -10px;
}

.video-grid.is-sliding {
  scroll-snap-type: none;
}

.video-grid::-webkit-scrollbar {
  display: none;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark-1);
  cursor: pointer;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  display: block;
  flex: 0 0 min(420px, 78vw);
  width: min(420px, 78vw);
  max-width: 100%;
  text-align: left;
  padding: 0;
  scroll-snap-align: start;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom scrim — always on; text sits on top */
.video-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  border-radius: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.78) 38%,
    rgba(0, 0, 0, 0.28) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 1;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 18px 18px;
  color: var(--color-heading);
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.video-card__info .tag {
  display: inline-block;
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: var(--type-caption-tracking);
  text-transform: lowercase;
  color: var(--color-label);
  margin-bottom: 6px;
}

.video-card__info .tag::first-letter {
  text-transform: uppercase;
}

.video-card__info .video-card__title,
.video-card__info h3 {
  display: block;
  font-size: var(--type-prose-sm-size);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-heading);
}

.video-card__info p {
  font-size: var(--type-caption-size);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

@media (max-width: 800px) {
  .video-slider__nav {
    display: none !important;
  }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    cursor: auto;
    touch-action: auto;
  }

  .video-card {
    flex: none;
    width: auto;
    max-width: none;
    scroll-snap-align: none;
  }

  .video-card__info {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 767px) {
  .video-group + .video-group {
    margin-top: 36px;
  }

  .video-group__head {
    margin-bottom: 14px;
  }

  .video-group__title {
    --title-size: var(--type-prose-sm-size);
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-card__info {
    padding: 14px 16px 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .video-card:hover,
  .video-card:focus-visible {
    transform: translate3d(0, -6px, 0);
  }
}

.video-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
  .video-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card {
    transition: none;
  }

  .video-card:hover,
  .video-card:focus-visible {
    transform: none;
  }
}

/* ===== pages/photo.css ===== */
/* ---------- Photo page ---------- */
.page-hero--photo {
  border-bottom: none;
  color: var(--color-heading);
}

.page-hero--photo .section__label {
  color: var(--color-label);
}

.page-hero--photo .section__title {
  color: var(--color-heading);
}

.page-hero--photo .section__desc {
  max-width: 40rem;
  color: var(--color-body-soft);
}

.page-hero--photo .section__desc.section__desc--wide {
  max-width: none;
}

.section--photo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  /* Image defines section height; cancel default section padding */
  padding-block: 0;
}

.section--photo-bg__media {
  position: relative;
  z-index: 0;
  width: 100%;
  line-height: 0;
}

.section--photo-bg__media img {
  display: block;
  width: 100%;
  height: auto;
}

.section--photo-bg__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.62) 100%
  );
  pointer-events: none;
}

.section--photo-bg > .container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-block: clamp(32px, 4vw, 56px);
}

/* PC: lift panels so beach figure isn’t covered */
@media (min-width: 801px) {
  .section--photo-bg > .container {
    padding-top: clamp(48px, 6.5vw, 96px);
    padding-bottom: clamp(32px, 4vw, 56px);
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  /* Mobile: section grows with stacked cards; image covers as background (no clip). */
  .section--photo-bg__media {
    position: absolute;
    inset: 0;
  }

  .section--photo-bg__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .section--photo-bg > .container {
    position: relative;
    inset: auto;
    align-items: stretch;
    padding-block: clamp(28px, 6vw, 48px);
  }

  .photo-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .section--photo-bg .photo-panel {
    padding: 20px 22px;
  }

  .section--photo-bg .photo-panel p,
  .section--photo-bg .photo-panel .photo-rich {
    font-size: var(--type-prose-sm-size);
    line-height: var(--type-prose-sm-leading);
  }
}

@media (max-width: 767px) {
  .section--photo-bg > .container {
    padding-block: 24px;
  }

  .photo-grid {
    gap: 12px;
  }

  .section--photo-bg .photo-panel {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .section--photo-bg .photo-panel h3 {
    font-size: var(--type-subtitle-size);
  }

  .section--photo-bg .photo-panel p,
  .section--photo-bg .photo-panel .photo-rich {
    font-size: var(--type-caption-size);
    line-height: var(--type-caption-leading);
  }
}

.section--photo-bg .photo-panel {
  --photo-lift-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--hud-glass-bg);
  backdrop-filter: var(--hud-glass-backdrop);
  -webkit-backdrop-filter: var(--hud-glass-backdrop);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-heading);
  text-decoration: none;
  transition:
    background var(--motion-ui) ease,
    opacity var(--motion-reveal) var(--ease),
    transform 0.22s var(--photo-lift-ease);
}

@media (hover: hover) and (pointer: fine) {
  .section--photo-bg a.photo-panel:hover {
    z-index: 2;
    transform: translate3d(0, -8px, 0);
    background: var(--hud-glass-bg);
  }
}

@media (hover: none), (pointer: coarse) {
  .section--photo-bg a.photo-panel:hover {
    transform: none;
  }
}

.section--photo-bg a.photo-panel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.section--photo-bg .photo-panel .feature__tag {
  margin-bottom: 12px;
}

.section--photo-bg .photo-panel h3 {
  font-size: var(--type-prose-sm-size);
  letter-spacing: var(--type-title-tracking);
  margin: 0 0 8px;
  line-height: var(--type-s3-leading);
  color: var(--color-heading);
}

.section--photo-bg .photo-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
}

@media (prefers-reduced-motion: reduce) {
  .section--photo-bg a.photo-panel:hover {
    transform: none;
  }
}

/* Fallback if panels used outside photo bg */
.photo-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

a.photo-panel:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--surface-1);
}

a.photo-panel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.photo-panel .feature__tag {
  margin-bottom: 12px;
}

.photo-panel h3 {
  font-size: var(--type-prose-sm-size);
  letter-spacing: var(--type-title-tracking);
  margin: 0 0 8px;
  line-height: var(--type-s3-leading);
}

.photo-panel p,
.photo-panel .photo-rich {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
}

.photo-panel .photo-rich p {
  margin: 0 0 0.55em;
}

.photo-panel .photo-rich p:last-child {
  margin-bottom: 0;
}

.photo-panel .photo-rich h1 {
  margin: 0 0 0.4em;
  color: var(--color-heading);
  font-size: var(--type-title-size);
  font-weight: 600;
  line-height: var(--type-title-leading);
}

.photo-panel .photo-rich h2 {
  margin: 0 0 0.35em;
  color: var(--color-heading);
  font-size: var(--type-subtitle-size);
  font-weight: 600;
  line-height: var(--type-subtitle-leading);
}

.photo-panel .photo-rich h3 {
  margin: 0 0 0.3em;
  color: var(--color-heading);
  font-size: var(--type-prose-size);
  font-weight: 600;
  line-height: var(--type-s3-leading);
}

.photo-panel .photo-rich ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0.35em 0;
}

.photo-panel .photo-rich ol {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0.35em 0;
}

.photo-panel .photo-rich li {
  margin: 0.2em 0;
}

.photo-panel .photo-rich table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

.photo-panel .photo-rich th,
.photo-panel .photo-rich td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.photo-panel .photo-rich th {
  font-weight: 600;
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.04);
}

.photo-panel .photo-rich blockquote {
  margin: 0.75rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(232, 80, 2, 0.7);
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-leading);
  letter-spacing: var(--type-quote-tracking);
  font-weight: var(--type-quote-weight);
  color: var(--ink-muted);
}

.photo-panel .photo-rich hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 1rem 0;
}

.photo-panel .photo-rich img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.6em 0;
  border-radius: var(--radius-sm);
}

/* ===== pages/error.css ===== */
/* ---------- 404 / error page ---------- */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px var(--gutter);
  gap: 16px;
}

.error-page__code {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  color: var(--primary);
  line-height: 1;
}

.error-page__title {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  color: var(--color-heading);
}

.error-page__desc {
  margin: 0;
  color: var(--ink-2);
  margin-bottom: 12px;
}

/* ===== pages/type-guide.css ===== */
/* Type specimen page — TYPEGUIDE.md companion */
.page-type-guide {
  background: var(--pure-black);
  color: var(--ink);
}

.page-type-guide .type-guide {
  padding-bottom: 96px;
}

.type-guide__intro {
  max-width: var(--prose-measure);
  margin: 0 0 48px;
  color: var(--color-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
}

.type-guide__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.type-guide__toc a {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  color: var(--color-body-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.type-guide__toc a:hover {
  color: var(--primary);
}

.type-guide__section {
  margin: 0 0 64px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.type-guide__section > h2 {
  margin: 24px 0 8px;
  font-size: var(--type-s2-size);
  line-height: var(--type-s2-leading);
  letter-spacing: var(--type-s2-tracking);
  font-weight: var(--type-s2-weight);
  color: var(--color-heading);
}

.type-guide__section > p {
  margin: 0 0 28px;
  max-width: var(--prose-measure);
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-leading);
  color: var(--color-body);
}

.type-guide__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) minmax(0, 1fr);
  gap: 12px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.type-guide__meta {
  margin: 0;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  font-weight: var(--type-caption-weight);
  color: var(--color-meta);
}

.type-guide__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--color-body-soft);
}

.type-guide__sample {
  margin: 0;
  min-width: 0;
}

.type-guide__where {
  margin: 8px 0 0;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  color: var(--color-meta);
}

.type-guide__code {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.type-guide__code pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-body-soft);
  white-space: pre;
}

@media (max-width: 767px) {
  .type-guide__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
}

/* ===== components/modal.css ===== */
/* ---------- Modal (video / image lightbox) ---------- */
.modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.86);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.36s var(--ease),
    visibility 0s linear 0.36s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  gap: 12px;
  transition:
    opacity 0.36s var(--ease),
    visibility 0s;
}

.modal__box {
  position: relative;
  width: min(880px, 100%);
  padding-top: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.modal__nav {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 12, 14, 0.78);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.modal__nav svg {
  width: var(--icon-control);
  height: var(--icon-control);
  display: block;
}

.modal__nav:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(24, 24, 28, 0.92);
  color: var(--color-heading);
}

.modal__nav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.modal__nav[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .modal.is-open {
    gap: 0;
  }

  .modal__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
  }

  .modal__nav--prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .modal__nav--next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }
}

.modal__box:has(.modal__frame.is-image) {
  width: auto;
  max-width: min(1200px, 100%);
}

.modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
  transform: translateZ(0);
}

.modal__frame.is-image {
  aspect-ratio: auto;
  width: fit-content;
  max-width: 100%;
  max-height: min(85vh, 85dvh);
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.modal__frame iframe,
.modal__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #000;
  display: block;
}

.modal__frame.is-image img {
  position: static;
  width: auto;
  height: auto;
  max-width: min(1200px, 100%);
  max-height: min(85vh, 85dvh);
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  background: #000;
}

.modal__frame iframe[hidden],
.modal__frame img[hidden] {
  display: none !important;
}

.modal__close {
  position: static;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  color: var(--color-heading);
  font-size: var(--type-subtitle-size);
  line-height: 1;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-heading);
}

.modal__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 28px;
}

.modal__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--ink-muted);
  font-size: var(--type-caption-size);
  font-weight: 500;
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-caption-leading);
}

.modal__title:empty {
  /* keep row for close when title blank */
  visibility: hidden;
}

@media (max-width: 700px) {
  .modal__frame,
  .modal__frame iframe,
  .modal__frame img {
    border-radius: var(--radius-sm);
  }

  .modal__close {
    width: 32px;
    height: 32px;
    font-size: var(--type-prose-sm-size);
  }
}

/* ===== components/reveal.css ===== */
/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--motion-reveal) var(--ease),
    transform var(--motion-reveal) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.d1 { transition-delay: 0.14s; }
.d2 { transition-delay: 0.28s; }
.d3 { transition-delay: 0.42s; }

/* Sequential JS stagger owns timing — avoid stacking CSS delays */
.photo-panel.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--motion-reveal) var(--ease),
    transform var(--motion-reveal) var(--ease);
  will-change: opacity, transform;
}

.photo-panel.reveal.d1,
.photo-panel.reveal.d2,
.photo-panel.reveal.d3 {
  transition-delay: 0s;
}

.photo-panel.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .photo-panel.reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  #career .timeline__item.reveal,
  #career .timeline__item--opposite.reveal,
  .section--inquiry .inquiry.reveal,
  .section--inquiry .inquiry.reveal .inquiry__copy,
  .section--inquiry .inquiry.reveal .inquiry__actions {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .d1,
  .d2,
  .d3 {
    transition-delay: 0s;
  }
}

/* ===== components/mobile-gate.css ===== */
/* Mobile-only full-screen gate — PC/tablet keep full responsive site */
.mobile-gate {
  display: none;
}

@media (max-width: 767px) {
  .mobile-gate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: stretch;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--color-heading);
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* Only when a gate exists (home/404) — subpages stay usable on mobile */
  body:has([data-mobile-gate]) > .skip,
  body:has([data-mobile-gate]) > .header,
  body:has([data-mobile-gate]) > main,
  body:has([data-mobile-gate]) > #main,
  body:has([data-mobile-gate]) > footer,
  body:has([data-mobile-gate]) > .footer {
    display: none !important;
  }

  body:has([data-mobile-gate]) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-gate__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .mobile-gate__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
  }

  .mobile-gate__shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
  }

  .mobile-gate__ui {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    box-sizing: border-box;
    padding:
      calc(28px + env(safe-area-inset-top, 0px))
      var(--gutter)
      calc(28px + env(safe-area-inset-bottom, 0px));
    text-align: left;
    pointer-events: auto;
  }

  .mobile-gate__brand {
    margin: 0;
    align-self: flex-start;
    text-align: left;
    font-family: var(--font);
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    font-weight: 700;
    letter-spacing: var(--tracking-display);
    line-height: 1.15;
    color: var(--color-heading);
  }

  .mobile-gate__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mobile-gate__social {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    max-width: none;
    touch-action: manipulation;
    pointer-events: auto;
    position: relative;
    z-index: 5;
  }

  .mobile-gate__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease;
    touch-action: manipulation;
    pointer-events: auto;
  }

  /* Mobile gate only: keep Instagram / YouTube / Unsplash / GitHub */
  .mobile-gate__social .mobile-gate__social-link[aria-label="Pinterest"],
  .mobile-gate__social .mobile-gate__social-link[aria-label="Behance"],
  .mobile-gate__social .mobile-gate__social-link[aria-label="LinkedIn"] {
    display: none;
  }

  .mobile-gate__social-link svg {
    width: var(--icon-social);
    height: var(--icon-social);
    fill: currentColor;
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-gate__social-link:hover {
      color: var(--color-heading);
      background: transparent;
    }
  }

  .mobile-gate__social-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  .mobile-gate__social-link:active {
    color: var(--color-heading);
    background: transparent;
  }

  .mobile-gate__nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .mobile-gate__nav a {
    color: var(--color-heading);
    font-family: var(--font);
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    font-weight: 600;
    letter-spacing: var(--tracking-display);
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    touch-action: manipulation;
    transition: color 0.18s ease;
  }

  .mobile-gate__nav a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-gate__nav a:hover {
      color: var(--primary);
    }
  }

  .mobile-gate__nav a:active {
    color: var(--primary);
  }

  .mobile-gate__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .mobile-gate__credit {
    margin: 0;
    max-width: 100%;
    text-align: left;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
  }
}

/* ===== layout/responsive-nav.css ===== */
/* ---------- Responsive nav ----------
   Switch before desktop labels wrap (Album Cover etc). Gutter ≤860 stays separate. */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .header__search {
    margin-left: auto;
  }

  .logo {
    max-width: calc(100% - 96px);
  }

  .header.is-solid .logo {
    /* icon-only — no text truncation */
  }

  .header__shell {
    width: calc(100% - (var(--header-pad-x) * 2));
  }

  .header.is-solid .header__shell {
    width: var(--shell-track);
    max-width: var(--shell-track);
  }

  body:has(.hero) .header__shell,
  body:has(.hero) .header.is-solid .header__shell {
    width: calc(
      (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
        var(--shell-track) * var(--header-t)
    );
    max-width: none;
  }

  .header.is-solid .header__inner {
    width: 100%;
    max-width: none;
    padding: 0 14px 0 18px;
  }

  body:has(.hero) .header__inner,
  body:has(.hero) .header.is-solid .header__inner {
    padding: 0 calc(14px * var(--header-t)) 0 calc(18px * var(--header-t));
  }

  html.header-will-expand .header__shell {
    width: var(--shell-track);
    max-width: var(--shell-track);
  }

  html.header-will-expand .header__inner {
    width: 100%;
    max-width: none;
    padding: 0 14px 0 18px;
  }

  /*
    Compact chrome: never ease header width/top (layout + backdrop-filter
    thrash reads as shake on page morph). Keep height/padding/opacity only.
  */
  .header {
    transition: none;
  }

  .header__shell,
  .header.is-solid .header__shell {
    transition: none;
  }

  .header__inner {
    transition:
      height 0.48s var(--ease-soft),
      padding 0.48s var(--ease-soft);
  }

  .header__inner::before {
    transition: opacity 0.48s var(--ease-soft);
  }

  .logo__icon,
  .header__search-icon {
    transition:
      width 0.48s var(--ease-soft),
      height 0.48s var(--ease-soft);
  }

  /* Arrive already on shell-track so clear() only fades glass + bar height */
  html.header-will-morph .header.is-solid .header__shell {
    width: var(--shell-track);
    max-width: var(--shell-track);
  }

  body:has(.hero) .header.is-page-morph .header__shell,
  body:has(.hero) .header.is-page-morph .header__inner,
  body:has(.hero) .header.is-page-morph .header__inner::before,
  body:has(.hero) .header.is-page-morph .logo__icon,
  body:has(.hero) .header.is-page-morph .header__search-icon,
  body:has(.hero) .header.is-page-morph .nav__cta {
    transition:
      height 0.48s var(--ease-soft),
      padding 0.48s var(--ease-soft),
      opacity 0.48s var(--ease-soft) !important;
  }
}

/* ===== base/ios-compat.css ===== */
/* =============================================
   iOS / Safari safety layer (additive only)
   ============================================= */

/* Tap / touch defaults */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: rgba(232, 80, 2, 0.18);
}

button,
a,
.menu-btn,
.video-slider__btn,
.modal__close,
.modal__nav {
  touch-action: manipulation;
}

/* Full-viewport sticky pins: desktop only (mobile stacks in home/*.css) */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

@media (min-width: 901px) {
  .story-pin__sticky,
  .vision-pin__sticky,
  .prd__sticky {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-pin {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
}

.modal__frame.is-image {
  max-height: 80vh;
  max-height: 80svh;
  max-height: 80dvh;
  min-height: min(60vh, 480px);
  min-height: min(60svh, 480px);
}

.modal {
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
}

/* Glass: solid fallback when backdrop-filter unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header.is-solid .header__inner,
  .nav-mobile,
  .album-info__dialog {
    background: var(--glass-fallback);
  }

  .vision-card {
    background: rgba(48, 22, 10, 0.94);
  }

  .section--photo-bg .photo-panel,
  .section--profile .profile-hud {
    background: var(--hud-glass-fallback);
  }

  .inquiry-modal__dialog {
    background: var(--glass-fallback);
  }

  .inquiry-modal__dialog::after {
    display: none;
  }
}

/* Coarse pointer: avoid blend-mode jank; keep PC glass on header/nav */
@media (hover: none), (pointer: coarse) {
  .prd-card::before,
  .prd-card::after {
    animation: none;
    filter: blur(28px);
    will-change: auto;
  }

  /* Avoid sticky hover stuck states on touch */
  .nav a:hover,
  .logo:hover {
    color: inherit;
    background: transparent;
  }

  .header.is-solid .nav a:hover,
  .header.is-solid .logo:hover {
    color: #fff;
  }

  .nav a.is-active,
  .header.is-solid .nav a.is-active {
    color: var(--primary);
  }
}

/* mask-image: WebKit prefix for decorative inquiry grid */
.inquiry::before {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}
