/* CHOAM site: full-bleed project gallery with a slim translucent masthead and a bottom chapter deck. */
/* Pretendard Variable, SIL OFL 1.1 (assets/LICENSE-Pretendard.txt). Pages load choam-sans-subset.woff2, a renamed
   subset (Latin, punctuation, arrows and every Hangul syllable in the site's html/js, Korean copy included: 469 syllables,
   the Hangul codepoints at the end of its unicode-range). The full font only loads for Hangul missing from the subset;
   when Korean copy changes, rebuild the subset (fontTools) and regenerate this unicode-range from the same syllable list. */
@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-017F, U+2000-206F, U+20A9-20AC, U+2122, U+2190-2193, U+3000-3003,
    U+AC00-AC01, U+AC04, U+AC08, U+AC10-AC11, U+AC15, U+AC19, U+AC1C-AC1D, U+AC70, U+AC74, U+AC78, U+AC83, U+AC8C, U+ACA0, U+ACA8-ACA9, U+ACB0, U+ACBD, U+ACC1, U+ACC4, U+ACE0, U+ACF3, U+ACFC, U+AD00, U+AD1C, U+AD34, U+AD50, U+AD6C-AD6D, U+ADF8, U+AE01, U+AE30, U+AE34, U+AE38, U+AE4A, U+AE4C-AE4D, U+AE5D, U+AE68, U+AECD, U+AED8, U+AF42, U+AF64, U+AFB8, U+AFC0, U+AFC8-AFC9, U+AFD4, U+B010, U+B048, U+B04A, U+B054, U+B05D, U+B098, U+B09C, U+B0A0, U+B0A8, U+B0AC, U+B0AE, U+B0B4, U+B0B8, U+B0BC, U+B0C5, U+B0D0, U+B108, U+B110, U+B118, U+B123, U+B140-B141, U+B144, U+B178, U+B17C, U+B193, U+B1CC, U+B204, U+B208, U+B274, U+B294, U+B298, U+B2C8, U+B2CC, U+B2D8-B2D9, U+B2DD, U+B2E4, U+B2E8, U+B2EC, U+B2F4-B2F5, U+B2F9, U+B300, U+B354, U+B358, U+B370, U+B378, U+B3C4-B3C5, U+B3CC, U+B3D9, U+B418, U+B41C, U+B420, U+B450, U+B458, U+B4A4, U+B4B7, U+B4C4, U+B4DC-B4DD, U+B4E0, U+B4E4, U+B4ED, U+B4F1, U+B514, U+B530, U+B538, U+B54C, U+B5A0, U+B5A4, U+B729, U+B73B, U+B77C-B77D, U+B78C-B78D, U+B790-B791, U+B798, U+B79C, U+B7EC, U+B7FC, U+B808-B809, U+B824-B825, U+B838, U+B85C-B85D, U+B860, U+B864, U+B8CC, U+B8E8, U+B974, U+B978, U+B97C, U+B984-B985, U+B9AC-B9AD, U+B9B0, U+B9B4, U+B9BC-B9BD, U+B9C8, U+B9CC, U+B9D0, U+B9D8, U+B9DE, U+B9E4, U+BA38-BA39, U+BA3C, U+BA48, U+BA54, U+BA70, U+BA74, U+BA85, U+BA87, U+BAA8-BAA9, U+BAB8, U+BABB, U+BB34, U+BB38, U+BB3C, U+BB47, U+BBA4, U+BBC8, U+BBF8, U+BBFF, U+BC0F, U+BC14-BC16, U+BC1B-BC1C, U+BC24, U+BC29, U+BC2D, U+BC30-BC31, U+BC84, U+BC88, U+BC95, U+BCA0, U+BCBD, U+BCC4, U+BCD1, U+BCF4-BCF5, U+BCF8, U+BCFC, U+BD10, U+BD80, U+BD84, U+BD88, U+BD93, U+BD99, U+BE0C, U+BE14, U+BE44, U+BE4C, U+BE5A, U+BE68, U+BE7C, U+BFD0, U+C05C, U+C0AC, U+C0B0, U+C0B4, U+C0C1, U+C0C8-C0C9, U+C0DD, U+C11C, U+C120, U+C124, U+C12F, U+C131, U+C138, U+C14B, U+C154, U+C168, U+C170, U+C18C-C18D, U+C190, U+C218-C219, U+C21C, U+C220, U+C2A4, U+C2B5, U+C2DC-C2DD, U+C2E0, U+C2E4, U+C2EC, U+C2F6, U+C313, U+C4F0, U+C544, U+C548-C54A, U+C54C, U+C554-C555, U+C558, U+C55E, U+C560, U+C571, U+C57C-C57D, U+C591, U+C598, U+C5B4-C5B5, U+C5B8, U+C5BB-C5BC, U+C5C5-C5C8, U+C5CE, U+C5D0, U+C5D4, U+C5EC-C5ED, U+C5F0, U+C5F4, U+C5FD, U+C5FF, U+C601, U+C605-C606, U+C608, U+C624, U+C628, U+C637, U+C640, U+C644, U+C654, U+C65C, U+C678, U+C67C, U+C694-C695, U+C6A9, U+C6B0, U+C6B4, U+C6B8, U+C6CC, U+C6D0, U+C6F9, U+C704, U+C720, U+C728, U+C73C, U+C740, U+C744, U+C74C, U+C758, U+C774, U+C778, U+C77C-C77D, U+C784-C785, U+C788, U+C78A, U+C78E, U+C790-C791, U+C794, U+C798, U+C7A0, U+C7A5, U+C7AC, U+C800-C801, U+C804, U+C811, U+C815, U+C81C-C81D, U+C838, U+C84C, U+C870-C871, U+C874, U+C885, U+C88B, U+C8E0, U+C8FC, U+C900, U+C911, U+C918, U+C950, U+C988, U+C998, U+C9C0-C9C1, U+C9C4, U+C9C8, U+C9D0-C9D1, U+C9D9, U+C9DC, U+C9E7, U+C9F8, U+CABD, U+CC0D, U+CC28, U+CC2E, U+CC3D-CC3E, U+CC44, U+CC98, U+CC9C, U+CCA0, U+CCAB, U+CCB4, U+CCD0, U+CD08, U+CD5C, U+CD94-CD95, U+CD9C, U+CDE8, U+CE20, U+CE35, U+CE58, U+CE5C, U+CE60, U+CE74, U+CE78, U+CE7C, U+CE90, U+CEE4, U+CEE8, U+CF13, U+CF1C, U+CF54, U+CF58, U+CFE0, U+D06C, U+D07C, U+D0A4, U+D0C0-D0C1, U+D0D5, U+D0DC-D0DD, U+D0ED, U+D130, U+D143, U+D14C, U+D150, U+D15C, U+D1A0, U+D1F4, U+D207, U+D22C, U+D234, U+D29C, U+D2B8, U+D2BC, U+D2C0, U+D2F0, U+D305, U+D30C, U+D310, U+D398, U+D3B4, U+D3BC, U+D3EC, U+D45C, U+D478, U+D488, U+D504, U+D508, U+D50C, U+D53C-D53D, U+D544, U+D558-D559, U+D55C, U+D560, U+D568-D569, U+D574, U+D588-D589, U+D5A5, U+D604, U+D611, U+D615, U+D639, U+D63C, U+D648, U+D654-D655, U+D65C, U+D68C-D68D, U+D6C4, U+D749, U+D750-D751, U+D758, U+D76C, U+D788, U+D78C;
}

/* ==========================================================================
   CHOAM, cinematic redesign preview r2 (local, 2026-10-10). Opening and type as r1; project plates open up:
   copy set low like end credits with no rule or panel, imagery larger, feature diagrams unboxed onto the horizon.
   Layout concept: the whole site is one film frame. Solid letterbox bars (masthead top, chapter deck bottom)
   hold every control; between them each project is a full-screen plate with one horizon line at the same height,
   lit warm or cold, and a sparse copy column set like end-title credits.
   ========================================================================== */
:root {
  --void: #050506;          /* letterbox bars, deepest shadow */
  --night: #0b0c0d;         /* ground of every plate */
  --bone: #ebe5da;          /* primary type, warm off-white */
  --ash: rgba(235, 229, 218, .7);
  --dim: rgba(235, 229, 218, .44);
  --line: rgba(235, 229, 218, .16);
  --ember: #d9a362;         /* warm sodium light: the single accent */
  --steel: #8fa0ae;         /* cold light, used only as atmosphere */

  --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;
  --horizon: 63%;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slow: cubic-bezier(.16, .84, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; font-style: normal; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 450;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
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; opacity: .3; }
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; }

/* film grain over everything; decorative, never takes input */
.grain {
  position: fixed; inset: -60px; z-index: 60; pointer-events: none;
  opacity: .085; 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");
}

/* ---------- letterbox: masthead ---------- */
.mast {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--mast-h);
  display: flex; align-items: center; gap: 30px;
  padding: 0 var(--gutter);
  background: var(--void);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 17px; letter-spacing: .34em; margin-right: -.34em; }
.brand img { width: 24px; height: 24px; }
.motto { font-weight: 600; font-size: 11px; letter-spacing: .42em; color: var(--dim); white-space: nowrap; text-transform: uppercase; padding-left: 26px; border-left: 1px solid var(--line); line-height: 20px; }
/* Shared, non-modal navigation. The legacy HTML is replaced only when script is available. */
.menu-btn, .proj-nav { display: none; }
.site-nav { margin-left: auto; margin-right: 14px; } /* with the masthead gap: the same 44px before the language picker as between Works and About */
.nav-controls { display: flex; gap: 44px; }
.nav-toggle, .nav-entry { text-transform: uppercase; }
.nav-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; font-size: 13px; letter-spacing: .22em; color: var(--ash); }
.nav-toggle::after { content: ''; width: 4px; height: 4px; margin-top: -3px; 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); }
/* The scrollable menu must end above the fixed chapter deck so its last row remains visible. */
.nav-panel { position: absolute; top: 100%; right: var(--gutter); width: min(320px, calc(100% - 2 * var(--gutter))); padding: 20px 24px; background: var(--void); border: 1px solid var(--line); 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: 11px; font-weight: 600; letter-spacing: .24em; 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: 12px 0; font-size: 16px; font-weight: 550; letter-spacing: .04em; line-height: 1.5; color: var(--bone); overflow-wrap: anywhere; }
.nav-entry:hover, .nav-entry[aria-current="page"] { color: var(--ember); }
.nav-pending, .nav-pending:hover { color: var(--dim); }
.nav-pending small { font-size: 11px; font-weight: 450; letter-spacing: .08em; color: var(--ash); }
.nav-entry:focus-visible { outline-offset: 4px; }
:lang(ko) .nav-entry { letter-spacing: .02em; word-break: keep-all; }
.lang-menu { z-index: 1; }
@media (max-width: 760px) {
  .site-nav { margin-right: 0; }
  .nav-controls { gap: 8px; }
  .nav-toggle { font-size: 11px; letter-spacing: .05em; gap: 4px; }
  .nav-panel { left: 0; right: 0; width: auto; padding: 22px var(--gutter) 28px; max-height: calc(100dvh - var(--mast-h) - var(--deck-h)); border-left: 0; border-right: 0; }
  .nav-row, .nav-row-primary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav-row + .nav-row { margin-top: 8px; padding-top: 8px; }
  .nav-entry { min-height: 54px; flex-direction: row; justify-content: space-between; align-items: center; font-size: 15px; gap: 16px; }
  .nav-pending small { flex: none; }
}

.lang { flex: none; }
.lang-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; font-weight: 650; font-size: 13px; letter-spacing: .2em; color: var(--ash); }
.lang-btn::after { content: ''; width: 4px; height: 4px; margin-top: -3px; 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); min-width: 176px; padding: 6px 0; background: var(--void); border: 1px solid var(--line); 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; font-weight: 550; font-size: 15px; color: var(--ash); text-align: left; }
.lang-opt b { font-weight: 650; font-size: 11px; letter-spacing: .2em; opacity: .7; }
.lang-opt:hover, .lang-opt[aria-current="true"] { color: var(--bone); }
.lang-opt[aria-current="true"] { box-shadow: inset 2px 0 0 var(--ember); }
.lang-opt:focus-visible { outline-offset: -4px; }

/* Korean: Hangul is set without the wide Latin tracking and wraps between words */
: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: .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: 28px;
  padding: 0 var(--gutter);
  background: var(--void);
}
.now { display: flex; align-items: baseline; gap: 14px; min-width: 0; white-space: nowrap; }
.now-num { font-weight: 600; font-size: 11px; letter-spacing: .24em; color: var(--ember); font-variant-numeric: tabular-nums; }
.now-title { font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.now-sub { font-weight: 550; font-size: 11px; letter-spacing: .2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.foot { display: flex; align-items: baseline; gap: 22px; margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.foot a { color: var(--ash); font-weight: 650; text-transform: uppercase; letter-spacing: .24em; }
.foot a:hover { color: var(--bone); }
.next-ch { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 0 12px 22px; border-left: 1px solid var(--line); white-space: nowrap; }
.next-ch small { font-size: 11px; font-weight: 550; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.next-ch span { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; transition: color .3s; }
.next-ch:hover span { color: var(--ember); }
.next-ch[hidden] { display: none; }

/* ---------- vertical chapters: ordinary continuous scroll (r6: no vertical snap), each project's rail steps its paragraphs ---------- */
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; }
.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)) * .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: .36em; margin-right: -.36em; /* tracked caps stay optically centred */
  white-space: nowrap; color: var(--bone);
  text-shadow: 0 0 60px rgba(217, 163, 98, .18);
}
.intro-wm span {
  display: inline-block;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.intro-motto { margin-top: clamp(18px, 3.2vh, 34px); font-weight: 600; font-size: clamp(11px, .95vw, 14px); letter-spacing: .72em; margin-right: -.72em; 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: 22px; font-weight: 600; font-size: 11px; letter-spacing: .3em; 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(56px, 8vw, 128px); } /* Works and About: two equal branches of the one line, English in every language like the masthead triggers */
.intro-next { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 14px 0; font-weight: 650; font-size: 11px; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--bone); }
.intro-next i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--bone), rgba(235, 229, 218, 0)); }
.intro-next:hover { color: var(--ember); }
/* text is visible at rest; scene.js runs the title sequence by writing inline styles (and skips it for reduced motion) */

/* ---------- product plates ---------- */
.stage { position: absolute; inset: 0; z-index: 0; }
.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%)); } }
.prod .media { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--slow); }
.prod .media.is-on { opacity: 1; }

/* horizon field: every plate without full-bleed art stands in the same atmosphere as the opening */
.field { position: absolute; inset: 0; overflow: hidden; --lit: 143, 160, 174; --lit-a: .26;
  background:
    radial-gradient(70% 22% at var(--hx, 50%) var(--horizon), rgba(var(--lit), var(--lit-a)) 0%, rgba(var(--lit), 0) 70%),
    linear-gradient(to bottom, #060708 0%, #0c0e10 34%, #151a1f calc(var(--horizon) - .2%), #08090a calc(var(--horizon) + .2%), #050506 100%);
}
.field::after { content: ''; position: absolute; left: 0; right: 0; top: var(--horizon); height: 1px; background: linear-gradient(90deg, rgba(var(--lit), 0), rgba(var(--lit), .5) 50%, rgba(var(--lit), 0)); }
/* on wide frames the plate stands on the horizon and the copy column floats above it, so the line never crosses text */
@media (min-width: 761px) {
  .prod .field, .prod[data-vis="raw"] .stage { --horizon: calc(100% - var(--deck-h) - 34px); }
  .prod .field::after { right: calc(var(--gutter) + var(--col) + 2vw); }
  .prod .field { --hx: calc((100% - var(--col) - var(--gutter)) / 2); }
}
.sch-field { --lit: 143, 164, 184; }
.six-field { --lit: 118, 140, 182; --lit-a: .24; }
.six-type { color: rgba(235, 229, 218, .032); letter-spacing: .04em; margin-right: -.04em; }
.dat-field { --lit: 217, 163, 98; --lit-a: .22;
  background:
    radial-gradient(70% 22% at var(--hx, 50%) var(--horizon), rgba(var(--lit), var(--lit-a)) 0%, rgba(var(--lit), 0) 70%),
    linear-gradient(to bottom, #070605 0%, #100d0b 34%, #1f1912 calc(var(--horizon) - .2%), #090807 calc(var(--horizon) + .2%), #050505 100%);
}
.dat-type {
  position: absolute; left: 50%; bottom: calc(100% - var(--horizon)); transform: translateX(-50%);
  font-weight: 800; font-size: min(46vw, 64vh); line-height: .74; letter-spacing: .08em; margin-right: -.08em;
  color: rgba(235, 229, 218, .035); user-select: none; white-space: nowrap;
}

/* veil behind the copy column on full-bleed art: a dusk falling from the right, plus a little lens vignette */
.prod-veil { position: absolute; inset: 0; pointer-events: none; transition: opacity .9s var(--slow);
  background:
    radial-gradient(78% 100% at 100% 100%, rgba(5, 5, 6, .93) 0%, rgba(5, 5, 6, .84) 42%, rgba(5, 5, 6, .4) 72%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to top, rgba(5, 5, 6, .6) 0%, rgba(5, 5, 6, 0) 26%),
    radial-gradient(130% 100% at 40% 45%, rgba(5, 5, 6, 0) 62%, rgba(5, 5, 6, .45) 100%);
}
.k-sch .prod-veil, .k-602 .prod-veil, .k-dat .prod-veil, .prod[data-vis="raw"] .prod-veil, .prod[data-vis="feat"] .prod-veil { opacity: 0; }
/* raw captures sit on a dark plate with the horizon behind them */
.prod[data-vis="raw"] .stage { background:
  radial-gradient(70% 22% at 34% var(--horizon), rgba(217, 163, 98, .16) 0%, rgba(217, 163, 98, 0) 70%),
  linear-gradient(to bottom, #060607 0%, #0e0d0c calc(var(--horizon) - .2%), #070707 calc(var(--horizon) + .2%), #050506 100%); }

/* copy column: set like a title card */
.prod { --col: min(460px, 32vw); }
.prod-copy {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--mast-h) + 28px); bottom: calc(var(--deck-h) + 40px);
  width: var(--col);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cap-meta { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 11px; letter-spacing: .3em; 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: 36px; height: 1px; margin: 0 0 3px 14px; background: var(--line); vertical-align: middle; }
.cap-meta [data-status] { padding-left: 14px; border-left: 1px solid var(--line); }
.cap-title { margin-top: 22px; font-weight: 750; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.12; letter-spacing: .14em; 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: .2em; color: var(--ash); }
.cap-line { margin-top: 16px; font-weight: 600; font-size: 18px; color: var(--bone); }
.cap-line:empty { display: none; }
.rail { margin-top: 26px; 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: 2px; }
.slide p { max-width: 30em; font-size: 16.5px; line-height: 1.78; color: rgba(235, 229, 218, .86); }
:lang(ko) .slide p { letter-spacing: -0.005em; }
.slide p + p { margin-top: 1em; }
.slide .display { font-weight: 700; font-size: 21px; line-height: 1.45; letter-spacing: .02em; color: var(--ember); }
.rail-ctl { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; margin-top: 24px; min-height: 44px; }
.text-btn { display: inline-flex; align-items: center; height: 44px; font-weight: 650; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ash); padding: 0; white-space: nowrap; transition: color .3s; }
.text-btn:not(:disabled):hover { color: var(--bone); }
.dots { display: flex; align-items: center; }
.dot { width: 22px; height: 44px; display: flex; align-items: center; justify-content: center; }
.dot i { display: block; width: 16px; height: 1px; background: rgba(235, 229, 218, .3); transition: background .4s, height .4s; }
.dot.is-current i { background: var(--bone); height: 2px; }
.count { display: inline-flex; align-items: center; height: 44px; white-space: nowrap; font-weight: 550; font-size: 11px; letter-spacing: .2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.count b { color: var(--bone); font-weight: 650; margin-right: 4px; }
.prod-act {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; height: 44px; padding: 0 24px;
  font-weight: 700; font-size: 12px; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; white-space: nowrap;
  color: var(--void); background: var(--bone);
  transition: background .3s, color .3s;
}
:lang(ko) .prod-act { text-indent: .08em; }
.prod-act:hover { background: var(--ember); }
/* Get chooser: an in-flow disclosure below the action line, with its own row typography. */
.get-wrap { display: contents; }
.rail-ctl:has(.get-wrap) { flex-wrap: wrap; row-gap: 8px; }
.get-menu { flex: 0 0 100%; min-width: 0; width: 100%; margin-top: 8px; padding: 8px; background: var(--void); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }
.get-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 13px 12px; font-weight: 600; font-size: 11px; letter-spacing: .2em; 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: 12px; border: 1px solid transparent; font-weight: 650; font-size: 11px; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.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: 10px; letter-spacing: .12em; text-align: right; white-space: nowrap; }
.get-opt.is-rec { color: var(--bone); border-color: var(--ember); }
.get-opt:hover, .get-opt:focus-visible { color: var(--bone); background: rgba(217, 163, 98, .06); }
.get-opt:focus-visible { outline-offset: -1px; }
.os-rec { font-style: normal; font-weight: 650; font-size: 10px; letter-spacing: .16em; 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: .08em; }
.get-note { padding: 8px 13px; font-size: 13px; line-height: 1.5; color: var(--ash); }
/* Short viewports can scroll the expanded copy column rather than clip the links behind the fixed bars. */
.prod-copy:has(.get-menu:not([hidden])) { max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 40px); overflow-y: auto; justify-content: safe flex-end; }
.prod-copy:has(.get-menu:not([hidden])) > * { flex-shrink: 0; }

/* framed per-paragraph visuals (feature graphics, in-game captures): a lit plate left of the copy */
.prod { --vis-r: calc(var(--gutter) + var(--col) + 3vw); }
.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;
}
.vis img, .vis svg { flex: none; height: auto; width: min(100cqw, calc((100cqh - 34px) * var(--ar))); }
.vis img { aspect-ratio: var(--ar); box-shadow: 0 0 0 1px rgba(235, 229, 218, .1), 0 40px 120px rgba(0, 0, 0, .7), 0 0 160px rgba(217, 163, 98, .08); }
.feat { --ar: 720 / 540; }
.feat svg { overflow: visible; font-family: var(--font); }
.vis figcaption { font-weight: 600; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }

/* feature graphics, unboxed: hairlines and type straight on the plate, one warm pool of light.
   Type sizes are locked in the drawing's own 720x540 coordinate system so boxes, pills, and columns stay pixel-aligned across all viewports. */
.feat .fr { fill: rgba(235, 229, 218, .03); stroke: rgba(235, 229, 218, .2); }
.feat .fr.on { fill: rgba(217, 163, 98, .07); stroke: rgba(217, 163, 98, .8); }
.feat .fr.off { stroke: rgba(235, 229, 218, .3); stroke-dasharray: 3 6; }
.feat .fj { fill: #0d0d0e; stroke: rgba(235, 229, 218, .22); }
.feat .l { font-size: 13px; font-weight: 650; letter-spacing: .24em; fill: var(--ember); }
.feat .l.sm { font-size: 10.5px; letter-spacing: .16em; }
.feat .t { font-size: 21px; font-weight: 700; letter-spacing: .02em; fill: var(--bone); }
.feat .s { font-size: 14px; font-weight: 450; fill: rgba(235, 229, 218, .72); }
.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: .16em; fill: var(--bone); }
.feat .tag { font-size: 9.5px; font-weight: 650; letter-spacing: .14em; fill: var(--bone); }
.feat .tag.dark { fill: var(--void); font-weight: 700; }
.feat .tag.em { fill: var(--ember); }
.feat .dim { opacity: .48; }
.feat .b { fill: rgba(235, 229, 218, .16); rx: 1px; }
.feat .b2 { fill: rgba(235, 229, 218, .32); rx: 1px; }
.feat .bg { fill: var(--ember); }
.feat .st { fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat .sd { fill: none; stroke: rgba(235, 229, 218, .3); stroke-width: 1; stroke-dasharray: 3 6; }
.feat .chip { fill: rgba(235, 229, 218, .03); stroke: rgba(235, 229, 218, .38); }
.feat .chip.on { stroke: rgba(217, 163, 98, .85); fill: rgba(217, 163, 98, .1); }
.feat .tab { fill: rgba(235, 229, 218, .08); rx: 1px; }
.feat .hr { stroke: rgba(235, 229, 218, .14); }
.feat .hl { fill: rgba(217, 163, 98, .16); stroke: rgba(217, 163, 98, .35); }
.feat .bubble { fill: rgba(14, 13, 12, .9); stroke: rgba(217, 163, 98, .55); }
.feat .sil { fill: rgba(235, 229, 218, .2); }
.feat .blend { mix-blend-mode: screen; }
.feat .dt { font-size: 50px; font-weight: 800; letter-spacing: .1em; fill: var(--bone); paint-order: stroke; stroke: rgba(5, 5, 6, .55); stroke-width: 6px; }
.feat .dt.sm { font-size: 32px; stroke-width: 0; }

/* Anatomy-guided figures (an SVG file shown as an image): unframed on the plate like the feature graphics, the drawing
   carries its own soft floor shadow */
.afig img { box-shadow: none; }

/* DAT (Our Style): the three standings share one unframed row. Head and feet keep some air at 92% of the plate's
   height; --h also fits the complete trio to narrow plates. Full comparison images sit framed like an in-game capture. --h fits the row to the plate's height and width. Captions and names are optional: the artwork uses neither,
   the real before/after pair (gal-pair) uses both. */
.gal { --capH: 0px; --gn: 0px; --gg: 28px; --fill: 1; }
.gal:has(figcaption) { --capH: 34px; }
.gal:has(.gn) { --gn: 30px; }
.gal-cut { --fill: .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; }
.gal-cut .gi img, .gal:not(.gal-one) .gi img { box-shadow: none; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)); }
.gn { font-weight: 600; font-size: 11px; line-height: 18px; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: var(--ash); }
:lang(ko) .gn { letter-spacing: .12em; margin-right: -.12em; }
/* before/after pair: two full frames at one scale, framed like the key visual. Side by side on a wide plate, stacked
   otherwise (stacking gives the larger pictures whenever the plate is narrower than one picture's 3:2). On desktop the pair
   fills 90% of the plate's height so its caption stays above the lit floor line, as the other captions do */
.gal-pair { --fill: .9; }
.gal.gal-pair .gi img { box-shadow: 0 0 0 1px rgba(235, 229, 218, .1), 0 30px 90px rgba(0, 0, 0, .6); 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))); }
}
@media (max-width: 760px) {
  .gal { --gg: 10px; }
  .gal-pair { --fill: 1; }
  .gal:has(figcaption) { --capH: 22px; }
  .gal:has(.gn) { --gn: 24px; }
  .gi { gap: 6px; }
  .gn { font-size: 10px; }
}

/* DAT comparison follows the five existing artwork steps, never behind a popup. */
.prod .dat-inline { pointer-events: auto; container-type: normal; gap: 12px; }
.prod .dat-inline[hidden] { display: none; }
/* Keep rail width/scroll position intact while the comparison takes its place. */
#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: 1px 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; box-shadow: none; }
.dat-reveal .dat-after { clip-path: inset(0 0 0 var(--split)); }
.dat-side { position: absolute; top: 12px; padding: 6px 9px; background: rgba(0,0,0,.74); font-size: 11px; letter-spacing: .08em; 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: 2px; background: var(--bone); pointer-events: none; }
.dat-divider::after { content: '↔'; position: absolute; left: -16px; top: calc(50% - 17px); width: 34px; height: 34px; display: grid; place-items: center; background: var(--night); border: 1px solid var(--bone); border-radius: 50%; font-size: 18px; }
.dat-range-label { display: flex; flex: none; width: 100%; gap: 14px; align-items: center; font-size: 10px; letter-spacing: .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: 10px; letter-spacing: .1em; margin-bottom: 8px; }
.dat-detail { width: 100%; height: clamp(90px, 12vh, 140px); background-repeat: no-repeat; background-color: var(--night); border: 1px solid rgba(235,229,218,.2); box-sizing: border-box; }
.dat-note { width: 100%; font-size: 12px; line-height: 1.5; color: var(--ash); }
.dat-inline button:focus-visible, .dat-inline input:focus-visible, .dat-zoom:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
@media (max-width: 760px) {
  #dat.dat-comparing { height: auto; min-height: 100dvh; }
  #dat.dat-comparing .stage { position: relative; padding-top: calc(var(--mast-h) + 20px); }
  #dat.dat-comparing .prod-veil { display: none; }
  #dat.dat-comparing .dat-inline { position: relative; inset: auto; width: auto; margin: 0 var(--gutter); }
  #dat.dat-comparing .prod-copy { position: relative; inset: auto; margin: 0 var(--gutter); padding: 26px 0 calc(var(--deck-h) + 24px); }
  .dat-cases { gap: 6px 14px; }
  .dat-reveal { width: min(100%, calc(44dvh * var(--case-ar))); }
  .dat-side { font-size: 9px; top: 6px; padding: 5px; }
  .dat-before-tag { left: 6px; } .dat-after-tag { right: 6px; }
  .dat-zoom { gap: 10px; }
}

/* chrome used by the old horizontal deck: not part of this layout */
.action, .segs, .pager { display: none !important; }

/* ---------- download page: same plate, same column ---------- */
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; }
.sch-icon { position: absolute; left: calc(var(--gutter) + 6vw); top: var(--horizon); width: min(30vh, 22vw); height: auto; aspect-ratio: 1 / 1; transform: translateY(-62%); user-select: none; filter: drop-shadow(0 30px 80px rgba(0, 0, 0, .6)); }
.dl-body { position: relative; z-index: 1; margin-left: 52vw; 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-wrap: wrap; gap: 10px; margin-top: 36px; }
.dlbtn { display: inline-flex; align-items: baseline; gap: .7em; padding: 16px 24px; font-weight: 700; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; border: 1px solid rgba(235, 229, 218, .4); transition: background .3s, color .3s; }
.dlbtn small { font-size: 10px; font-weight: 600; letter-spacing: .16em; opacity: .7; }
.dlbtn:hover { background: var(--bone); color: var(--void); }
.dlbtn.is-rec { border-color: var(--bone); }
.dlbtn:hover .os-rec { color: inherit; }
.dl-note { margin-top: 24px; max-width: 34em; font-size: 15px; line-height: 1.7; color: var(--ash); }
.dl-note a { display: block; width: fit-content; margin-top: .9em; color: var(--bone); font-weight: 650; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; border-bottom: 1px solid currentColor; }
.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); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --mast-h: 58px; --deck-h: 74px; --horizon: 58%; }
  .mast { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; letter-spacing: .24em; }
  .brand img { width: 20px; height: 20px; }
  .lang-btn { gap: 4px; font-size: 11px; letter-spacing: .08em; }
  .deck { flex-wrap: wrap; align-content: center; gap: 4px 16px; }
  .now { display: none; }
  .deck .next-ch { margin-left: auto; }
  .next-ch { padding: 6px 0 6px 14px; gap: 8px; }
  .foot { order: 3; width: 100%; margin-left: 0; gap: 16px; font-size: 10px; }
  .intro-title { top: calc(var(--mast-h) + (100% - var(--mast-h) - var(--deck-h)) * .17); }
  .intro-wm { font-size: 15.5vw; letter-spacing: .26em; margin-right: -.26em; }
  .intro-wm span { filter: none !important; -webkit-filter: none !important; }
  .intro-motto { font-size: 10.5px; letter-spacing: .54em; margin-right: -.54em; }
  .intro-foot { grid-template-columns: 1fr 1fr; grid-template-areas: 'next next' 'meta clock'; row-gap: 26px; bottom: calc(var(--deck-h) + 20px); }
  .intro-meta { grid-area: meta; gap: 12px; font-size: 10px; letter-spacing: .2em; }
  .intro-clock { grid-area: clock; font-size: 10px; letter-spacing: .2em; }
  .intro-go { grid-area: next; justify-self: center; gap: 64px; }

  .prod { --col: auto; }
  .prod-veil { background: linear-gradient(to top, rgba(5, 5, 6, .96) 0%, rgba(5, 5, 6, .86) 46%, rgba(5, 5, 6, 0) 74%); }
  .prod-copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: calc(var(--deck-h) + 12px); justify-content: flex-end; }
  .cap-title { margin-top: 10px; font-size: clamp(22px, 6.8vw, 32px); letter-spacing: .1em; }
  .cap-ko { margin-top: 6px; font-size: 13px; }
  .cap-line { margin-top: 8px; font-size: 15px; }
  .rail { margin-top: 10px; }
  .slide p { font-size: 14px; line-height: 1.62; }
  .slide .display { font-size: 17px; }
  .rail-ctl { margin-top: 10px; gap: 10px; min-height: 40px; flex-wrap: nowrap; }
  .text-btn { height: 40px; font-size: 10.5px; letter-spacing: .2em; }
  .dot { width: 18px; height: 40px; }
  .dot i { width: 12px; }
  .count { height: 40px; font-size: 10.5px; letter-spacing: .16em; }
  .prod-act { min-width: 82px; height: 40px; padding: 0 16px; font-size: 11px; letter-spacing: .24em; text-indent: .24em; }
  .prod .vis { inset: calc(var(--mast-h) + 8px) var(--gutter) calc(100% - var(--copy-top, 52%) + 16px); gap: 8px; }
  .vis img, .vis svg { width: min(100cqw, calc((100cqh - 22px) * var(--ar))); }
  .vis figcaption { font-size: 9.5px; }
  .field, .dat-field, .prod[data-vis="raw"] .stage { --horizon: 40%; }
  .prod .field { --horizon: calc(var(--copy-top, 52%) - 8px); }
  .dl .sch-icon { position: absolute; top: calc(var(--mast-h) + 30px); left: var(--gutter); transform: none; width: 40vw; }
  .dl-body { margin-left: 0; padding: calc(var(--mast-h) + 40vw + 60px) var(--gutter) 100px; justify-content: flex-start; }
  .dlbtn { flex: 1 1 100%; justify-content: space-between; }
  .dlbtn .os-rec { margin-left: auto; }
}

/* ---------- narrow phones: brand, Projects, Philosophy and language on one line ---------- */
@media (max-width: 480px) {
  .brand { flex: none; line-height: 1.2; font-size: 15px; gap: 10px; }
  .brand img { width: 20px; height: 20px; }
}
@media (max-width: 380px) {
  .mast { gap: 10px; }
}
@media (max-width: 360px) {
  .mast { gap: 8px; }
  .brand { font-size: 13px; letter-spacing: .24em; margin-right: -.24em; gap: 8px; }
  .brand img { width: 18px; height: 18px; }
  .lang-btn { min-width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- landing plates + index rail (2026-10-13, Mino: choam-landing.html format; the opening is untouched).
   Scoped to main.plates and .index-rail so project pages and the opening keep their own rules. ---------- */
.index-rail { position: fixed; z-index: 45; left: var(--gutter); top: 50%; transform: translateY(-50%); transition: opacity .6s var(--slow), visibility .6s; }
.at-top .index-rail { opacity: 0; visibility: hidden; } /* the opening keeps its own frame; the list arrives with the first project */
.index-rail ol { display: flex; flex-direction: column; gap: 15px; }
.index-rail a { display: flex; align-items: center; gap: 12px; padding: 2px 0; font-weight: 650; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.index-rail b { font-weight: 600; font-variant-numeric: tabular-nums; }
.index-rail i { display: block; width: 22px; height: 1px; background: rgba(235, 229, 218, .3); transition: background .4s, height .4s; }
.index-rail a:hover, .index-rail a.is-current { color: var(--bone); }
.index-rail a.is-current i { background: var(--bone); height: 2px; }
:lang(ko) .index-rail a { letter-spacing: .08em; }
@media (max-width: 1180px) { .index-rail { display: none; } } /* the Projects menu carries the list on narrower screens */

main.plates { --col: min(500px, 36vw); }
.plate { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: var(--night); }
.plate:focus { outline: none; }
.plate .stage { position: absolute; inset: 0; }
.plate .art { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 42%); user-select: none; -webkit-user-drag: none; }
@media (max-aspect-ratio: 4/5) { .plate .art { object-position: var(--pos-m, var(--pos, 50% 42%)); } }
.plate .scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(78% 100% at 100% 100%, rgba(5, 5, 6, .93) 0%, rgba(5, 5, 6, .84) 42%, rgba(5, 5, 6, .4) 72%, rgba(5, 5, 6, 0) 100%),
    radial-gradient(36% 74% at 0% 50%, rgba(5, 5, 6, .66) 0%, rgba(5, 5, 6, .32) 52%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to top, rgba(5, 5, 6, .6) 0%, rgba(5, 5, 6, 0) 26%),
    radial-gradient(130% 100% at 40% 45%, rgba(5, 5, 6, 0) 62%, rgba(5, 5, 6, .45) 100%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plate .art, .plate .figure img { transition: transform 1.1s var(--slow); }
  .plate:hover .art, .plate:hover .figure img { transform: scale(1.04); }
}
/* the horizon field, lit cold for Scheherazade and bone for Our Style */
.plate .field { --horizon: calc(100% - var(--deck-h) - 34px); --hx: 42%; }
.plate .field::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(78% 100% at 100% 100%, rgba(5, 5, 6, .86) 0%, rgba(5, 5, 6, .58) 46%, rgba(5, 5, 6, 0) 78%),
  radial-gradient(34% 70% at 0% 50%, rgba(5, 5, 6, .55) 0%, rgba(5, 5, 6, .22) 55%, rgba(5, 5, 6, 0) 100%); }
.plate .sch-field { --lit: 143, 164, 184; }
.plate .dat-field { --lit: 235, 229, 218; --lit-a: .22; --hx: 44%;
  background:
    radial-gradient(70% 22% at var(--hx) var(--horizon), rgba(var(--lit), var(--lit-a)) 0%, rgba(var(--lit), 0) 70%),
    linear-gradient(to bottom, #060708 0%, #0c0e10 34%, #151a1f calc(var(--horizon) - .2%), #08090a calc(var(--horizon) + .2%), #050506 100%); }
.plate .figure { position: absolute; left: 41.5%; bottom: calc(var(--deck-h) + 34px); transform: translateX(-50%); height: min(46vh, 42vw); margin: 0; }
.plate .figure img { height: 100%; width: auto; }
.plate-cast { position: absolute; left: 40.5%; bottom: calc(var(--deck-h) + 34px); 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; user-select: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plate-cast img { transition: transform .7s var(--slow), filter .7s var(--slow); transform-origin: 50% 100%; }
  .plate-cast img:hover { transform: translateY(-16px) scale(1.05); filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .62)); }
}
/* Our Style: the cast, then one real before / after pair, turned over sideways */
.plate .flip { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.plate .flip::-webkit-scrollbar { display: none; }
.plate .flip .slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; padding: 0; }
.plate .flip:focus-visible { outline: 1px solid rgba(243, 242, 239, .35); outline-offset: -1px; }
.plate .flip, .plate .flip img { -webkit-user-drag: none; user-select: none; }
.flip-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0; padding: 0; color: rgba(235, 229, 218, .88); border: 1px solid rgba(243, 242, 239, .2); border-radius: 50%; background: rgba(10, 12, 15, .62); backdrop-filter: blur(8px); transition: color .25s ease, border-color .25s ease, background .25s ease; }
.flip-nav span { position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.flip-next { right: calc(var(--gutter) + var(--col) + 1.6vw); }
.flip-next span { transform: translate(-2px, 0) rotate(45deg); }
.flip-prev { left: calc(var(--gutter) + 12px); }
.flip-prev span { transform: translate(2px, 0) rotate(-135deg); }
@media (min-width: 761px) { .flip-nav { display: none; } } /* desktop uses the .flip-tabs pills in the caption */
.flip-nav:hover, .flip-nav:focus-visible { color: var(--bone); border-color: rgba(196, 138, 71, .65); background: rgba(18, 20, 25, .85); }
.flip-nav:focus-visible { outline: 1px solid rgba(243, 242, 239, .35); outline-offset: 3px; }
.flip-tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.flip-pill { padding: 7px 14px; border: 1px solid rgba(243, 242, 239, .16); border-radius: 999px; background: rgba(12, 14, 18, .55); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--ash); transition: color .25s ease, border-color .25s ease, background .25s ease; }
.flip-pill:hover { color: var(--bone); border-color: rgba(243, 242, 239, .34); }
.flip-pill.is-on { color: var(--bone); border-color: var(--ember); background: rgba(196, 138, 71, .16); }
.compare-stage {
  position: absolute;
  left: calc(var(--gutter) + 236px);
  right: calc(var(--gutter) + var(--col) + 3.2vw);
  top: calc(var(--mast-h) + 34px);
  bottom: calc(var(--deck-h) + 38px);
  border-radius: 12px;
  border: 1px solid rgba(243, 242, 239, .18);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .68);
  overflow: hidden;
  background: var(--void);
}
@media (min-width: 761px) and (max-width: 1180px) {
  .compare-stage { left: calc(var(--gutter) + 64px); right: calc(var(--gutter) + var(--col) + 2.4vw); }
}
.compare { position: absolute; inset: 0; cursor: col-resize; background: var(--void); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.cmp-before { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1.5px; background: rgba(243, 242, 239, .82); box-shadow: 0 0 12px rgba(0, 0, 0, .65); pointer-events: none; }
.cmp-line::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(14, 16, 20, .82); border: 1px solid rgba(243, 242, 239, .5); color: var(--bone); display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(0, 0, 0, .55); }
.compare:focus-within .cmp-line { width: 2px; background: var(--ember); }
.cmp-tag { position: absolute; top: 16px; z-index: 2; padding: 6px 13px; border-radius: 999px; background: rgba(10, 12, 16, .78); border: 1px solid rgba(243, 242, 239, .16); backdrop-filter: blur(8px); font-weight: 650; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ash); pointer-events: none; }
.cmp-tag-b { left: 16px; }
.cmp-tag-a { right: 16px; color: var(--bone); border-color: rgba(196, 138, 71, .45); }
.cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: col-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; }
.compare .scrim { background:
  linear-gradient(to top, rgba(5, 5, 6, .38) 0%, rgba(5, 5, 6, 0) 20%),
  linear-gradient(to bottom, rgba(5, 5, 6, .32) 0%, rgba(5, 5, 6, 0) 16%); }
/* caption: one headline, one sentence, one line of actions */
.plate .caption { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--deck-h) + 20px); width: var(--col); }
.plate .cap-meta .num { color: var(--bone); }
.plate .cap-meta .num::after { content: ''; display: inline-block; width: 36px; height: 1px; margin: 0 0 3px 14px; background: var(--line); vertical-align: middle; }
.plate .cap-meta .status { padding-left: 14px; border-left: 1px solid var(--line); }
.plate .cap-title a:hover { color: var(--bone); }
.plate .cap-ko { display: block; }
.plate .cap-text { margin-top: 22px; max-width: 42ch; font-size: 16px; line-height: 1.76; color: rgba(235, 229, 218, .86); }
: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: 0 28px; margin-top: 20px; }
.plate .cap-acts > a { font-weight: 650; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ash); padding: 12px 0; transition: color .3s; }
.plate .cap-acts > a:hover { color: var(--bone); }
:lang(ko) .plate .cap-acts > a, :lang(ko) .plate .cap-acts .prod-act { letter-spacing: .08em; }
.plate-more::after { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 0 3px 10px; background: currentColor; vertical-align: middle; }
.plate .cap-acts .prod-act { min-width: 0; height: auto; margin: 0; padding: 12px 0; background: none; font-size: 11px; letter-spacing: .3em; color: var(--ash); }
.plate .cap-acts .prod-act:hover, .plate .cap-acts .prod-act[aria-expanded="true"] { color: var(--bone); background: none; }
.plate .caption:has(.get-menu:not([hidden])) { max-height: calc(100dvh - var(--mast-h) - var(--deck-h) - 40px); overflow-y: auto; }

/* Scheherazade & 602 landing CTA: keep the whole caption 28px above the horizon.
   Normal flow lets a short viewport grow with the chooser instead of clipping it. */
.plate:is([data-plate="scheherazade"], [data-plate="602"]) {
  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) + 34px + 28px);
}
.plate:is([data-plate="scheherazade"], [data-plate="602"]) .caption {
  position: relative; flex: none; right: auto; bottom: auto;
  margin-left: auto; margin-right: var(--gutter);
}
.plate:is([data-plate="scheherazade"], [data-plate="602"]) .caption:has(.get-menu:not([hidden])) { max-height: none; overflow: visible; }
/* B2 CTA primitives: shared appearance, independent of each work's artwork layout.
   Carousel controls, title links, navigation and article links are not CTAs. */
.plate .cap-acts :is(.plate-more, .prod-act), .prod .prod-act, .dl .dlbtn, .dl .dl-note a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--bone);
  font-size: 16px; font-weight: 650; line-height: 24px; letter-spacing: .06em; text-indent: 0;
  text-decoration: none; transition: color .18s, background .18s, border-color .18s;
}
:lang(ko) .plate .cap-acts :is(.plate-more, .prod-act),
:lang(ko) .prod .prod-act, :lang(ko) .dl :is(.dlbtn, .dl-note a) { letter-spacing: .02em; }
.plate .plate-more::after, .dl .dl-note a::after {
  content: '\2192'; display: block; flex: none; width: auto; height: auto; margin: 0;
  background: none; font-size: 18px; font-weight: 450; line-height: 24px;
}
.plate .cap-acts .prod-act, .prod .prod-act, .dl .dlbtn {
  min-width: 94px; padding: 0 18px; border: 1px solid rgba(235, 229, 218, .6);
}
/* Only actual chooser triggers get a disclosure chevron; direct Play/OS links do not. */
: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); }
.plate .cap-acts .plate-more:hover, .dl .dl-note a:hover {
  color: #faf7f0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.plate .cap-acts :is(.plate-more, .prod-act):focus-visible,
.prod .prod-act:focus-visible, .dl :is(.dlbtn, .dl-note a):focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.plate .cap-acts .prod-act:hover, .plate .cap-acts .prod-act[aria-expanded="true"],
.prod .prod-act:hover, .prod .prod-act[aria-expanded="true"], .dl .dlbtn:hover {
  color: var(--bone); border-color: var(--bone); background: rgba(235, 229, 218, .06);
}
/* Detail pages retain their own copy column and carousel geometry. Allow the action
   to take another row rather than shrink its target or overflow a narrow column. */
.prod .prod-act { margin-left: auto; }
.prod .rail-ctl { flex-wrap: wrap; row-gap: 8px; }
@media (min-width: 761px) {
  .prod-copy:has(.prod-act) { bottom: calc(var(--deck-h) + 34px + 28px); }
}
@media (min-width: 761px) and (max-height: 700px) {
  /* Short desktop frames cannot fit the expanded action row inside the fixed copy
     slot. Keep the action above the horizon; scroll the copy instead of spilling. */
  .prod-copy:has(.prod-act) { overflow-y: auto; justify-content: flex-end; }
  .prod-copy:has(.prod-act) .rail-ctl { flex-shrink: 0; }
}
/* OS rows retain their metadata/recommendation and mobile full-width layout. */
.dl .dlbtn { height: auto; padding: 9px 18px; }
.dl .dlbtn.is-rec { border-color: var(--bone); }
.dl .dl-note a { margin-top: .9em; }
.get-opt { font-size: 16px; letter-spacing: .06em; }

/* entrance: artwork comes up over 1.1s when its plate reaches the screen */
.plate .art, .plate .figure, .plate .plate-cast, .plate .compare { opacity: 0; transition: opacity 1.1s var(--slow); }
.plate.is-on .art, .plate.is-on .figure, .plate.is-on .plate-cast, .plate.is-on .compare { opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plate .art, .plate .figure img { transition: opacity 1.1s var(--slow), transform 1.1s var(--slow); }
}
@media (max-width: 760px) {
  main.plates { --col: auto; }
  .plate .field { --horizon: 40%; }
  .plate .caption { left: 0; right: 0; width: auto; padding: 0 var(--gutter); bottom: calc(var(--deck-h) + 14px); }
  .plate .cap-text { margin-top: 14px; max-width: none; font-size: 14.5px; line-height: 1.68; }
  .plate .cap-acts { margin-top: 10px; }
  .plate .figure { bottom: 60%; height: min(38vh, 62vw); left: 50%; }
  .plate:has(.get-menu:not([hidden])) .figure { bottom: calc(100% - var(--copy-top) + 16px); height: min(38vh, 62vw, max(0px, calc(var(--copy-top) - var(--mast-h) - 32px))); }
  /* Keep the art on the original viewport horizon; copy and chooser grow below it. */
  .plate:is([data-plate="scheherazade"], [data-plate="602"]) { padding-top: calc(40dvh + 28px); padding-bottom: calc(var(--deck-h) + 14px); }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]) .field { --horizon: 40dvh; }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]) .figure,
  .plate:is([data-plate="scheherazade"], [data-plate="602"]):has(.get-menu:not([hidden])) .figure { top: calc(40dvh - min(38dvh, 62vw)); bottom: auto; height: min(38dvh, 62vw); }
  .plate:is([data-plate="scheherazade"], [data-plate="602"]) .caption { left: auto; width: 100%; margin: 0; }
  .plate .cap-acts :is(.plate-more, .prod-act), .prod .prod-act, .dl :is(.dlbtn, .dl-note a), .get-opt { font-size: 15px; }
  .dl .dlbtn { flex: 1 1 100%; justify-content: space-between; flex-wrap: wrap; }
  .prod-copy:has(.prod-act) { bottom: calc(var(--deck-h) + 14px); }
  @media (max-width: 360px) {
    /* Keep the title and action visible on short, narrow phones; the slide copy
       remains scrollable inside its existing column instead of hiding above mast. */
    .prod-copy:has(.prod-act) { top: calc(var(--mast-h) + 10px); }
    .prod-copy:has(.prod-act) .rail { min-height: 0; overflow-y: auto; }
    .prod-copy:has(.prod-act) .rail-ctl { flex-shrink: 0; }
  }
  .plate-cast { bottom: 58%; height: min(44vh, 72vw); gap: 8px; left: var(--gutter); right: var(--gutter); transform: none; justify-content: center; }
  .plate-cast img { min-width: 0; flex: 0 1 auto; }
  .compare-stage { left: var(--gutter); right: var(--gutter); top: calc(var(--mast-h) + 14px); bottom: 50%; border-radius: 10px; }
  .flip-next { right: calc(var(--gutter) + 6px); top: 32%; }
  .flip-prev { left: calc(var(--gutter) + 6px); top: 32%; }
  .plate .scrim { background: linear-gradient(to top, rgba(5, 5, 6, .96) 0%, rgba(5, 5, 6, .86) 46%, rgba(5, 5, 6, 0) 74%); }
}
@media (prefers-reduced-motion: reduce) {
  .plate .art, .plate .figure, .plate .plate-cast, .plate .compare { opacity: 1; }
  .plate .flip { scroll-behavior: auto; }
}

/* ---------- Philosophy article (navigation is shared above) ---------- */
@media (max-width: 700px) {
  .motto { display: none; } /* the opening carries it on small screens */
}

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; } /* a long read: the footer follows the text instead of sitting fixed over it */
.philo-langs { display: flex; gap: 0; margin-bottom: 44px; }
.philo-lang { min-height: 44px; padding: 0 18px; font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line); transition: color .3s, border-color .3s; }
.philo-lang + .philo-lang { border-left: 0; }
.philo-lang:hover { color: var(--bone); }
.philo-lang[aria-pressed="true"] { color: var(--bone); border-color: rgba(235, 229, 218, .4); box-shadow: inset 0 -2px 0 var(--ember); }
.philo-lang:focus-visible { outline-offset: -4px; }
.philo-title { font-weight: 750; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.2; letter-spacing: .04em; text-wrap: balance; }
.philo-sub { display: block; margin-top: 10px; font-weight: 550; font-size: 15px; letter-spacing: .12em; color: var(--ash); }
.philo-sec { margin-top: 72px; }
.philo-h { position: relative; padding-top: 22px; font-weight: 750; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; letter-spacing: .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: rgba(235, 229, 218, .86); }
.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: var(--ember); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; transition: color .3s; }
.philo-sec p a:hover { 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: .3em; color: var(--ember); }
.philo-by { margin-top: 8px; font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--bone); }
@media (max-width: 760px) {
  .philo { padding: calc(var(--mast-h) + 36px) var(--gutter) 64px; }
  .philo-langs { margin-bottom: 32px; }
  .philo-sec { margin-top: 56px; }
  .philo-sec p { font-size: 15.5px; line-height: 1.8; }
  .philo-sign { margin-top: 56px; }
}

/* ---------- How to install (install.html): the Philosophy reading column, one platform at a time ---------- */
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: .3em; text-transform: uppercase; color: var(--ember); margin-bottom: 16px; }
.inst-lead { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ash); }
.inst-status { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); box-shadow: inset 2px 0 0 var(--ember); font-size: 15.5px; line-height: 1.6; }
.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: .22em; }
.inst-status a:hover { color: var(--ember); }
.inst-os { display: grid; grid-template-columns: repeat(4, max-content); margin-top: 40px; }
.inst-os .philo-lang + .philo-lang { border-left: 1px solid var(--line); margin-left: -1px; }
.inst-os .philo-lang[aria-pressed="true"] { position: relative; z-index: 1; }
.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: .86em; padding: .08em .36em; background: rgba(235, 229, 218, .07); 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: .5em; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--ember); }
.philo-sec .inst-steps > li > p:first-child { margin-top: 0; }
/* a short action name per step; the step's sentences follow as separate paragraphs */
.inst-step-h { font-weight: 700; font-size: 17px; line-height: 1.75; letter-spacing: .02em; color: var(--bone); }
.philo-sec .inst-steps .inst-step-h + p { margin-top: .3em; }
.philo-sec .inst-steps > li > p + p { margin-top: .7em; }
.inst-h3 { font-weight: 700; font-size: 17px; line-height: 1.45; letter-spacing: .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: 15px; color: var(--ash); }
.inst-usb { margin-top: 32px; padding: 26px 28px 24px; border: 1px solid rgba(217, 163, 98, .55); background: rgba(217, 163, 98, .05); }
.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: 15px; line-height: 1.65; color: rgba(235, 229, 218, .86); }
.inst-req dd b { display: inline-block; margin-right: .8em; padding: 1px 0; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.inst-req .is-must dt { color: var(--ember); }
.inst-req .is-must dd b { padding: 1px 7px; color: var(--void); background: var(--ember); }
.philo-sec p.inst-warn { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--ember); font-weight: 650; font-size: 15.5px; line-height: 1.65; color: var(--bone); }
.inst-notes { margin-top: 30px; }
.inst-notes > li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.75; color: var(--ash); }
.inst-notes > li + li { margin-top: 10px; }
.inst-notes > li::before { content: ''; position: absolute; left: 0; top: .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 { font-weight: 650; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
: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: .08em; }
@media (max-width: 760px) {
  .inst-lead { font-size: 15.5px; }
  .inst-os { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .inst-os .philo-lang:nth-child(odd) { margin-left: 0; }
  .inst-os .philo-lang:nth-child(n + 3) { margin-top: -1px; }
  .inst .inst-sec:first-of-type { margin-top: 44px; }
  .inst-steps > li { padding-left: 40px; }
  .inst-step-h { font-size: 16px; }
  .inst-usb { padding: 20px 18px 18px; }
  .inst-req > div { grid-template-columns: minmax(0, 1fr); }
  .inst-code code { white-space: pre-wrap; } /* wrap at spaces so the whole command is visible, not scrolled off */
}

/* ---------- letterbox chrome: the bars slide out while reading downward and slide back on upward movement.
   Transform only, so every existing calc(var(--mast-h) / var(--deck-h)) layout stays exactly where it was. ---------- */
.mast, .deck, .dl-foot { transition: transform .5s var(--slow); }
.mast.chrome-hidden { transform: translateY(-100%); }
.deck.chrome-hidden, .dl-foot.chrome-hidden { transform: translateY(100%); }
@media (prefers-reduced-motion: reduce) {
  .mast, .deck, .dl-foot { transition: none; }
}

/* ---------- chat figure (scheherazade): a real exchange, plus the one line the machine wrote or changed.
   HTML rather than a picture so the text follows the language switch and can be re-sized for phones
   instead of being scaled down. Sizes are in cqw against the plate itself. ---------- */
.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: center; gap: 2.4cqw;
  font-family: var(--font); text-align: left;
}
.chatviz .cv-row { display: flex; }
.chatviz .cv-row.r { justify-content: flex-end; }
.chatviz .cv-b {
  margin: 0; font-size: 2.55cqw; line-height: 1.55; letter-spacing: -.01em; word-break: keep-all;
  padding: 1.8cqw 2.4cqw; border-radius: 2.2cqw; max-width: 90%;
}
.chatviz .cv-b.in { background: rgba(235, 229, 218, .10); border-bottom-right-radius: .7cqw; color: rgba(235, 229, 218, .92); }
.chatviz .cv-b.out { background: rgba(235, 229, 218, .05); border: 1px solid rgba(235, 229, 218, .13); border-bottom-left-radius: .7cqw; color: var(--bone); }
.chatviz .cv-b b { color: var(--ember); font-weight: 800; }
.chatviz .cv-b em { font-style: normal; font-size: 1.7cqw; letter-spacing: .04em; color: rgba(235, 229, 218, .42); margin-left: 1.6cqw; }
.chatviz .cv-sys {
  background: #101012; border: 1px solid rgba(217, 163, 98, .30); border-radius: 1.1cqw;
  padding: 1.8cqw 2.2cqw; display: flex; flex-direction: column; gap: .7cqw;
}
.chatviz .k {
  font-family: ui-monospace, Menlo, monospace; font-size: 1.5cqw; letter-spacing: .10em;
  text-transform: uppercase; color: rgba(235, 229, 218, .42);
}
.chatviz .l { font-family: ui-monospace, Menlo, monospace; font-size: 2cqw; line-height: 1.4; }
.chatviz .l.del { color: rgba(235, 229, 218, .34); text-decoration: line-through; }
.chatviz .l.add { color: var(--ember); }
.chatviz .cv-sheet {
  border: 1px solid rgba(235, 229, 218, .12); border-radius: 1.2cqw; padding: 1.7cqw 2.2cqw 2cqw;
  display: flex; flex-direction: column; gap: 1.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: 1.55cqw; width: 1.4cqw; color: rgba(235, 229, 218, .30); }
.chatviz .cv-sheet .b { height: .8cqw; border-radius: .4cqw; background: rgba(235, 229, 218, .15); }
.chatviz .cv-sheet .r.on .n { color: var(--ember); font-weight: 700; }
.chatviz .cv-sheet .r.on .b { background: var(--ember); opacity: .92; }
@media (max-width: 720px) {
  .chatviz .cv-b { font-size: 4.1cqw; padding: 2.6cqw 3.4cqw; border-radius: 3cqw; }
  .chatviz .cv-b em { font-size: 2.7cqw; margin-left: 2.4cqw; }
  .chatviz .l { font-size: 3.2cqw; }
  .chatviz .k { font-size: 2.4cqw; }
  .chatviz .cv-sheet { display: none; }
}

/* ---------- Japanese (branding preview 2026-10-27) ----------
   CHOAM Sans has no kana or kanji, so Japanese falls through to the system Japanese face. Korean keep-all must not
   apply here: Japanese has no spaces, so keep-all would make a whole sentence one unbreakable word. auto-phrase
   (Chromium) breaks at phrase boundaries; other browsers fall back to normal with strict kinsoku. */
: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: .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: .08em; }
:lang(ja) .plate .cap-acts :is(.plate-more, .prod-act), :lang(ja) .prod .prod-act, :lang(ja) .dl :is(.dlbtn, .dl-note a) { letter-spacing: .02em; }
:lang(ja) .gn { letter-spacing: .12em; margin-right: -.12em; }
:lang(ja) .slide p { letter-spacing: 0; }
:lang(ja) .prod-act { text-indent: .08em; }
:lang(ja) .philo-title, :lang(ja) .philo-h { letter-spacing: .02em; }
