/* OMOTEID phone experience — a paper world of six chapters, drawn in ink and gold. */
/* Brand type: Shippori Mincho 400 for Japanese headings, Noto Sans JP 400 for text and controls,
   Manrope 500 for English and every numeral. Each file is subset to the characters this page uses. */
@font-face { font-family: "OMOTEID Mincho"; src: url("fonts/omoteid-mincho.woff2?v=20261030") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "OMOTEID Sans"; src: url("fonts/omoteid-sans.woff2?v=20261030") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-500.woff2?v=20261030") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "OMOTEID Num"; src: url("fonts/manrope-500.woff2?v=20261030") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0030-0039, U+002B-002E, U+0025, U+00A5; }

:root {
  --paper: #f1ebe0;
  --paper-2: #e7dece;
  --paper-rgb: 241, 235, 224;
  --ink: #1f2722;
  --ink-2: #39443d;
  --muted: #4c4f47;
  --gold: #8a6630;
  --gold-2: #c9a467;
  --gold-3: #e3c48a;
  --green: #26322c;
  --night: #121815;
  --night-rgb: 18, 24, 21;
  --cream: #f6f0e5;
  --line: rgba(31, 39, 34, .14);
  --line-2: rgba(31, 39, 34, .24);
  --vermilion: #b4432b;
  --line-green: #06c755;
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --fg-line: var(--line);
  --serif: "OMOTEID Num", "OMOTEID Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Manrope", "OMOTEID Sans", "Hiragino Sans", sans-serif;
  --grotesk: "Manrope", "OMOTEID Sans", "Hiragino Sans", sans-serif;
  --sans: "Manrope", "OMOTEID Sans", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hd-h: calc(58px + var(--safe-t));
  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --washi: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .27 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-tone="dark"] { --fg: var(--cream); --fg-muted: rgba(246, 240, 229, .88); --fg-line: rgba(246, 240, 229, .22); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: auto; }
body { margin: 0; min-height: 100%; background: var(--paper) var(--washi); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
img { max-width: 100%; }
.num { font-family: var(--latin); font-weight: 400; font-feature-settings: "lnum"; letter-spacing: .01em; }
.gold { color: var(--gold); }
/* Small numerals use the grotesk: the display face's "1" reads like a "4" at small sizes. */
.wl b, .menu-chapters b, .doubts b, .qa summary .num, .deck-label .num, .kicker .num, .q .num { font-family: var(--grotesk); font-weight: 700; letter-spacing: .06em; font-feature-settings: "tnum"; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--cream); font-size: 13px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Splash */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; }
.splash::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper) var(--washi); transition: opacity 1s var(--ease); }
.splash.is-clear { pointer-events: none; }
.splash.is-clear::before { opacity: 0; }
.splash.is-clear .splash-sub, .splash.is-written.is-clear .splash-sub { opacity: 0; transition-duration: .45s; }
.splash.is-out { display: none; }
.splash-mark { position: relative; width: min(74vw, 340px); height: auto; overflow: visible; will-change: transform; transform-origin: 50% 50%; }
.wm-pen { opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 210, 140, .9)); }
.wm-flame-glow { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease); }
.splash.is-lit .wm-flame-glow { opacity: .85; animation: flame 1.7s ease-in-out infinite; }
@keyframes flame { 0%, 100% { transform: scale(1); opacity: .85; } 35% { transform: scale(1.12) translateY(-3%); opacity: 1; } 60% { transform: scale(.94); opacity: .72; } 80% { transform: scale(1.05); opacity: .92; } }
.splash-sub { display: flex; align-items: center; gap: 12px; font-family: var(--grotesk); font-size: 9.5px; letter-spacing: .38em; color: var(--gold); opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.splash-sub i { width: 26px; height: 1px; background: var(--gold-2); transform: scaleX(0); transition: transform 1s .2s var(--ease); }
.splash.is-written .splash-sub { opacity: 1; transform: none; }
.splash.is-written .splash-sub i { transform: none; }
.splash-load { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 44px); width: 64px; height: 1px; margin-left: -32px; background: rgba(31, 39, 34, .1); overflow: hidden; opacity: 0; transition: opacity .6s; }
.splash.is-waiting .splash-load { opacity: 1; }
.splash-load i { position: absolute; inset: 0; background: var(--gold-2); transform-origin: left; transform: scaleX(var(--load, .1)); transition: transform .5s var(--ease); }
html:not(.js) .splash { display: none; }

/* ---------------------------------------------------------------- Stage layers */
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity .9s var(--ease); touch-action: pan-y; }
html.gl-on #gl { opacity: 1; }
html.is-reading #gl { visibility: hidden; }
.veil { position: fixed; left: 0; right: 0; pointer-events: none; transition: opacity .6s, background .8s; }
.veil--top { top: 0; z-index: 3; height: calc(var(--hd-h) + 44px); background: linear-gradient(to bottom, rgba(var(--paper-rgb), .9), rgba(var(--paper-rgb), .55) 55%, rgba(var(--paper-rgb), 0)); }
.veil--bottom { bottom: 0; z-index: 1; height: 68vh; height: 68svh; background: linear-gradient(to top, rgba(var(--paper-rgb), .99) 0%, rgba(var(--paper-rgb), .95) 30%, rgba(var(--paper-rgb), .62) 55%, rgba(var(--paper-rgb), 0) 100%); }
html[data-tone="dark"] .veil--top { background: linear-gradient(to bottom, rgba(var(--night-rgb), .88), rgba(var(--night-rgb), .45) 55%, rgba(var(--night-rgb), 0)); }
html[data-tone="dark"] .veil--bottom { background: linear-gradient(to top, rgba(var(--night-rgb), .95) 0%, rgba(var(--night-rgb), .86) 24%, rgba(var(--night-rgb), .45) 52%, rgba(var(--night-rgb), 0) 100%); }
html.is-reading .veil { opacity: 0; }
html:not(.gl-on) .veil--bottom { opacity: 0; }
.wipe { position: fixed; inset: 0; z-index: 60; background: var(--paper) var(--washi); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s var(--ease-io), visibility 0s .32s; }
html.is-wiping .wipe { opacity: 1; visibility: visible; transition: opacity .28s var(--ease-io), visibility 0s; }

/* World labels projected from 3D */
.wl-layer { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
html.is-reading .wl-layer, html.is-intro .wl-layer { visibility: hidden; }
.wl { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 0; padding: 6px 11px 5px; border: 1px solid rgba(201, 164, 103, .5); border-radius: 999px; background: rgba(var(--paper-rgb), .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(60, 45, 20, .12); line-height: 1.2; opacity: 0; visibility: hidden; transform: translate3d(-200px, -200px, 0); will-change: transform, opacity; pointer-events: none; transition: border-color .4s, background .4s, color .4s; }
.wl::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: linear-gradient(rgba(201, 164, 103, .8), rgba(201, 164, 103, 0)); }
.wl b { font-size: 10.5px; color: var(--gold); }
.wl span { font-family: var(--serif); font-weight: 600; font-size: 13px; color: var(--ink); }
.wl.is-hot { border-color: var(--gold-2); background: rgba(255, 250, 240, .96); box-shadow: 0 0 0 4px rgba(227, 196, 138, .28), 0 8px 22px rgba(60, 45, 20, .16); }
.wl.is-live { pointer-events: auto; visibility: visible; }
.wl.is-done b::after { content: " ✓"; font-family: var(--sans); font-size: 10px; }
.touch-zone { position: fixed; left: 0; right: 0; top: var(--hd-h); height: 46vh; height: 46svh; z-index: 4; display: none; touch-action: pan-y; }
html[data-touch] .touch-zone { display: block; }

/* ---------------------------------------------------------------- Header */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--hd-h); padding: var(--safe-t) 12px 0 18px; color: var(--fg); transition: color .6s; }
.hd-line, .hd-menu { transition: opacity .7s var(--ease); }
html.is-intro .hd-line, html.is-intro .hd-menu { opacity: 0; pointer-events: none; }
.hd-logo { display: block; margin-right: auto; }
.hd-logo svg { display: block; width: 102px; height: auto; transition: filter .6s; }
html[data-tone="dark"] .hd-logo svg { filter: invert(1) hue-rotate(180deg) brightness(1.25) saturate(.7); }
html.js:not(.logo-in) .hd-logo svg { opacity: 0; }
.hd-line { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border: 1px solid var(--fg-line); border-radius: 999px; background: rgba(var(--paper-rgb), .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; letter-spacing: .04em; white-space: nowrap; transition: background .6s, border-color .6s; }
.hd-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-green); box-shadow: 0 0 0 3px rgba(6, 199, 85, .16); }
html[data-tone="dark"] .hd-line { background: rgba(var(--night-rgb), .5); }
.hd-menu { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.hd-menu svg { position: absolute; inset: 0; width: 44px; height: 44px; }
.hd-menu .ring-bg, .hd-menu .ring-fg { fill: none; stroke-width: 1.4; }
.hd-menu .ring-bg { stroke: var(--fg-line); }
.hd-menu .ring-fg { stroke: var(--gold-2); stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); transition: stroke-dashoffset .3s linear; }
.hd-menu-icon { position: relative; width: 16px; height: 9px; }
.hd-menu-icon::before, .hd-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.hd-menu-icon::before { top: 1px; } .hd-menu-icon::after { top: 7px; }
.hd-menu[aria-expanded="true"] .hd-menu-icon::before { top: 4px; transform: rotate(32deg); }
.hd-menu[aria-expanded="true"] .hd-menu-icon::after { top: 4px; transform: rotate(-32deg); }

/* ---------------------------------------------------------------- Menu */
.menu { position: fixed; inset: 0; z-index: 25; overflow-y: auto; overscroll-behavior: contain; background: var(--paper) var(--washi); color: var(--ink); animation: menu-in .5s var(--ease); }
@keyframes menu-in { from { opacity: 0; } }
.menu-inner { padding: calc(var(--hd-h) + 18px) 24px calc(var(--safe-b) + 36px); }
.menu .eyebrow { margin-bottom: 10px; }
.menu-chapters { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.menu-chapters a { display: flex; align-items: baseline; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.menu-chapters b { font-size: 13px; color: var(--gold); min-width: 24px; }
.menu-chapters span { display: grid; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.45; }
.menu-chapters small { margin-top: 2px; font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.menu-chapters li { opacity: 0; transform: translateY(10px); animation: rise .6s var(--ease) forwards; }
.menu-chapters li:nth-child(2) { animation-delay: .04s; } .menu-chapters li:nth-child(3) { animation-delay: .08s; }
.menu-chapters li:nth-child(4) { animation-delay: .12s; } .menu-chapters li:nth-child(5) { animation-delay: .16s; } .menu-chapters li:nth-child(6) { animation-delay: .2s; }
.menu-chapters a.is-current b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--gold-2); vertical-align: middle; }
@keyframes rise { to { opacity: 1; transform: none; } }
.menu-links { display: grid; gap: 2px; margin: 22px 0 26px; padding: 0; list-style: none; }
.menu-links a { display: block; padding: 8px 2px; font-size: 14.5px; color: var(--ink-2); }
.menu-mail { display: flex; justify-content: space-between; margin-top: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: .02em; }
/* Over the reading sections the header gets its own soft backing. */
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--paper-rgb), .86); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .5s, background .5s; }
html.is-reading .hd::before { opacity: 1; }
html.is-reading[data-tone="dark"] .hd::before { background: rgba(var(--night-rgb), .82); border-color: rgba(246, 240, 229, .1); }
html.menu-open .hd::before { opacity: 0; }
html.menu-open { overflow: hidden; }
html.menu-open .hd { color: var(--ink); }
html.menu-open .hd-logo svg { filter: none; }
html.menu-open .hd-line { visibility: hidden; }

/* ---------------------------------------------------------------- Story */
main { position: relative; z-index: 2; }
.st { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: calc(var(--h) * 1vh); height: calc(var(--h) * 1svh); padding: 18vh 0 0; padding: 18svh 0 0; pointer-events: none; }
.copy { position: sticky; bottom: calc(var(--safe-b) + 26px); margin: 0 22px; color: var(--fg); pointer-events: auto; opacity: calc(1 - var(--out, 0)); transition: color .6s; will-change: opacity; }
.copy .ln { --k: clamp(0, calc(var(--in, 1) * 2.3 - var(--i, 0) * .26), 1); display: block; opacity: var(--k); transform: translate3d(0, calc((1 - var(--k)) * 24px), 0); will-change: transform, opacity; }
.copy > * + * { margin-top: 13px; }
.copy p, .copy li, .reading p, .qa summary span { text-wrap: pretty; word-break: auto-phrase; }
.copy:not(.copy--panel) { text-shadow: 0 0 16px rgba(var(--paper-rgb), .95), 0 0 3px rgba(var(--paper-rgb), .9); }
html[data-tone="dark"] .copy:not(.copy--panel) { text-shadow: 0 0 16px rgba(var(--night-rgb), .95), 0 0 3px rgba(var(--night-rgb), .9); }
.copy--panel { margin: 0 12px; padding: 20px 18px 18px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 18px; background: rgba(250, 246, 238, .8); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); box-shadow: 0 22px 48px rgba(60, 45, 20, .14), inset 0 1px 0 rgba(255, 255, 255, .7); color: var(--ink); --fg: var(--ink); --fg-muted: var(--muted); --fg-line: var(--line); }
html[data-tone="dark"] .copy--panel { background: rgba(250, 246, 238, .86); }
.copy--hero { bottom: calc(var(--safe-b) + 20px); }
.copy--final .display { margin-top: 8px; }

.eyebrow { font-family: var(--grotesk); font-size: 11px; line-height: 1.6; letter-spacing: .26em; color: var(--gold); }
html[data-tone="dark"] .copy:not(.copy--panel) .eyebrow { color: var(--gold-2); }
.display { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(29px, 8.5vw, 38px); line-height: 1.5; letter-spacing: .03em; }
.kagi { margin-left: -.46em; }
.title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 7.6vw, 32px); line-height: 1.5; letter-spacing: .02em; }
.title--s { font-size: clamp(21px, 6.2vw, 26px); }
.title--xl { font-size: clamp(31px, 9.4vw, 41px); }
/* A title that must stay on one line: shrink to the copy width instead of wrapping. */
.title.title--one { white-space: nowrap; font-size: min(32px, calc((100vw - 50px) / 12.4)); }
.title .num { margin: 0 .05em; font-size: 1.24em; letter-spacing: 0; }
.title--xl .num { font-size: 2.1em; line-height: 1; vertical-align: -.1em; }
.lead, .sub { font-size: 15.5px; line-height: 1.85; font-weight: 500; color: var(--fg-muted); }
.note { font-size: 12.5px; line-height: 1.8; color: var(--fg-muted); }
.kicker { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--fg-muted); }
.kicker .num { font-size: 15px; color: var(--gold); }

/* Hero */
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 18px !important; font-size: 12.5px; color: var(--ink-2); }
.hero-price b { font-size: 31px; line-height: 1; color: var(--ink); }
.hero-price i { align-self: center; width: 1px; height: 18px; margin: 0 9px; background: var(--line-2); }
.cue { display: flex; align-items: center; gap: 12px; margin-top: 20px !important; font-family: var(--grotesk); font-size: 9.5px; letter-spacing: .34em; color: var(--muted); }
.cue i { position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--gold-2); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Doubts */
.doubts { margin: 4px 0 0; padding: 0; list-style: none; }
.doubts li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--fg-line); font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; }
.doubts b { flex: none; font-size: 12px; color: var(--gold); }

/* Chapter cards between worlds */
.st--chapter { justify-content: flex-start; padding: 0; }
.chap { position: sticky; top: 34vh; top: 34svh; display: grid; justify-items: center; text-align: center; color: var(--fg); opacity: calc(var(--in, 0) * (1 - var(--out, 0))); transform: translate3d(0, calc((1 - var(--in, 0)) * 30px), 0) scale(calc(.96 + var(--in, 0) * .04)); will-change: transform, opacity; }
.chap .num { font-size: 92px; line-height: .9; color: var(--gold-2); text-shadow: 0 10px 40px rgba(var(--paper-rgb), .9); letter-spacing: calc((1 - var(--in, 0)) * .3em); }
.chap-en { margin-top: 10px; font-family: var(--grotesk); font-size: 10px; letter-spacing: .5em; padding-left: .5em; color: var(--fg-muted); }
.chap-ja { margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: .12em; text-shadow: 0 2px 18px rgba(var(--paper-rgb), .9); }
html[data-tone="dark"] .chap .num, html[data-tone="dark"] .chap-ja { text-shadow: 0 6px 30px rgba(var(--night-rgb), .9); }

/* Tags & lists */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags.ln { display: flex; }
.tags li { padding: 4px 12px; border: 1px solid var(--fg-line); border-radius: 999px; font-size: 12px; letter-spacing: .05em; background: rgba(var(--paper-rgb), .5); }
.list { margin: 12px 0 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--fg-line); font-size: 14.5px; font-weight: 500; line-height: 1.75; color: var(--fg-muted); }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 10px; height: 1px; background: var(--gold-2); }

/* Pages slider */
.pages label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.pages output { font-family: var(--latin); font-size: 19px; color: var(--gold); }
.pages input { display: block; width: 100%; height: 40px; margin: 4px 0 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-x; }
.pages input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--gold-2) var(--fill, 0%), rgba(31, 39, 34, .14) var(--fill, 0%)); }
.pages input::-moz-range-track { height: 3px; background: rgba(31, 39, 34, .14); }
.pages input::-moz-range-progress { height: 3px; background: var(--gold-2); }
.pages input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13.5px; border-radius: 50%; background: var(--green); border: 7px solid #fbf8f2; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.pages input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 7px solid #fbf8f2; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.pages-total { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.pages-total b { font-size: 44px; line-height: 1.1; }
.pages-total b.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: translateY(-3px); color: var(--gold); } }
.pages-total small { font-size: 12px; color: var(--muted); }

/* Schedule */
.schedule { margin: 12px 0 0; }
.schedule div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.schedule dt { color: var(--gold); font-size: 12.5px; letter-spacing: .06em; }
.schedule dd { margin: 0; }
.schedule b { margin: 0 2px; font-size: 23px; }
.schedule small { display: block; font-size: 12px; color: var(--muted); }

/* Questions */
.q { display: flex; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; }
.q.ln { display: flex; }
.q .num { flex: none; font-size: 15px; line-height: 2; color: var(--gold); }
.answer { padding-left: 37px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.answer::before { content: "→ "; color: var(--gold-2); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px !important; }
.chips.ln { display: grid; }
.chips button { min-height: 50px; padding: 0 2px; border: 1px solid rgba(31, 39, 34, .24); border-radius: 12px; background: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.chips button:active { transform: scale(.96); }
.chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.hint { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-muted); }
.hint.ln { display: flex; }
.hint i { position: relative; width: 34px; height: 1px; background: var(--fg-line); }
.hint i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: swipe 2.4s var(--ease-io) infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(27px); } }

/* Buyout */
.buyout { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.buyout.ln { display: flex; }
.buyout b { font-size: 50px; line-height: 1.05; }
.buyout small { font-size: 12px; color: var(--muted); }

/* Docs */
.deck { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.deck.ln { display: grid; }
.deck-step { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .4); font-family: var(--latin); font-size: 16px; }
.deck-label { display: grid; justify-items: center; text-align: center; line-height: 1.35; }
.deck-label .num { font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.deck-label b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.deck-label small { margin-left: .6em; font-family: var(--latin); font-size: 14px; color: var(--muted); }
.doc-links { display: grid; gap: 8px; margin-top: 14px !important; }
.doc-links.ln { display: grid; }
.docs-static { display: none; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 18px; border: 1px solid var(--green); border-radius: 14px; background: var(--green); color: var(--cream); font-size: 14px; letter-spacing: .03em; transition: transform .3s var(--ease), background .3s; }
.btn:active { transform: scale(.985); }
.btn small { margin-right: auto; font-size: 11px; opacity: .7; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(31, 39, 34, .28); }
.btn--line { justify-content: flex-start; background: var(--green); }
.btn--line > span:last-child { margin-left: auto; }
.btn--cream { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn--big { min-height: 62px; font-size: 15px; }
.line-mark { display: inline-grid; place-items: center; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--line-green); color: #fff; font-family: Arial, sans-serif; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .02em; }
.cta { display: grid; gap: 8px; margin-top: 18px !important; }
.cta.ln { display: grid; }

/* ---------------------------------------------------------------- Reading sections */
/* The reading pages rise as a great circle, like the arch on the desktop page: a half-circle top as wide as the screen. */
.reading { position: relative; z-index: 6; border-top-left-radius: 50vw; border-top-right-radius: 50vw; background: var(--paper) var(--washi); box-shadow: 0 -16px 48px rgba(60, 45, 20, .12); }
.faq { position: relative; padding: 76px 22px 64px; }
/* The heading sits in the middle of the dome, where the circle is widest. */
.faq > .eyebrow, .faq > .title, .faq > .sub { text-align: center; }
.faq .title { margin: 8px 0 8px; }
.faq-cats { display: flex; gap: 8px; margin: 24px -22px 24px; padding: 2px 22px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.faq-cats::-webkit-scrollbar { display: none; }
.faq-cats button { flex: none; min-height: 42px; padding: 0 16px; border: 1px solid rgba(31, 39, 34, .22); border-radius: 999px; background: transparent; font-size: 13px; scroll-snap-align: start; transition: background .3s, color .3s, border-color .3s; }
.faq-cats button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.faq-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.faq-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.faq-count { font-size: 12px; color: var(--muted); }
.faq-panel { border-bottom: 1px solid var(--line); }
.faq-group.is-entering .qa { animation: rise .5s var(--ease) both; }
.faq-group.is-entering .qa:nth-child(2) { animation-delay: .03s; } .faq-group.is-entering .qa:nth-child(3) { animation-delay: .06s; }
.faq-group.is-entering .qa:nth-child(4) { animation-delay: .09s; } .faq-group.is-entering .qa:nth-child(5) { animation-delay: .12s; }
.faq-group.is-entering .qa:nth-child(6) { animation-delay: .15s; } .faq-group.is-entering .qa:nth-child(7) { animation-delay: .18s; } .faq-group.is-entering .qa:nth-child(8) { animation-delay: .21s; }
.qa { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 15px 0; list-style: none; font-size: 15.5px; font-weight: 600; line-height: 1.65; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .num { flex: none; width: 34px; font-size: 11px; color: var(--gold); }
.qa summary span { flex: 1; min-width: 0; }
.qa summary i { position: relative; flex: none; width: 14px; height: 14px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.2px; background: currentColor; transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa-a { overflow: hidden; }
.qa-a p { margin: 0; padding: 0 6px 20px 42px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.faq-more { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; font-size: 13px; color: var(--ink-2); }

.contact { position: relative; padding: 76px 22px 60px; background: var(--green) var(--washi); color: var(--cream); --fg-muted: rgba(246, 240, 229, .74); }
.contact .eyebrow { color: var(--gold-3); }
.contact .title { margin-top: 10px; }
.contact .sub { margin-top: 14px; color: var(--fg-muted); }
.contact .btn--line { margin-top: 28px; background: var(--cream); color: var(--green); border-color: var(--cream); }
.contact-mail { display: flex; align-items: baseline; gap: 12px; padding: 22px 2px; border-bottom: 1px solid rgba(246, 240, 229, .2); font-size: 17px; letter-spacing: .02em; }
.contact-mail small { font-size: 11px; color: var(--gold-3); }
.contact-mail span { margin-left: auto; }
.mail-form { margin-top: 6px; }
.mail-form summary { display: flex; align-items: center; gap: 10px; padding: 18px 2px; font-size: 13px; list-style: none; cursor: pointer; }
.mail-form summary::-webkit-details-marker { display: none; }
.mail-form summary i { position: relative; width: 12px; height: 12px; }
.mail-form summary i::before, .mail-form summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 1px; background: var(--gold-3); transition: transform .35s var(--ease); }
.mail-form summary i::after { transform: rotate(90deg); }
.mail-form[open] summary i::after { transform: none; }
.mail-form label { display: block; margin: 16px 0; font-size: 13px; }
.mail-form label span { margin-left: 8px; font-size: 10px; color: var(--gold-3); }
.mail-form input, .mail-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid rgba(246, 240, 229, .3); border-radius: 10px; background: #fbf8f2; color: var(--ink); font-size: 16px; }
.mail-form .btn { width: 100%; margin-top: 22px; }
.mail-form .note { margin-top: 12px; }
#form-status { margin-top: 8px; font-size: 13px; color: var(--gold-3); }

.info { position: relative; padding: 60px 22px 34px; background: var(--night); color: var(--cream); }
.info-logo { display: block; width: 128px; height: auto; }
.info .title { margin: 14px 0 18px; }
.info dl { margin: 0; }
.info dl div { padding: 15px 0; border-top: 1px solid rgba(246, 240, 229, .13); }
.info dt { font-size: 12px; color: var(--gold-2); }
.info dd { margin: 4px 0 0; font-size: 15px; line-height: 1.85; }
.info dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246, 240, 229, .4); }
.info-sub { margin: 30px 0 12px; font-family: var(--grotesk); font-size: 10px; font-weight: 400; letter-spacing: .32em; color: var(--gold-2); }
.social { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 16px; border: 1px solid rgba(246, 240, 229, .2); border-radius: 14px; }
.social span { display: grid; font-size: 14px; line-height: 1.5; }
.social small { font-size: 11px; color: rgba(246, 240, 229, .62); }
.social b { margin-left: auto; font-weight: 400; }
.ft { padding: 24px 22px calc(var(--safe-b) + 28px); background: var(--night); color: rgba(246, 240, 229, .7); }
.ft-top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(246, 240, 229, .13); font-size: 12px; }
.ft-top img { width: 108px; height: auto; }
.ft p { margin-top: 14px; font-family: var(--latin); font-size: 11px; letter-spacing: .1em; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: 1fr auto; background: rgba(18, 24, 21, .95); animation: menu-in .35s var(--ease); }
.lightbox-scroll { overflow: auto; padding: calc(64px + var(--safe-t)) 12px 12px; -webkit-overflow-scrolling: touch; }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.lightbox-close { position: absolute; top: calc(10px + var(--safe-t)); right: 10px; z-index: 1; width: 46px; height: 46px; border: 0; background: none; color: var(--cream); font-size: 28px; line-height: 1; }
.lightbox-nav { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 8px 12px calc(12px + var(--safe-b)); color: var(--cream); text-align: center; }
.lightbox-nav button { height: 48px; border: 1px solid rgba(246, 240, 229, .3); border-radius: 12px; background: none; font-family: var(--latin); }
.lightbox-count { font-size: 14px; letter-spacing: .14em; }
html.lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------------- Intro & states */
html.is-intro, html.is-intro body { overflow: hidden; }

/* Static reading layout: no module support, no WebGL, or an error while starting. */
html:not(.js) .st, html.no-gl .st { height: auto; padding: 0; display: block; }
html:not(.js) .copy, html.no-gl .copy { position: relative; bottom: auto; margin: 0 22px 64px; opacity: 1; }
html:not(.js) .copy--panel, html.no-gl .copy--panel { margin: 0 12px 64px; }
html:not(.js) .copy .ln, html.no-gl .copy .ln { opacity: 1; transform: none; }
html:not(.js) .st--chapter, html.no-gl .st--chapter { padding: 48px 0 26px; }
html:not(.js) .chap, html.no-gl .chap { position: relative; top: auto; opacity: 1; transform: none; }
html:not(.js) .chap .num, html.no-gl .chap .num { font-size: 64px; letter-spacing: 0; }
html:not(.js) .st--hero, html.no-gl .st--hero { display: flex; min-height: 100vh; min-height: 100svh; padding-top: 30vh; background: linear-gradient(to top, var(--paper) 30%, rgba(var(--paper-rgb), .2)), url("img/shop.jpg") center top / cover no-repeat; }
html.no-gl #gl, html.no-gl .veil, html.no-gl .wl-layer, html.no-gl .touch-zone { display: none; }
html.no-gl .docs-static, html:not(.js) .docs-static { display: flex; gap: 12px; margin: -30px 0 40px; padding: 0 22px 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.docs-static button { flex: 0 0 62%; padding: 0; border: 0; background: none; scroll-snap-align: center; }
.docs-static img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 28px rgba(60, 48, 30, .16); }
html.no-gl .deck-step, html:not(.js) .deck { display: none; }

@media (max-width: 359px) {
  .hd-logo svg { width: 90px; }
  .hd-line { padding: 0 10px; font-size: 11px; }
  .copy { margin: 0 18px; }
  .copy--panel { margin: 0 8px; padding: 18px 14px 16px; }
}
@media (max-height: 700px) {
  .display { font-size: 28px; }
  .title { font-size: 24px; }
  .title--s { font-size: 20.5px; }
  .title--xl { font-size: 29px; }
  .lead, .sub { font-size: 13.5px; line-height: 1.75; }
  .copy > * + * { margin-top: 9px; }
  .hero-price { margin-top: 12px !important; }
  .hero-price b { font-size: 26px; }
  .cue { display: none !important; }
  .doubts li { padding: 7px 0; font-size: 16.5px; }
  .copy--panel { padding: 15px 15px 14px; }
  .schedule div { padding: 7px 0; }
  .schedule b { font-size: 19px; }
  .pages-total b { font-size: 34px; }
  .buyout b { font-size: 40px; }
  .list li { padding: 6px 0 6px 22px; font-size: 12.5px; }
  .note { font-size: 11px; line-height: 1.7; }
  .chap .num { font-size: 72px; }
}
