/* kbook.ai sale landing — editorial, dark, gold on near-black */

/* Self-hosted Latin subsets — font-display: swap, no render-blocking Google CSS */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2"); }


:root {
  --bg: #070605;
  --bg-soft: #0e0c0a;
  --bg-card: #14110e;
  --ink: #f3ead8;
  --ink-dim: #b7ab96;
  --ink-mute: #8a7f6e;
  --gold: #c9a66b;
  --gold-bright: #e8d5a3;
  --gold-line: rgba(201, 166, 107, 0.28);
  --gold-line-strong: rgba(201, 166, 107, 0.55);
  --focus: #e8d5a3;
  --danger: #e8b4a0;
  --ok: #c5d5b0;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --thai-serif: "Noto Serif Thai", "Cormorant Garamond", serif;
  --thai-sans: "Noto Sans Thai", "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html[lang="th"] {
  --serif: var(--thai-serif);
  --sans: var(--thai-sans);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 166, 107, 0.08), transparent 55%),
    radial-gradient(800px 400px at 100% 20%, rgba(201, 166, 107, 0.04), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  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='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  top: 0;
  inset-inline-start: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  padding: 0.5rem 1rem;
  inset-inline-start: 1rem;
  top: 1rem;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--gutter);
  border-bottom: 1px solid var(--gold-line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 6, 5, 0.82);
  backdrop-filter: blur(16px);
}

.mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mark:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.lang button[data-lang="en"] {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

.header-cta {
  display: none;
  color: var(--gold-bright);
  transform-origin: center;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.header-cta:hover { color: var(--ink); }

@media (min-width: 720px) {
  .header-cta { display: inline; }
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6.5rem);
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1 .tld {
  color: var(--gold-bright);
  font-style: italic;
}

.tagline {
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.lede {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a140c;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-line-strong);
}
.btn-ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}

/* Sections */

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--gold-line);
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 38rem;
  margin: -0.75rem 0 2.5rem;
  color: var(--ink-dim);
}

/* Why */

.meanings {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .meanings { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  padding: 1.75rem 1.5rem 1.9rem;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(201, 166, 107, 0.05), transparent 40%), var(--bg-card);
}
.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--gold-bright);
}
.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.card .letter {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}

/* Who */

.uses {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gold-line);
}
.use {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--gold-line);
}
@media (min-width: 720px) {
  .use {
    grid-template-columns: 8rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}
.use .num {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.use h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
}
.use p { margin: 0; color: var(--ink-dim); }

/* Auction */

.auction {
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(201, 166, 107, 0.07), transparent 60%);
}

.auction-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--gold-line-strong);
  background: var(--bg-soft);
}

.auction-when {
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: 1.15rem;
}
.auction-when strong {
  font-weight: 500;
  color: var(--gold-bright);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}
.tick {
  text-align: center;
  padding: 1rem 0.35rem 0.85rem;
  border: 1px solid var(--gold-line);
  background: var(--bg);
}
.tick .n {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tick .l {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.bid-note {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}
.bid-note span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-mute);
  font-size: 0.92rem;
}

.market {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-line);
  color: var(--ink-mute);
  font-size: 0.9rem;
}
.market a {
  color: var(--gold-bright);
  text-underline-offset: 3px;
  margin-left: 0.35em;
}
.market a:hover { color: var(--ink); }

/* Forms */

.notify-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .notify-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

form {
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem 1.4rem 1.7rem;
  border: 1px solid var(--gold-line);
  background: var(--bg-card);
}
form h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--gold-bright);
}
form .hint {
  margin: -0.25rem 0 0.25rem;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

input,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--gold-line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 0.8rem;
  border-radius: 0;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { min-height: 6.5rem; resize: vertical; }

.hp {
  /* Visually hidden; do not use large negative left/right — that
     inflates scrollWidth and, in RTL, shifts the whole page off-screen. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  top: 0;
  left: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.3rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }

/* Footer */

.site-footer {
  padding: 2.4rem 0 3rem;
  color: var(--ink-mute);
  font-size: 0.88rem;
}
.site-footer p { margin: 0 0 0.6rem; }
.escrow {
  color: var(--ink-dim);
  max-width: 40rem;
}
.copy { font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero visual */

.hero {
  padding-bottom: 0;
}

.hero-visual {
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  width: min(1180px, calc(100% - (var(--gutter) * 2)));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gold-line);
  background: #050403;
}

/* Story */

.story .intro {
  max-width: 40rem;
}

.chapter {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 clamp(2.75rem, 6vw, 4.5rem);
  align-items: center;
}

.chapter:last-of-type {
  margin-bottom: 0;
}

.chapter figure {
  margin: 0;
}

.chapter img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gold-line);
  background: #050403;
}

.chapter-copy {
  padding-top: 0.2rem;
}

.chapter-num {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.chapter h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--gold-bright);
  letter-spacing: -0.01em;
}

.chapter p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.02rem;
}

.story-close {
  max-width: 38rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gold-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 860px) {
  .chapter {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .chapter-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .chapter-reverse figure {
    order: 2;
  }
}

.header-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .header-cta { display: inline; }
  .header-links { display: flex; }
}

/* Motion + multilingual additions */

:root {
  --serif-latin: "Cormorant Garamond", "Times New Roman", serif;
  --sans-latin: "Outfit", system-ui, sans-serif;
}

html[lang="th"] {
  --serif: "Noto Serif Thai", var(--serif-latin);
  --sans: "Noto Sans Thai", var(--sans-latin);
}
html[lang="zh-Hans"] {
  --serif: "Noto Serif SC", "Noto Sans SC", var(--serif-latin);
  --sans: "Noto Sans SC", var(--sans-latin);
}
html[lang="ja"] {
  --serif: "Noto Serif JP", "Noto Sans JP", var(--serif-latin);
  --sans: "Noto Sans JP", var(--sans-latin);
}
html[lang="ko"] {
  --serif: "Noto Serif KR", "Noto Sans KR", var(--serif-latin);
  --sans: "Noto Sans KR", var(--sans-latin);
}
html[lang="ar"] {
  --serif: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  --sans: "Noto Sans Arabic", var(--sans-latin);
  letter-spacing: 0;
}
html[lang="ar"] body { letter-spacing: 0; }
html[lang="ar"] .section-kicker,
html[lang="ar"] .eyebrow,
html[lang="ar"] .header-cta,
html[lang="ar"] .btn,
html[lang="ar"] .tick .l,
html[lang="ar"] .chapter-num {
  letter-spacing: 0.04em;
  text-transform: none;
}

.wordmark,
.mark,
.countdown {
  font-family: var(--serif-latin);
}
.countdown { font-family: var(--sans-latin); }
.wordmark .letter,
.mark { font-family: var(--serif-latin); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-current {
  appearance: none;
  transform-origin: center;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  min-width: 3.2rem;
}
.lang-current[aria-expanded="true"] { border-color: var(--gold); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  min-width: 10.5rem;
  background: #120f0c;
  border: 1px solid var(--gold-line);
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.lang-menu button {
  appearance: none;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--sans), "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", system-ui, sans-serif;
  font-size: 0.86rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.is-active { color: var(--gold-bright); background: rgba(201,166,107,0.08); }

/* Wordmark kinetic type */
.wordmark {
  margin: 0;
  font-family: var(--serif-latin);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark-letters { display: inline-block; }
.wordmark .letter {
  display: inline-block;
  opacity: 1;
}
.wordmark .letter:nth-child(1) { animation-delay: 0.04s; }
.wordmark .letter:nth-child(2) { animation-delay: 0.10s; }
.wordmark .letter:nth-child(3) { animation-delay: 0.16s; }
.wordmark .letter:nth-child(4) { animation-delay: 0.22s; }
.wordmark .letter:nth-child(5) { animation-delay: 0.28s; }
.wordmark .letter:nth-child(6) { animation-delay: 0.34s; }
.wordmark .letter:nth-child(7) { animation-delay: 0.40s; }
.wordmark .letter:nth-child(8) { animation-delay: 0.46s; }
@keyframes letterIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wordmark .letter.tld { color: var(--gold-bright); }
.wordmark.is-shimmer .letter {
  background-image: linear-gradient(100deg, #f3ead8 0%, #f3ead8 38%, #fff6d6 50%, #e8d5a3 62%, #f3ead8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.8s ease-in-out 0.2s 1 forwards;
}
.wordmark.is-shimmer .letter.tld {
  background-image: linear-gradient(100deg, #e8d5a3 0%, #e8d5a3 38%, #fff6d6 50%, #c9a66b 62%, #e8d5a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

/* Hero canvas overlay */
.hero-visual {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-visual .hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.hero-fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.gold-dust {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  z-index: 2;
  pointer-events: none;
  direction: ltr;
  contain: strict;
}

/* Story rail + line split */
.story-wrap { position: relative; }
.story-rail {
  display: none;
}
@media (min-width: 860px) {
  .story-rail {
    display: block;
    position: absolute;
    inset-inline-start: calc(var(--gutter) * 0.15);
    top: 8rem;
    bottom: 4rem;
    width: 1px;
    background: var(--gold-line);
  }
  .story-rail-fill {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform-origin: top center;
    will-change: transform;
  }
  .story .chapter,
  .story .intro,
  .story h2,
  .story .section-kicker,
  .story-close { padding-inline-start: 1.25rem; }
}
.chapter figure {
  overflow: hidden;
  will-change: transform;
}
.chapter img { will-change: transform; }
.line {
  display: block;
  overflow: hidden;
}
.line-inner {
  display: block;
  will-change: transform;
}

/* Countdown flip */
.tick .n {
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
  perspective: 400px;
}
.tick .flip-now,
.tick .flip-out,
.tick .flip-in {
  display: block;
  font-family: var(--sans-latin);
  font-variant-numeric: tabular-nums;
}
.tick .flip-out,
.tick .flip-in {
  position: absolute;
  inset-inline: 0;
  top: 0;
}
.tick.is-flip .n, .n.is-flip { }
.n.is-flip .flip-out {
  animation: flipOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.n.is-flip .flip-in {
  animation: flipIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes flipOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-110%); opacity: 0; }
}
@keyframes flipIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Film */
.film-frame {
  position: relative;
  border: 1px solid var(--gold-line);
  background: #050403;
  margin: 0 auto 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.film-frame.is-portrait {
  aspect-ratio: 9 / 16;
  max-width: min(420px, 100%);
}
.film-frame video,
.film-frame .film-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050403;
}
.film-frame .film-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.film-frame video { position: relative; z-index: 1; }
.film-caption { margin-bottom: 0; }
@media (max-width: 720px) {
  .film-frame { aspect-ratio: 9 / 16; max-width: min(420px, 100%); }
}

/* Share */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  transform-origin: center;
  min-height: 2.3rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gold-line-strong);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--gold); color: var(--ink); }
.share-status {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  color: var(--ok);
  font-size: 0.9rem;
}

/* Logical margin already used where possible */
.market a { margin-inline-start: 0.35em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark .letter,
  .hero-visual,
  .chapter img,
  .chapter figure,
  .line-inner { animation: none !important; transition: none !important; transform: none !important; }
  .gold-dust, .hero-scene { display: none !important; }
  .wordmark.is-shimmer .letter { background: none; color: var(--ink); -webkit-background-clip: initial; background-clip: initial; }
  .wordmark.is-shimmer .letter.tld { color: var(--gold-bright); }
}

/* Prevent RTL/canvas overflow from shifting the page off-screen */
html, body { overflow-x: clip; max-width: 100%; width: 100%; }

