/* ---------- Fonts (self-hosted, SIL OFL; see fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --black: #050608;
  --char: #0b0c0f;
  --text: #ece7de;        /* warm off-white */
  --silver: #c9c4ba;      /* pale warm silver */
  --muted: #a39d92;
  --gold: #c8a96a;        /* muted gold */
  --gold-soft: rgba(200, 169, 106, .45);
  --hair: rgba(236, 231, 222, .12);
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); overflow-x: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.375rem;          /* 22px base */
  line-height: 1.75;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Film grain over the whole page (static, inline SVG noise, no network) */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .085;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #111; padding: .5rem 1rem; z-index: 60; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---------- Top bar ---------- */
:root { --bar-h: 4.25rem; }
section[id], #top { scroll-margin-top: calc(var(--bar-h) + 1rem); }
#story h2 { scroll-margin-top: calc(var(--bar-h) + 1rem); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  transition: background .35s ease, box-shadow .35s ease;
}
.topbar.scrolled, .topbar.menu-open {
  background: rgba(6, 7, 9, .78);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
          backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 1px 0 rgba(200, 169, 106, .18);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav-menu a {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  transition: color .2s ease, border-color .2s ease;
}
.nav-menu a:hover { color: var(--text); border-bottom-color: var(--gold); }
.brand:focus-visible, .nav-menu a:focus-visible, .menu-toggle:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 2px;
}
.btn.btn-small {
  margin: 0;
  line-height: 1.2;
  font-size: .8rem;
  letter-spacing: .24em;
  padding: .6rem 1.1rem .6rem 1.35rem;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  background: transparent; border: 1px solid rgba(236,231,222,.22); border-radius: 3px;
  cursor: pointer; padding: 0; position: relative;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  position: absolute; left: 50%; width: 1.2rem; height: 1.5px; background: var(--text);
  transform: translateX(-50%); content: ""; transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle .bars { top: 50%; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-open .menu-toggle .bars { background: transparent; }
.menu-open .menu-toggle .bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero: letterboxed scope frame ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  object-position: 50% 8%;
  max-height: 100vh;
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 22%, transparent 42%),
    linear-gradient(0deg, var(--black) 0%, rgba(5,6,8,.78) 18%, rgba(5,6,8,.35) 32%, transparent 44%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 14%);
}
.hero-text {
  position: absolute;
  left: clamp(1.25rem, 5.5vw, 6rem);
  bottom: clamp(1.25rem, 3.5%, 2.75rem);
  max-width: min(46rem, 52vw);
}
.hero-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.35vw, 1.3rem);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--silver);
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.7);
}
.hero-rule {
  display: block; width: 5.5rem; height: 1px; margin: .8rem 0 .8rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f1ebe0;
  text-shadow:
    0 1px 0 rgba(255,255,255,.18),
    0 2px 3px rgba(0,0,0,.85),
    0 0 24px rgba(255, 226, 180, .28),
    0 0 70px rgba(255, 200, 140, .16);
}
.hero-tagline {
  margin: .9rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--silver);
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
}

/* ---------- Scenes ---------- */
main { padding: 0 1.25rem; overflow-x: clip; }
section { max-width: 42rem; margin: 0 auto; position: relative; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: #f1ebe0;
  text-align: center;
  text-shadow: 0 0 26px rgba(255, 226, 180, .18), 0 2px 3px rgba(0,0,0,.8);
}
h2::after {
  content: "";
  display: block;
  width: 4rem; height: 1px; margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Verse: opening title card */
.verse {
  max-width: 46rem;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.verse::before {          /* faint light from above, like a projector beam */
  content: ""; position: absolute; left: 50%; top: 0; width: 100%; height: 100%;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(50% 55% at 50% 45%, rgba(214, 200, 170, .07), transparent 70%);
}
.verse blockquote { margin: 0 auto; max-width: 36rem; }
.verse p {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  line-height: 1.8;
  letter-spacing: .03em;
  word-spacing: .08em;
  color: var(--text);
  text-shadow: 0 0 22px rgba(255, 230, 190, .08);
}
.verse footer { margin-top: 2rem; }
.verse cite {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--gold);
}
.verse cite::before, .verse cite::after {
  content: ""; display: inline-block; width: 2.5rem; height: 1px; vertical-align: middle;
  background: var(--gold-soft); margin: 0 1.1rem;
}

/* Story */
.story { padding-top: clamp(3rem, 7vw, 5rem); }
.story::before {          /* static ember glow drifting up from the left */
  content: ""; position: absolute; left: -30%; top: 20%; width: 60%; height: 60%;
  pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(190, 95, 40, .07), transparent);
}
.story p { margin: 0 0 1.6rem; color: var(--text); }
.story p.turn {
  position: relative;
  margin: 3.5rem 0;
  padding: 3rem 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .08em;
  color: #f6f0e4;
  text-shadow: 0 0 18px rgba(255, 236, 200, .45), 0 0 60px rgba(255, 214, 160, .25);
  isolation: isolate;
}
.story p.turn::before {   /* soft heavenly light behind the line */
  content: ""; position: absolute; inset: -30% -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 50% 50%, rgba(255, 236, 200, .16), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% -40%, rgba(255, 236, 200, .05) 0deg 2deg, transparent 2deg 7deg);
  -webkit-mask-image: radial-gradient(55% 60% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(55% 60% at 50% 50%, #000 30%, transparent 75%);
}

.story p.lead-in { margin-bottom: 0; }
.story p.lead-in + p.turn { margin-top: .5rem; }
.story p.closing {
  margin: 3rem 0 0;
  padding-top: 2.25rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: .1em;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(200, 169, 106, .25);
  position: relative;
}
.story p.closing::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Embers: a few static sparks, CSS only */
.embers {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 30%, rgba(230,150,80,.55), transparent),
    radial-gradient(1px 1px at 14% 62%, rgba(230,150,80,.45), transparent),
    radial-gradient(2px 2px at 92% 18%, rgba(230,150,80,.35), transparent),
    radial-gradient(1px 1px at 86% 74%, rgba(230,150,80,.45), transparent),
    radial-gradient(1.5px 1.5px at 4% 88%, rgba(230,150,80,.35), transparent);
}

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(5rem, 11vw, 8rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(20, 20, 22, .85), rgba(10, 10, 12, .9));
  border: 1px solid var(--hair);
  border-top-color: rgba(200, 169, 106, .3);
  border-radius: 6px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.03);
}
.contact-lead { margin: 0 0 1.5rem; color: var(--silver); text-align: center; }
.form { display: grid; gap: .4rem; }
.form label { font-weight: 700; margin-top: .9rem; color: var(--text); }
.form .hint { font-weight: 400; color: var(--muted); font-size: 1rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  background: #08090b;
  border: 1px solid #3a3833;
  border-radius: 4px;
  padding: .85rem 1rem;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .2);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.btn {
  display: inline-block;
  text-decoration: none;
  margin-top: 1.75rem;
  justify-self: center;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #17130b;
  background: linear-gradient(180deg, #e3cf9f 0%, #c8a96a 48%, #a88a4f 52%, #c4a568 100%);
  border: 1px solid #e8d6a8;
  border-radius: 2px;
  padding: 1rem 3.2rem 1rem 3.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(200, 169, 106, .45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .2s ease, box-shadow .2s ease;
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 14px 36px -12px rgba(200, 169, 106, .6), inset 0 1px 0 rgba(255,255,255,.4); }
.btn:focus-visible { outline: 2px solid #f1ebe0; outline-offset: 4px; }
.btn:disabled { opacity: .7; cursor: wait; }
.status { margin: .75rem 0 0; font-weight: 700; min-height: 1.5em; text-align: center; }
.status.ok { color: #cfe0c4; }
.status.err { color: #e7b3a6; }

/* ---------- Footer: end credits ---------- */
.site-footer {
  margin-top: clamp(5rem, 11vw, 8rem);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hair);
}
.site-footer p { margin: 0; }

/* ---------- Fade-ins ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 3.75rem; }
  .hero { padding-top: var(--bar-h); }
  .hero-shade { top: var(--bar-h); }
  .hero-text .hero-name { display: none; }
  .hero-rule { margin-top: 0; }
  .brand { font-size: .78rem; letter-spacing: .26em; }
  .menu-toggle { display: inline-block; order: 2; }
  .btn.btn-small { order: 1; font-size: .72rem; letter-spacing: .18em; padding: .55rem .8rem .55rem .95rem; }
  .nav-right { gap: .6rem; }
  .nav-menu {
    display: none;
    position: absolute; top: var(--bar-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 7, 9, .95);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 169, 106, .18);
    padding: .5rem 0 1rem;
  }
  .menu-open .nav-menu { display: flex; }
  .nav-menu li { border-top: 1px solid rgba(236,231,222,.07); }
  .nav-menu a { display: block; padding: 1.05rem 1.5rem; font-size: 1.05rem; text-align: center; border-bottom: 0; }
  .nav-menu a:focus-visible { outline-offset: -4px; }
  body { font-size: 1.15rem; line-height: 1.8; }
  .hero { background: var(--black); }
  .hero-img { aspect-ratio: 4 / 3; object-position: 52% 50%; max-height: none; }
  .hero-shade {
    bottom: auto; aspect-ratio: 4 / 3;
    background:
      linear-gradient(0deg, var(--black) 0%, rgba(5,6,8,.75) 16%, transparent 40%),
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 15%);
  }
  .hero-text { position: relative; left: auto; bottom: auto; max-width: none; margin-top: -2.25rem; padding: 0 1.25rem; text-align: center; }
  .hero-rule { margin: 1rem auto .9rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .hero-name { letter-spacing: .42em; }
  .hero-tagline { white-space: normal; letter-spacing: .08em; }
  .hero-title { font-size: clamp(2.8rem, 14vw, 4rem); letter-spacing: .06em; }
  .verse cite::before, .verse cite::after { width: 1.25rem; margin: 0 .7rem; }
  .btn { justify-self: stretch; padding-left: 1rem; padding-right: 1rem; }
}
