/* CHOAM site: canonical CHOAM v2.1 obsidian-bone-brass system across landing, detail, reading, download and 404 views. */
/* Pretendard Variable, SIL OFL 1.1 (assets/LICENSE-Pretendard.txt). Pages preload choam-sans-subset.woff2 first;
   PretendardVariable.woff2 serves only Hangul syllables outside the subset unicode-range. */
@font-face {
  font-family: 'CHOAM Sans';
  src: url('assets/PretendardVariable.woff2') format('woff2-variations'), url('assets/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3;
}
@font-face {
  font-family: 'CHOAM Sans';
  src: url('assets/choam-sans-subset.woff2') format('woff2-variations'), url('assets/choam-sans-subset.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-0148, U+014A-017F, U+2000-200D, U+2010-2027, U+202F-2060, U+2070-2071, U+2074-208E, U+2090-209C, U+20A0-20BF, U+2100-2101, U+2103, U+2105-2106, U+2109, U+2113, U+2116-2117, U+211E-2123, U+2126, U+212A-212B, U+212E, U+2132, U+213B, U+214D, U+214F, U+2153, U+215A-2188, U+2190-2199, U+21A9-21AA, U+21B0-21B1, U+21B3-21B5, U+21BA-21BB, U+21D0, U+21D2, U+21D4, U+21DE-21DF, U+21E4-21E5, U+21E7, U+21EA, U+2202, U+2205-2206, U+220F, U+2211-2212, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+226A-226B, U+22EF, U+2303, U+2305, U+2318, U+2325-2327, U+2329-232B, U+2380, U+2387, U+238B, U+23CE-23CF, U+2423, U+2460-2473, U+24B6-24CF, U+24EA-24F4, U+24FF, U+25A0-25A2, U+25AA, U+25B2-25B3, U+25B6-25B7, U+25BA-25BD, U+25C0-25C1, U+25C4-25C7, U+25CA-25CB, U+25CF, U+25E6, U+25EF, U+2713, U+2717, U+2756, U+2776-2789, U+3000-3003, U+3008-3011, U+3014-301F, U+3042, U+3044, U+3046, U+3048, U+304A-3061, U+3063-306B, U+306D-3070, U+3072-3073, U+3076-3079, U+307B-307C, U+307E-3085, U+3087-308D, U+308F, U+3092-3093, U+30A1-30A4, U+30A6-30BB, U+30BD, U+30BF-30C1, U+30C3-30C4, U+30C6-30CB, U+30CD-30E7, U+30E9-30ED, U+30EF, U+30F3-30F4, U+30FB-30FC, U+AC00-AC01, U+AC04, U+AC07-AC08, U+AC10-AC12, U+AC15, U+AC19, U+AC1C-AC1D, U+AC70-AC71, U+AC74, U+AC77-AC78, U+AC80-AC81, U+AC83, U+AC8C, U+ACA0, U+ACA8-ACA9, U+ACAC, U+ACB0, U+ACB8-ACB9, U+ACBC-ACBD, U+ACC1, U+ACC4, U+ACE0, U+ACE7-ACE8, U+ACF1, U+ACF3, U+ACF5, U+ACFC, U+AD00, U+AD11, U+AD1C, U+AD34, U+AD50, U+AD6C-AD6D, U+AD70, U+AD73-AD74, U+AD81, U+AD8C, U+ADC0, U+ADDC, U+ADF8-ADF9, U+ADFC, U+AE00, U+AE08, U+AE0B, U+AE30, U+AE34, U+AE38, U+AE41, U+AE43, U+AE4A, U+AE4C-AE4E, U+AE50, U+AE54, U+AE65, U+AE68, U+AEBC, U+AECF, U+AED8, U+AF08, U+AF2C-AF2D, U+AF43, U+AF64, U+AFB8, U+AFBC, U+AFC0, U+AFC8, U+AFD4, U+AFE8, U+B00C, U+B010, U+B044, U+B048, U+B04A, U+B04C, U+B054, U+B057, U+B05D, U+B07C, U+B084, U+B098, U+B09C, U+B0A0-B0A1, U+B0A8-B0A9, U+B0AC, U+B0AE-B0AF, U+B0B4, U+B0B8, U+B0C5, U+B0C8, U+B0E5, U+B108, U+B110, U+B113, U+B118, U+B123-B124, U+B128, U+B135, U+B137, U+B140-B141, U+B144, U+B155, U+B178-B179, U+B180, U+B193, U+B1CC, U+B204, U+B208, U+B20C, U+B220, U+B25C, U+B269, U+B274, U+B290, U+B294, U+B298, U+B2A5-B2A6, U+B2C8, U+B2D8-B2D9, U+B2DD, U+B2E4-B2E5, U+B2E8, U+B2EB-B2EC, U+B2EE, U+B2F4-B2F5, U+B2F7, U+B2F9, U+B2FB, U+B2FF-B300, U+B354-B355, U+B358, U+B35C, U+B369, U+B36E, U+B370, U+B378, U+B3C4-B3C5, U+B3C8, U+B3CB-B3CC, U+B3D5, U+B3D9, U+B418, U+B41C, U+B420, U+B428-B429, U+B450, U+B454, U+B458, U+B461, U+B46C, U+B4A4, U+B4C4, U+B4DC-B4DD, U+B4E0, U+B4E3-B4E4, U+B4EC-B4ED, U+B4EF, U+B4F1, U+B514, U+B51C, U+B527, U+B529, U+B530, U+B534, U+B538, U+B545, U+B54C, U+B5A0, U+B5A4, U+B5A8, U+B5BB-B5BC, U+B610-B611, U+B6AB, U+B700-B701, U+B728-B729, U+B72C, U+B730, U+B744, U+B77C-B77D, U+B780, U+B78C, U+B790-B791, U+B798-B799, U+B79C, U+B7A8, U+B7AB-B7AC, U+B7B5, U+B7C9, U+B7EC, U+B7F0, U+B7F4, U+B7FC-B7FD, U+B800, U+B807-B809, U+B824-B825, U+B828, U+B82C, U+B835, U+B838-B839, U+B85C-B85D, U+B860, U+B86C-B86D, U+B86F, U+B8CC, U+B8E8, U+B8F9, U+B958-B959, U+B960, U+B974, U+B978, U+B97C, U+B984-B985, U+B9AC-B9AD, U+B9B0, U+B9B4, U+B9BC-B9BD, U+B9BF, U+B9C1, U+B9C8-B9C9, U+B9CC, U+B9CE, U+B9D0-B9D1, U+B9D9, U+B9DB, U+B9DD-B9DE, U+B9E1, U+B9E3-B9E4, U+B9E8, U+B9F5, U+B9F7, U+BA38-BA39, U+BA3C, U+BA40, U+BA48, U+BA54, U+BA58, U+BA5C, U+BA70, U+BA74, U+BA78, U+BA85, U+BA87, U+BAA8-BAA9, U+BAB0, U+BABB, U+BB34-BB36, U+BB38, U+BB3B-BB3C, U+BB49, U+BB50, U+BBAC, U+BBC0, U+BBF8, U+BBFC, U+BBFF-BC00, U+BC0F, U+BC11, U+BC14-BC16, U+BC18, U+BC1B-BC1D, U+BC24, U+BC29, U+BC2D, U+BC30-BC31, U+BC43, U+BC45, U+BC84, U+BC88, U+BC8C, U+BC94-BC95, U+BCA0, U+BCA4, U+BCA8, U+BCBC-BCBD, U+BCC0, U+BCC4, U+BCF4-BCF5, U+BCF8, U+BCFC, U+BD05, U+BD07, U+BD09, U+BD10, U+BD80, U+BD84, U+BD88, U+BD93, U+BD99, U+BDF0, U+BE0C, U+BE14, U+BE44, U+BE4C, U+BE57, U+BE5A-BE5B, U+BE60, U+BE68, U+BE7C, U+BE80, U+BED4, U+BF08, U+BF51, U+BFD0, U+C058, U+C05C, U+C090, U+C0AC, U+C0B0, U+C0B4, U+C0B6, U+C0C1, U+C0C8-C0C9, U+C0DD, U+C0EC, U+C0F7, U+C11C-C11E, U+C120, U+C124, U+C126, U+C12C, U+C12F, U+C131, U+C138-C139, U+C149, U+C154, U+C158, U+C168, U+C170, U+C18C-C18D, U+C190, U+C194, U+C1C4, U+C1E0, U+C218, U+C21C, U+C220, U+C228, U+C232, U+C26C, U+C270, U+C274, U+C27C-C27D, U+C2A4, U+C2A8, U+C2AC, U+C2B5, U+C2B7, U+C2B9, U+C2DC-C2DD, U+C2E0, U+C2E4, U+C2EC-C2ED, U+C2F1, U+C2F6, U+C2F8, U+C313, U+C368, U+C3DF, U+C4F0, U+C4F4, U+C4F8, U+C501, U+C50C, U+C529, U+C539, U+C544-C545, U+C548-C54A, U+C54C, U+C554-C555, U+C558-C559, U+C55E, U+C560-C561, U+C571, U+C575, U+C57C-C57D, U+C587, U+C591, U+C598, U+C5B4-C5B5, U+C5B8-C5B9, U+C5BC-C5BD, U+C5C4-C5C6, U+C5C8-C5C9, U+C5D0, U+C5D4, U+C5D8, U+C5E3, U+C5EC-C5ED, U+C5F0, U+C5F4, U+C5FD, U+C600-C601, U+C605-C606, U+C608, U+C624, U+C628, U+C62C, U+C62E, U+C635, U+C637, U+C640, U+C644, U+C654-C655, U+C678, U+C67C, U+C694-C695, U+C6A9, U+C6B0, U+C6B4, U+C6B8, U+C6C0-C6C1, U+C6C3, U+C6C5, U+C6CC, U+C6D0, U+C6D4, U+C6E0, U+C6E8, U+C704, U+C720-C721, U+C728, U+C73C, U+C740, U+C744, U+C74C, U+C751, U+C758, U+C774-C775, U+C778, U+C77C-C77D, U+C783-C785, U+C788, U+C78A, U+C78E, U+C790-C791, U+C794, U+C796, U+C798, U+C7A0-C7A1, U+C7A5, U+C7AC, U+C7C1, U+C800-C801, U+C804, U+C808, U+C810-C811, U+C815, U+C81C-C81D, U+C820, U+C838, U+C84C, U+C870-C871, U+C874, U+C880, U+C885, U+C88B-C88C, U+C8E0, U+C8FC-C8FD, U+C900, U+C904, U+C90D, U+C911, U+C918, U+C92C, U+C988-C989, U+C990, U+C998, U+C99D, U+C9C0-C9C1, U+C9C4, U+C9C8, U+C9D0-C9D1, U+C9D3, U+C9D5, U+C9D9-C9DA, U+C9DC-C9DD, U+C9E7, U+C9F8, U+CA4C, U+CABD, U+CBE4, U+CC0D, U+CC28-CC29, U+CC2C, U+CC2E, U+CC38, U+CC3D-CC3E, U+CC44-CC45, U+CC57, U+CC59, U+CC60, U+CC98-CC99, U+CC9C, U+CCA0, U+CCA8-CCA9, U+CCAB, U+CCAD, U+CCB4, U+CCD0, U+CCE4, U+CD08-CD09, U+CD1D, U+CD5C, U+CD94-CD95, U+CD9C, U+CDA9, U+CDB0, U+CDE8, U+CE20-CE21, U+CE35, U+CE58-CE59, U+CE5C, U+CE60, U+CE68-CE69, U+CE6D, U+CE74, U+CE78, U+CE7C, U+CE90, U+CEE4-CEE5, U+CEE8, U+CEEC, U+CEF4, U+CF00, U+CF1C, U+CF54, U+CF58, U+CF5C, U+CFE0, U+CFF5, U+D004, U+D050, U+D06C, U+D074, U+D07C, U+D0A4, U+D0AC, U+D0B5, U+D0C0-D0C1, U+D0D0, U+D0D5, U+D0DC-D0DD, U+D130, U+D134, U+D14C-D14D, U+D150, U+D154, U+D15C, U+D1A0, U+D1B1, U+D1B5, U+D22C, U+D234, U+D280, U+D29C, U+D2B8-D2B9, U+D2BC, U+D2C0, U+D2F0-D2F1, U+D300, U+D305, U+D30C, U+D310, U+D320, U+D328-D329, U+D37C, U+D398-D399, U+D39C, U+D3B4, U+D3B8, U+D3BC, U+D3C9, U+D3EC-D3ED, U+D3F0, U+D3F4, U+D3FC, U+D45C, U+D478, U+D47C, U+D480, U+D488, U+D48D, U+D4E8, U+D504, U+D508, U+D50C, U+D53C-D53D, U+D544, U+D551, U+D558-D559, U+D55C, U+D560, U+D568-D569, U+D56D, U+D574-D575, U+D587-D589, U+D5A5, U+D5C8, U+D5D8, U+D5E4, U+D600, U+D604, U+D611, U+D614-D615, U+D638-D639, U+D63C, U+D648, U+D654-D655, U+D658, U+D65C, U+D669, U+D68C-D68D, U+D6A8, U+D6C4-D6C5, U+D718, U+D749, U+D750-D751, U+D754, U+D758, U+D761, U+D769, U+D76C, U+D788, U+D78C, U+D790, U+D798-D799, U+FF01-FF60;
}

/* ==========================================================================
   CHOAM v2.1 Canonical Design Tokens
   Surfaces: --void (#050506), --night (#0B0C0D), --elevated (#101214).
   Ink: --bone (#EBE5DA) in 4 alpha steps (1.00 / 0.82 / 0.62 / 0.40).
   Hairlines: 1px (0.14 internal, 0.22 static outer edge).
   Accent: --ember (#D9A362). Exception alert red: --alert-red (#C95A4B).
   Zero pure white, zero drop/box/text shadows, zero blur, radius 0px, scale 1.000.
   ========================================================================== */
:root {
  --void: #050506;
  --night: #0B0C0D;
  --elevated: #101214;
  --bone: #EBE5DA;
  --ink-body: rgba(235, 229, 218, 0.82);
  --ash: rgba(235, 229, 218, 0.62);
  --dim: rgba(235, 229, 218, 0.40);
  --ink-disabled: rgba(235, 229, 218, 0.30);
  --line: rgba(235, 229, 218, 0.14);
  --line-row: rgba(235, 229, 218, 0.10);
  --rule-2: rgba(235, 229, 218, 0.22);
  --edge-static: rgba(235, 229, 218, 0.22);
  --ember: #D9A362;
  --accent-dim: rgba(217, 163, 98, 0.78);
  --accent-wash: rgba(217, 163, 98, 0.10);
  --accent-latch: rgba(217, 163, 98, 0.20);
  --alert-red: #C95A4B;
  --alert-red-line: rgba(201, 90, 75, 0.48);
  --alert-red-wash: rgba(201, 90, 75, 0.10);

  /* Single unidirectional #050506 artwork scrim guaranteeing WCAG >= 4.5:1 without horizon seams */
  --scrim-art: linear-gradient(
    to left,
    rgba(5, 5, 6, 0.94) 0%,
    rgba(5, 5, 6, 0.88) 35%,
    rgba(5, 5, 6, 0.46) 60%,
    rgba(5, 5, 6, 0.18) 100%
  );

  --font: 'CHOAM Sans', 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --gutter: clamp(16px, 3.9vw, 64px);
  --mast-h: 64px;
  --deck-h: 58px;
  --copy-w: min(460px, 32vw);
  --ease-open: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-latch: cubic-bezier(0.2, 0, 0, 1);
  --ease-scene: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 0.12s;
  --dur-2: 0.16s;
  --dur-3: 0.24s;
  --dur-4: 0.4s;
  --dur-5: 0.7s;
  --slow: var(--ease-scene);
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-style: normal;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 450;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Desktop full-screen detail plates lock scroll only on roomy viewports (>=1080px x >860px) */
@media (min-width: 1080px) and (min-height: 861px) {
  body[data-project]:not(.v):not(.us-page):not(.philo-page):not(.dl-page):not(.p602-page):not(.notfound-page) {
    height: 100%;
    overflow: hidden;
  }
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; color: var(--ink-disabled); opacity: 1; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Sharp right-angle range slider controls */
input[type="range"] {
  border-radius: 0;
  accent-color: var(--ember);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--night);
  border: 1px solid var(--ember);
  transform: rotate(45deg);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--night);
  border: 1px solid var(--ember);
  transform: rotate(45deg);
  cursor: pointer;
}

/* Subtle decorative grain */
.grain {
  position: fixed;
  inset: -60px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   CHOAM v2.1 Shared Chamfered CTA (--cut: 10px) & Vessel (--cut: 14px) Primitives
   TR/BL 45-degree chamfer with continuous 6-edge 1px stroke + TL/BR #D9A362 clasps.
   ========================================================================== */
:is(.v21-cta, .plate .cap-acts .prod-act, .prod .prod-act, .dlbtn, .v21-vessel, .get-menu, .lunviz .lv, .lun-panel, .lun-card:not(.lv .lun-card)) {
  --v21-cut: 10px;
  --v21-fill: var(--night);
  --v21-wash: transparent;
  --v21-edge: var(--accent-dim);
  --v21-clasp: rgba(217, 163, 98, 0.85);
  --v21-ci: 4.5px;
  --v21-cw: 11px;
  --v21-ch: 7px;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.v21-vessel, .get-menu, .lunviz .lv, .lun-panel, .lun-card:not(.lv .lun-card)) {
  --v21-cut: 14px;
  --v21-fill: var(--night);
  --v21-edge: var(--edge-static);
  --v21-ci: 7.5px;
  --v21-cw: 20px;
  --v21-ch: 12px;
}

:is(.v21-cta, .plate .cap-acts .prod-act, .prod .prod-act, .dlbtn, .v21-vessel, .get-menu, .lunviz .lv, .lun-panel, .lun-card:not(.lv .lun-card))::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--v21-fill);
  background-image:
    linear-gradient(var(--v21-clasp), var(--v21-clasp)),
    linear-gradient(var(--v21-clasp), var(--v21-clasp)),
    linear-gradient(var(--v21-clasp), var(--v21-clasp)),
    linear-gradient(var(--v21-clasp), var(--v21-clasp)),
    linear-gradient(45deg, transparent calc(50% - 1.2px), var(--v21-edge) calc(50% - 0.45px)),
    linear-gradient(225deg, transparent calc(50% - 1.2px), var(--v21-edge) calc(50% - 0.45px)),
    linear-gradient(var(--v21-edge), var(--v21-edge)),
    linear-gradient(var(--v21-edge), var(--v21-edge)),
    linear-gradient(var(--v21-edge), var(--v21-edge)),
    linear-gradient(var(--v21-edge), var(--v21-edge)),
    linear-gradient(var(--v21-wash), var(--v21-wash));
  background-position:
    left var(--v21-ci) top var(--v21-ci),
    left var(--v21-ci) top var(--v21-ci),
    right var(--v21-ci) bottom var(--v21-ci),
    right var(--v21-ci) bottom var(--v21-ci),
    top right,
    bottom left,
    0 0,
    100% 0,
    0 100%,
    0 0,
    0 0;
  background-size:
    var(--v21-cw) 1px,
    1px var(--v21-ch),
    var(--v21-cw) 1px,
    1px var(--v21-ch),
    var(--v21-cut) var(--v21-cut),
    var(--v21-cut) var(--v21-cut),
    100% 1px,
    1px 100%,
    100% 1px,
    1px 100%,
    100% 100%;
  background-repeat: no-repeat;
  clip-path: polygon(
    0 0,
    calc(100% - var(--v21-cut)) 0,
    100% var(--v21-cut),
    100% 100%,
    var(--v21-cut) 100%,
    0 calc(100% - var(--v21-cut))
  );
  transition: background-position var(--dur-1) var(--ease-latch), opacity var(--dur-2) var(--ease-ui);
}

:is(.v21-cta, .plate .cap-acts .prod-act, .prod .prod-act, .dlbtn):hover,
:is(.plate, .prod) .prod-act[aria-expanded="true"] {
  --v21-edge: var(--ember);
  --v21-wash: var(--accent-wash);
  --v21-clasp: var(--ember);
  color: var(--bone);
}

:is(.v21-cta, .plate .cap-acts .prod-act, .prod .prod-act, .dlbtn):active {
  --v21-edge: var(--ember);
  --v21-wash: var(--accent-latch);
  --v21-clasp: var(--ember);
  --v21-ci: 6px;
  color: var(--bone);
}

/* ---------- Letterbox: Masthead ---------- */
.mast {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--mast-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: var(--void);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}
.brand img { width: 24px; height: 24px; }
.motto {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--dim);
  white-space: nowrap;
  text-transform: uppercase;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  line-height: 20px;
}

/* Shared navigation */
.menu-btn, .proj-nav { display: none; }
.site-nav { margin-left: auto; margin-right: 12px; }
.nav-controls { display: flex; gap: 36px; }
.nav-toggle, .nav-entry { text-transform: uppercase; }
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ash);
  transition: color var(--dur-2) var(--ease-ui);
}
.nav-toggle::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { color: var(--bone); }
.nav-panel {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  width: min(332px, calc(100% - 2 * var(--gutter)));
  padding: 20px 24px;
  background: var(--night);
  border: 1px solid var(--edge-static);
  max-height: calc(100dvh - var(--mast-h) - var(--deck-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-panel[hidden], .nav-panel section[hidden] { display: none; }
.nav-group-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-row { display: grid; grid-template-columns: minmax(0, 1fr); }
.nav-row + .nav-row { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.nav-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 0 10px 10px;
  border-left: 2px solid transparent;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--bone);
  overflow-wrap: anywhere;
  transition: color var(--dur-1) var(--ease-ui), border-color var(--dur-1) var(--ease-ui);
}
.nav-entry:hover, .nav-entry[aria-current="page"] {
  color: var(--ember);
  border-left-color: var(--ember);
}
.nav-pending, .nav-pending:hover { color: var(--dim); border-left-color: transparent; }
.nav-pending small { font-size: 12px; font-weight: 450; letter-spacing: 0.06em; color: var(--ash); }
.nav-entry:focus-visible { outline-offset: 2px; }
:lang(ko) .nav-entry { letter-spacing: 0.02em; word-break: keep-all; }

.lang { flex: none; }
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ash);
  transition: color var(--dur-2) var(--ease-ui);
}
.lang-btn::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.lang-btn:hover, .lang-open .lang-btn { color: var(--bone); }
.lang-open .lang-btn::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: var(--gutter);
  z-index: 2;
  min-width: 180px;
  padding: 6px 0;
  background: var(--night);
  border: 1px solid var(--edge-static);
  border-top: 0;
}
.lang-open .lang-menu { display: block; }
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-left: 2px solid transparent;
  font-weight: 550;
  font-size: 16px;
  color: var(--ash);
  text-align: left;
  transition: color var(--dur-1) var(--ease-ui), border-color var(--dur-1) var(--ease-ui);
}
.lang-opt b { font-weight: 650; font-size: 12px; letter-spacing: 0.18em; color: var(--dim); }
.lang-opt:hover, .lang-opt[aria-current="true"] { color: var(--bone); }
.lang-opt[aria-current="true"] { border-left-color: var(--ember); }
.lang-opt:focus-visible { outline-offset: -4px; }

:lang(ko) .menu-btn, :lang(ko) .cap-meta, :lang(ko) .intro-meta, :lang(ko) .intro-clock, :lang(ko) .foot a, :lang(ko) .prod-act,
:lang(ko) .vis figcaption, :lang(ko) .dl-note a, :lang(ko) .dlbtn small, :lang(ko) .text-btn, :lang(ko) .next-ch small { letter-spacing: 0.08em; }
:lang(ko) .cap-line, :lang(ko) .slide p, :lang(ko) .dl-note { word-break: keep-all; overflow-wrap: break-word; }

/* ---------- Letterbox: Chapter Deck ---------- */
.deck {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  height: var(--deck-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--void);
  border-top: 1px solid var(--line);
}
.now { display: flex; align-items: baseline; gap: 12px; min-width: 0; white-space: nowrap; }
.now-num { font-weight: 600; font-size: 12px; letter-spacing: 0.22em; color: var(--ember); font-variant-numeric: tabular-nums; }
.now-title { font-weight: 700; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.now-sub { font-weight: 550; font-size: 12px; letter-spacing: 0.18em; color: var(--dim); font-variant-numeric: tabular-nums; }
.foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ash);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color var(--dur-1) var(--ease-ui);
}
.foot a:hover { color: var(--ember); }
.next-ch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.next-ch small { font-size: 12px; font-weight: 550; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.next-ch span { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; transition: color var(--dur-2) var(--ease-ui); }
.next-ch:hover span { color: var(--ember); }
.next-ch[hidden] { display: none; }

/* ---------- Continuous Vertical Track & Plates ---------- */
html:has(body.v) { background: var(--void); }
body.v { height: auto; overflow-x: hidden; overflow-y: auto; }
.track { display: block; }
.prod, .intro {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
}

/* ---------- Opening ---------- */
.intro { min-height: 520px; background: var(--void); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.intro-title {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--mast-h) + (100% - var(--mast-h) - var(--deck-h)) * 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.intro-wm {
  font-weight: 800;
  font-size: clamp(56px, min(10.4vw, 17vh), 176px);
  line-height: 1;
  letter-spacing: 0.36em;
  margin-right: -0.36em;
  white-space: nowrap;
  color: var(--bone);
  text-shadow: none;
}
.intro-wm span {
  display: inline-block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.intro-motto {
  margin-top: clamp(18px, 3.2vh, 34px);
  font-weight: 600;
  font-size: clamp(12px, 0.95vw, 14px);
  letter-spacing: 0.64em;
  margin-right: -0.64em;
  text-transform: uppercase;
  color: var(--ember);
}
.intro-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--deck-h) + 26px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}
.intro-meta, .intro-clock {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}
.intro-clock { justify-self: end; }
.intro-go { display: flex; justify-content: center; gap: clamp(48px, 8vw, 120px); }
.intro-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px 0;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--dur-1) var(--ease-ui);
}
.intro-next span {
  margin-right: -0.3em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(235, 229, 218, 0.28);
  transition: text-decoration-color var(--dur-1) var(--ease-ui);
}
.intro-next i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--rule-2), rgba(235, 229, 218, 0));
  transition: background var(--dur-1) var(--ease-ui);
}
.intro-next:hover { color: var(--ember); }
.intro-next:hover span { text-decoration-color: var(--ember); }
.intro-next:hover i { background: linear-gradient(var(--ember), rgba(217, 163, 98, 0)); }

/* ---------- Product Detail Stage, Slide Isolation & Matte Field ---------- */
.stage { position: absolute; inset: 0; z-index: 0; background: var(--night); }
.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-aspect-ratio: 4/5) {
  .media { object-position: var(--pos-m, var(--pos, 50% 50%)); }
}

/* Immediate isolation on inactive slides: zero bleed-through */
.prod .media {
  position: absolute;
  inset: 0;
}
.prod .media:not(.is-on) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.prod .media.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s var(--ease-open);
}

/* Clean flat matte surface without horizon step cut lines or slate-blue fog */
.field,
.sch-field,
.six-field,
.lun-field,
.dat-field,
.prod[data-vis="raw"] .stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
}
.field::before,
.field::after {
  content: none;
}

.six-type { color: rgba(235, 229, 218, 0.035); letter-spacing: 0.04em; margin-right: -0.04em; }
.lun-type { font-size: min(24vw, 38vh); color: rgba(235, 229, 218, 0.035); letter-spacing: 0.06em; margin-right: -0.06em; }
.dat-type {
  position: absolute;
  left: 50%;
  bottom: 36%;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: min(44vw, 60vh);
  line-height: 0.74;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  color: rgba(235, 229, 218, 0.035);
  user-select: none;
  white-space: nowrap;
}

/* Single standard #050506 scrim for full-bleed artwork slides only */
.prod-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: var(--scrim-art);
  transition: opacity 0.24s var(--ease-open);
}
.prod[data-vis="art"] .prod-veil {
  opacity: 1;
}

/* ---------- Detail Copy Column ---------- */
.prod { --col: min(460px, 32vw); --vis-r: calc(var(--gutter) + var(--col) + 3vw); }
.prod-copy {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--mast-h) + 24px);
  bottom: calc(var(--deck-h) + 36px);
  width: var(--col);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cap-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}
.cap-meta .ch { color: var(--ember); }
.cap-meta .ch::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  margin: 0 0 4px 14px;
  background: var(--line);
  vertical-align: middle;
}
.cap-meta [data-status] { padding-left: 14px; border-left: 1px solid var(--line); }
.cap-title {
  margin-top: 18px;
  font-weight: 750;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.12;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cap-title a:hover { color: var(--ember); }
.cap-ko { margin-top: 10px; font-weight: 500; font-size: 15px; letter-spacing: 0.16em; color: var(--ash); }
.cap-line { margin-top: 14px; font-weight: 600; font-size: 18px; line-height: 1.45; color: var(--bone); }
.cap-line:empty { display: none; }
.rail {
  margin-top: 22px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; padding-right: 16px; transition: opacity 0.16s var(--ease-ui); }
.slide[inert] { opacity: 0; pointer-events: none; }
.slide p { max-width: 32em; font-size: 16.5px; line-height: 1.78; color: var(--ink-body); }
:lang(ko) .slide p { letter-spacing: -0.005em; }
.slide p + p { margin-top: 1em; }
.slide .display { font-weight: 700; font-size: 20px; line-height: 1.45; letter-spacing: 0.02em; color: var(--ember); }

.rail-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  min-height: 44px;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 4px;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease-ui);
}
.text-btn:not(:disabled):hover { color: var(--ember); }
.dots { display: flex; align-items: center; }
.dot { width: 24px; height: 44px; display: flex; align-items: center; justify-content: center; }
.dot i { display: block; width: 16px; height: 1px; background: var(--rule-2); transition: background var(--dur-2) var(--ease-ui), height var(--dur-2) var(--ease-ui); }
.dot.is-current i { background: var(--ember); height: 2px; }
.count {
  display: inline-flex;
  align-items: center;
  height: 44px;
  white-space: nowrap;
  font-weight: 550;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.count b { color: var(--bone); font-weight: 650; margin-right: 4px; }

/* Get OS chooser vessel */
.get-wrap { display: contents; }
.get-menu {
  --v21-ci: 6px;
  --v21-cw: 14px;
  --v21-ch: 9px;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
}
.get-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 4px 10px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.get-head [data-rel-ver] { flex-shrink: 0; white-space: nowrap; }
.get-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line-row);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-body);
  transition: color var(--dur-1) var(--ease-ui), border-color var(--dur-1) var(--ease-ui), background-color var(--dur-1) var(--ease-ui);
}
.get-opt:last-of-type { border-bottom: 0; }
.get-opt > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.get-opt b { flex-shrink: 0; font-weight: 550; font-size: 12px; letter-spacing: 0.1em; text-align: right; color: var(--ash); white-space: nowrap; }
.get-opt.is-rec { color: var(--bone); border-left-color: var(--ember); }
.get-opt:hover, .get-opt:focus-visible { color: var(--bone); border-left-color: var(--ember); background: var(--accent-wash); }
.get-opt:focus-visible { outline-offset: -1px; }
.os-rec { font-style: normal; font-weight: 650; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); white-space: nowrap; }
.get-opt .os-rec[hidden] { display: none; }
:lang(ko) .get-head, :lang(ko) .get-opt, :lang(ko) .get-opt b, :lang(ko) .get-opt .os-rec { letter-spacing: 0.06em; }
.get-note { padding: 10px 12px 4px; font-size: 14px; line-height: 1.6; color: var(--ash); }

.prod-copy:has(.get-menu:not([hidden])) {
  max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 36px);
  overflow-y: auto;
  justify-content: safe flex-end;
}
.prod-copy:has(.get-menu:not([hidden])) > * { flex-shrink: 0; }

/* ---------- Bidirectional Work <-> Tech Flywheel Bar ---------- */
.choam-flywheel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(235, 229, 218, 0.14);
  font-size: 0.78rem;
  line-height: 1.5;
}
.choam-flywheel-label {
  color: rgba(235, 229, 218, 0.62);
  letter-spacing: 0.04em;
  font-weight: 550;
}
.choam-flywheel-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: rgba(235, 229, 218, 0.82);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(217, 163, 98, 0.45);
  transition: color var(--dur-1) var(--ease-ui), text-decoration-color var(--dur-1) var(--ease-ui);
}
.choam-flywheel-link:hover,
.choam-flywheel-link:focus-visible {
  color: var(--ember);
  text-decoration-color: var(--ember);
}

/* ---------- Framed Per-Paragraph Visuals & Opaque Backing ---------- */
.prod .vis {
  inset: calc(var(--mast-h) + 20px) var(--vis-r) calc(var(--deck-h) + 20px) var(--gutter);
  width: auto;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  container-type: size;
  pointer-events: none;
  background: var(--night);
}
.vis img, .vis svg, .vis video { flex: none; height: auto; width: min(100cqw, calc((100cqh - 34px) * var(--ar))); }
.vis video { aspect-ratio: var(--ar, 16 / 9); background: #050506; display: block; border: 0; object-fit: contain; pointer-events: auto; }
.vis img { aspect-ratio: var(--ar); border: 1px solid var(--line); }
.feat { --ar: 720 / 540; }
.feat svg { overflow: visible; font-family: var(--font); background: var(--night); }
.vis figcaption { font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }

/* Feature SVG Diagrams (CHOAM v2.1 palette, opaque backing, sharp corners) */
.feat rect { rx: 0px; ry: 0px; }
.feat .fr { fill: var(--elevated); stroke: var(--edge-static); }
.feat .fr.on { fill: var(--night); stroke: var(--ember); }
.feat .fr.off { fill: var(--night); stroke: var(--rule-2); stroke-dasharray: 3 6; }
.feat .fj { fill: var(--night); stroke: var(--edge-static); }
.feat .l { font-size: 13px; font-weight: 650; letter-spacing: 0.22em; fill: var(--ember); }
.feat .l.sm { font-size: 12px; letter-spacing: 0.14em; }
.feat .t { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; fill: var(--bone); }
.feat .s { font-size: 14px; font-weight: 450; fill: var(--ink-body); }
.feat .s.em { fill: var(--bone); font-weight: 550; }
.feat .s.sm { font-size: 12.5px; }
.feat .k { font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em; fill: var(--bone); }
.feat .tag { font-size: 12px; font-weight: 650; letter-spacing: 0.12em; fill: var(--bone); }
.feat .tag.dark { fill: var(--void); font-weight: 700; }
.feat .tag.em { fill: var(--ember); }
.feat .dim { opacity: 0.48; }
.feat .b { fill: var(--line); }
.feat .b2 { fill: var(--rule-2); }
.feat .bg { fill: var(--ember); }
.feat .st { fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.feat .sd { fill: none; stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 3 6; }
.feat .chip { fill: var(--night); stroke: var(--edge-static); }
.feat .chip.on { stroke: var(--ember); fill: var(--accent-wash); }
.feat .tab { fill: var(--elevated); }
.feat .hr { stroke: var(--line); }
.feat .hl { fill: var(--accent-wash); stroke: var(--accent-dim); }
.feat .bubble { fill: var(--night); stroke: var(--accent-dim); }
.feat .sil { fill: var(--rule-2); }
.feat .blend { mix-blend-mode: screen; }
.feat .dt { font-size: 50px; font-weight: 800; letter-spacing: 0.1em; fill: var(--bone); paint-order: stroke; stroke: var(--void); stroke-width: 6px; }
.feat .dt.sm { font-size: 32px; stroke-width: 0; }

.afig img { border: 0; }

/* DAT Creative Gallery */
.gal { --capH: 0px; --gn: 0px; --gg: 28px; --fill: 1; }
.gal:has(figcaption) { --capH: 34px; }
.gal:has(.gn) { --gn: 30px; }
.gal-cut { --fill: 0.92; }
.gal-row {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--gg);
  --h: min(calc((100cqh - var(--capH) - var(--gn)) * var(--fill)), calc((100cqw - (var(--n) - 1) * var(--gg)) / var(--sar)));
}
.gi { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gal .gi img { height: var(--h); width: calc(var(--h) * var(--ar)); aspect-ratio: auto; border: 0; filter: none; }
.gn { font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: 0.24em; margin-right: -0.24em; text-transform: uppercase; color: var(--ash); }
:lang(ko) .gn { letter-spacing: 0.08em; margin-right: -0.08em; }
.gal-pair { --fill: 0.9; }
.gal.gal-pair .gi img { border: 1px solid var(--line); filter: none; }
@container (max-aspect-ratio: 3/2) {
  .gal-pair .gal-row {
    flex-direction: column;
    align-items: center;
    --h: min(calc((100cqh - var(--capH) - var(--n) * var(--gn) - (var(--n) - 1) * var(--gg)) / var(--n) * var(--fill)), calc(100cqw * var(--n) / var(--sar)));
  }
}

/* Base DAT Inline Comparison Primitives */
.prod .dat-inline { pointer-events: auto; container-type: normal; gap: 12px; }
.prod .dat-inline[hidden] { display: none; }
#dat.dat-comparing .rail { height: 0; min-height: 0; margin: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.dat-cases { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
.dat-cases button { border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--dim); font: inherit; font-size: 12px; padding: 6px 0; cursor: pointer; }
.dat-cases button[aria-pressed="true"] { color: var(--bone); border-color: var(--ember); }
.dat-reveal { position: relative; flex: none; aspect-ratio: var(--case-ar); width: min(100%, calc(38dvh * var(--case-ar))); margin-inline: auto; overflow: hidden; touch-action: none; cursor: col-resize; }
.prod .dat-reveal img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; pointer-events: none; border: 0; }
.dat-reveal .dat-after { clip-path: inset(0 0 0 var(--split)); }
.dat-side { position: absolute; top: 12px; padding: 6px 12px; background: var(--night); border: 1px solid var(--edge-static); font-size: 12px; letter-spacing: 0.14em; pointer-events: none; }
.dat-before-tag { left: 12px; }
.dat-after-tag { right: 12px; }
.dat-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1.5px; background: var(--bone); pointer-events: none; }
.dat-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--night);
  border: 1px solid var(--ember);
}
.dat-range-label { display: flex; flex: none; width: 100%; gap: 14px; align-items: center; font-size: 12px; letter-spacing: 0.1em; }
.dat-range-label input { flex: 1; min-width: 0; accent-color: var(--ember); height: 32px; }
.dat-zoom { display: grid; flex: none; width: 100%; grid-template-columns: 1fr 1fr; gap: 16px; }
.dat-zoom > div { min-width: 0; }
.dat-zoom span { display: block; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 8px; }
.dat-detail { width: 100%; height: clamp(90px, 12vh, 140px); background-repeat: no-repeat; background-color: var(--night); border: 1px solid var(--edge-static); }
.dat-note { width: 100%; font-size: 13px; line-height: 1.55; color: var(--ash); }
.dat-inline button:focus-visible, .dat-inline input:focus-visible, .dat-zoom:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; }

/* ---------- Scheherazade Download Page (/download.html) ---------- */
body.dl-page { overflow: auto; height: auto; min-height: 100%; background: var(--night); }
.dl { position: relative; min-height: 100vh; min-height: 100dvh; }
.dl .sch-field { position: fixed; inset: 0; pointer-events: none; background: var(--night); }
.sch-icon {
  position: absolute;
  left: calc(var(--gutter) + 6vw);
  top: 56%;
  width: min(30vh, 22vw);
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  user-select: none;
  filter: none;
}
.dl-body {
  position: relative;
  z-index: 1;
  margin-left: 50vw;
  padding: calc(var(--mast-h) + 48px) var(--gutter) 120px 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-body .cap-title { margin-top: 18px; }
.dl-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 440px;
  margin-top: 32px;
}
.dlbtn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.dlbtn small { font-size: 12px; font-weight: 550; letter-spacing: 0.12em; color: var(--ash); }
.dlbtn.is-rec { --v21-edge: var(--ember); --v21-wash: var(--accent-wash); }
.dlbtn[hidden], .dl .dlbtn[hidden] { display: none; }
.dlbtn .os-rec { margin-left: auto; }
.dl-note { margin-top: 24px; max-width: 34em; font-size: 16px; line-height: 1.75; color: var(--ink-body); }
.dl-note a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--bone);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-ui);
}
.dl-note a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: rgba(235, 229, 218, 0.34);
  transition: background var(--dur-1) var(--ease-ui);
}
.dl-note a::after {
  content: '\2192';
  display: inline-block;
  font-size: 16px;
  font-weight: 450;
  line-height: 1;
}
.dl-note a:hover {
  color: var(--ember);
}
.dl-note a:hover::before {
  background: var(--ember);
}
.dl-foot {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  height: var(--deck-h);
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--void);
  border-top: 1px solid var(--line);
}

/* ---------- Landing Plates + Index Rail ---------- */
.index-rail {
  position: fixed;
  z-index: 45;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.4s var(--ease-open), visibility 0.4s;
}
.at-top .index-rail { opacity: 0; visibility: hidden; }
.index-rail ol { display: flex; flex-direction: column; gap: 10px; }
.index-rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 4px 0;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-body);
  transition: color var(--dur-2) var(--ease-ui);
}
.index-rail b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ember); }
.index-rail i { display: block; width: 20px; height: 1px; background: var(--rule-2); transition: background var(--dur-2) var(--ease-ui), height var(--dur-2) var(--ease-ui); }
.index-rail a:hover, .index-rail a.is-current { color: var(--bone); }
.index-rail a.is-current i { background: var(--ember); height: 2px; }
:lang(ko) .index-rail a { letter-spacing: 0.08em; }

/* Mobile thread progress ticks */
.thread {
  position: fixed;
  z-index: 35;
  left: var(--gutter);
  right: var(--gutter);
  top: var(--mast-h);
  height: 44px;
  display: none;
  gap: 8px;
  transition: transform 0.5s var(--slow), opacity var(--dur-3) var(--ease-ui), visibility var(--dur-3);
}
.thread a { flex: 1 1 0; max-width: 52px; height: 44px; display: flex; align-items: flex-start; padding-top: 14px; }
.thread-line { display: block; width: 100%; height: 1px; background: var(--rule-2); transition: height var(--dur-2) var(--ease-ui), background var(--dur-2) var(--ease-ui); }
.thread a[aria-current="page"] .thread-line { height: 2px; background: var(--ember); }
.at-top .thread { opacity: 0; visibility: hidden; }

main.plates { --col: var(--copy-w); }
.plate {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
}
/* Zero horizontal seam rules or multi-scrim overlays on .plate */
.plate::before,
.plate::after {
  content: none;
}
.plate:focus { outline: none; }
.plate .stage { position: absolute; inset: 0; background: var(--night); }
.plate .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 42%);
  transform: none;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-aspect-ratio: 4/5) {
  .plate .art { object-position: var(--pos-m, var(--pos, 50% 42%)); }
}

/* Single standard #050506 scrim over full-bleed art plates */
.plate .scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--scrim-art);
}

.plate .figure {
  position: absolute;
  left: 41.5%;
  bottom: calc(var(--deck-h) + 48px);
  transform: translateX(-50%);
  height: min(46vh, 42vw);
  width: max-content;
  margin: 0;
}
.plate .figure img { height: 100%; width: auto; max-width: none; transform: none; }
.plate-cast {
  position: absolute;
  left: 40.5%;
  bottom: calc(var(--deck-h) + 48px);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.1vw, 18px);
  height: min(55vh, 33vw);
}
.plate-cast img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  transform: none;
  filter: none;
  user-select: none;
}

/* Natural flex-column landing caption (replaces brittle absolute top offsets) */
.plate .caption {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: calc(var(--deck-h) + 48px);
  width: var(--copy-w);
  max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
}
.plate .cap-meta { gap: 12px; }
.plate .cap-meta .num { color: var(--bone); letter-spacing: 0.24em; }
.plate .cap-meta .num::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 0 4px 12px;
  background: var(--ember);
  opacity: 0.85;
  vertical-align: middle;
}
.plate .cap-meta .status { padding-left: 0; border-left: 0; }
.plate .cap-title { margin: 0; }
.plate .cap-title a:hover { color: var(--ember); }
.plate .cap-ko { display: block; margin-top: 8px; }
.plate .cap-line { margin: 0; }
.plate .cap-text {
  width: min(420px, 100%);
  margin: 0;
  font-size: 16.5px;
  line-height: 1.78;
  font-weight: 450;
  color: var(--ink-body);
}
:lang(ko) .plate .cap-text { word-break: keep-all; overflow-wrap: break-word; }
.plate .cap-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}

.plate .caption:has(.get-menu:not([hidden])) {
  max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 36px);
  overflow-y: auto;
}
.plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: auto;
  min-height: max(100dvh, 560px);
  padding-top: calc(var(--mast-h) + 24px);
  padding-bottom: calc(var(--deck-h) + 48px);
}
.plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) .caption {
  position: relative;
  right: auto;
  bottom: auto;
  margin-left: auto;
  margin-right: var(--gutter);
  max-height: none;
}

/* ---------- Primary CTA & Secondary Text Link Sizing ---------- */
.v21-cta,
.plate .cap-acts .prod-act,
.prod .prod-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  min-width: 104px;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  color: var(--bone);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-ui);
}
.prod .prod-act { margin-left: auto; }

/* Disclosure chevron on OS chooser trigger */
:is(.plate, .prod) .prod-act[aria-expanded]::after {
  content: '';
  display: block;
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
:is(.plate, .prod) .prod-act[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Secondary action link: borderless text + unbroken 1px underline (hover #D9A362) */
.plate .cap-acts .plate-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-ui);
}
.plate .cap-acts .plate-more::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: rgba(235, 229, 218, 0.34);
  transition: background var(--dur-1) var(--ease-ui);
}
.plate .cap-acts .plate-more::after {
  content: '\2192';
  display: inline-block;
  font-size: 17px;
  font-weight: 450;
  line-height: 1;
}
.plate .cap-acts .plate-more:hover {
  color: var(--ember);
}
.plate .cap-acts .plate-more:hover::before {
  background: var(--ember);
}

:lang(ko) .plate .cap-acts :is(.plate-more, .prod-act),
:lang(ko) .prod .prod-act,
:lang(ko) .dl :is(.dlbtn, .dl-note a),
:lang(ko) .v21-cta {
  letter-spacing: 0.02em;
}

/* Artwork opacity-only entrance (scale = 1.000 fixed) */
.plate .art, .plate .figure, .plate .plate-cast {
  opacity: 0;
  transition: opacity 0.6s var(--ease-open);
}
.plate.is-on .art, .plate.is-on .figure, .plate.is-on .plate-cast {
  opacity: 1;
}

/* ---------- Philosophy & Install Reading Column ---------- */
body.philo-page { overflow: auto; height: auto; min-height: 100%; background: var(--night); }
html:not([lang="ko"]) [data-philo="ko"], html:not([lang="ja"]) [data-philo="ja"], html:is([lang="ko"], [lang="ja"]) [data-philo="en"] { display: none; }
.philo {
  position: relative;
  z-index: 1;
  max-width: calc(38em + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--mast-h) + 56px) var(--gutter) 96px;
}
.philo-page .dl-foot { position: relative; inset: auto; z-index: 1; }

/* CHOAM v2.1 Unified Bottom-Line Tabs (zero pill boxes) */
.philo-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.philo-lang {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px 8px;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--dim);
  transition: color var(--dur-1) var(--ease-ui);
}
.philo-lang:hover { color: var(--ink-body); }
.philo-lang[aria-pressed="true"] { color: var(--bone); }
.philo-lang[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--ember);
}
.philo-lang:focus-visible { outline-offset: 2px; }

.philo-title { font-weight: 750; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.2; letter-spacing: 0.04em; text-wrap: balance; }
.philo-sub { display: block; margin-top: 10px; font-weight: 550; font-size: 16px; letter-spacing: 0.1em; color: var(--ash); }
.philo-sec { margin-top: 68px; }
.philo-h { position: relative; padding-top: 22px; font-weight: 750; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; letter-spacing: 0.04em; color: var(--bone); }
.philo-h::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 1px; background: var(--ember); }
.philo-sec p { margin-top: 1em; font-size: 16.5px; line-height: 1.85; color: var(--ink-body); }
.philo-sec .philo-h + p { margin-top: 22px; }
.philo-sec p.philo-close { margin-top: 2.4em; }
:lang(ko) .philo-sec p, :lang(ko) .philo-title { word-break: keep-all; overflow-wrap: break-word; }
.philo cite { font-style: italic; }
.philo-sec p a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: rgba(217, 163, 98, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  transition: color var(--dur-1) var(--ease-ui), text-decoration-color var(--dur-1) var(--ease-ui);
}
.philo-sec p a:hover { color: var(--ember); text-decoration-color: var(--ember); }
.philo-sign { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.philo-motto { font-weight: 700; font-size: 13px; letter-spacing: 0.3em; color: var(--ember); }
.philo-by { margin-top: 8px; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; color: var(--bone); }

/* Install Guide (install.html) */
html:not([lang="ko"]) [data-lang-block="ko"], html:not([lang="ja"]) [data-lang-block="ja"], html:is([lang="ko"], [lang="ja"]) [data-lang-block="en"] { display: none; }
.inst-kicker { font-weight: 700; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ember); margin-bottom: 16px; }
.inst-lead { margin-top: 18px; font-size: 17px; line-height: 1.75; color: var(--ink-body); }
.inst-status {
  margin-top: 32px;
  padding: 14px 0 14px 18px;
  border: 0;
  border-left: 2px solid var(--ember);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
}
.inst-status-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 8px; color: var(--ash); }
.inst-status a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 5px; }
.inst-status a:hover { color: var(--ember); }
.inst-os {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}
.inst-os[hidden], .inst-status[hidden] { display: none; }
.inst .inst-sec:first-of-type { margin-top: 56px; }
.inst code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  background: var(--elevated);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.inst-code {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--void);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.inst-code code { padding: 0; background: none; border: 0; font-size: inherit; white-space: pre; overflow-wrap: normal; color: var(--bone); }
.inst-steps { counter-reset: step; margin-top: 28px; }
.inst-steps > li { counter-increment: step; position: relative; padding-left: 52px; }
.inst-steps > li + li { margin-top: 18px; }
.inst-steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.45em; font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--ember); }
.philo-sec .inst-steps > li > p:first-child { margin-top: 0; }
.inst-step-h { font-weight: 700; font-size: 17px; line-height: 1.75; letter-spacing: 0.02em; color: var(--bone); }
.philo-sec .inst-steps .inst-step-h + p { margin-top: 0.3em; }
.philo-sec .inst-steps > li > p + p { margin-top: 0.7em; }
.inst-h3 { font-weight: 700; font-size: 17px; line-height: 1.45; letter-spacing: 0.02em; color: var(--bone); }
.inst-fix { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.philo-sec p.inst-after { margin-top: 32px; font-size: 16px; color: var(--ash); }
.inst-usb {
  margin-top: 32px;
  padding: 20px 0 20px 20px;
  border: 0;
  border-left: 2px solid var(--ember);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.inst-req { margin: 14px 0 0; }
.inst-req > div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.inst-req dt { font-weight: 700; font-size: 16px; line-height: 1.6; }
.inst-req dd { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-body); }
.inst-req dd b { display: inline-block; margin-right: 0.8em; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.inst-req .is-must dt { color: var(--ember); }
.inst-req .is-must dd b { padding: 1px 7px; border: 1px solid var(--accent-dim); background: var(--accent-wash); color: var(--ember); }
.philo-sec p.inst-warn { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--ember); font-weight: 650; font-size: 16px; line-height: 1.65; color: var(--bone); }
.inst-notes { margin-top: 30px; }
.inst-notes > li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.75; color: var(--ink-body); }
.inst-notes > li + li { margin-top: 10px; }
.inst-notes > li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 9px; height: 1px; background: var(--ember); }
.philo-sec p.inst-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 30px; }
.philo-sec .inst-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(235, 229, 218, 0.34);
}
.philo-sec .inst-links a:hover { color: var(--ember); text-decoration-color: var(--ember); }
:lang(ko) .inst :is(.inst-lead, .inst-status, .inst-h3, .inst-req, .inst-notes, .inst-steps) { word-break: keep-all; overflow-wrap: break-word; }
:lang(ko) .inst-req dd b, :lang(ko) .philo-sec .inst-links a { letter-spacing: 0.08em; }

/* Scheherazade error code FAQ (scheherazade/errors.html) */
.err code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  background: var(--elevated);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.err-list { margin-top: 28px; border-top: 1px solid var(--line); }
.err-entry {
  position: relative;
  padding: 17px 0 17px 18px;
  border-bottom: 1px solid var(--line-row);
  scroll-margin-top: calc(var(--mast-h) + 28px);
}
.err-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 17px;
  width: 2px;
  background: transparent;
}
.err-entry:target { background: var(--accent-wash); }
.err-entry:target::before { background: var(--ember); }
.err-list .err-entry:last-child { border-bottom: 0; }
.err-code { font-weight: 650; font-size: 15px; line-height: 1.45; letter-spacing: 0.08em; color: var(--bone); }
.err-code code {
  padding: 0;
  background: none;
  border: 0;
  font-size: 1em;
  letter-spacing: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}
.err-br { color: var(--dim); }
.err-what { margin-top: 7px; }
.err-do { margin-top: 2px; font-size: 16px; line-height: 1.7; color: var(--ash); }
.err-do::before { content: '\2192\00a0'; color: var(--ember); }
.err .philo-close {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ash);
}
/* Korean on the error-code page breaks at spaces, never mid-word ("의미/와"): every KO block
   in the component (intro, headings, entries, closing), keyed on the block's own lang so it
   holds even when the page itself is EN. A spaceless run (a code, a path) still wraps. */
.err [data-lang-block="ko"], :lang(ko) .err :is(.err-what, .err-do, .err-code) { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Letterbox Chrome Scroll Hide ---------- */
.mast, .deck, .dl-foot { transition: transform 0.45s var(--slow); }
.mast.chrome-hidden { transform: translateY(-100%); }
.mast.chrome-hidden ~ .thread { transform: translateY(calc(-1 * var(--mast-h) - 100%)); }
.deck.chrome-hidden, .dl-foot.chrome-hidden { transform: translateY(100%); }

/* ---------- Scheherazade Chat Figure (.chatviz): Opaque #0B0C0D Plate, Radius 0, Zero Box-in-Box ---------- */
.chatviz .cv {
  width: min(100cqw, calc((100cqh - 34px) * 720 / 540));
  aspect-ratio: 720 / 540;
  container-type: inline-size;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4cqw;
  padding: 3.2cqw 3.8cqw;
  background: var(--night);
  border: 1px solid var(--edge-static);
  font-family: var(--font);
  text-align: left;
}
.chatviz .cv-poster {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2cqw;
  padding-bottom: 1.6cqw;
  border-bottom: 1px solid var(--line);
}
.chatviz .cv-ph {
  margin: 0;
  font-size: max(18px, 3.8cqw);
  font-weight: 840;
  line-height: 1.2;
  letter-spacing: -0.036em;
  color: var(--bone);
  word-break: keep-all;
}
.chatviz .cv-ph em {
  font-style: normal;
  color: var(--ember);
}
.chatviz .cv-pnum {
  flex-shrink: 0;
  margin-top: 0.4cqw;
  padding-left: 1.4cqw;
  border-left: 2px solid var(--ember);
  font-size: max(11px, 1.85cqw);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--ink-meta);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.stage-poster-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (max-width: 900px) {
  .stage-poster-svg { display: none; }
}
.chatviz .cv-row { display: flex; }
.chatviz .cv-row.r { justify-content: flex-end; }
.chatviz .cv-b {
  margin: 0;
  font-size: max(13px, 2.45cqw);
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
  padding: 1.4cqw 2cqw;
  max-width: 90%;
}
.chatviz .cv-b.in {
  background: var(--elevated);
  border-right: 2px solid var(--rule-2);
  color: var(--bone);
}
.chatviz .cv-b.out {
  background: transparent;
  border-left: 2px solid var(--edge-static);
  color: var(--bone);
}
.chatviz .cv-b b { color: var(--ember); font-weight: 750; }
.chatviz .cv-b em {
  font-style: normal;
  font-size: max(12px, 1.7cqw);
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-left: 1.4cqw;
  white-space: nowrap;
}
.chatviz .cv-sys {
  background: var(--elevated);
  border-left: 2px solid var(--ember);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 0.7cqw;
}
.chatviz .k {
  font-family: ui-monospace, Menlo, monospace;
  font-size: max(12px, 1.55cqw);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.chatviz .l { font-family: ui-monospace, Menlo, monospace; font-size: max(12px, 1.95cqw); line-height: 1.45; }
.chatviz .l.del { color: var(--dim); text-decoration: line-through; }
.chatviz .l.add { color: var(--ember); }
.chatviz .cv-sheet {
  border-top: 1px solid var(--line);
  padding: 1.5cqw 0 0;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
}
.chatviz .cv-sheet .r { display: flex; align-items: center; gap: 1.5cqw; }
.chatviz .cv-sheet .n { font-family: ui-monospace, Menlo, monospace; font-size: max(12px, 1.55cqw); width: 2ch; color: var(--dim); }
.chatviz .cv-sheet .b { height: 6px; background: var(--line); }
.chatviz .cv-sheet .r.on .n { color: var(--ember); font-weight: 700; }
.chatviz .cv-sheet .r.on .b { background: var(--ember); }

/* ---------- Lunasia Figures (.lunviz): Outer Chamfered Vessel + 2px Pin Inner Hierarchy (Box-in-Box = 0) ---------- */
.prod .vis.lunviz:not(.is-on) { opacity: 0; pointer-events: none; visibility: hidden; }
.prod .vis.lunviz.is-on { opacity: 1; pointer-events: auto; visibility: visible; }
.lunviz .lv,
.lun-panel {
  width: min(100cqw, calc((100cqh - 36px) * 720 / 540));
  max-height: calc(100cqh - 24px);
  overflow-y: auto;
  container-type: inline-size;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  font-family: var(--font);
  text-align: left;
  padding: 24px 28px;
}
.lunviz .lv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.lunviz .lv-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--bone);
  word-break: keep-all;
}
.lunviz .lv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.lunviz .lv-tab,
.lun-tab {
  position: relative;
  min-height: 36px;
  padding: 4px 2px 8px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-ui);
}
.lunviz .lv-tab:hover,
.lun-tab:hover {
  color: var(--ink-body);
}
.lunviz .lv-tab.is-on,
.lun-tab.is-on,
.lun-tab[aria-selected="true"] {
  color: var(--bone);
}
.lunviz .lv-tab.is-on::after,
.lun-tab.is-on::after,
.lun-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ember);
}

.lunviz .lv-case { display: none; flex-direction: column; gap: 16px; }
.lunviz .lv-case.is-on { display: flex; }

/* Unboxed inner blocks: 2px vertical pin + 1px hairline */
.lunviz .lv-user {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 4px 0 12px 14px;
  border: 0;
  border-left: 2px solid var(--rule-2);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.lunviz .lv-user b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ash);
  white-space: nowrap;
}
.lunviz .lv-user span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bone);
  word-break: keep-all;
}

.lunviz .lv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.lunviz .lv-card,
.lv .lun-card {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--rule-2);
  padding: 4px 0 4px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}
.lunviz .lv-card.on,
.lv .lun-card.on {
  border-left-color: var(--ember);
}
.lunviz .lv-who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 8px; }
.lunviz .lv-who b { font-size: 14px; font-weight: 600; color: var(--ash); }
.lunviz .lv-card.on .lv-who b { color: var(--ember); }
.lunviz .lv-badge { font-family: var(--font); font-size: 12px; font-weight: 450; color: var(--dim); white-space: nowrap; }
.lunviz .lv-card.on .lv-badge, .lunviz .lv-box.on .lv-badge { color: var(--ash); }
.lunviz .lv-think {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 450;
  color: var(--ash);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  word-break: keep-all;
}
.lunviz .lv-card.on .lv-think { color: var(--ink-body); border-bottom-color: rgba(217, 163, 98, 0.28); }
.lunviz .lv-think i {
  font-style: normal;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-right: 8px;
}
.lunviz .lv-card.on .lv-think i { color: var(--ember); }
.lunviz .lv-reply {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 450;
  color: var(--ink-body);
  word-break: keep-all;
}
.lunviz .lv-card.on .lv-reply { color: var(--bone); font-weight: 500; }

.lunviz .lv-box {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--rule-2);
  border-bottom: 1px solid var(--line);
  padding: 6px 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lunviz .lv-box.on { border-left-color: var(--ember); }
.lunviz .lv-kicker {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.lunviz .lv-box.on .lv-kicker { color: var(--ember); }
.lunviz .lv-h { font-size: 16px; font-weight: 600; color: var(--bone); line-height: 1.45; word-break: keep-all; }
.lunviz .lv-p { font-size: 14px; line-height: 1.6; font-weight: 450; color: var(--ink-body); word-break: keep-all; }

.lunviz .lv-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 6px; }
.lunviz .lv-stat {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--rule-2);
  padding: 4px 0 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lunviz .lv-stat.on { border-left-color: var(--ember); }
.lunviz .lv-stat b {
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  line-height: 1.2;
}
.lunviz .lv-stat.on b { color: var(--ember); }
.lunviz .lv-stat span { font-size: 13.5px; font-weight: 550; line-height: 1.45; color: var(--bone); word-break: keep-all; }
.lunviz .lv-stat small { font-size: 12px; line-height: 1.45; color: var(--ash); word-break: keep-all; }

.cap-line .hl-em {
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.22em;
  text-underline-skip-ink: none;
}

/* ---------- 404 Not Found Page (/404.html) ---------- */
body.notfound-page,
.notfound-page {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100dvh;
  background: var(--void);
  color: var(--bone);
}
.notfound-page .dl-foot {
  position: fixed;
}
.notfound-shell {
  min-height: 100dvh;
  padding: calc(var(--mast-h) + 36px) var(--gutter) calc(var(--deck-h) + 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v21-vessel {
  width: min(100%, 560px);
  padding: 32px 36px 28px;
}
.notfound-shell .v21-vessel h1 {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--bone);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
:lang(ko) .notfound-shell .v21-vessel p {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.notfound-shell .v21-vessel p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-body);
}
.notfound-shell .v21-vessel code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  background: var(--elevated);
  border: 1px solid var(--line);
  color: var(--ember);
  overflow-wrap: anywhere;
}
.notfound-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember);
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   3-Tier Responsive Normalization
   Tier 1: >= 1080px (Desktop)
   Tier 2: 768px .. 1079px (Tablet, plus short desktop <= 860px height unlock)
   Tier 3: <= 767px (Mobile)
   ========================================================================== */

/* Tablet & narrow masthead (< 1080px): prevent motto collision, switch scrim to vertical */
@media (max-width: 1079px) {
  :root {
    --scrim-art: linear-gradient(
      to top,
      rgba(5, 5, 6, 0.95) 0%,
      rgba(5, 5, 6, 0.88) 42%,
      rgba(5, 5, 6, 0.44) 68%,
      rgba(5, 5, 6, 0.14) 100%
    );
  }
  .motto { display: none; }
  .index-rail { display: none; }
}

/* Tablet (768px .. 1079px) and short-height desktop (<= 860px): unlock detail clipping */
@media (min-width: 768px) and (max-width: 1079px), (min-width: 768px) and (max-height: 860px) {
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .prod {
    --col: min(440px, 42vw);
    --vis-r: calc(var(--gutter) + var(--col) + 2.4vw);
  }
  .prod-copy {
    top: calc(var(--mast-h) + 12px);
    bottom: calc(var(--deck-h) + 16px);
    max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 28px);
    padding-bottom: 8px;
    overflow-y: auto;
    justify-content: safe flex-end;
  }
  .prod-copy .choam-flywheel {
    margin-top: 10px;
    padding-top: 10px;
  }
  .prod-copy > * { flex-shrink: 0; }
  .plate .caption {
    width: min(440px, 44vw);
    bottom: calc(var(--deck-h) + 32px);
  }
  .plate .figure,
  .plate-cast {
    left: 28%;
  }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  :root {
    --mast-h: 58px;
    --deck-h: 58px;
  }

  .mast { gap: 10px; }
  .brand { gap: 8px; font-size: 15px; letter-spacing: 0.24em; margin-right: -0.24em; }
  .brand img { width: 20px; height: 20px; }
  .site-nav { margin-right: 0; }
  .nav-controls { gap: 8px; }
  .nav-toggle { font-size: 12px; letter-spacing: 0.06em; gap: 4px; padding: 0 4px; }
  .nav-panel {
    left: 0;
    right: 0;
    width: auto;
    padding: 20px var(--gutter) 26px;
    border-left: 0;
    border-right: 0;
  }
  .nav-row + .nav-row { margin-top: 10px; padding-top: 10px; }
  .nav-entry { min-height: 52px; font-size: 16px; }
  .lang-btn { gap: 4px; min-width: 44px; min-height: 44px; font-size: 12px; letter-spacing: 0.08em; }

  .thread { display: flex; }

  .deck { flex-wrap: nowrap; gap: 0 12px; }
  .now { display: flex; gap: 10px; min-width: 0; overflow: hidden; }
  .now-num { font-size: 12px; letter-spacing: 0.16em; }
  .now-title { font-size: 12px; letter-spacing: 0.16em; overflow: hidden; text-overflow: ellipsis; }
  .now-sub { display: none; }
  .deck .next-ch { margin-left: auto; }
  .next-ch { min-height: 44px; align-items: center; padding: 6px 0 6px 12px; gap: 8px; }
  .next-ch small { font-size: 12px; letter-spacing: 0.08em; }
  .next-ch span { font-size: 12px; letter-spacing: 0.08em; }
  .deck:not(.dl-foot) .foot { display: none; }
  .dl-foot,
  .deck.dl-foot {
    height: auto;
    min-height: var(--deck-h);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .deck.dl-foot .foot {
    white-space: normal;
    flex-wrap: wrap;
    gap: 4px 14px;
    line-height: 1.35;
  }

  .intro-title { top: calc(var(--mast-h) + (100% - var(--mast-h) - var(--deck-h)) * 0.17); }
  .intro-wm { font-size: 15.5vw; letter-spacing: 0.26em; margin-right: -0.26em; }
  .intro-wm span { filter: none !important; -webkit-filter: none !important; }
  .intro-motto { font-size: 12px; letter-spacing: 0.44em; margin-right: -0.44em; }
  .intro-foot {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'next next' 'meta clock';
    row-gap: 24px;
    bottom: calc(var(--deck-h) + 18px);
  }
  .intro-meta { grid-area: meta; gap: 12px; font-size: 12px; letter-spacing: 0.14em; }
  .intro-clock { grid-area: clock; font-size: 12px; letter-spacing: 0.14em; }
  .intro-go { grid-area: next; justify-self: center; gap: 56px; }

  /* Product detail mobile stack: unified vertical flex layout across all 6 detail pages
     so tall copy never clips under .mast and framed visuals never collapse to 0px height */
  .prod {
    --col: auto;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .prod .prod-copy,
  .prod .prod-copy:has(.get-menu:not([hidden])) {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
  }
  /* Framed visual slides (Scheherazade 1-4, 602 1-3, Lunasia 1-3, Seonjam gameplay screen) */
  .prod:not([data-vis="art"]):not(.dat-comparing) {
    padding: calc(var(--mast-h) + 16px) var(--gutter) calc(var(--deck-h) + 28px);
    gap: 20px;
  }
  .prod:not([data-vis="art"]):not(.dat-comparing) .prod-veil,
  .prod:not([data-vis="art"]):not(.dat-comparing) .field {
    display: none;
  }
  .prod:not([data-vis="art"]):not(.dat-comparing) .stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
  }
  .prod:not([data-vis="art"]):not(.dat-comparing) .vis {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin: 0;
    gap: 8px;
    container-type: inline-size;
    pointer-events: auto;
  }
  .prod:not([data-vis="art"]):not(.dat-comparing) .vis:not(.is-on) {
    display: none;
  }
  /* Full-bleed key art slides (DAT Creative 1-5, Seonjam 1, Donguri Ryokan 1-5) */
  .prod[data-vis="art"] {
    justify-content: flex-end;
    padding: calc(var(--mast-h) + 120px) var(--gutter) calc(var(--deck-h) + 18px);
    overflow: hidden;
  }
.prod[data-vis="art"] .stage {
position: absolute;
inset: 0;
  }
  .prod.p-seonjam[data-vis="art"] .stage {
    top: var(--mast-h);
    left: 0;
    right: 0;
    bottom: auto;
    height: 62dvh;
  }
  .prod.p-seonjam[data-vis="art"] .prod-veil {
    top: var(--mast-h);
    left: 0;
    right: 0;
    bottom: auto;
    height: 62dvh;
    background: linear-gradient(
      to bottom,
      rgba(11, 12, 13, 0.04) 0%,
      rgba(11, 12, 13, 0.04) 44%,
      rgba(11, 12, 13, 0.42) 66%,
      rgba(11, 12, 13, 0.86) 84%,
      #0B0C0D 100%
    );
  }
.prod[data-vis="art"] .vis {
display: none;
}

  .cap-title { margin-top: 10px; font-size: clamp(24px, 6.8vw, 32px); letter-spacing: 0.1em; }
  .cap-ko { margin-top: 6px; font-size: 14px; }
  .cap-line { margin-top: 8px; font-size: 16px; }
  .rail { margin-top: 10px; }
  .slide p { font-size: 16px; line-height: 1.75; }
  .slide .display { font-size: 18px; }
  .rail-ctl { margin-top: 12px; gap: 8px 10px; min-height: 44px; }
  .text-btn { height: 44px; font-size: 12px; letter-spacing: 0.16em; }
  .dot { width: 24px; height: 44px; }
  .dot i { width: 12px; }
  .count { height: 44px; font-size: 12px; letter-spacing: 0.14em; }
  .prod-act { min-width: 96px; height: 44px; padding: 0 18px; font-size: 15px; }
  .vis img, .vis svg { width: 100%; height: auto; max-height: none; }
  .vis figcaption { font-size: 12px; letter-spacing: 0.14em; text-align: center; }

  .gal { --gg: 10px; }
  .gal-pair { --fill: 1; }
  .gal:has(figcaption) { --capH: 22px; }
  .gal:has(.gn) { --gn: 24px; }
  .gal-row,
  .gal-pair .gal-row {
    --h: min(44dvh, calc((100cqw - (var(--n) - 1) * var(--gg)) / var(--sar)));
  }
  .gi { gap: 6px; }
  .gn { font-size: 12px; }

  /* Chat figure mobile legibility: fluid natural height, zero 100cqh collapse */
  .chatviz .cv {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding: 16px;
    gap: 10px;
  }
  .chatviz .cv-b { font-size: 14px; line-height: 1.55; padding: 9px 12px; max-width: 92%; }
  .chatviz .cv-b em { font-size: 12px; margin-left: 8px; }
  .chatviz .cv-sys { padding: 10px 12px; gap: 4px; }
  .chatviz .k { font-size: 12px; }
  .chatviz .l { font-size: 12.5px; overflow-wrap: anywhere; }
  .chatviz .cv-sheet { display: flex; padding-top: 10px; gap: 6px; }
  .chatviz .cv-sheet .r { gap: 8px; }
  .chatviz .cv-sheet .n { font-size: 12px; }

  /* Lunasia mobile stack: keep product header/copy FIRST, compact 2x2 tabs + vessel SECOND */
  .prod#lunasia .prod-copy { order: 1; }
  .prod#lunasia .stage { order: 2; }
  .lunviz .lv,
  .lun-panel {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    align-self: stretch;
    gap: 16px;
    padding: 20px 18px;
  }
  .lunviz .lv-head { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 8px; border-bottom: 0; }
  .lunviz .lv-title { font-size: 15px; }
  .lunviz .lv-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    width: 100%;
  }
  .lunviz .lv-tab,
  .lun-tab {
    min-height: 44px;
    padding: 0 4px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }
  .lunviz .lv-tab.is-on::after,
  .lun-tab.is-on::after {
    bottom: -1px;
  }
  .lunviz .lv-pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lunviz .lv-card + .lun-card,
  .lunviz .lv-card + .lv-card {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .lunviz .lv-metrics { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lunviz .lv-scene + .lv-scene, .lunviz .lv-foot { display: none; }

  /* Landing plates mobile: anchor .figure strictly above --copy-top so short screens (390x664) never overlap */
  main.plates { --col: auto; }
  .plate { min-height: max(100dvh, 620px); }
  .plate .caption {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    bottom: calc(var(--deck-h) + 22px);
    max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 44px);
    gap: 8px;
  }
  .plate .cap-title { font-size: 27px; line-height: 1.15; letter-spacing: 0.12em; }
  .plate .cap-ko { margin-top: 4px; font-size: 14px; }
  .plate .cap-line { font-size: 16px; line-height: 1.4; }
  .plate .cap-text { width: 100%; font-size: 15.5px; line-height: 1.68; }
  .plate .cap-acts { margin-top: 4px; }
  .plate .figure {
    left: 50%;
    bottom: calc(100% - var(--copy-top, 52%) + 16px);
    height: min(30dvh, 48vw, max(84px, calc(var(--copy-top, 52%) - var(--mast-h) - 28px)));
  }
  .plate:has(.get-menu:not([hidden])) .figure {
    bottom: calc(100% - var(--copy-top, 52%) + 16px);
    height: min(32dvh, 52vw, max(0px, calc(var(--copy-top, 52%) - var(--mast-h) - 28px)));
  }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) {
    padding-top: calc(36dvh + 20px);
    padding-bottom: calc(var(--deck-h) + 36px);
  }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) .figure {
    top: calc(36dvh - min(30dvh, 50vw));
    bottom: auto;
    height: min(30dvh, 50vw);
  }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) .caption {
    left: auto;
    width: 100%;
    margin: 0;
  }
  .plate-cast {
    bottom: 58%;
    height: min(42vh, 70vw);
    gap: 8px;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    justify-content: center;
  }
  .plate-cast img { min-width: 0; flex: 0 1 auto; }

  /* Download page mobile */
  .dl .sch-field { position: absolute; }
  .dl .sch-icon { position: absolute; top: calc(var(--mast-h) + 28px); left: var(--gutter); transform: none; width: 38vw; }
  .dl-body { margin-left: 0; padding: calc(var(--mast-h) + 38vw + 52px) var(--gutter) 112px; justify-content: flex-start; }
  .dl-btns { max-width: none; }
  .dlbtn { width: 100%; flex-wrap: wrap; }

  /* Philosophy & Install mobile */
  .philo { padding: calc(var(--mast-h) + 36px) var(--gutter) 64px; }
  .philo-langs { margin-bottom: 32px; gap: 0 18px; }
  .philo-sec { margin-top: 52px; }
  .philo-sign { margin-top: 52px; }
  .inst-lead { font-size: 16px; }
  .inst-os { gap: 4px 18px; margin-top: 32px; }
  .inst .inst-sec:first-of-type { margin-top: 44px; }
  .inst-steps > li { padding-left: 40px; }
  .inst-step-h { font-size: 16px; }
  .inst-usb { padding: 16px 0 16px 16px; }
  .inst-req > div { grid-template-columns: minmax(0, 1fr); }
  .inst-code code { white-space: pre-wrap; }

  /* 404 mobile */
  .notfound-shell { padding: calc(var(--mast-h) + 28px) var(--gutter) calc(var(--deck-h) + 52px); }
  .v21-vessel { padding: 24px 20px 22px; }
}

@media (max-width: 360px) {
  .mast { gap: 6px; }
  .brand { font-size: 13px; letter-spacing: 0.2em; margin-right: -0.2em; gap: 6px; }
  .brand img { width: 18px; height: 18px; }
}

/* ---------- Japanese Typography Rules ---------- */
:root:lang(ja) {
  --font: 'CHOAM Sans', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', Meiryo, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
:lang(ja) :is(.cap-line, .slide p, .dl-note, .plate .cap-text, .philo-sec p, .philo-title, .philo-h, .inst-lead, .inst-status, .inst-h3, .inst-req, .inst-notes, .inst-steps, .now-sub) {
  word-break: normal;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}
:lang(ja) .nav-entry { letter-spacing: 0.02em; }
:lang(ja) .menu-btn, :lang(ja) .cap-meta, :lang(ja) .intro-meta, :lang(ja) .intro-clock, :lang(ja) .foot a, :lang(ja) .prod-act,
:lang(ja) .vis figcaption, :lang(ja) .dl-note a, :lang(ja) .dlbtn small, :lang(ja) .text-btn, :lang(ja) .next-ch small,
:lang(ja) .get-head, :lang(ja) .get-opt, :lang(ja) .get-opt b, :lang(ja) .get-opt .os-rec, :lang(ja) .index-rail a,
:lang(ja) .plate .cap-acts > a, :lang(ja) .plate .cap-acts .prod-act, :lang(ja) .inst-req dd b, :lang(ja) .philo-sec .inst-links a { letter-spacing: 0.08em; }
:lang(ja) .plate .cap-acts :is(.plate-more, .prod-act), :lang(ja) .prod .prod-act, :lang(ja) .dl :is(.dlbtn, .dl-note a), :lang(ja) .v21-cta { letter-spacing: 0.02em; }
:lang(ja) .gn { letter-spacing: 0.12em; margin-right: -0.12em; }
:lang(ja) .slide p { letter-spacing: 0; }
:lang(ja) .philo-title, :lang(ja) .philo-h { letter-spacing: 0.02em; }

/* ---------- No-JS Document Fallback ---------- */
.no-js body { overflow: auto; }
.no-js .menu-btn, .no-js .next-ch { display: none; }
.no-js #projects { display: block; padding: calc(var(--mast-h) + 32px) var(--gutter) calc(var(--deck-h) + 48px); }
.no-js #projects .plate { position: static; height: auto; min-height: 0; margin: 0; padding: 28px 0 0; overflow: visible; background: none; border-top: 1px solid var(--line); }
.no-js #projects .plate:first-child { padding-top: 0; border-top: 0; }
.no-js #projects .caption { position: static; width: auto; max-height: none; }
.no-js #projects .cap-title { margin-top: 12px; font-size: clamp(24px, 3.4vw, 32px); }
.no-js #projects .cap-text { max-width: 38em; color: var(--ink-body); }
.no-js .ns { padding: calc(var(--mast-h) + 32px) var(--gutter) calc(var(--deck-h) + 48px); max-width: 40em; }
.no-js .ns h2 { font-weight: 800; font-size: 38px; text-transform: uppercase; }
.no-js .ns p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--ink-body); }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .plate .art, .plate .figure, .plate .plate-cast {
    opacity: 1;
  }
}


/* ---------- Seamless In-Plate 60fps Cinema (Home 'Explore' -> In-Place Video) ---------- */
.plate .stage,
.plate .caption {
  transition: opacity 0.38s var(--ease-open), transform 0.38s var(--ease-open);
}
.plate.is-cinema .stage,
.plate.is-cinema .caption {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.plate-cinema {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #050506;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--mast-h) + 18px) var(--gutter) calc(var(--deck-h) + 18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s var(--ease-open), visibility 0s linear 0.42s;
}
.plate.is-cinema .plate-cinema {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.42s var(--ease-open), visibility 0s linear 0s;
}
.cinema-wrap {
  width: min(92vw, 1520px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cinema-vid {
  width: 100%;
  max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 102px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050506;
  display: block;
}
.cinema-prog {
  width: 100%;
  height: 1px;
  background: rgba(235, 229, 218, 0.14);
  position: relative;
  overflow: hidden;
}
.cinema-prog i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--ember);
  will-change: width;
}
.cinema-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cinema-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cinema-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.08em;
  color: var(--ash);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-ui);
}
.cinema-btn:hover,
.cinema-btn:focus-visible {
  color: var(--bone);
}
.cinema-replay.is-ended {
  color: var(--ember);
}
.cinema-act {
  color: var(--bone);
  border-bottom: 1px solid rgba(217, 163, 98, 0.55);
  padding-bottom: 3px;
}
.cinema-act:hover,
.cinema-act:focus-visible {
  color: var(--ember);
  border-bottom-color: var(--ember);
}
@media (max-width: 767px) {
  .plate-cinema {
    padding: calc(var(--mast-h) + 26px) var(--gutter) calc(var(--deck-h) + 18px);
  }
  .cinema-wrap {
    width: 100%;
    gap: 12px;
  }
  .cinema-vid {
    max-height: 52dvh;
  }
  .cinema-btn {
    min-height: 44px;
    font-size: 13px;
  }
  .prod .vis video {
    width: 100%;
    height: auto;
  }
}

body.has-cinema .index-rail { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
