/* 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: 24px;
  --header-bar-h: 68px;
  /* 글래스 아래 간격 = 본문 아래 간격 */
  --hero-copy-pad: 96px;
  /* Max-expanded header side inset (~212px @ 2145px ref) */
  --header-pad-x: clamp(40px, 9.9vw, 212px);
  /* Solid glass is wider than the content track so icons aren't flush to the pill */
  --header-glass-outset: 20px;
  --header-glass-w: min(
    calc(100% - (var(--header-offset) * 2)),
    calc(var(--shell-track) + (var(--header-glass-outset) * 2))
  );
  /*
    아이콘/메뉴 인셋 = (글래스 − 메인 트랙) / 2.
    100vw 기준이라 offset 캡·outset 확장을 한 식으로 맞춤 (PC/태블릿).
  */
  --header-viewport: calc(100vw - var(--scroll-lock-pad));
  --header-track-vw: min(
    calc(var(--header-viewport) - (var(--gutter) * 2)),
    var(--container)
  );
  --header-glass-w-vw: min(
    calc(var(--header-viewport) - (var(--header-offset) * 2)),
    calc(var(--header-track-vw) + (var(--header-glass-outset) * 2))
  );
  --header-icon-inset: calc(
    (var(--header-glass-w-vw) - var(--header-track-vw)) / 2
  );
  /* 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 — Pretendard (EN + KR; live = CDN dynamic-subset, see site-fonts.html)
     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: "Pretendard", 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: 6rem;
  --prose-glow-ink: var(--color-heading);
  --prose-glow-core: 14%;
  --prose-glow-mid: 32%;
  --prose-glow-edge: 48%;
  --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;
  /* ponytail: flex center ≠ cap/Hangul ink center in pills */
  --pill-label-nudge-y: 1px;
  --pill-label-nudge-y-kr: calc(var(--pill-label-nudge-y) + 0.5px);
  --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.75s;
  --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,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  border: 0;
}

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: max(var(--header-offset), 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 {
  /* 서브페이지 HTML is-solid: JS 전에도 글래스 폭 (인라인 --header-t가 있으면 인라인 우선) */
  --header-t: 1;
  top: max(var(--header-offset), env(safe-area-inset-top, 0px));
  color: var(--color-heading);
}

/* 폭·패딩·유리는 항상 --header-t (is-solid 레이아웃 스왑 금지) */
/* 페이지 전환 첫 페인트: HTML is-solid의 --header-t:1 을 덮어 아이콘 점프 방지 */
html.header-will-morph .header,
html.header-will-morph .header.is-solid {
  --header-t: 0;
}
html.header-will-expand .header,
html.header-will-expand .header.is-solid {
  --header-t: 1;
}

.header__shell {
  pointer-events: none;
  position: relative;
  z-index: 2;
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--header-glass-w) * var(--header-t)
  );
  max-width: none;
  margin-inline: auto;
  transition: none;
}

.header.is-solid .header__shell {
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--header-glass-w) * var(--header-t)
  );
  max-width: none;
}

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__inner {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  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.is-solid .header__inner {
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  padding: 0 calc(var(--header-t) * var(--header-icon-inset));
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}

.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: var(--header-t);
  pointer-events: none;
  transition: none;
}

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

/*
  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(--header-glass-w) * var(--header-t)
  );
  max-width: none;
  transition: none;
}

body:has(.hero) .header__inner,
body:has(.hero) .header.is-solid .header__inner {
  padding: 0 calc(var(--header-t) * var(--header-icon-inset));
}

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

/* 로고 인셋도 --header-t로 보간 — is-solid 토글 순간 -8px→0 스냅 방지 */
body:has(.hero) .logo,
body:has(.hero) .header.is-solid .logo {
  margin-left: calc(-8px * (1 - var(--header-t)));
}

/* Cross-page morph: --header-t 는 JS rAF 보간 — CSS width transition 이중 지연 금지 */
body:has(.hero) .header.is-page-morph .header__shell,
.header.is-page-morph .header__shell {
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--header-glass-w) * var(--header-t)
  );
  max-width: none;
}

body:has(.hero) .header.is-page-morph .header__inner,
.header.is-page-morph .header__inner {
  padding: 0 calc(var(--header-t) * var(--header-icon-inset));
}

body:has(.hero) .header.is-page-morph .header__inner::before,
.header.is-page-morph .header__inner::before {
  opacity: var(--header-t);
}

.header.is-page-morph .logo {
  margin-left: calc(-8px * (1 - var(--header-t)));
}

.header.is-page-morph .header__shell,
.header.is-page-morph .header__inner,
.header.is-page-morph .header__inner::before,
.header.is-page-morph {
  transition: none !important;
  /* width만 — opacity/padding을 will-change하면 아이콘 레이어가 뒤틀린다 */
  will-change: width;
}

.header:not(.is-page-morph) .header__shell,
.header:not(.is-page-morph) .header__inner,
.header:not(.is-page-morph) .header__inner::before {
  will-change: auto;
}

.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: calc(-8px * (1 - var(--header-t)));
  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: none;
}

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

.header.is-solid .logo {
  color: var(--color-heading);
  margin-left: calc(-8px * (1 - var(--header-t)));
}

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

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

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  font-size: var(--type-nav-size);
  font-weight: var(--type-nav-weight);
  line-height: 1;
  letter-spacing: var(--type-nav-tracking);
  color: inherit;
  opacity: 0.78;
  padding: var(--pill-label-nudge-y) 12px 0;
  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: var(--pill-label-nudge-y) 18px 0 !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;
}

.header.is-solid .nav__cta {
  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;
}

.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: none;
  /* Sibling of .header__inner under .header__shell — same width track */
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Collapsed: no pad so unfold does not shove icons */
  padding: 0 var(--header-icon-inset);
  flex-direction: column;
  gap: 0;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  border-radius: 0;
  /* Glass lives on .header__shell when open — keep panel clear */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  color: var(--color-heading);
  box-sizing: border-box;
  transition:
    max-height var(--motion-ui) var(--ease-soft),
    opacity var(--motion-ui) var(--ease-soft),
    padding-block var(--motion-ui) var(--ease-soft),
    visibility 0s linear var(--motion-ui);
}

/*
  Open: one glass capsule on .header__shell (bar + menu).
  Hide bar ::before so no dual-backdrop seam.
*/
.header.is-open {
  top: max(var(--header-offset), env(safe-area-inset-top, 0px));
  color: var(--color-heading);
}

.header.is-open .header__shell {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--header-glass-w);
  max-width: var(--header-glass-w);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.header.is-open .header__inner {
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  padding: 0 var(--header-icon-inset);
  border-radius: 0;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: none;
}

.header.is-open .header__inner::before {
  opacity: 0;
  box-shadow: none;
  /* Instant handoff to shell glass — avoids crossfade double-bright */
  transition: none;
}

.header.is-open .logo {
  margin-left: 0;
}

.header.is-open .nav-mobile {
  max-height: min(70vh, 28rem);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-block: 8px 16px;
  transition:
    max-height var(--motion-ui) var(--ease-soft),
    opacity var(--motion-ui) var(--ease-soft),
    padding-block var(--motion-ui) var(--ease-soft),
    visibility 0s;
}

body:has(.hero) .header.is-open .header__shell,
body:has(.hero) .header.is-open.is-solid .header__shell {
  width: var(--header-glass-w);
  max-width: var(--header-glass-w);
}

body:has(.hero) .header.is-open .header__inner,
body:has(.hero) .header.is-open.is-solid .header__inner {
  height: var(--header-bar-h);
  padding: 0 var(--header-icon-inset);
}

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

.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 first paint (헤더-morph.js):
  - header-will-morph: home expanded → subpage glass
  - header-will-expand: subpage glass → home expanded
  is-solid 유무와 무관하게 첫 페인트 형태를 고정 (t 세팅 전에 유리/확장 스냅 방지)
  --header-t 도 함께 고정 — JS 전 기본 t=0과 will-expand 글래스가 어긋나지 않게
*/
html.header-will-morph .header {
  --header-t: 0;
  top: max(var(--header-offset), env(safe-area-inset-top, 0px));
}

html.header-will-morph .header .header__shell {
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--header-glass-w) * var(--header-t)
  );
  max-width: none;
  transition: none !important;
}

html.header-will-morph .header .header__inner {
  height: var(--header-bar-h);
  padding: 0;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-color: transparent;
  transition: none !important;
}

html.header-will-morph .header .header__inner::before {
  opacity: 0;
  transition: none !important;
}

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

html.header-will-morph .header .nav__cta {
  height: 40px;
  padding: var(--pill-label-nudge-y) 18px 0 !important;
  background: #fff !important;
}

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

html.header-will-expand .header .header__shell {
  width: calc(
    (100% - (var(--header-pad-x) * 2)) * (1 - var(--header-t)) +
      var(--header-glass-w) * var(--header-t)
  );
  max-width: none;
  transition: none !important;
}

html.header-will-expand .header .header__inner {
  width: 100%;
  max-width: none;
  height: var(--header-bar-h);
  padding: 0 calc(var(--header-t) * var(--header-icon-inset));
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  transition: none !important;
}

html.header-will-expand .header .header__inner::before {
  opacity: var(--header-t);
  transition: none !important;
}

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

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

  .header.is-open .nav-mobile {
    transition: none;
  }

  html.header-will-morph .header,
  html.header-will-morph .header .header__shell,
  html.header-will-morph .header .header__inner,
  html.header-will-morph .header .header__inner::before,
  html.header-will-morph .header .logo,
  html.header-will-morph .header .nav__cta,
  html.header-will-expand .header,
  html.header-will-expand .header .header__shell,
  html.header-will-expand .header .header__inner,
  html.header-will-expand .header .header__inner::before,
  html.header-will-expand .header .logo,
  html.header-will-expand .header .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: var(--pill-label-nudge-y-kr) 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;
  min-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.45s var(--ease-soft),
    visibility 0s linear 0s;
  animation: hero-scroll-bob 1.8s var(--ease-soft) infinite;
}

.hero__scroll:hover:not(:disabled):not(.is-done) {
  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;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  animation: none;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    opacity 0.45s var(--ease-soft),
    visibility 0s linear 0.45s;
}

.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;
    transition: none;
  }
}

/* ---------- Home intro (검정 → 순차 페이드, ≥768만) ---------- */
@media (min-width: 768px) {
  /* 완전 검정 홀드 후 그리드·브랜드·스크롤·헤더 순차 등장 */
  body.home:not(.is-hero-intro-done) .header,
  body.home:not(.is-hero-intro-done) .hero [data-hero-grid],
  body.home:not(.is-hero-intro-done) .hero__brand > .hero__row,
  body.home:not(.is-hero-intro-done) .hero__scroll {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 0.72s var(--ease),
      transform 0.72s var(--ease);
    will-change: opacity, transform;
  }

  body.home:not(.is-hero-intro-done) .header.is-intro-in,
  body.home:not(.is-hero-intro-done) .hero [data-hero-grid].is-intro-in,
  body.home:not(.is-hero-intro-done) .hero__brand > .hero__row.is-intro-in,
  body.home:not(.is-hero-intro-done) .hero__scroll.is-intro-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  /* 스크롤 버튼은 가로 중앙(-50%) 유지 */
  body.home:not(.is-hero-intro-done) .hero__scroll {
    animation: none;
    transform: translate3d(-50%, 14px, 0);
  }

  body.home:not(.is-hero-intro-done) .hero__scroll.is-intro-in {
    transform: translate3d(-50%, 0, 0);
  }

  body.home:not(.is-hero-intro-done) .header {
    pointer-events: none;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  body.home:not(.is-hero-intro-done) .header,
  body.home:not(.is-hero-intro-done) .hero [data-hero-grid],
  body.home:not(.is-hero-intro-done) .hero__brand > .hero__row,
  body.home:not(.is-hero-intro-done) .hero__scroll {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  body.home:not(.is-hero-intro-done) .hero__scroll {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== 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%) translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.22);
  will-change: transform, 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%);
  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;
}

/* 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: var(--bg-dark);
}

.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: var(--bg-dark);
}

.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: var(--bg-dark);
}

.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;
  background: var(--bg-dark);
  isolation: auto;
}

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

.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;
  border-radius: 0;
  filter: none;
  animation: none;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  left: 0;
  top: 0;
  right: 0;
  bottom: 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%
  );
}

.prd-card--media::after {
  display: none;
  content: 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: auto;
}

.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);
  /* 모핑 활성 구간에만 레이어 힌트 — 평소 합성 비용 감소 (시각 동일) */
  will-change: top, left, width, height, border-radius, opacity;
}

.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;
  }

  p.prose-glow {
    background-image: none;
    -webkit-text-fill-color: unset;
    color: var(--color-body);
  }

  p.prose-glow :where(a, strong, em, span) {
    -webkit-text-fill-color: unset;
    color: inherit;
  }
}

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 > p.prose-glow {
  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;
}

@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;
  }
}

@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);
}

/* Phone only (≤767): contact as a full-screen page. Tablet keeps the PC card. */
@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;
  }

  .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;
    /* Short form: center. Tall form: safe → start (no top clip). */
    justify-content: flex-start;
    justify-content: safe center;
    padding:
      calc(env(safe-area-inset-top, 0px) + 4.5rem)
      0
      calc(env(safe-area-inset-bottom, 0px) + 2rem);
    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
  );
  /* Horizontal pad 0 so dialog 100% matches viewport like the header shell */
  padding: var(--search-top-clear) 0 var(--gutter);
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.36s;
}

/* Search toggle stays above modal; rest of header stays under dialog */
html.search-is-open .header__search {
  position: relative;
  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;
  /* Same outer width as solid header glass; do not use --header-glass-w here
     (its 100% / --shell-track would resolve against this dialog, not the viewport). */
  width: min(
    calc(100% - (var(--header-offset) * 2)),
    calc(var(--container) + (var(--header-glass-outset) * 2))
  );
  max-width: 100%;
  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: var(--pill-label-nudge-y) 14px 0;
  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: var(--pill-label-nudge-y) 12px 0;
  }
}

@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. Single layer: gray → white radial fill on glyphs.
  Clip mode stays on for p.prose-glow (no is-lit toggle) so hover does not re-rasterize text.
  Tokens: --prose-glow-* in reset-tokens.css
*/

p.prose-glow {
  --prose-glow-x: -9999px;
  --prose-glow-y: -9999px;
  background-image: radial-gradient(
    circle var(--prose-glow-radius) at var(--prose-glow-x) var(--prose-glow-y),
    var(--prose-glow-ink) 0%,
    var(--prose-glow-ink) var(--prose-glow-core),
    var(--color-body) var(--prose-glow-edge)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

p.prose-glow :where(a, strong, em, span):not([data-cms-color]) {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 지정 글자색은 글로우가 투명하게 지우지 않음 */
p.prose-glow [data-cms-color] {
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

@media (max-width: 767px) {
  p.prose-glow {
    background-image: none;
    -webkit-text-fill-color: unset;
    color: var(--color-body);
  }

  p.prose-glow :where(a, strong, em, span) {
    -webkit-text-fill-color: unset;
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  p.prose-glow {
    background-image: none;
    -webkit-text-fill-color: unset;
    color: var(--color-body);
  }

  p.prose-glow :where(a, strong, em, span) {
    -webkit-text-fill-color: unset;
    color: inherit;
  }
}

/* ===== layout/footer.css ===== */
/* ---------- Footer (SEED-inspired columns; dark-grey field) ---------- */
footer.footer,
.footer {
  background: var(--dark-grey);
  background-color: var(--dark-grey);
  padding: 48px 0 40px;
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  letter-spacing: var(--type-caption-tracking);
  line-height: var(--type-caption-leading);
  /* ink-muted: dark-grey 배경에서 본문 대비 AA 확보 (#7a7a7a meta는 부족) */
  color: var(--ink-muted);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

/* 데스크톱·태블릿: 하단 여백 확대 / 모바일은 아래에서 0 */
.footer > .container {
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas:
    "intro navs"
    "links navs";
  gap: 40px 48px;
  align-items: start;
  row-gap: 1.5rem;
}

.footer__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer__links {
  grid-area: links;
}

.footer__brand {
  margin: 0;
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-leading);
  letter-spacing: var(--type-h3-tracking);
  color: var(--ink);
  transition: color 0.25s ease;
}

.footer__credit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  max-width: 28rem;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

/* Menu · Contact · Privacy 3열 */
.footer__navs {
  grid-area: navs;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 48px;
  justify-self: end;
  width: max-content;
  max-width: 100%;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  max-width: max-content;
  min-width: 0;
}

.footer__col-title {
  margin: 0 0 2px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__col a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* PC 전용 Contact / Privacy 열 — 모바일에서는 Menu 안으로 */
.footer__col-mobile-only {
  display: none;
}

/* Contact / Privacy 제목 링크는 Menu 제목과 동일 톤 */
.footer__col a.footer__col-title {
  color: var(--ink);
}

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

.footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  max-width: none;
}

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

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

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

/* 데스크톱: 히트영역 44px 유지, SVG 왼쪽을 브랜드·카피 왼쪽과 일치 */
@media (min-width: 768px) {
  .footer__social {
    justify-content: flex-start;
    padding: 10px 20px 10px 0;
  }
}

/* Stealth gate — looks like plain text; no link chrome (키보드만 focus ring) */
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 {
  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;
}

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

/* 데스크톱·태블릿: 푸터 호버 시 primary 필드
   - 강조(브랜드·열 제목): 진한 블랙
   - 본문·아이콘: 기존 footer 배경색 톤
   - 개별 호버: 진한 블랙 */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  footer.footer:hover,
  .footer:hover {
    background: var(--primary);
    background-color: var(--primary);
    color: var(--dark-grey);
  }

  .footer:hover .footer__brand,
  .footer:hover .footer__col-title,
  .footer:hover .footer__col a.footer__col-title {
    color: var(--pure-black);
  }

  /* primary 위 본문도 AA 대비 — dark-grey(#2a)는 부족해 pure-black */
  .footer:hover .footer__credit,
  .footer:hover .footer__col a,
  .footer:hover .footer__social {
    color: var(--pure-black);
  }

  /* 개별 텍스트·아이콘 호버: 진한 블랙 */
  .footer:hover .footer__col a:hover,
  .footer:hover .footer__col a.footer__col-title:hover,
  .footer:hover .footer__social:hover {
    color: var(--pure-black);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.footer,
  .footer,
  .footer__brand,
  .footer__credit,
  .footer__col-title,
  .footer__col a,
  .footer__social {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "intro navs"
      "links navs";
    gap: 32px 28px;
    row-gap: 1.5rem;
  }

  /* SNS가 track을 넘치면 줄바꿈 — 가로 스크롤 금지 */
  .footer__links {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
  }
}

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

  /* 다른 .container와 같이 shell-track 양끝 (비대칭 패딩 제거) */
  .footer > .container {
    width: var(--shell-track);
    max-width: var(--shell-track);
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "navs"
      "links";
    /* 브랜드 · 메뉴 · SNS 블록 사이 숨 쉴 여유 */
    gap: 44px;
  }

  .footer__intro {
    gap: 12px;
  }

  .footer__col {
    gap: 14px;
  }

  .footer__navs {
    justify-self: start;
    gap: 28px 32px;
  }

  /* 모바일: Menu 한 칸에 Contact·Privacy 포함 */
  .footer__col--desk {
    display: none;
  }

  .footer__col-mobile-only {
    display: inline;
  }

  .footer__credit {
    max-width: none;
  }

  /* SNS: index .mobile-gate__social 과 동일 (24px 아이콘 · 16px 간격 · 좌측) */
  .footer__links {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
  }

  /* 모바일: Pinterest · Behance · LinkedIn 제외 */
  .footer__social[aria-label="Pinterest"],
  .footer__social[aria-label="Behance"],
  .footer__social[aria-label="LinkedIn"] {
    display: none;
  }

  .footer__social {
    position: relative;
    box-sizing: content-box;
    width: var(--icon-social);
    height: var(--icon-social);
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  /* 시각 크기는 SVG 유지, 탭만 키움 (레이아웃·양끝 정렬 유지) */
  .footer__social::before {
    content: "";
    position: absolute;
    inset: -10px;
  }

  .footer__social svg {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
  }
}

/* ===== 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;
  min-height: 0;
  padding: calc(var(--header-offset) + var(--header-bar-h) + var(--hero-copy-pad)) 0 var(--hero-copy-pad);
  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) + 40px) 0 3.5rem;
  }

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

  .page-hero .section__desc,
  .page-hero .section__desc--wide {
    max-width: none;
    margin-top: 2px;
  }

  .page-hero .section__desc + .section__desc {
    margin-top: 8px;
  }
}

.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: 767px) {
  .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: var(--pill-label-nudge-y) 18px 0;
  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/privacy.css ===== */
/* Privacy policy — prose measure + H2 blocks (DESIGN / TYPEGUIDE) */
.section--privacy {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.privacy {
  max-width: none;
  width: 100%;
  margin: 0;
  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;
}

.privacy__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
  color: var(--color-meta);
}

.privacy__meta .section__label {
  margin: 0;
}

.privacy__block + .privacy__block {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.privacy__block h2 {
  margin: 0 0 0.55rem;
  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);
}

.privacy__block p {
  margin: 0;
}

.privacy__block p + p {
  margin-top: 0.65em;
}

.privacy__list {
  margin: 0.65em 0 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
}

.privacy__list li {
  margin: 0;
  padding: 0;
  color: var(--color-body);
}

.privacy__list li + li {
  margin-top: 0.35rem;
}

.privacy__list li::marker {
  color: var(--ink-3);
}

.privacy__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 0.65em;
  color: var(--color-meta);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-leading);
  letter-spacing: var(--type-caption-tracking);
}

.privacy__table-wrap {
  margin: 0.65em 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.privacy__table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-leading);
  letter-spacing: var(--type-body-sm-tracking);
}

.privacy__table th,
.privacy__table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.privacy__table th {
  color: var(--color-heading);
  background: var(--dark-grey);
  font-weight: var(--type-h5-weight, 600);
  white-space: nowrap;
}

.privacy__table tbody tr:last-child th,
.privacy__table tbody tr:last-child td {
  border-bottom: 0;
}

.privacy__block .privacy__table-wrap + p,
.privacy__block .privacy__list + p,
.privacy__block p + .privacy__contact,
.privacy__block .privacy__contact + p {
  margin-top: 0.65em;
}

.privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

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

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

.privacy__contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--dark-grey);
  color: var(--ink);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-leading);
  letter-spacing: var(--type-body-sm-tracking);
}

.privacy__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
}

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

@media (max-width: 767px) {
  .section--privacy {
    padding-top: 2rem;
    padding-bottom: 3.25rem;
  }

  .privacy__block + .privacy__block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .privacy__table-wrap {
    margin-inline: 0;
  }
}

/* ===== 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);
}

/* 상세(case)만 fresh 올 때까지 예전 썸네일 숨김.
   목록(grid)은 SSR/캐시를 바로 보여 체감 로딩을 줄인다. */
[data-work-case]:not([data-thumbs-live]) [data-case-thumb] img {
  visibility: hidden;
}

@media (scripting: none) {
  [data-work-grid] .work-thumb__img,
  [data-work-case] [data-case-thumb] img {
    visibility: visible;
  }
}

html.js-boot-failed [data-work-grid] .work-thumb__img,
html.js-boot-failed [data-work-case] [data-case-thumb] img {
  visibility: visible;
}

.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;
  }
}

/* SSR 페이지는 처음부터 보이므로 페이드하지 않음. 빈 셸만 JS가 is-cms-entering을 붙인다. */
[data-work-case].is-cms-entering: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].is-cms-entering:not([hidden]) {
    animation: none;
  }
}

/* 글 진입: 보이는 덩어리만 짧게 하나씩. 컨테이너는 움직이지 않음(사이드 핀 유지) */
@keyframes case-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.case-back,
.case-head .section__label,
.case-head__title,
.case-head__desc,
.case-attach-section:not([hidden]),
.case-intro,
.case-modes,
.case-article,
.case-footer {
  animation: case-rise 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.case-back { animation-delay: 0.04s; }
.case-head .section__label { animation-delay: 0.1s; }
.case-head__title { animation-delay: 0.14s; }
.case-head__desc { animation-delay: 0.22s; }
.case-attach-section:not([hidden]) { animation-delay: 0.3s; }
.case-intro { animation-delay: 0.38s; }
.case-modes,
.case-article { animation-delay: 0.5s; }
.case-footer { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  .case-back,
  .case-head .section__label,
  .case-head__title,
  .case-head__desc,
  .case-attach-section:not([hidden]),
  .case-intro,
  .case-modes,
  .case-article,
  .case-footer {
    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 on header 1120 track */
.case-shell {
  display: block;
  width: 100%;
  background: var(--pure-black);
}

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

/* 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 {
  /* Work 목록 .page-hero 라벨과 같은 시작 높이 */
  padding: calc(var(--header-offset) + var(--header-bar-h) + var(--hero-copy-pad)) 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) + 40px) 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;
  -webkit-text-fill-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;
  -webkit-text-fill-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;
  -webkit-text-fill-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;
  -webkit-text-fill-color: #7a7a7a !important;
}

.case-article [data-cms-highlight],
.case-intro__body [data-cms-highlight],
.case-text-block__body [data-cms-highlight] {
  border-radius: 2px;
  padding: 0.05em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* 어두운 페이지에서도 형광펜 위 글자가 묻히지 않게 검은 글자로 고정 */
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
}
.case-article [data-cms-highlight] *,
.case-intro__body [data-cms-highlight] *,
.case-text-block__body [data-cms-highlight] *,
.case-article [data-cms-highlight] [data-cms-color],
.case-intro__body [data-cms-highlight] [data-cms-color],
.case-text-block__body [data-cms-highlight] [data-cms-color],
.case-article [data-cms-color] [data-cms-highlight],
.case-intro__body [data-cms-color] [data-cms-highlight],
.case-text-block__body [data-cms-color] [data-cms-highlight],
.case-article [data-cms-color] [data-cms-highlight] *,
.case-intro__body [data-cms-color] [data-cms-highlight] *,
.case-text-block__body [data-cms-color] [data-cms-highlight] * {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
}
.case-article [data-cms-highlight="#FFE600"],
.case-intro__body [data-cms-highlight="#FFE600"],
.case-text-block__body [data-cms-highlight="#FFE600"] {
  background-color: #ffe600 !important;
}
.case-article [data-cms-highlight="#FF6A00"],
.case-intro__body [data-cms-highlight="#FF6A00"],
.case-text-block__body [data-cms-highlight="#FF6A00"] {
  background-color: #ff6a00 !important;
}
.case-article [data-cms-highlight="#00E676"],
.case-intro__body [data-cms-highlight="#00E676"],
.case-text-block__body [data-cms-highlight="#00E676"] {
  background-color: #00e676 !important;
}
.case-article [data-cms-highlight="#00B0FF"],
.case-intro__body [data-cms-highlight="#00B0FF"],
.case-text-block__body [data-cms-highlight="#00B0FF"] {
  background-color: #00b0ff !important;
}
.case-article [data-cms-highlight="#F5D76E"],
.case-intro__body [data-cms-highlight="#F5D76E"],
.case-text-block__body [data-cms-highlight="#F5D76E"] {
  background-color: #f5d76e !important;
}
.case-article [data-cms-highlight="#FF9A5C"],
.case-intro__body [data-cms-highlight="#FF9A5C"],
.case-text-block__body [data-cms-highlight="#FF9A5C"] {
  background-color: #ffb48a !important;
}
.case-article [data-cms-highlight="#7DCEA0"],
.case-intro__body [data-cms-highlight="#7DCEA0"],
.case-text-block__body [data-cms-highlight="#7DCEA0"] {
  background-color: #b7e8cc !important;
}
.case-article [data-cms-highlight="#85C1E9"],
.case-intro__body [data-cms-highlight="#85C1E9"],
.case-text-block__body [data-cms-highlight="#85C1E9"] {
  background-color: #b7daf2 !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;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.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: Enter softBreak → body p margin 0 (line-height only).
*/
.case-article > * {
  margin: 0;
}

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

.case-article > h1,
.case-article > h2,
.case-article > h3,
.case-article > h4,
.case-article > h5,
.case-article > ul,
.case-article > ol,
.case-article > blockquote {
  margin: 0 0 var(--prose-gap);
}

.case-article > h1:last-child,
.case-article > h2:last-child,
.case-article > h3:last-child,
.case-article > h4:last-child,
.case-article > h5:last-child,
.case-article > ul:last-child,
.case-article > ol:last-child,
.case-article > blockquote:last-child {
  margin-bottom: 0;
}

.case-article > hr {
  margin: var(--prose-gap) 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);
}

/*
  이미지·표·미디어: 본문 p와 동일 — 행간 밖 추가 여백 없음.
*/
.case-article > figure.table,
.case-article > figure.image,
.case-article > figure.media,
.case-article > figure.cms-og-card,
.case-article > figure:has(> table) {
  margin-top: 0;
  margin-bottom: 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 p[data-cms-align="center"],
.case-article h1[data-cms-align="center"],
.case-article h2[data-cms-align="center"],
.case-article h3[data-cms-align="center"],
.case-article blockquote[data-cms-align="center"],
.case-article li[data-cms-align="center"],
.case-intro__body p[data-cms-align="center"],
.case-intro__body h1[data-cms-align="center"],
.case-intro__body h2[data-cms-align="center"],
.case-intro__body h3[data-cms-align="center"],
.case-intro__body blockquote[data-cms-align="center"],
.case-intro__body li[data-cms-align="center"],
.case-text-block__body p[data-cms-align="center"],
.case-text-block__body h1[data-cms-align="center"],
.case-text-block__body h2[data-cms-align="center"],
.case-text-block__body h3[data-cms-align="center"],
.case-text-block__body blockquote[data-cms-align="center"],
.case-text-block__body li[data-cms-align="center"],
.case-article th[data-cms-align="center"],
.case-article td[data-cms-align="center"],
.case-intro__body th[data-cms-align="center"],
.case-intro__body td[data-cms-align="center"],
.case-text-block__body th[data-cms-align="center"],
.case-text-block__body td[data-cms-align="center"] {
  text-align: center;
}

.case-article p[data-cms-align="right"],
.case-article h1[data-cms-align="right"],
.case-article h2[data-cms-align="right"],
.case-article h3[data-cms-align="right"],
.case-article blockquote[data-cms-align="right"],
.case-article li[data-cms-align="right"],
.case-intro__body p[data-cms-align="right"],
.case-intro__body h1[data-cms-align="right"],
.case-intro__body h2[data-cms-align="right"],
.case-intro__body h3[data-cms-align="right"],
.case-intro__body blockquote[data-cms-align="right"],
.case-intro__body li[data-cms-align="right"],
.case-text-block__body p[data-cms-align="right"],
.case-text-block__body h1[data-cms-align="right"],
.case-text-block__body h2[data-cms-align="right"],
.case-text-block__body h3[data-cms-align="right"],
.case-text-block__body blockquote[data-cms-align="right"],
.case-text-block__body li[data-cms-align="right"],
.case-article th[data-cms-align="right"],
.case-article td[data-cms-align="right"],
.case-intro__body th[data-cms-align="right"],
.case-intro__body td[data-cms-align="right"],
.case-text-block__body th[data-cms-align="right"],
.case-text-block__body td[data-cms-align="right"] {
  text-align: right;
}

.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 {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-article img:not([style*="width"]):not([data-cms-img-width]),
.case-shots img:not([style*="width"]):not([data-cms-img-width]) {
  width: 100%;
}

.case-article img[data-cms-img-width="25"],
.case-shots img[data-cms-img-width="25"] {
  width: 25%;
}

.case-article img[data-cms-img-width="50"],
.case-shots img[data-cms-img-width="50"] {
  width: 50%;
}

.case-article img[data-cms-img-width="75"],
.case-shots img[data-cms-img-width="75"] {
  width: 75%;
}

.case-article img[data-cms-img-width="100"],
.case-shots img[data-cms-img-width="100"] {
  width: 100%;
}

.case-article figure.image figcaption,
.case-intro__body figure.image figcaption,
.case-text-block__body figure.image figcaption {
  display: block;
  margin: 0.45em 0 0;
  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-body-soft);
  text-align: left;
}

.case-article figure.image[data-cms-align="center"],
.case-intro__body figure.image[data-cms-align="center"],
.case-text-block__body figure.image[data-cms-align="center"],
.case-shots figure.image[data-cms-align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.case-article figure.image[data-cms-align="right"],
.case-intro__body figure.image[data-cms-align="right"],
.case-text-block__body figure.image[data-cms-align="right"],
.case-shots figure.image[data-cms-align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.case-article figure.image[data-cms-align="center"] figcaption,
.case-intro__body figure.image[data-cms-align="center"] figcaption,
.case-text-block__body figure.image[data-cms-align="center"] figcaption,
.case-article figure.image[data-cms-align="center"] figcaption * {
  text-align: center;
}

.case-article figure.image[data-cms-align="right"] figcaption,
.case-intro__body figure.image[data-cms-align="right"] figcaption,
.case-text-block__body figure.image[data-cms-align="right"] figcaption,
.case-article figure.image[data-cms-align="right"] figcaption * {
  text-align: right;
}

.case-article figure.image figcaption:empty,
.case-intro__body figure.image figcaption:empty,
.case-text-block__body figure.image figcaption:empty {
  display: none;
}

.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-article .cms-code-wrap,
.case-shots .cms-code-wrap {
  position: relative;
  margin: 1rem 0;
}

.case-article .cms-code-copy,
.case-shots .cms-code-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading, 1.4);
  cursor: pointer;
}

.case-article .cms-code-copy:hover,
.case-shots .cms-code-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.case-article pre.cms-code,
.case-shots pre.cms-code,
.case-article pre,
.case-shots pre {
  display: block;
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--color-body);
}

.case-article .cms-code-wrap pre,
.case-shots .cms-code-wrap pre {
  padding-top: 2.2rem;
}

.case-article pre.cms-code code,
.case-shots pre.cms-code code,
.case-article pre code,
.case-shots pre code {
  font: inherit;
  background: transparent;
  padding: 0;
  border: 0;
}

.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;
}

/* OG 링크 미리보기 (cms-og-card) — Admin 편집면과 동일 구조 */
.case-article .cms-og-card,
.case-intro__body .cms-og-card,
.case-text-block__body .cms-og-card {
  display: block;
  max-width: 22.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.case-article .cms-og-card .cms-og-card__link,
.case-intro__body .cms-og-card .cms-og-card__link,
.case-text-block__body .cms-og-card .cms-og-card__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.case-article .cms-og-card .cms-og-card__link:hover .cms-og-card__title {
  color: var(--primary);
}

.case-article .cms-og-card .cms-og-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-article .cms-og-card .cms-og-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case-article .cms-og-card .cms-og-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 1rem;
}

.case-article .cms-og-card .cms-og-card__title {
  margin: 0;
  font-weight: 700;
  font-size: var(--type-body-size);
  line-height: 1.4;
  color: var(--color-heading);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-article .cms-og-card .cms-og-card__desc {
  margin: 0;
  font-size: var(--type-body-sm-size, 16px);
  line-height: 1.45;
  color: var(--color-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-article .cms-og-card .cms-og-card__site {
  margin: 0.15rem 0 0;
  font-size: var(--type-body-sm-size, 16px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--primary);
  word-break: break-all;
}

.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) {
  .work-thumb-grid {
    gap: 14px;
  }

  .case-body {
    padding-top: 32px;
  }

  .case-footer {
    margin-top: 40px;
    padding-top: 24px;
  }

  .case-pager {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-pager__link {
    padding: 12px 14px;
    min-height: 44px;
  }

  .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;
  }
}

/* 첨부 — case-head 바로 아래 독립 구역 (구분선 없음) */
.case-attach-section {
  padding-top: 0;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.case-attach-section[hidden] {
  display: none !important;
}

.case-attach-shell {
  width: var(--shell-track);
  max-width: var(--shell-track);
  margin-inline: auto;
  padding-top: 0;
}

.case-attach {
  margin: 0;
  max-width: 100%;
}

.case-attach__title {
  margin: 0 0 0.75rem;
  font-size: var(--type-h4-size, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading, #fff);
}

.case-attach__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.case-attach__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f3f3;
  color: #1a1a1a;
  text-decoration: none;
  font-size: var(--type-body-sm-size, 0.9375rem);
  line-height: 1.25;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.case-attach__chip:hover {
  background: #ebebeb;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1a1a1a;
}

.case-attach__icon {
  flex: 0 0 auto;
  opacity: 0.75;
}

.case-attach__label {
  min-width: 0;
}

/* 본문 이미지 슬라이드 — 가로 최대 4장 피크, 활성만 밝게, 점만 */
.case-shots .cms-image-slider,
.case-article .cms-image-slider,
.case-text-block__body .cms-image-slider {
  --cms-slider-peek: 4;
  --cms-slider-gap: 12px;
  position: relative;
  margin: 1.25rem 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  container-type: inline-size;
  container-name: cms-slider;
}

.cms-image-slider__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .case-shots .cms-image-slider,
  .case-article .cms-image-slider,
  .case-text-block__body .cms-image-slider {
    /* JS 인라인 변수보다 우선 — 한 장만 */
    --cms-slider-peek: 1 !important;
  }

  .cms-image-slider__viewport {
    touch-action: pan-y;
  }

  .cms-image-slider__slide {
    opacity: 1;
    filter: none;
  }
}

.cms-image-slider__track {
  display: flex;
  gap: var(--cms-slider-gap);
  width: max-content;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

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

.cms-image-slider__slide {
  flex: 0 0
    calc(
      (100cqi - (var(--cms-slider-peek) - 1) * var(--cms-slider-gap)) /
        var(--cms-slider-peek)
    );
  width: calc(
    (100cqi - (var(--cms-slider-peek) - 1) * var(--cms-slider-gap)) /
      var(--cms-slider-peek)
  );
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.42;
  filter: brightness(0.55);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.cms-image-slider__slide.is-active {
  opacity: 1;
  filter: none;
}

.cms-image-slider__slide:focus-visible {
  outline: 2px solid var(--primary, #e85002);
  outline-offset: 2px;
}

.cms-image-slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  vertical-align: middle;
  pointer-events: none;
}

/* 점: 심플 — 비활성 흐린 흰점, 활성 primary */
.cms-image-slider__dots {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.cms-image-slider__dot {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cms-image-slider__dot.is-active,
.cms-image-slider__dot[aria-selected="true"] {
  background: var(--primary, #e85002);
  transform: scale(1.25);
}

.cms-image-slider__dot:focus-visible {
  outline: 2px solid var(--primary, #e85002);
  outline-offset: 3px;
}

/* ===== 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: 767px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .album-empty {
    padding: 36px 20px;
  }
}

.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);
  transition:
    opacity var(--motion-reveal) var(--ease-soft),
    transform var(--motion-reveal) var(--ease-soft);
  will-change: opacity, transform;
}

.album-item.album-reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.album-item.album-reveal.is-settled {
  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-settled: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-settled: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);
}

/* 로딩 중 스켈레톤 (CMS/로컬 그리드 도착 전) */
.album-skel {
  aspect-ratio: 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: album-skel-shimmer 1.2s ease-in-out infinite;
}

@keyframes album-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-skel {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ===== 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-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.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;
    /* Short sheet: center. Tall cover+meta: safe → start (no top clip). */
    justify-content: flex-start;
    justify-content: safe center;
    padding:
      calc(env(safe-area-inset-top, 0px) + 4.5rem)
      0
      calc(env(safe-area-inset-bottom, 0px) + 2rem);
    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__title.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--motion-reveal) var(--ease-soft),
    transform var(--motion-reveal) var(--ease-soft);
  will-change: opacity, transform;
}

.video-group__title.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.video-group__title.reveal.is-settled {
  will-change: auto;
}

.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;
  /* border는 thumb inset ring으로 — overflow+radius+transform compositor 틈 방지 */
  overflow: hidden;
  background: var(--surface-dark-1);
  cursor: pointer;
  border: none;
  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.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity var(--motion-reveal) var(--ease-soft),
    transform var(--motion-reveal) var(--ease-soft);
  will-change: opacity, transform;
}

.video-card.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.video-card.reveal.is-settled {
  /* idle 시 translate3d(0,0,0) 유지하면 테두리·스크림 레이어가 어긋남 */
  transform: none;
  will-change: auto;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  /* hairline을 이미지·스크림과 같은 clip 레이어에 */
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--motion-reveal) var(--ease-soft);
}

.video-card__thumb img.is-ready {
  opacity: 1;
}

/* Bottom scrim — 하단 라운드에 1px 겹쳐 레이어 들뜸 방지 */
.video-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: calc(58% + 1px);
  z-index: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  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: 40px;
  }

  .video-group__head {
    margin-bottom: 16px;
  }

  .video-group__title {
    --title-size: var(--type-prose-sm-size);
  }

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

  .video-card__info {
    padding: 14px 16px 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .video-card:hover,
  .video-card:focus-visible,
  .video-card.reveal.is-in:hover,
  .video-card.reveal.is-in: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.reveal,
  .video-card.reveal.is-in,
  .video-group__title.reveal,
  .video-group__title.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .video-card__thumb img {
    opacity: 1;
    transform: none;
    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: 28px;
  }

  .photo-grid {
    gap: 14px;
  }

  .section--photo-bg .photo-panel {
    padding: 20px 18px;
    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/blog.css ===== */
/* Blog list reuses Work thumbs. Article chrome only. */

.blog-post__back {
  margin: 0 0 18px;
}

.blog-post__back a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--type-ui-nav-size);
  letter-spacing: var(--type-ui-nav-tracking);
  line-height: var(--type-ui-nav-leading);
}

.blog-post__back a:hover {
  color: var(--color-heading);
}

.blog-post__date {
  margin: 8px 0 28px;
  color: var(--color-muted);
  font-size: var(--type-ui-caption-size);
  line-height: var(--type-ui-caption-leading);
}

/* Work case 캔버스와 동일 — work-case.css는 건드리지 않음 */
body.page-work:has([data-blog-post]:not([hidden])) {
  background: var(--pure-black);
}

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

@media (max-width: 767px) {
  .page-blog .page-hero {
    padding-bottom: 2.5rem;
  }

  .page-blog .page-hero .section__desc {
    margin-top: 4px;
  }

  .page-blog .work-thumb-grid {
    margin-top: 8px;
    gap: 14px;
  }

  .page-blog .work-thumb--empty .work-thumb__meta {
    padding: 32px 18px;
  }

  .page-blog .work-thumb--empty .work-thumb__sub {
    margin-top: 8px;
  }
}

/* ===== pages/error.css ===== */
/* ---------- 404 / error page ---------- */
body.page-error {
  background: var(--bg-dark);
  color: var(--ink);
}

.error-page__bg {
  --hero-grid-step: 88px;
  --hero-grid-radius: 260px;
  --hero-grid-radius-min: 260px;
  --hero-grid-radius-max: 260px;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-dark);
}

.error-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  padding: calc(var(--gutter) + env(safe-area-inset-top, 0px)) var(--gutter)
    calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
}

.error-page__inner {
  width: var(--shell-track);
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.error-page__code {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  color: var(--primary);
  line-height: 1.05;
}

.error-page__title {
  margin: 0;
  font-size: var(--type-s2-size);
  font-weight: 700;
  letter-spacing: var(--type-display-tracking);
  line-height: var(--type-s2-leading);
  color: var(--color-heading);
}

.error-page__desc {
  margin: 0;
  width: max-content;
  max-width: 100%;
  text-align: center;
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  color: var(--color-body-soft);
  white-space: nowrap;
}

.error-page__agent {
  /* DOM·크롤러용 — 화면 표시는 .visually-hidden */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.error-page__agent-title {
  margin: 0 0 8px;
  font-size: var(--type-body-sm-size);
  font-weight: 600;
  color: var(--ink-2);
}

.error-page__agent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-body-sm-size);
  line-height: 1.6;
  color: var(--color-body-soft);
}

.error-page__agent-list li + li {
  margin-top: 4px;
}

.error-page__agent-list a {
  color: inherit;
  text-decoration: underline;
}

.error-page__actions {
  margin: 16px 0 0;
}

@media (min-width: 768px) {
  .error-page__bg {
    pointer-events: auto;
  }

  .error-page {
    pointer-events: none;
  }

  .error-page a,
  .error-page button {
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  .error-page__desc {
    white-space: normal;
  }

  .error-page__bg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-page__bg {
    display: none;
  }
}

/* ===== 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));
  }
}

/* 모바일 라이트박스: 화살표 숨김 → 스와이프, 화면 정중앙 */
@media (max-width: 1100px) {
  .modal.is-open {
    align-items: center;
    justify-content: center;
  }

  .modal__nav {
    display: none !important;
  }

  .modal__box:has(.modal__frame.is-image) {
    margin: 0 auto;
    align-self: center;
  }

  .modal__frame.is-image {
    touch-action: pan-y;
    margin-inline: auto;
  }
}

.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 ---------- */
/* FOUC 방지: 번들 CSS 전에도 동작하도록 최소 규칙은 head 인라인과 동일 계약 */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--motion-reveal) var(--ease-soft),
    transform var(--motion-reveal) var(--ease-soft);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal.is-settled {
  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-soft),
    transform var(--motion-reveal) var(--ease-soft);
  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);
}

.photo-panel.reveal.is-settled {
  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__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;
  }

  /* Keep in layout when closed so max-height can animate open/close */
  .nav-mobile {
    display: flex;
  }

  /* 햄버거: 검색은 항상 우측 클러스터 — is-solid에 묶이면 모프 중 간격 튐 */
  .header__search,
  .header.is-solid .header__search,
  .header.is-open .header__search,
  .header.is-page-morph .header__search {
    margin-left: auto;
  }

  .logo {
    max-width: calc(100% - 96px);
  }

  .header__shell,
  .header.is-solid .header__shell,
  body:has(.hero) .header__shell,
  body:has(.hero) .header.is-solid .header__shell,
  html.header-will-expand .header__shell,
  /* header.css page-morph PC식(pad-x)보다 특이성 이상 — 아이콘 어긋남 방지 */
  .header.is-page-morph .header__shell,
  body:has(.hero) .header.is-page-morph .header__shell,
  html.header-will-morph .header .header__shell,
  html.header-will-morph .header.is-solid .header__shell {
    /*
      모바일/햄버거: t=0 폭 = --shell-track (본문·아이콘과 동일).
      header-pad-x 확장은 콘텐츠와 무관해 모프 중 아이콘↔글래스가 어긋나다
      끝에서 갑자기 맞는 것처럼 끊겨 보인다.
    */
    width: calc(
      var(--shell-track) * (1 - var(--header-t)) +
        var(--header-glass-w) * var(--header-t)
    );
    max-width: none;
    transition: none;
  }

  .header.is-solid .header__inner,
  html.header-will-expand .header__inner,
  .header.is-page-morph .header__inner,
  body:has(.hero) .header.is-page-morph .header__inner,
  html.header-will-morph .header.is-solid .header__inner {
    width: 100%;
    max-width: none;
    /* 아이콘 = 메인 트랙 (--header-icon-inset) */
    padding: 0 calc(var(--header-t) * var(--header-icon-inset));
  }

  /* Open menu: match solid bar inset inside the unified shell */
  .header.is-open .header__inner,
  body:has(.hero) .header.is-open .header__inner,
  body:has(.hero) .header.is-open.is-solid .header__inner {
    padding: 0 var(--header-icon-inset);
  }

  /* 햄버거 구간: 로고 -8px 당김 금지 — 모프 중 아이콘이 본문 밖으로 나갔다 들어옴 */
  .logo,
  .header.is-solid .logo,
  .header.is-page-morph .logo,
  body:has(.hero) .logo,
  body:has(.hero) .header.is-solid .logo,
  body:has(.hero) .header.is-page-morph .logo {
    margin-left: 0;
  }

  /* 글립 정렬도 is-solid에 묶지 않음 — 모프 시작/끝 스냅 방지 */
  .logo,
  .header.is-solid .logo,
  .header.is-open .logo,
  .header.is-page-morph .logo {
    justify-content: flex-start;
  }

  .menu-btn,
  .header.is-solid .menu-btn,
  .header.is-open .menu-btn {
    justify-items: end;
  }

  /*
    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: none;
  }

  /*
    글래스 opacity는 --header-t(JS)만 사용.
    CSS opacity transition을 남기면 페이지 모프/스크롤 모프와 이중 보간 → 끊김·점프.
  */
  .header__inner::before,
  body:has(.hero) .header__inner::before,
  body:has(.hero) .header.is-solid .header__inner::before {
    transition: none;
  }

  .logo__icon,
  .header__search-icon {
    transition: none;
  }

  .header.is-page-morph .header__shell,
  .header.is-page-morph .header__inner,
  .header.is-page-morph .header__inner::before {
    transition: none !important;
  }
}

@media (max-width: 767px) {
  /*
    모바일 전용: 글래스 가로를 넓히되 화면 양끝 최소 8px.
    아이콘/메뉴 인셋 = gutter − 8 → 메인 --shell-track 과 정렬.
    (PC/태블릿 --header-offset·--header-glass-w 는 건드리지 않음)
  */
  :root {
    --header-glass-edge: 8px;
    --header-glass-w: calc(100% - (var(--header-glass-edge) * 2));
  }

  .header__inner {
    gap: 4px; /* 검색↔햄버거 아이콘 클러스터 (모바일만) */
  }

  .logo {
    max-width: calc(100% - 92px); /* 44 + 44 + 4 */
  }

  /*
    padding shorthand(≤1100·header.css page-morph)보다 특이성 이상.
    padding-inline만 쓰면 PC식 padding이 남을 수 있어 padding으로 통일.
  */
  .header__inner,
  .header.is-solid .header__inner,
  html.header-will-expand .header__inner,
  html.header-will-morph .header .header__inner,
  html.header-will-morph .header.is-solid .header__inner,
  body:has(.hero) .header__inner,
  body:has(.hero) .header.is-solid .header__inner,
  .header.is-page-morph .header__inner,
  body:has(.hero) .header.is-page-morph .header__inner {
    padding: 0 calc(
      var(--header-t) * (var(--gutter) - var(--header-glass-edge))
    );
  }

  .header.is-open .header__inner,
  body:has(.hero) .header.is-open .header__inner,
  body:has(.hero) .header.is-open.is-solid .header__inner {
    padding: 0 calc(var(--gutter) - var(--header-glass-edge));
  }

  .nav-mobile {
    padding-inline: calc(var(--gutter) - var(--header-glass-edge));
  }

  /* Search sits by the hamburger: 44×44 tap targets; gap via .header__inner */
  .menu-btn,
  .header__search {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .header__search,
  .header.is-solid .header__search,
  .header.is-open .header__search,
  .header.is-page-morph .header__search {
    margin-left: auto;
    place-items: center end;
  }
}

/* ===== 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:not(.is-open) .header__inner,
  .header.is-open .header__shell,
  .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%);
}
