/* The rooms after the film: the night goes on. Navy ground, pale ink, the sun only as a highlighter.
   Each room opens on a still from the film and carries its darkness down the page. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --paper: #0B1026;   /* the page ground: the night the film ends in */
  --paper-2: #151C3B;
  --ink: #E9E6D6;
  --ink-2: #C4C2B6;
  --ink-3: #9EA0B2;   /* 7.4:1 on the ground, for small labels */
  --rule: rgba(233, 230, 214, .16);
  --night: #0A0F24;
  --mist: #E9E6D6;
  --sun: #F3E23A;
  --gutter: clamp(20px, 5vw, 72px);
  --serif: "Libre Caslon Condensed", Georgia, serif;
  --kserif: "Hahmlet", "Libre Caslon Condensed", serif;
  --sans: "Pretendard Variable", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --type: "Courier Prime", "Courier New", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.label:lang(ko) { letter-spacing: .06em; }   /* Hangul set wide reads as separate letters */
.hl { color: var(--sun); text-decoration: underline; text-decoration-color: rgba(243, 226, 58, .5); text-decoration-thickness: .08em; text-underline-offset: .2em; text-decoration-skip-ink: none; padding: 0 .04em; }   /* on the night ground the sun marks the words themselves */

/* nav: floats over the still, then sits on paper */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 40px; padding: 22px var(--gutter); color: var(--sun); }
.nav .brand { font-family: var(--serif); font-weight: 600; font-size: 26px; text-decoration: none; }
.nav .menu { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav .menu a { text-decoration: none; opacity: .8; }
.nav .menu a:hover, .nav .menu a[aria-current] { opacity: 1; }
.nav .menu a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav .menu .only-phone { display: none; }
.nav .acts { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.nav .sub { text-decoration: none; }
.nav .sub:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .connect { padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 99px; text-decoration: none; }
.nav .connect:hover, .nav .connect[aria-current] { background: var(--sun); color: var(--night); border-color: var(--sun); }
.nav .menu-btn { display: none; font: inherit; font-size: 14px; font-weight: 600; color: inherit; background: none; padding: 7px 14px; border: 1.5px solid currentColor; border-radius: 99px; cursor: pointer; }

/* hero: a frame from the film */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--sun); background: var(--night) center / cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 22, .55) 0%, rgba(5, 8, 22, 0) 30%, rgba(5, 8, 22, .1) 55%, rgba(5, 8, 22, .82) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vw, 88px); text-shadow: 0 0 2.4vw rgba(0, 10, 30, .55); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 11vw, 10.5rem); line-height: .86; letter-spacing: -.012em; margin-top: 14px; }
.hero .logline { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; margin-top: 18px; }
.hero .ko { font-family: var(--kserif); font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.7; color: var(--mist); margin-top: 14px; max-width: 34em; }
.hero .stamp { position: absolute; right: var(--gutter); bottom: clamp(44px, 7vw, 92px); }
.hero.chapter { align-items: center; text-align: center; }
.hero.chapter .wrap { padding-bottom: 0; }
.hero.chapter h1 { font-family: "Michroma", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(1.5rem, min(max(2.4rem, 6.4vw), (100vw - 2 * var(--gutter)) / 11.8), 6.4rem); line-height: 1.02; color: #E0FF4F; }
/* 11.8em is the widest single word among the room titles (SHAREHOLDERS), so no title runs off a phone */

/* the still dissolves into the paper: no hard edge where the film ends and the page begins */
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: clamp(160px, 30vh, 300px); pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0) 0%, rgba(11, 16, 38, .1) 22%, rgba(11, 16, 38, .32) 46%, rgba(11, 16, 38, .62) 70%, rgba(11, 16, 38, .88) 88%, var(--paper) 100%); }
.hero:not(.chapter) .wrap { padding-bottom: calc(clamp(40px, 7vw, 88px) + clamp(110px, 20vh, 210px)); }
.hero.chapter .wrap { padding-bottom: clamp(60px, 10vh, 120px); }
/* index pages whose content should start sooner: a lower frame and less air under the title */
.hero.chapter.short { min-height: min(52vh, 500px); }
.hero.chapter.short .wrap { padding-top: 72px; }
.hero.chapter.short h1 { font-size: clamp(1.5rem, min(max(2.2rem, 4.6vw), (100vw - 2 * var(--gutter)) / 11.8), 4.8rem); }
.hero.chapter.short .wrap { padding-bottom: clamp(40px, 7vh, 80px); }
.hero.short + main > .wrap:first-child + .room { padding-top: clamp(40px, 6vw, 72px); }
.hero .stamp { z-index: 3; }
.hero:not(.chapter) .stamp { bottom: calc(clamp(44px, 7vw, 92px) + clamp(110px, 20vh, 210px)); }

/* rubber stamp: status of a production */
.stamp { display: inline-block; font-family: var(--type); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px 7px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-4deg); opacity: .92; }

/* sections */
section.room { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--rule); }
section.room:first-of-type { border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.head .label { color: var(--ink-3); padding-top: 12px; }
.head h2 { font-family: var(--kserif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.28; letter-spacing: -.01em; }
.head h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.head p { color: var(--ink-2); margin-top: 18px; max-width: 36em; }
.lede { font-family: var(--kserif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.7; max-width: 30em; }

/* director's statement: a letter, signed */
.letter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.letter .body { font-family: var(--kserif); font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.95; }
.letter .body p + p { margin-top: 1.1em; }
.letter .body .close { font-weight: 600; }
.letter .sign { margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.letter .sign small { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* the journey: one path, five stops, drawn as you read */
.journey { position: relative; }
.journey ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.journey svg { position: absolute; left: 0; right: 0; top: 60px; width: 100%; height: 40px; overflow: visible; }
.journey path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.journey li { position: relative; padding: 0 18px 0 0; }
.journey .no { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.journey .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); margin: 18px 0 22px; position: relative; z-index: 1; }
.journey .is-on .dot { background: var(--sun); }
.journey h3 { font-family: var(--kserif); font-weight: 500; font-size: 1.2rem; line-height: 1.45; }
.journey p { font-family: var(--type); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }

/* modules: a film's chapter index */
.stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 44px 0; border-top: 1px solid var(--rule); }
.stage:first-child { border-top: 0; padding-top: 0; }
.stage .label { color: var(--ink-3); }
.stage h3 { font-family: var(--kserif); font-weight: 500; font-size: 1.45rem; line-height: 1.45; margin-top: 10px; }
.mod { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 0 0 30px; }
.mod + .mod { padding-top: 30px; border-top: 1px dashed var(--rule); }
.mod .n { font-family: var(--serif); font-size: 2.2rem; line-height: 1; grid-row: span 3; }
.mod h4 { margin: 0; font-family: var(--kserif); font-weight: 600; font-size: 1.15rem; line-height: 1.5; }
.mod .code { font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.mod p { color: var(--ink-2); margin-top: 6px; }
.gate { margin-top: 6px; padding: 18px 22px; background: var(--paper-2); border-left: 3px solid var(--ink); font-size: 15px; line-height: 1.7; }
.gate b { display: block; font-family: var(--kserif); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.note { font-family: var(--type); font-size: 13.5px; color: var(--ink-3); margin-top: 20px; }

/* pairs and triples of cards */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.card .label { color: var(--ink-3); }
.card h3 { font-family: var(--kserif); font-weight: 500; font-size: 1.35rem; line-height: 1.45; margin-top: 12px; }
.card p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.card ul { margin-top: 16px; }
.card li { padding: 8px 0 8px 22px; border-top: 1px solid var(--rule); font-size: 15.5px; position: relative; }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.card .flow { margin-top: 18px; font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.card .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }

/* checklist typed on paper */
.checklist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist .box { width: 20px; height: 20px; border: 1.5px solid var(--ink); margin-top: 5px; }
.checklist b { font-family: var(--kserif); font-weight: 600; font-size: 1.12rem; }
.checklist p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }

/* film cans: work to be screened */
.cans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.can { aspect-ratio: 4 / 5; background: var(--night); color: var(--mist); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.can::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(233, 230, 214, .35) 9px 16px, transparent 16px 23px); }
.can b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; color: var(--sun); }
.can .label { opacity: .7; }

/* posters: the studio's coming attractions */
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: clamp(22px, 3vw, 40px); color: var(--sun); text-decoration: none; background: var(--night) center / cover no-repeat; overflow: hidden; isolation: isolate; }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 22, .72) 0%, rgba(5, 8, 22, .15) 40%, rgba(5, 8, 22, .25) 60%, rgba(5, 8, 22, .9) 100%); transition: background .6s ease; }
.poster .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.poster .credit { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.poster h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .88; letter-spacing: -.01em; }
.poster .what { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; display: block; }
.poster .logline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.15; margin-top: 14px; }
.poster .ko { font-family: var(--kserif); font-size: 15px; line-height: 1.7; color: var(--mist); margin-top: 10px; max-width: 26em; }
.poster .go { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin-top: 18px; display: inline-block; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.poster:hover::after, .poster:focus-visible::after { background: linear-gradient(180deg, rgba(5, 8, 22, .6) 0%, rgba(5, 8, 22, 0) 40%, rgba(5, 8, 22, .1) 60%, rgba(5, 8, 22, .86) 100%); }
.poster:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }

/* last word: a night band */
.cta { background: var(--paper); border-top: 1px solid var(--rule); color: var(--sun); text-align: center; padding: clamp(88px, 12vw, 160px) 0; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1; }
.cta p { font-family: var(--kserif); color: var(--mist); margin: 22px auto 34px; max-width: 30em; }
.btn { display: inline-block; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px; border-radius: 99px; background: var(--sun); color: var(--night); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--mist); outline-offset: 4px; }
footer { background: var(--paper); color: var(--mist); border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
footer a { text-decoration: none; }

/* reading in: blocks rise a little as they arrive */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, .8, .12, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav .menu { display: none; }
  .nav .connect { display: none; }
  .nav .menu-btn { display: block; }
  .nav.open .menu { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); padding: 10px 18px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; font-size: 16px; }
  .nav.open .menu a { padding: 8px 0; }
  .nav.open .menu .only-phone { display: block; }
  .head, .letter, .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .journey ol { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .journey svg { display: none; }
  .journey li { padding: 0 0 0 30px; border-left: 1.5px solid var(--ink); }
  .journey .dot { position: absolute; left: -7.5px; top: 6px; margin: 0; }
  .cards.two, .cards.three, .cards.four, .posters { grid-template-columns: minmax(0, 1fr); }
  .cans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .stamp { position: static; margin-top: 22px; }
  .poster { aspect-ratio: 3 / 4; }
}

/* ---- the archive rooms: letters, essays, library ---- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 19px; }
.subnav a { text-decoration: none; color: var(--ink-2); }
.subnav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.chips button { font: inherit; font-family: var(--kserif); font-size: 15px; color: var(--ink); background: transparent; padding: 7px 15px; border: 1.5px solid var(--ink); border-radius: 99px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.year { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rule); }
.year > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; position: sticky; top: 24px; align-self: start; }
.entry { display: block; padding: 20px 0; border-top: 1px dashed var(--rule); text-decoration: none; }
.entry:first-child { border-top: 0; padding-top: 4px; }
.entry .date { font-family: var(--type); font-size: 14px; color: var(--ink-3); }
.entry h3 { font-family: var(--kserif); font-weight: 500; font-size: 1.25rem; line-height: 1.5; margin-top: 4px; }
.entry p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry:hover h3, .entry:focus-visible h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.entry[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 99px; }
.bookend { display: block; padding: 34px clamp(22px, 3vw, 36px); background: var(--paper-2); color: var(--mist); text-decoration: none; margin: 8px 0 40px; }
.bookend .label { color: var(--sun); }
.bookend h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; color: var(--sun); margin-top: 10px; }
.bookend p { margin-top: 10px; font-family: var(--kserif); font-size: 15.5px; opacity: .85; }

/* a single letter or essay */
/* page-head: the plain top of a menu page, its name and one line on the night ground */
.page-head { padding: clamp(128px, 13vw, 168px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.page-head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 36em; }
.page-head + main > .wrap:first-child + .room { padding-top: clamp(40px, 6vw, 72px); }
main.bare { padding-top: clamp(64px, 8vw, 96px); }   /* a page with no top: the list starts under the header */
/* plain: one left-aligned column of short sections, for the simple menu pages */
.plain { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(88px, 10vw, 128px); }
.plain section { max-width: 40em; padding: 32px 0; border-top: 1px solid var(--rule); }
.plain section:first-child { border-top: 0; padding-top: 0; }
.plain h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--ink); }
.plain section p { margin-top: 10px; color: var(--ink-2); }
.plain .more { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--rule); max-width: 40em; font-weight: 600; color: var(--sun); }
.plain .more a { text-decoration: none; }
.plain .more a:hover { text-decoration: underline; text-underline-offset: 6px; }
.plain-more { margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--rule); font-weight: 600; color: var(--sun); }
.plain-more a { text-decoration: none; }
.plain-more a:hover { text-decoration: underline; text-underline-offset: 6px; }
.doc-head { padding: clamp(120px, 14vw, 180px) 0 clamp(40px, 6vw, 64px); background: linear-gradient(180deg, var(--night), var(--paper)); color: var(--mist); border-bottom: 1px solid var(--rule); }
.doc-head .label { color: var(--sun); }
.doc-head h1 { font-family: var(--kserif); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.32; color: var(--sun); margin-top: 16px; max-width: 24em; }
.doc-head .stamp { color: var(--sun); margin-top: 26px; }
.doc-head .meta { font-family: var(--type); font-size: 14px; margin-top: 18px; opacity: .85; }
.doc-head .nav { color: var(--sun); }
/* long-form reading: a calm column, sections you can see, the place you are in */
.read-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px); }
.read-wrap.has-toc { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 38em); justify-content: center; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow: auto; font-size: 14px; line-height: 1.5; padding-right: 8px; }
.toc .label { color: var(--ink-3); margin-bottom: 12px; }
.toc li { border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-3); text-decoration: none; font-family: var(--kserif); }
.toc li.lv3 a, .toc li.lv4 a { padding-left: 14px; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
.toc li:has(a[aria-current="true"]) { border-left-color: var(--sun); }
.reader { max-width: 38em; margin: 0 auto; font-family: var(--kserif); font-size: clamp(1.05rem, 1.2vw, 1.16rem); line-height: 1.95; color: #D8D5C9; letter-spacing: -.003em; }
.read-wrap .reader { padding: 0; }
.reader p { margin: 0 0 1.45em; }
.reader strong, .reader b { color: var(--ink); font-weight: 600; }
.reader li h2, .reader li h3, .reader li h4, .reader td h4 { font-size: inherit; margin: 0; padding: 0; border: 0; }
.reader h2, .reader h3, .reader h4 { font-family: var(--kserif); font-weight: 600; font-size: 1.22em; line-height: 1.5; color: var(--ink); margin: 2.8em 0 1em; padding-top: 1.3em; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.reader li h2, .reader li h3, .reader li h4 { font-size: inherit; margin: 0; padding: 0; border: 0; }
.reader h2:first-child, .reader h3:first-child, .reader h4:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reader h2 { font-size: 1.36em; }
.reader .item { padding: .2em 0 .2em 1.1em; border-left: 2px solid var(--rule); margin-bottom: 1.2em; }
.reader .item-dash { color: var(--ink-3); }
.reader .item-label { color: var(--sun); font-weight: 600; }
.reader .item-label::after { content: ""; display: block; margin-bottom: .15em; }   /* the label keeps its line; the text starts below */
.reader ul, .reader ol { margin: 0 0 1.45em 1.3em; list-style: disc; }
.reader ol { list-style: decimal; }
.reader li { margin: .4em 0; padding-left: .2em; }
.reader li::marker { color: var(--ink-3); }
.reader img { margin: 2em auto; height: auto; border-radius: 6px; background: #fff;
  /* every carried-in image sits in the same frame and leans a little toward the night, without blurring slide text */
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -24px rgba(0, 0, 0, .7); filter: saturate(.86) sepia(.06) contrast(1.02); }
.reader figure { margin: 2em 0; }
.reader figure img { margin: 0 auto; }
.reader figcaption { font-family: var(--type); font-size: 13px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.reader blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--sun); color: var(--ink-2); }
.reader table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; margin: 1.8em 0; display: block; overflow-x: auto; }
.reader th, .reader td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; vertical-align: top; }
.reader th, .reader tr:first-child td { background: var(--paper-2); color: var(--ink); }
.reader hr { border: 0; height: auto; margin: 2.6em 0; text-align: center; }
.reader hr::after { content: "·  ·  ·"; color: var(--ink-3); letter-spacing: .4em; }
.reader a { color: var(--ink); text-decoration-color: rgba(243, 226, 58, .55); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.reader a:hover { text-decoration-color: var(--sun); }
.reader .draft { font-family: var(--type); font-size: 14px; color: var(--ink-2); background: var(--paper-2); padding: 14px 18px; margin-bottom: 2.2em; border-left: 3px solid var(--sun); }
.read-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; pointer-events: none; }
@media (max-width: 1000px) {
  .read-wrap.has-toc { display: block; }
  .toc { position: static; max-height: none; margin: 0 auto 40px; max-width: 38em; padding: 16px 18px; background: var(--paper-2); }
}
.cites { max-width: calc(38em + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 88px); }
.cites h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 12px; }
.cites li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6; }
.cites li span { font-family: var(--type); font-size: 13px; color: var(--ink-3); display: block; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.pager a { padding: 28px var(--gutter); text-decoration: none; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule); }
.pager .label { color: var(--ink-3); display: block; }
.pager b { font-family: var(--kserif); font-weight: 500; font-size: 1.1rem; display: block; margin-top: 6px; }

/* topics: a timeline per project */
.topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--rule); }
.topic h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.topic .desc { font-family: var(--kserif); color: var(--ink-2); margin-top: 10px; }
.topic .over { margin-bottom: 18px; }
.mile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-top: 1px dashed var(--rule); text-decoration: none; }
.mile .date { font-family: var(--type); font-size: 13.5px; color: var(--ink-3); padding-top: 3px; }
.mile b { font-family: var(--kserif); font-weight: 600; }
.mile b small { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; margin-left: 8px; color: var(--ink-3); }
.mile p { grid-column: 2; color: var(--ink-2); font-size: 15.5px; }

/* films: played here, on click */
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.film button { all: unset; cursor: pointer; display: block; width: 100%; position: relative; aspect-ratio: 16 / 9; background: var(--night) center / cover no-repeat; }
.film button::after { content: "▶"; position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: var(--sun); background: rgba(10, 15, 36, .75); padding: 6px 10px; }
.film button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.film iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.film h3 { font-family: var(--kserif); font-weight: 500; font-size: 1.02rem; line-height: 1.5; margin-top: 10px; }
.film .date { font-family: var(--type); font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .year, .topic { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .year > h2 { position: static; }
  .films { grid-template-columns: minmax(0, 1fr); }
  .mile { grid-template-columns: minmax(0, 1fr); }
  .mile p { grid-column: 1; }
}

/* library: the deal path, contracts, models */
.path { display: flex; flex-wrap: wrap; gap: 10px 0; font-family: var(--type); font-size: 14.5px; margin: 0 0 clamp(36px, 5vw, 56px); }
.path a { text-decoration: none; padding: 6px 0; }
.path a:hover, .path a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.path a + a::before { content: "→"; margin: 0 12px; color: var(--ink-3); }
.clause { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 44px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.clause .label { color: var(--ink-3); }
.clause h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.05; margin-top: 10px; }
.clause .sum { color: var(--ink-2); margin-top: 14px; font-size: 16px; line-height: 1.75; }
.clause .aph { font-family: var(--kserif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.7; padding-left: 18px; border-left: 3px solid var(--ink); }
.clause .aph small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.clause .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.clause .pair div { background: var(--paper); padding: 18px 20px; font-size: 15.5px; line-height: 1.7; }
.clause .pair b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.clause details { margin-top: 22px; }
.clause summary { cursor: pointer; font-family: var(--type); font-size: 15px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); list-style: none; display: flex; justify-content: space-between; }
.clause summary::-webkit-details-marker { display: none; }
.clause summary::after { content: "+"; }
.clause details[open] summary::after { content: "−"; }
.clause summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 18px 0; border-bottom: 1px dashed var(--rule); }
.points .n { font-family: var(--type); font-size: 14px; color: var(--ink-3); padding-top: 3px; grid-row: span 2; }
.points b { font-family: var(--kserif); font-weight: 600; font-size: 1.05rem; line-height: 1.55; }
.points p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin-top: 4px; overflow-wrap: anywhere; }
.points.plain li { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 0; }
.points.plain p { margin: 0; color: var(--ink); }
.soon { font-family: var(--type); font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }
@media (max-width: 900px) {
  .clause { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .clause .pair { grid-template-columns: minmax(0, 1fr); }
}
.bookend h3 { font-synthesis: none; }

/* Korean has no italic: never fake one */
.head h2 em, .clause summary, .path { font-synthesis: none; }

/* ---- IR Hub: buttons, steps, and the private workspace ---- */
.btn.ghost { background: transparent; color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }
button.btn { border: 0; cursor: pointer; }
button.btn[disabled] { opacity: .5; cursor: progress; }
.ir-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.tag.ready { color: var(--sun); border-color: rgba(243, 226, 58, .55); }
.tag.future { border-style: dashed; }
.ir-h2 { font-family: var(--kserif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; margin-top: 14px; }
.ir-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.ir-steps .mod { border-top: 1px solid var(--rule); padding: 26px 0; }
.ir-steps .mod + .mod { border-top: 1px solid var(--rule); }
.ir-steps .mod h4 .tag { margin-left: 8px; vertical-align: 2px; }
.ir-order li { padding: 10px 0; border-bottom: 1px dashed var(--rule); font-family: var(--type); }
.ir-order b { font-family: var(--kserif); margin-right: 12px; }
.ir-order a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.entry .done { color: var(--sun); font-weight: 400; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 30px; }
.tabs button { font: inherit; font-family: var(--kserif); font-size: 15.5px; color: var(--ink); background: transparent; padding: 9px 18px; border: 1.5px solid var(--ink); border-radius: 99px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.ir-login, .ir-side, .qc, .rec, .ir-detail { background: var(--paper-2); padding: clamp(22px, 3vw, 32px); }
.ir-login p:first-child { font-family: var(--kserif); }
.ir-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-top: 14px; }
.ir-row .field { flex: 1 1 280px; }
.ir-who { font-family: var(--type); font-size: 14px; color: var(--ink-2); }
.linkish { font: inherit; color: var(--sun); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.status { font-family: var(--type); font-size: 14px; color: var(--ink-2); }
.ir-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.ir-side { position: sticky; top: 24px; }
.ir-side h3 { font-family: var(--kserif); font-weight: 600; font-size: 1.15rem; }
.ir-side p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.ir-side li { padding: 8px 0 8px 18px; border-top: 1px solid var(--rule); font-size: 14.5px; position: relative; }
.ir-side li:first-child { margin-top: 14px; }
.ir-side li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.ir-title { font-family: var(--kserif); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.ir-form .note.editing { margin-top: 6px; }
.grp { border: 0; border-top: 1px solid var(--rule); margin: 30px 0 0; padding: 22px 0 0; min-width: 0; }
.grp legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); padding: 0 10px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.grid2 .full, .cond.full { grid-column: 1 / -1; }
.cond.grid2 { padding: 18px; border: 1px dashed var(--rule); }
.field, .area { position: relative; min-width: 0; }
.field > label, .area > label, .lbl { display: block; font-family: var(--kserif); font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--sun); font-weight: 400; }
.help { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.area .help { margin: -2px 0 8px; }
.ir-form input[type="text"], .ir-form input[type="email"], .ir-form input[type="number"], .ir-form input[type="date"], .ir-form select, .ir-form textarea,
.ir-login input, .lesson textarea, .ir-detail textarea, .ir-detail select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink-2); padding: 9px 2px; border-radius: 0; color-scheme: dark; }
.ir-form select, .ir-detail select { background: var(--paper); }
.ir-form textarea, .lesson textarea, .ir-detail textarea { border: 1.5px solid var(--ink-2); padding: 12px; resize: vertical; line-height: 1.7; }
.area input { margin-top: 8px; font-size: 14.5px !important; }
.ir-form ::placeholder, .ir-login ::placeholder, .lesson ::placeholder { color: var(--ink-3); opacity: 1; }
.ir-form input:focus, .ir-form select:focus, .ir-form textarea:focus, .ir-login input:focus, .lesson textarea:focus { outline: none; border-color: var(--sun); }
.ir-form input[type="file"] { font-size: 14.5px; color: var(--ink-2); }
.field .unit { position: absolute; right: 2px; top: 37px; font-family: var(--type); font-size: 13px; color: var(--ink-3); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; margin-top: 10px; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--sun); width: 16px; height: 16px; flex: none; }
.consents { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; font-family: var(--kserif); font-size: 14.5px; padding: 6px 14px; border: 1.5px solid var(--ink-2); border-radius: 99px; }
.pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.computed { font-family: var(--type); font-size: 14px; color: var(--sun); }
.ir-form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.qc { margin-top: 30px; }
.qc h3 { font-family: var(--kserif); font-weight: 600; font-size: 1.35rem; margin-top: 6px; }
.qc h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin: 26px 0 8px; }
.qc li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.65; }
.qc li b { font-family: var(--kserif); }
.qc .sev { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; margin-right: 8px; color: var(--sun); }
.qc .st { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); margin-left: 6px; }
.qc details { margin-top: 18px; }
.qc summary { cursor: pointer; font-family: var(--kserif); }
.rec { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; }
.rec h3 { font-family: var(--kserif); font-weight: 600; font-size: 1.2rem; }
.rec p { font-size: 14.5px; color: var(--ink-2); }
.ir-detail { margin-top: 20px; }
.ir-detail dl { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 16px; font-size: 14.5px; margin-top: 14px; }
.ir-detail dt { color: var(--ink-3); }
.ir-detail dd { margin: 0; white-space: pre-wrap; }
.lesson h3 { margin-top: 2em; }
.lesson .checks { margin-bottom: 1.6em; }
.lesson textarea { margin-top: 4px; }
.lesson table caption { text-align: left; font-family: var(--type); font-size: 13px; color: var(--ink-3); padding-bottom: 8px; }
@media (max-width: 900px) {
  .ir-steps, .grid2, .ir-split { grid-template-columns: minmax(0, 1fr); }
  .ir-side { position: static; }
  .ir-detail dl { grid-template-columns: minmax(0, 1fr); }
}

/* end of an essay: other essays on the same topic, a second way out besides previous and next */
.related { border-top: 1px solid var(--rule); padding: 26px var(--gutter) 48px; }
.related h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.related ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.related a { display: grid; gap: 2px; text-decoration: none; }
.related a b { font-family: var(--kserif); font-weight: 500; font-size: 1.08rem; line-height: 1.45; }
.related a span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }
.related a:hover b { color: var(--sun); }

/* Library essay map: a line diagram that scrolls sideways on narrow screens instead of shrinking past reading size */
.linemap { overflow-x: auto; margin-top: 8px; padding: 8px 0 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.linemap svg { display: block; max-width: none; }
.linemap a text { transition: fill .2s; }
.linemap a:hover text, .linemap a:focus-visible text { fill: var(--sun); }
.linemap:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
.tagnote { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-2); }
.tagnote a { color: var(--sun); }

/* IR Hub diagnosis: one number, the ten areas as a strip, the first fixes */
.qc .score { display: flex; gap: 20px; align-items: center; margin-top: 10px; }
.qc .score .big { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5rem); line-height: .9; color: var(--sun); font-variant-numeric: tabular-nums; }
.qc .score .big small { font-size: .42em; color: var(--ink-3); margin-left: 2px; }
.qc .score h3 { margin: 0; }
.qc .score p:not(.big) { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.qc .meter { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 18px 0 6px; padding: 0; }
.qc .meter li { height: 10px; border-radius: 2px; border: 1px solid var(--rule); }
.qc .meter .m-provided { background: var(--sun); border-color: var(--sun); }
.qc .meter .m-improve { background: repeating-linear-gradient(135deg, rgba(243,226,58,.55) 0 3px, transparent 3px 6px); border-color: rgba(243,226,58,.55); }
.qc .meter .m-missing { background: transparent; }
.qc ol.first { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.qc details.how { margin-top: 16px; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; }
.qc details.how summary { cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.qc details.how ul { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* review states: each keeps one colour everywhere, and the word is always written beside it */
.tag.st-draft { border-style: dashed; color: var(--ink-3); }
.tag.st-submitted { color: var(--sun); border-color: rgba(243, 226, 58, .55); }
.tag.st-reviewing { color: #7FC8C2; border-color: rgba(127, 200, 194, .55); }
.tag.st-needs_revision { color: #E8A15A; border-color: rgba(232, 161, 90, .6); }
.tag.st-reviewed { color: var(--paper); background: var(--ink); border-color: var(--ink); }
