:root {
  --ink: #12100e;
  --ink-2: #1b1815;
  --paper: #f4efe7;
  --paper-2: #ebe4d8;
  --text: #f3eee6;
  --muted: #b9b0a3;
  --muted-dark: #6d655b;
  --brass: #c8a46a;
  --brass-2: #a8844c;
  --olive: #5f6e4f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --film-h: 820vh;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 18px; text-align: center;
  background: var(--ink) url("../poster.jpg") center / cover no-repeat;
  transition: opacity .8s ease, visibility .8s;
}
.loader::before { content: ""; position: absolute; inset: 0; background: rgba(18, 16, 14, .72); }
.loader > * { position: relative; }
.loader__brand { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); letter-spacing: .01em; }
.loader__brand em, .brand em { color: var(--brass); }
.loader__label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.loader__bar { width: min(280px, 70vw); height: 2px; margin: 0 auto; background: rgba(255, 255, 255, .14); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .25s ease; }
.loader.is-done { opacity: 0; visibility: hidden; }

.netbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 55; pointer-events: none; transition: opacity .6s; }
.netbar span { display: block; height: 100%; width: 0; background: var(--brass); opacity: .8; transition: width .3s; }
.netbar.is-done { opacity: 0; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter); transition: background .4s, padding .4s, box-shadow .4s;
}
.top.is-solid { background: rgba(18, 16, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--brass); border-radius: 999px; background: var(--brass); color: #1a140b;
  font: 600 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #d6b57e; transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(243, 238, 230, .45); }
.btn--ghost:hover { background: rgba(243, 238, 230, .08); }

/* ---------- film ---------- */
.film { position: relative; height: var(--film-h); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__media { position: absolute; inset: 0; background: var(--ink) url("../poster.jpg") center / cover no-repeat; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrim { position: absolute; pointer-events: none; }
.scrim--top { inset: 0 0 auto; height: 150px; background: linear-gradient(rgba(12, 10, 8, .5), transparent); }
.scrim--side { inset: 0; background: radial-gradient(ellipse 66% 86% at 0% 84%, rgba(12, 10, 8, .84) 0%, rgba(12, 10, 8, .6) 38%, rgba(12, 10, 8, 0) 80%); }
.scrim--bottom { inset: auto 0 0; height: 22vh; background: linear-gradient(transparent, rgba(12, 10, 8, .35)); }

.copy { position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 130px); width: min(780px, 80vw); }
.chap { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.chap.is-on { visibility: visible; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #e2c48f; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow .num { font-family: var(--serif); font-size: 18px; letter-spacing: .04em; color: var(--text); }
.chap h1 { font-family: var(--serif); font-size: clamp(46px, 7vw, 100px); line-height: .98; letter-spacing: -.01em; }
.chap h2 { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.005em; max-width: 620px; }
.chap h1 em, .chap h2 em { color: var(--brass); }
.chap p:not(.eyebrow) { margin-top: 18px; font-size: clamp(15px, 1.15vw, 17px); color: #e4ddd2; max-width: 440px; }
.chap .lead { font-size: clamp(16px, 1.3vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.copy, .chap h1, .chap h2, .chap p { text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }

.rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 22px; border-left: 1px solid rgba(243, 238, 230, .22); }
.rail li { position: relative; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 238, 230, .72); text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); transition: color .4s; }
.rail li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: rgba(243, 238, 230, .35); transition: background .4s, transform .4s; }
.rail li.is-active { color: #fff; }
.rail li.is-active::before { background: var(--brass); transform: scale(1.5); }
.rail li.is-done::before { background: rgba(200, 164, 106, .6); }

.mbar { display: none; }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: opacity .5s; }
.cue span { width: 1px; height: 38px; background: linear-gradient(var(--brass), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
.cue.is-hidden { opacity: 0; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- sections ---------- */
.section { background: var(--paper); color: var(--ink); padding: clamp(80px, 12vw, 150px) 0; }
.section--alt { background: var(--paper-2); }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.eyebrow--dark { color: var(--brass-2); }
.h-section { font-family: var(--serif); font-size: clamp(38px, 5vw, 68px); line-height: 1.02; max-width: 760px; }
.h-section em { color: var(--olive); }

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 56px; }
.card { grid-column: span 2; background: #fffdf9; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -28px rgba(40, 30, 15, .35); }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card div { padding: 22px 24px 26px; }
.card .num { font-family: var(--serif); font-size: 18px; color: var(--brass-2); }
.card h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 4px 0 8px; }
.card p { color: var(--muted-dark); font-size: 15px; }

.method { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 34px; }
.steps li { counter-increment: s; position: relative; padding-left: 64px; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 34px; color: var(--brass-2); }
.steps h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.steps p { color: var(--muted-dark); margin-top: 6px; }

.contact { background: var(--ink-2); color: var(--text); }
.contact .h-section em { color: var(--brass); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__lead { margin-top: 20px; color: var(--muted); max-width: 440px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(243, 238, 230, .18); border-radius: 6px;
  background: rgba(255, 255, 255, .03); color: var(--text); font: 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form__note { min-height: 1.6em; color: var(--brass); font-size: 14px; }

.foot { background: var(--ink); color: var(--muted); padding: 28px 0; font-size: 13px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.brand--dark { color: var(--text); font-size: 22px; }

/* ---------- narrow / portrait: picture on top, text below ---------- */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  :root { --film-h: 700vh; }
  .nav { display: none; }
  .top { padding: 14px 18px; gap: 12px; }
  .top .btn--small { margin-left: auto; }
  .brand { font-size: 23px; }
  .stage { display: grid; grid-template-rows: 62% 38%; background: var(--ink); }
  .stage__media { position: relative; inset: auto; }
  .scrim--side, .scrim--bottom { display: none; }
  .scrim--top { height: 110px; }
  .copy { position: relative; left: auto; bottom: auto; width: auto; margin: 0 18px; }
  .chap { top: 22px; bottom: auto; }
  .chap h1 { font-size: clamp(38px, 11vw, 60px); }
  .chap h2 { font-size: clamp(30px, 8.4vw, 46px); }
  .chap p:not(.eyebrow) { margin-top: 10px; font-size: 15px; }
  .eyebrow { margin-bottom: 10px; }
  .actions { margin-top: 18px; }
  .actions .btn { min-height: 44px; padding: 0 18px; }
  .copy, .chap h1, .chap h2, .chap p { text-shadow: none; }
  .rail { display: none; }
  .mbar { display: block; position: absolute; left: 0; right: 0; top: 62%; height: 2px; background: rgba(243, 238, 230, .12); }
  .mbar span { display: block; height: 100%; width: 0; background: var(--brass); }
  .cue { bottom: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .method, .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (max-height: 640px) and (max-width: 820px) {
  .chap p:not(.eyebrow):not(.lead) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; }
  .loader, .btn { transition: none; }
}
