/* ═══════════════════════════════════════════════════════════
   PAUL SCHULZ · MYSTERY SCHOOL BERLIN — Concept V3 "Threshold"
   Editorial · Museal · Präzise
   Type: Marcellus (display) + EB Garamond (text)
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #171411;            /* warm near-black */
  --ink-soft: #2B2620;
  --parchment: #F4EFE4;      /* warm paper */
  --parchment-deep: #EAE2D2;
  --gold: oklch(0.70 0.07 78);        /* refined antique gold */
  --gold-bright: oklch(0.78 0.09 82);
  --oxblood: oklch(0.42 0.09 30);     /* deep ritual red */
  --muted: #6E6657;
  --hairline: rgba(23,20,17,0.16);
  --hairline-gold: color-mix(in oklch, var(--gold) 45%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.6;
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Typography ─────────────────────────────────── */
.display, h1, h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; line-height: 0.92; letter-spacing: 0.015em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(64px, 10.5vw, 152px); }
h2 { font-size: clamp(46px, 6.5vw, 92px); }
h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(27px, 3vw, 40px); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
/* Garamond italic accent inside Bebas headlines */
h1 em, h2 em, h3 em, .display em { font-family: 'EB Garamond', serif; font-style: italic; font-weight: 500; text-transform: none; font-size: 0.88em; letter-spacing: 0; }
.lede { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.body-text { color: var(--ink-soft); text-wrap: pretty; }
.fine { font-size: 15px; color: var(--muted); }
em.voice { font-style: italic; }

.label {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--muted);
}
.label.gold { color: var(--gold); }
.numeral {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
section { position: relative; }
.rule { height: 1px; background: var(--hairline); border: 0; }
.rule-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--hairline-gold), transparent); border: 0; }

/* ── Dark threshold sections ────────────────────── */
.threshold { background: var(--ink); color: var(--parchment); }
.threshold .label { color: var(--gold); }
.threshold .lede, .threshold .body-text { color: rgba(244,239,228,0.78); }
.threshold .rule { background: rgba(244,239,228,0.14); }

/* ── Navigation ─────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
.wordmark span { color: var(--gold); }
.topnav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.topnav a.navlink {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; color: var(--ink-soft); position: relative; padding: 4px 0;
}
.topnav a.navlink::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.7,0,.3,1);
}
.topnav a.navlink:hover::after, .topnav a.navlink[aria-current="page"]::after { transform: scaleX(1); }
.topnav a.navlink[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'EB Garamond', serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--parchment); }
.btn.solid { background: var(--ink); color: var(--parchment); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--ink); }
.btn.on-dark { border-color: rgba(244,239,228,0.5); color: var(--parchment); }
.btn.on-dark:hover { background: var(--parchment); color: var(--ink); }
.btn.sm { padding: 11px 20px; font-size: 12.5px; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; line-height: 1.5; }
}

.linkline {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; transition: color .3s, border-color .3s;
}
.linkline:hover { color: var(--gold); }

/* ── Arch frames (temple-gate motif) ────────────── */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; position: relative; }
.arch::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--hairline-gold); border-radius: 999px 999px 0 0; pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-outline { border-radius: 999px 999px 0 0; border: 1px solid var(--hairline); }

/* ── Seal motif (concentric circles) ────────────── */
.seal { width: 88px; height: 88px; }
.seal circle, .seal line { stroke: var(--gold); fill: none; stroke-width: 1; }
.seal polygon { stroke: var(--gold); fill: none; stroke-width: 2; stroke-linejoin: miter; }

/* ── Class sigils (geometric glyph per class) ── */
.sigil { width: 48px; height: 48px; flex: none; }
.sigil circle, .sigil line, .sigil rect, .sigil path, .sigil polygon { stroke: var(--gold); fill: none; stroke-width: 1.5; }
.sigil .dot { fill: var(--gold); stroke: none; }

/* ── Reveal on scroll ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .12s; }
  .reveal[data-delay="2"] { transition-delay: .24s; }
  .reveal[data-delay="3"] { transition-delay: .36s; }
}

/* ── Marquee band ───────────────────────────────── */
.band { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.band-track { display: flex; gap: 0; width: max-content; animation: bandmove 60s linear infinite; }
.band-track span { font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); padding: 0 28px; white-space: nowrap; }
.band-track span::after { content: '·'; color: var(--gold); margin-left: 56px; }
@keyframes bandmove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* ── Path rows (offerings as ledger) ────────────── */
.ledger { border-top: 1px solid var(--hairline); }
.ledger-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: clamp(16px, 3vw, 48px);
  align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none; transition: background .3s; position: relative;
}
.ledger-row:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.ledger-row .l-num { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 0.2em; color: var(--gold); }
.ledger-row .l-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(25px, 2.7vw, 36px); line-height: 1; letter-spacing: 0.025em; text-transform: uppercase; }
.ledger-row .l-meta { font-size: 15px; color: var(--muted); white-space: nowrap; }
.ledger-row .l-price { font-family: 'Bebas Neue', sans-serif; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: 0.04em; white-space: nowrap; text-align: right; }
.ledger-row .l-desc { grid-column: 2 / 5; max-width: 660px; color: var(--ink-soft); font-size: 17px; margin-top: 2px; text-wrap: pretty; }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 40px 1fr auto; }
  .ledger-row .l-meta { display: none; }
  .ledger-row .l-desc { grid-column: 2 / 4; }
}

/* ── Footer ─────────────────────────────────────── */
footer.site { background: var(--ink); color: rgba(244,239,228,0.7); padding: clamp(56px, 8vw, 96px) 0 40px; }
footer.site .label { color: var(--gold); margin-bottom: 18px; }
footer.site a { text-decoration: none; transition: color .25s; }
footer.site a:hover { color: var(--gold-bright); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.footgrid .col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
@media (max-width: 860px) { .footgrid { grid-template-columns: 1fr 1fr; } }

/* ── Parallax image breakers ────────────────────── */
.breaker { position: relative; height: clamp(340px, 52vh, 560px); overflow: hidden; background-size: cover; background-position: center 30%; background-attachment: fixed; }
@media (max-width: 900px), (hover: none) { .breaker { background-attachment: scroll; } }
.breaker .breaker-bg { position: absolute; left: 0; right: 0; top: -15%; height: 130%; background-size: cover; background-position: center 30%; will-change: transform; }
.breaker .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(23,20,17,0.42), rgba(23,20,17,0.12) 50%, rgba(23,20,17,0.45)); }
.breaker figcaption { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: rgba(244,239,228,0.8); font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase; }

/* ── Image placeholder (awaiting real photo) ────── */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(-45deg, rgba(184,149,110,0.10) 0 14px, rgba(184,149,110,0.02) 14px 28px);
  border: 1px solid var(--hairline-gold);
}
.ph span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); padding: 0 24px; line-height: 1.7; }

/* ── Mobile nav ─────────────────────────────────── */
.menu-btn { display: none; background: none; border: 1px solid var(--hairline); padding: 10px 16px; font-family: 'EB Garamond', serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
@media (max-width: 1080px) {
  .topnav { display: none; }
  .menu-btn { display: block; }
}
.mobile-sheet { display: none; border-top: 1px solid var(--hairline); background: var(--parchment); }
.mobile-sheet.open { display: block; }
.mobile-sheet a { display: block; padding: 16px clamp(20px, 4vw, 56px); font-size: 15px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--hairline); }

/* ── Quote breakers (blur-to-sharp reveal) ──────── */
.breaker.with-quote { height: auto; min-height: clamp(440px, 66vh, 660px); display: flex; align-items: center; justify-content: center; padding: clamp(72px, 10vw, 130px) 0; }
.breaker.with-quote .veil { background: linear-gradient(to bottom, rgba(23,20,17,0.62), rgba(23,20,17,0.34) 50%, rgba(23,20,17,0.66)); }
.breaker-quote { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.breaker-quote blockquote { font-family: 'EB Garamond', serif; font-style: italic; font-weight: 500; font-size: clamp(27px, 4vw, 48px); line-height: 1.28; color: var(--parchment); text-shadow: 0 2px 28px rgba(23,20,17,0.65); text-wrap: balance; }
.breaker-quote .attr { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-bright); }
.breaker-quote .qcta { margin-top: 38px; }
.breaker-quote .reveal { opacity: 0; transform: translateY(18px); filter: blur(12px); transition: opacity 1.4s cubic-bezier(.2,.6,.2,1), transform 1.4s cubic-bezier(.2,.6,.2,1), filter 1.4s cubic-bezier(.2,.6,.2,1); }
.breaker-quote .reveal.in { opacity: 1; transform: none; filter: blur(0); }
