/* FRAME OF WAYS — the master entrance (WO v0.2). index.html only; the policy pages keep /style.css.
   The page is complete without the scene: the still (S0) is drawn under the canvas, and every link
   is visible from the first paint. html[data-intro] (head gate) hides the still on an intro entry;
   html[data-entry] (entry.js) reports live / settled / still. */
/* subsets of the four faces (tools/fonts.py): only the characters this page shows; SIL OFL 1.1 */
@font-face { font-family: "EB Garamond"; src: url("fonts/fow-garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/fow-instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "FOW Sans KO"; src: url("fonts/fow-sans-ko.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "RIDIBatang"; src: url("fonts/fow-batang.woff2") format("woff2"); font-display: swap; }

:root.entry { --ink: #0c1016; --cream: #f2e9d4; --soft: #cbc1aa; --muted: #a39b88; --line: rgba(242, 233, 212, .16); --word: 1;
  color-scheme: dark; background: var(--ink); }
.entry body { margin: 0; background: var(--ink); color: var(--cream); font: 15px/1.7 "Instrument Sans", "FOW Sans KO", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.entry a { color: inherit; text-underline-offset: .22em; }
.entry a:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; border-radius: 1px; }

/* the stage: the still under the canvas, both the size of the first screen */
.entry-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; pointer-events: none; }
.entry-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
/* the text side of the stage is veiled: plates pass under the copy only dimmed, never behind legible text */
.entry-stage::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12, 16, 22, .92) 0, rgba(12, 16, 22, 0) 11%), linear-gradient(90deg, rgba(12, 16, 22, 0) 55%, rgba(12, 16, 22, .95) 60.5%); }
.entry-stage picture { display: contents; }
.entry-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 33.5% 50%; }
#entry-canvas { opacity: 0; }
:root[data-entry="live"] #entry-canvas, :root[data-entry="settled"] #entry-canvas { opacity: 1; }
:root[data-intro] .entry-still, :root[data-entry="live"] .entry-still, :root[data-entry="settled"] .entry-still { opacity: 0; }
/* the foot of the stage is ink before the footer starts: small credits stay legible while plates pass */
.entry-stage::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 18%; background: linear-gradient(to bottom, rgba(12, 16, 22, 0) 0, rgba(12, 16, 22, .96) 50%, rgba(12, 16, 22, .96) 100%); }

.entry-page { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  box-sizing: border-box; padding: 0 clamp(20px, 3.4vw, 52px); }
.entry-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.entry-head > a { text-decoration: none; font: 600 11px/1 "Instrument Sans", sans-serif; letter-spacing: .26em; }
.entry-head nav, .entry-foot nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .02em; }
.entry-head nav a, .entry-foot nav a { text-decoration: none; }
.entry-head nav a:hover, .entry-foot nav a:hover { text-decoration: underline; }

.entry-main { flex: 1; display: grid; grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); align-items: center; }
.entry-copy { grid-column: 2; max-width: 450px; padding: 20px 0 28px; }
.entry-word { margin: 0 0 34px; }
.entry-word img { display: block; width: min(100%, 372px); height: auto; }
/* never fully transparent: a layer at opacity 0 is not rasterised, and its first raster would land mid-motion */
:root[data-intro] .entry-word img { opacity: calc(var(--word) * .999 + .001); transform: translateY(calc((1 - var(--word)) * 8px)); }
.entry h1 { font: 400 clamp(30px, 2.8vw, 42px)/1.34 "RIDIBatang", "EB Garamond", serif; letter-spacing: -.012em; margin: 0 0 22px; word-break: keep-all; }
.entry-intro { color: var(--soft); margin: 0 0 8px; word-break: keep-all; }
.entry-intro.en, .entry-project .en { font: 400 16.5px/1.55 "EB Garamond", serif; color: var(--muted); }

.entry-project { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.entry-eyebrow { font: 600 10.5px/1 "Instrument Sans", sans-serif; letter-spacing: .26em; color: var(--muted); margin: 0 0 16px; }
.entry-project h2 { margin: 0 0 14px; line-height: 0; }
.entry-project h2 img { display: block; width: 196px; height: auto; }
.entry-project p { margin: 0 0 6px; color: var(--soft); word-break: keep-all; }
.entry-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px 22px; border: 1px solid rgba(242, 233, 212, .44);
  text-decoration: none; font: 500 14px/1 "Instrument Sans", "FOW Sans KO", sans-serif; letter-spacing: .03em; transition: background-color .2s, color .2s; }
.entry-go:hover { background: var(--cream); color: var(--ink); }

.entry-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 28px; flex-wrap: wrap; padding: 18px 0 24px;
  color: var(--muted); font-size: 12px; }
.entry-credit { margin: 0; max-width: 560px; font-size: 11px; line-height: 1.55; }
.entry .review { margin: 0 0 24px; padding: 8px 14px; border-left: 2px solid #ae5b2f; background: rgba(242, 233, 212, .08); font-size: 13px; }

@media (max-aspect-ratio: 104/100) {
  .entry-still { object-position: 50% 29.5%; }
  .entry-stage::before { background: linear-gradient(180deg, rgba(12, 16, 22, .92) 0, rgba(12, 16, 22, 0) 9%, rgba(12, 16, 22, 0) 47%, rgba(12, 16, 22, .95) 53%); }
  .entry-main { display: block; padding-top: calc(54svh - 76px); }
  .entry-copy { max-width: 520px; padding-bottom: 12px; }
  .entry-word { margin-bottom: 26px; }
  .entry-word img { width: min(76vw, 330px); }
  .entry h1 { font-size: 28px; }
  .entry-head { padding: 20px 0; }
  .entry-head nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .entry-go { transition: none; } }
