/* =============================================================
   The Wisdom Hub - Derrick Mercer Jr.
   Comp-matched build. Pinyon script wordmark, oxblood on charcoal
   and ivory, portrait hero. One accent, lifted for readable text.
   ============================================================= */

/* ---------- Self-hosted webfonts (latin subset) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("fonts/pinyon-script-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (comp values) ---------- */
:root {
  --ink: #16110e;           /* base + text on ivory */
  --ink2: #1e1713;          /* raised panels */
  --line: #342a22;          /* hairline on dark */
  --ivory: #f1e9dc;         /* primary text */
  --ivory2: #e6dac6;        /* secondary text */
  --muted: rgba(241, 233, 220, .58); /* faint text on dark */

  --ox: #7c2230;            /* fills, buttons, the struck mark */
  --ox-deep: #4e1018;       /* deep field, The Table */
  --ox-bright: #a02c3a;     /* bright logotype/accent (exempt) */
  --bronze: #9a7238;        /* wordmark: warm bronze, set into the metal */
  --bronze-lit: #c69a58;    /* welcome line: warmer, dimmer than ivory */

  --accent: #cb6b72;        /* lifted oxblood, content accent text on DARK (AA) */
  --accent2: #d98a8e;       /* accent text on the deep oxblood field (AA) */

  /* Ivory-field support */
  --ink-muted: #6a5f54;     /* secondary text on ivory */
  --ivory-line: #d8cdbc;    /* hairline on ivory */

  --focus: var(--accent);

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-script: "Pinyon Script", "Apple Chancery", cursive;

  --container: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.1rem);
  line-height: 1.64;
  font-weight: 400;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent2); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ox); color: var(--ivory); }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The struck line. One recurring device, used as the section mark. */
.mark {
  width: 3.25rem; height: 2px;
  background: var(--ox);
  border: 0;
  margin: 0 0 1.9rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory2);
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--ox); flex: none; }

.skip-link {
  position: absolute;
  left: 0.75rem; top: 0.5rem;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ox);
  color: var(--ivory);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.lede {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--ivory);
  max-width: 46ch;
}

/* ---------- Wordmark lockup (live Pinyon, no SVG) ---------- */
.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--ivory);
}
.lockup__script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ox-bright);
  line-height: 0.9;
  /* Pinyon has tall ascenders and a long D swash; give it room */
  padding: 0.08em 0.12em 0.04em;
}
.lockup__rule { background: var(--ox); border: 0; }
.lockup__sur {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
}

/* small: nav logo */
.lockup--sm .lockup__script { font-size: 2.1rem; }
.lockup--sm .lockup__rule { width: 1.9rem; height: 1.5px; margin: 0.1rem 0 0.28rem 0.12em; }
.lockup--sm .lockup__sur { font-size: 0.6rem; letter-spacing: 0.26em; padding-left: 0.16em; }

/* large: closing band */
.lockup--lg { align-items: center; }
.lockup--lg .lockup__script { font-size: clamp(3.4rem, 9vw, 5.5rem); }
.lockup--lg .lockup__rule { width: 4.5rem; height: 2px; margin: 0.2rem 0 0.7rem; }
.lockup--lg .lockup__sur { font-size: clamp(0.95rem, 2.4vw, 1.2rem); letter-spacing: 0.36em; padding-left: 0.36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 1rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ox); color: var(--ivory); border-color: var(--ox); }
.btn--primary:hover { background: #8e2838; border-color: #8e2838; color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ivory); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   LIGHT (ivory) FIELD - re-points the accent to deep oxblood
   ============================================================ */
.section--light {
  background: var(--ivory);
  color: var(--ink);
  --focus: var(--ox);
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--ink); }
.section--light h2 em { color: var(--ox); }
.section--light p { color: var(--ink-muted); }
.section--light .eyebrow { color: var(--ink-muted); }
.section--light a, .section--light .link-arrow { color: var(--ox); }
.section--light a:hover { color: #94283a; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(18, 14, 11, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.brand-link { display: inline-flex; line-height: 1; }
.brand-link:focus-visible { outline-offset: 5px; }

.nav-primary { display: none; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.nav-links a { color: var(--ivory); font-size: 0.95rem; letter-spacing: 0.01em; position: relative; padding: 0.25rem 0; }
.nav-links a:hover { color: var(--ivory); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--ox);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.cart-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; color: var(--ivory); border-radius: var(--radius);
}
.cart-link:hover { color: var(--accent); }

.nav-book { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ivory); cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(15, 12, 10, 0.98);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  color: var(--ivory); font-family: var(--font-head); font-size: 1.7rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 1.5rem; border-bottom: 0; }
.mobile-nav a.btn--primary, .mobile-nav a.btn--primary:hover { color: var(--ivory); }

/* ============================================================
   HERO - portrait, the door
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem 0 3.5rem;
  background: var(--ink);
  /* Vault geometry: opening radius + vertical centre (dropped below the nav) */
  --r: clamp(140px, 38vmin, 380px);
  --cy: 55%;
}

/* Portrait bleeds into --ink. Mobile: full-bleed behind, ink at the foot. */
.hero__portrait { position: absolute; inset: 0; z-index: -1; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  /* Mobile: he holds the top; ink takes over before the headline so text
     (and the lifted accent) always sits on near-solid base, AA against pixels. */
  background:
    linear-gradient(180deg, rgba(22,17,14,0.04) 0%, rgba(22,17,14,0.10) 24%, rgba(22,17,14,0.48) 39%, rgba(22,17,14,0.90) 46%, var(--ink) 52%);
}

.hero__content { position: relative; z-index: 1; max-width: 40rem; }
.hero__headline {
  font-size: clamp(2.4rem, 6.8vw, 4.6rem);
  line-height: 1.03;
  margin-bottom: 1.5rem;
}
.hero__clarity { color: var(--ivory2); max-width: 40ch; margin-bottom: 2.25rem; font-size: 1.075rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Entry splash: welcome + ENTER placed on the door face, clear of the wheel */
.splash {
  position: fixed; inset: 0; z-index: 50;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.splash.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }

/* Feathered top-left vignette so the wordmark seats on the light brushed steel.
   Sits under the header (z 100), so the mark rides on top at full oxblood + ivory. */
.splash::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: min(32rem, 64vw); height: 14rem;
  background: radial-gradient(ellipse at top left,
    rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 38%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0) 82%);
  pointer-events: none;
}

/* Welcome: a large, commanding title over the vault (matches the hero's scale). */
.splash__welcome {
  position: absolute; left: 50%; top: var(--cy);
  transform: translate(-50%, calc(-50% - (var(--r) * 0.72 + 0.4rem)));
  margin: 0; text-align: center;
  font-family: var(--font-head); font-weight: 500; color: var(--ivory);
  font-size: clamp(2rem, 5.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.016em;
  max-width: min(20ch, 90vw); text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.72), 0 1px 3px rgba(0, 0, 0, 0.7);
}
.splash__welcome em { font-style: italic; color: var(--ox-bright); }
/* ENTER: just below the wheel. Plain label at rest, oxblood fill on hover + focus. */
.hero__enter {
  position: absolute; left: 50%; top: var(--cy);
  transform: translate(-50%, calc(-50% + (var(--r) * 0.62 + 2.4rem)));
  z-index: 1; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  color: var(--ivory);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.9rem 2.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero__enter:hover, .hero__enter:focus-visible {
  background: var(--ox);
  border-color: var(--ox);
  color: #fff7ef;
  box-shadow: 0 10px 30px -12px rgba(124, 34, 48, 0.8);
  text-shadow: none;
}

/* ---- The vault: round bank door, travel-through reveal (CSS + SVG) ---- */
.door {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none; overflow: hidden;
}

/* Warm light pouring from the opening */
.door__bloom {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle calc(var(--r) * 1.05) at 50% var(--cy),
    rgba(255, 247, 233, 0.98) 0%,
    rgba(255, 214, 150, 0.72) 30%,
    rgba(233, 158, 84, 0.30) 58%,
    rgba(233, 158, 84, 0) 82%);
  opacity: 0; transform: scale(0.4); transform-origin: 50% var(--cy);
  will-change: opacity, transform;
  animation: vaultBloom 1.8s linear forwards;
}

/* Steel vault face filling the frame, with a circular opening masked out */
.door__face {
  position: absolute; inset: 0; z-index: 2;
  transform-origin: 50% var(--cy);
  background:
    /* jamb: near-white lit rim, near-black shadow ring, faint outer step */
    radial-gradient(circle at 50% var(--cy), transparent calc(var(--r) - 2px), rgba(246, 240, 228, 0.5) var(--r), transparent calc(var(--r) + 2px)),
    radial-gradient(circle at 50% var(--cy), transparent calc(var(--r) + 2px), rgba(0, 0, 0, 0.88) calc(var(--r) + 8px), transparent calc(var(--r) + 30px)),
    radial-gradient(circle at 50% var(--cy), transparent calc(var(--r) + 30px), rgba(232, 225, 210, 0.10) calc(var(--r) + 34px), transparent calc(var(--r) + 66px)),
    /* raking key light, warm near-white, top-left */
    radial-gradient(120% 115% at 20% 6%, rgba(248, 243, 232, 0.22), rgba(248, 243, 232, 0) 40%),
    /* directional fall to near-black bottom-right (wide range) */
    linear-gradient(133deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.6) 100%),
    /* edge vignette */
    radial-gradient(135% 130% at 50% 44%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.72) 100%),
    /* faint warm amber cast in the lit zone: burnished, not cold chrome */
    radial-gradient(130% 120% at 26% 12%, rgba(255, 176, 96, 0.08), rgba(255, 176, 96, 0) 58%),
    /* base warm-gray steel */
    linear-gradient(133deg, #5d594f 0%, #413d35 32%, #23211c 64%, #0c0b0a 100%);
  background-color: #0a0908;
  -webkit-mask: radial-gradient(circle at 50% var(--cy), transparent 0 calc(var(--r) - 1px), #000 var(--r));
          mask: radial-gradient(circle at 50% var(--cy), transparent 0 calc(var(--r) - 1px), #000 var(--r));
  will-change: transform, opacity;
  animation: vaultPush 0.8s 1.0s cubic-bezier(0.5, 0, 0.85, 0.55) forwards;
}
/* horizontal brushed grain baked over the steel face */
.door__face::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.013 0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 360px 360px;
  mix-blend-mode: overlay; opacity: 0.5;
}

/* Warm glow ring at the door seam */
.door__seam {
  position: absolute; left: 50%; top: var(--cy); z-index: 3;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin-left: calc(var(--r) * -1); margin-top: calc(var(--r) * -1);
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 183, 0.55);
  box-shadow: 0 0 26px 5px rgba(255, 201, 132, 0.5), inset 0 0 16px rgba(255, 222, 175, 0.35);
  transform-origin: center;
  animation: vaultSeam 1.25s ease-out forwards;
}

/* The round door, sitting over the opening. Irises open, then we push through. */
.door__disc {
  position: absolute; left: 50%; top: var(--cy); z-index: 4;
  /* slightly larger than the opening so the door seats over the jamb lip (no edge bleed) */
  width: calc(var(--r) * 2 + 24px); height: calc(var(--r) * 2 + 24px);
  margin-left: calc((var(--r) + 12px) * -1); margin-top: calc((var(--r) + 12px) * -1);
  transform-origin: center;
  will-change: transform, opacity;
  animation: vaultDisc 0.85s 0.4s cubic-bezier(0.6, 0, 0.25, 1) forwards;
}
.door__disc svg { display: block; }
.vault-handle {
  transform-box: fill-box; transform-origin: center;
  animation: vaultHandle 0.6s 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Interior counter-zoom: the hero arrives at full as we walk in */
.hero__portrait img { animation: vaultArrive 1.8s ease-out forwards; }

@keyframes vaultHandle { to { transform: rotate(-44deg); } }
@keyframes vaultDisc {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(2.35); opacity: 0; }
}
@keyframes vaultSeam {
  0%   { opacity: 0.5;  transform: scale(0.985); }
  15%  { opacity: 1;    transform: scale(1.02); }
  55%  { opacity: 0.85; transform: scale(1.18); }
  100% { opacity: 0;    transform: scale(1.7); }
}
@keyframes vaultPush {
  0%   { transform: scale(1);   opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes vaultBloom {
  0%   { opacity: 0;    transform: scale(0.4); }
  22%  { opacity: 0.55; transform: scale(0.66); }
  60%  { opacity: 0.96; transform: scale(1.16); }
  75%  { opacity: 1;    transform: scale(1.42); }
  100% { opacity: 0;    transform: scale(1.95); }
}
@keyframes vaultArrive {
  0%   { transform: scale(1.08); }
  52%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.door.is-cleared .door__bloom,
.door.is-cleared .door__seam,
.door.is-cleared .door__disc,
.door.is-cleared .door__face { animation: none; opacity: 0; }
.vault-done .hero__portrait img { animation: none; transform: none; }

/* Entry gate: with JS the vault holds static until ENTER adds .vault-opening */
.js .door__bloom, .js .door__face, .js .door__seam,
.js .door__disc, .js .vault-handle, .js .hero__portrait img { animation-play-state: paused; }
.vault-opening .door__bloom, .vault-opening .door__face, .vault-opening .door__seam,
.vault-opening .door__disc, .vault-opening .vault-handle, .vault-opening .hero__portrait img { animation-play-state: running; }
/* No-JS: skip the splash entirely so content is reachable */
html:not(.js) .door, html:not(.js) .splash { display: none; }
/* Lock page scroll while the splash is up, so the vault owns the full viewport. */
html.vault-lock, html.vault-lock body { overflow: hidden; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--section-y); }

/* Tonal rhythm: standard content sections separate by alternating the two
   charcoals. No borders, no shadows, no boxes on full-width sections, ever.
   (Field-owning sections keep their field: hero portrait, About ivory, The
   Table oxblood, Booking portrait.) The body base is --ink; this lifts a
   section to the lighter charcoal. AA holds on both. */
.tone-ink2 { background-color: var(--ink2); }

/* Editorial hairline: a rare punctuation mark at a key transition only. A thin
   full-width line (ivory ~12%) with one short oxblood mark near the left edge.
   Reserved for two or three seams, never every section. Renders on charcoal. */
.seam { position: relative; }
.seam::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(241, 233, 220, 0.12); z-index: 3;
}
.seam::after {
  content: ""; position: absolute; top: 0; left: var(--gutter);
  width: 30px; height: 2px; background: var(--ox); z-index: 3;
}
.section__head { max-width: 52rem; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section__head h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: 1.4rem; }
.section__head p { color: var(--ivory2); max-width: 54ch; font-size: 1.075rem; }
.section--light .section__head p { color: var(--ink-muted); }

/* Section 1 - The Work Beneath the Work. Three lifted pillars. */
.interior-intro { max-width: 56rem; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.interior-lede {
  color: var(--ivory); max-width: 54ch; margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); line-height: 1.46;
}

.pillars { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.25rem); }

.pillar {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.85rem, 3.4vw, 2.75rem);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.78), 0 2px 6px -3px rgba(0, 0, 0, 0.6);
  transition: transform 0.24s cubic-bezier(0.33, 0, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.33, 0, 0.2, 1);
}
.pillar:hover, .pillar:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 36px 62px -28px rgba(0, 0, 0, 0.86), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
}

.pillar__title {
  font-family: var(--font-head); font-weight: 500; color: var(--ivory);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.16;
  margin: 0 0 0.9rem;
  transition: color 0.24s var(--ease);
}
.pillar:hover .pillar__title, .pillar:focus-visible .pillar__title { color: var(--accent); }
.pillar__body { color: var(--ivory2); font-size: 1rem; line-height: 1.6; margin: 0; }

/* Section 2 - About teaser (ivory) */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 6vw, 4rem); align-items: center; }
.about__portrait {
  aspect-ratio: 4 / 5; max-width: 27rem; width: 100%;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--ivory-line);
  box-shadow: 0 26px 55px -32px rgba(30, 20, 12, 0.5);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.about__body .eyebrow { margin-bottom: 1.4rem; }
.about__body p { margin: 0 0 1.1rem; }
.about__body .link-arrow { margin-top: 0.7rem; }

/* About page (about.html) */
.about-hero { padding-top: clamp(6.5rem, 11vw, 9.5rem); }
.about-hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 6vw, 4rem); align-items: center; }
.about-hero__portrait {
  aspect-ratio: 4 / 5; max-width: 25rem; width: 100%;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 62px -34px rgba(0, 0, 0, 0.8);
}
.about-hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.about-hero__body h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.06; margin: 0.9rem 0 1.6rem; }
.about-hero__body p { color: var(--ivory2); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); line-height: 1.72; margin: 0 0 1.2rem; }
.about-hero__body p:last-child { margin-bottom: 0; }
.about-hero__body em { font-style: italic; color: var(--accent); }

.about-block { padding-block: clamp(2.5rem, 5vw, 4rem); }
.container.about-measure { max-width: 44rem; }
.about-block h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; margin: 0 0 1.6rem; }
.about-block p { color: var(--ivory2); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); line-height: 1.78; margin: 0 0 1.3rem; }
.about-block p:last-child { margin-bottom: 0; }

.about-cta { text-align: center; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.about-cta .hero__actions { justify-content: center; }

/* Portrait placeholder (About) */
.portrait {
  position: relative; aspect-ratio: 4 / 5;
  border: 1px solid var(--ivory-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(124,34,48,0.08), rgba(28,22,17,0.04)), #e9e1d3;
  overflow: hidden; display: flex; align-items: flex-end;
}
.portrait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 25%, rgba(124,34,48,0.10), transparent 70%); }
.portrait__note {
  position: relative; margin: 1.25rem; padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.66); border: 1px dashed var(--ivory-line);
  border-radius: var(--radius); font-size: 0.78rem; line-height: 1.5; color: var(--ink-muted);
}
.portrait__note strong { color: var(--ox); font-weight: 600; display: block; margin-bottom: 0.25rem; letter-spacing: 0.04em; }

/* Section 3 - The Table. Deep oxblood field, the burgundy seat. */
.table-section {
  position: relative;
  background:
    radial-gradient(120% 110% at 82% 0%, rgba(160, 44, 58, 0.22), transparent 55%),
    linear-gradient(180deg, var(--ox), var(--ox-deep));
  overflow: hidden;
  padding-block: clamp(5.5rem, 13vw, 11rem);
  --focus: var(--accent2);
}
.table-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.table-head .eyebrow { color: var(--ivory); justify-content: center; }
.table-head .eyebrow::before { background: var(--accent2); }
.table-head h2 { font-size: clamp(2.9rem, 9.5vw, 5.6rem); line-height: 0.98; color: var(--ivory); }
.table-head h2 .marked { display: block; font-style: italic; color: var(--accent2); font-size: 0.56em; margin-top: 0.5rem; }

.table-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: start; max-width: 62rem; margin-inline: auto; }
.table-portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 32rem; width: 100%; margin-inline: auto;
  border: 1px solid rgba(241, 233, 220, 0.18); border-radius: var(--radius);
  overflow: hidden; background: var(--ox-deep);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  transition: transform 0.32s cubic-bezier(0.33, 0, 0.2, 1),
              box-shadow 0.32s cubic-bezier(0.33, 0, 0.2, 1);
}
.table-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  transition: transform 0.5s cubic-bezier(0.33, 0, 0.2, 1);
}
/* Quietest version of the interior-card motion: a photograph, not a button. */
.table-portrait:hover { transform: translateY(-4px); box-shadow: 0 42px 72px -30px rgba(0, 0, 0, 0.82); }
.table-portrait:hover img { transform: scale(1.03); }
.table-copy .lede { color: var(--ivory); opacity: 0.94; margin: 0 0 0.85rem; }
.table-copy .lede:last-of-type { margin-bottom: 0; }
.table-copy .hero__actions { gap: 1rem; }
/* buttons read against the deep field */
.table-section .btn--primary { background: var(--ivory); color: var(--ox-deep); border-color: var(--ivory); }
.table-section .btn--primary:hover { background: #fff; border-color: #fff; color: var(--ox-deep); }
.table-section .btn--ghost { border-color: rgba(241, 233, 220, 0.4); }
.table-section .btn--ghost:hover { border-color: var(--ivory); }
/* Four pillars: the curriculum at a glance. Stacked on mobile, 2x2 on wider.
   Tight rhythm around the block, generous even gaps between the cards. */
.table-pillars {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.6rem);
  margin: 1.5rem 0 2rem;
}
.tpillar {
  padding: clamp(1.25rem, 2.4vw, 1.6rem) clamp(1.35rem, 2.6vw, 1.75rem);
  background: rgba(15, 6, 9, 0.24);
  border: 1px solid rgba(241, 233, 220, 0.16);
  border-left: 2px solid var(--accent2);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.7);
  transition: transform 0.24s cubic-bezier(0.33, 0, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.33, 0, 0.2, 1);
}
/* Same restrained lift as the interior cards: weighted, no pop, no color flash. */
.tpillar:hover, .tpillar:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 30px 54px -26px rgba(0, 0, 0, 0.85);
}
.tpillar__title {
  font-family: var(--font-head); font-weight: 500; color: var(--ivory);
  font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.14; margin: 0 0 0.4rem;
  transition: color 0.24s var(--ease);
}
.tpillar:hover .tpillar__title, .tpillar:focus-visible .tpillar__title { color: var(--accent2); }
.tpillar__body { color: var(--ivory2); font-size: 0.98rem; line-height: 1.55; margin: 0; }

/* Waitlist: anticipation, then a calm capture. */
.waitlist__status {
  color: var(--ivory2); font-size: 0.95rem; line-height: 1.6;
  max-width: 46ch; margin: 0 0 1.4rem;
}
.waitlist__actions { gap: 1rem; margin: 0; }

.waitlist__form { margin-top: 1.6rem; max-width: 30rem; }
.waitlist__fields { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory2); font-weight: 600;
}
.field__opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--muted); }
.field__req { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--accent2); }
.waitlist__form input[type="text"],
.waitlist__form input[type="email"] {
  font: inherit; color: var(--ivory);
  background: rgba(15, 6, 9, 0.35);
  border: 1px solid rgba(241, 233, 220, 0.28);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.waitlist__form input::placeholder { color: var(--muted); }
.waitlist__form input:hover { border-color: rgba(241, 233, 220, 0.45); }
.waitlist__form input:focus-visible {
  outline: 2px solid var(--ivory); outline-offset: 2px;
  border-color: var(--ivory); background: rgba(15, 6, 9, 0.5);
}
.waitlist__botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__submit { justify-self: start; margin-top: 0.25rem; }
.waitlist__submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.waitlist__micro { color: var(--muted); font-size: 0.82rem; line-height: 1.55; margin: 0.15rem 0 0; }
.waitlist__error {
  color: #ffd7d1; font-size: 0.85rem; line-height: 1.5; margin: 0.75rem 0 0;
}
.waitlist__done {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.3; color: var(--ivory); margin: 1.6rem 0 0; max-width: 32ch;
}

/* Section 4 - Resources (dark). The gallery window into the store: the same 3D
   book card, spacing, and hover as the store's Featured Books, ported verbatim so
   the window and the store read as one system. */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem); }
.pcard { display: flex; flex-direction: column; }
.pcard__stage { display: flex; align-items: flex-end; justify-content: center; min-height: 16rem; padding: 1.5rem 0 0.5rem; }
.pcard__meta { margin-top: 1.25rem; }
.pcard__type { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.pcard__title { font-size: 1.2rem; margin: 0.45rem 0 0.2rem; }
.pcard__title a { color: var(--ivory); }
.pcard__title a:hover { color: var(--accent); }
.pcard__sub { font-size: 0.85rem; color: var(--muted); }

/* CSS-only 3D book: spine, cream page edge, slight angle, floor shadow, weighted
   rotate toward the viewer on hover/focus. Identical to the store. */
.book3d {
  --bw: 12rem; --bh: 18rem; --bd: 2.1rem;
  display: inline-block; width: var(--bw); height: var(--bh);
  perspective: 1600px; position: relative;
}
.book3d__link { display: inline-block; border-radius: 4px; }
.book3d__inner {
  display: block; position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(3deg);
  transition: transform 0.55s cubic-bezier(0.33, 0, 0.2, 1);
  will-change: transform;
}
.book3d:hover .book3d__inner,
.book3d__link:focus-visible .book3d__inner { transform: rotateY(-9deg) rotateX(2deg); }
.book3d__face {
  position: absolute; inset: 0;
  border-radius: 2px 4px 4px 2px; overflow: hidden;
  background: linear-gradient(150deg, var(--ox) 0%, var(--ox-deep) 78%);
  box-shadow: inset 0 0 0 1px rgba(241, 233, 220, 0.08);
  transform: translateZ(calc(var(--bd) / 2)); backface-visibility: hidden;
}
.book3d__face img { width: 100%; height: 100%; object-fit: cover; }
.book3d__spine {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--bd);
  transform-origin: left center; transform: rotateY(-90deg) translateX(calc(var(--bd) / -2));
  background: linear-gradient(90deg, #3a0c12, var(--ox-deep) 60%, #2c0a0f);
  border-radius: 2px 0 0 2px;
}
.book3d__pages {
  position: absolute; top: 1.5%; right: 0; height: 97%; width: var(--bd);
  transform-origin: right center; transform: rotateY(90deg) translateX(calc(var(--bd) / 2));
  background: repeating-linear-gradient(90deg, #e9e0cf, #f3ece0 1px, #ded3bf 2px, #efe7d9 3px);
  border-radius: 0 2px 2px 0;
}
.book3d::after {
  content: ""; position: absolute; left: 50%; bottom: -1.4rem; width: 88%; height: 1.5rem;
  transform: translateX(-52%) rotateX(72deg);
  background: radial-gradient(closest-side, rgba(0,0,0,0.6), transparent 78%);
  filter: blur(3px); z-index: -1;
  transition: opacity 0.55s cubic-bezier(0.33,0,0.2,1), transform 0.55s cubic-bezier(0.33,0,0.2,1);
}
.book3d:hover::after,
.book3d__link:focus-visible .book3d::after { transform: translateX(-50%) rotateX(72deg) scale(1.04); opacity: 0.9; }

/* Section 6 - Booking. Primary conversion. Portrait bleeds into --ink on one
   side, a warm inquiry form on the other. Portrait first on mobile. */
.booking-section { position: relative; background: var(--ink); overflow: hidden; }
.booking-portrait { position: relative; min-height: 56vh; background: var(--ink); }
.booking-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
/* bleed into --ink: fade at the foot on mobile */
.booking-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,17,14,0) 42%, rgba(22,17,14,0.55) 70%, var(--ink) 94%);
}
.booking-panel { padding: clamp(2.75rem, 8vw, 4rem) var(--gutter) clamp(3.5rem, 10vw, 6rem); }
.booking-intro { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 2.75rem); }
.booking-intro h2 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.04; margin: 0.4rem 0 1.1rem; }
.booking-sub { color: var(--ivory2); max-width: 48ch; }

/* ---- Inquiry form ---- */
.bform { max-width: 44rem; --focus: var(--accent); }
.bform__reqnote { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.5rem; }
.bform__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory2);
}
.field__req { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--accent2); }
.field__opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--muted); }
.field__hint { font-size: 0.78rem; color: var(--muted); }

.bform input, .bform select, .bform textarea {
  width: 100%; font: inherit; color: var(--ivory);
  background: var(--ink2);
  border: 1px solid rgba(241, 233, 220, 0.3);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.bform textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.bform input::placeholder, .bform textarea::placeholder { color: var(--muted); }
.bform input:hover, .bform select:hover, .bform textarea:hover { border-color: rgba(241, 233, 220, 0.5); }
/* Visible oxblood focus on every field, mouse or keyboard. */
.bform input:focus, .bform select:focus, .bform textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(203, 107, 114, 0.45);
  background: #221a15;
}
/* custom select arrow so it stays legible on the dark field */
.field__select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e6dac6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
.field__select:invalid { color: var(--muted); }
.field__select option { color: var(--ink); }

/* Error: text + icon indicator, not color alone. AA-clear rose on the base. */
.field__error { display: none; align-items: center; gap: 0.4rem; margin: 0.1rem 0 0; color: #f3b0aa; font-size: 0.82rem; line-height: 1.4; }
.field__error.is-shown { display: flex; }
.field__error svg { flex: none; color: #f3b0aa; }
.bform input[aria-invalid="true"], .bform select[aria-invalid="true"], .bform textarea[aria-invalid="true"] {
  border-color: #e6857d; box-shadow: 0 0 0 2px rgba(230, 133, 125, 0.28);
}
.bform__botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bform__submit { margin-top: 1.75rem; }
/* Submission-level error (network/Web3Forms failure); same warm-red as field errors. */
.bform__senderror { margin: 1rem 0 0; color: #f3b0aa; font-size: 0.9rem; line-height: 1.5; max-width: 44ch; }

/* Calm confirmation */
.bform__done { max-width: 44rem; padding: clamp(1.5rem, 4vw, 2.25rem) 0; }
.bform__done-title { font-family: var(--font-head); font-style: italic; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.25; color: var(--ivory); }
.bform__done-sub { margin-top: 0.75rem; color: var(--ivory2); }

/* Testimonial - one voice as an editorial pull quote on the dark base.
   Given room, so a single voice reads as confidence. Built to grow: add more
   .quote figures and it becomes a restrained set (auto via :has()), never a
   carousel, never card chrome. */
.testimonials { text-align: center; padding-block: clamp(6rem, 14vw, 11rem); }
.quote-set { display: grid; gap: clamp(3rem, 7vw, 5rem); justify-items: center; }

.quote { max-width: 46rem; margin: 0; }
/* the single, quiet oxblood accent */
.quote__mark {
  display: block; font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 6rem); line-height: 0.5;
  color: var(--ox-bright); margin-bottom: 0.6rem;
}
.quote__text {
  margin: 0; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.65rem, 1rem + 2.6vw, 2.6rem); line-height: 1.32;
  letter-spacing: -0.01em; color: var(--ivory); text-wrap: balance;
}
.quote__by { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }
.quote__name {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory2);
}
/* optional descriptor: renders only when supplied, section looks complete without it */
.quote__role {
  display: block; margin-top: 0.45rem; font-family: var(--font-body);
  font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted);
}

/* Two or three voices: a restrained set, still editorial, smaller quotes. */
@media (min-width: 52rem) {
  .quote-set:has(.quote + .quote) {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
  }
  .quote-set:has(.quote + .quote) .quote__text { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; }
  .quote-set:has(.quote + .quote) .quote__mark { font-size: clamp(2.5rem, 4vw, 3.5rem); }
}

/* Section 7 - Final invitation */
.invitation {
  text-align: center;
  background: radial-gradient(90% 80% at 50% 0%, rgba(124, 34, 48, 0.28), transparent 55%), var(--ink);
}
.invitation h2 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 1.4rem; }
.invitation p { color: var(--ivory2); margin-bottom: 2.75rem; }
.invitation .hero__actions { justify-content: center; }

/* ============================================================
   FOOTER + closing band
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }

.footer-cta { text-align: center; padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.footer-cta .lockup { margin: 0 auto 1.75rem; }
.footer-cta p {
  font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.2;
  color: var(--ivory); max-width: 24ch; margin: 0 auto 2.25rem;
}

.footer-cols { padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory2); margin: 0 0 1rem; font-weight: 600; }
.footer-grid .lockup { margin-bottom: 1rem; }
.footer-grid a { color: var(--ivory2); font-size: 0.92rem; display: block; padding: 0.25rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-tagline { max-width: 34ch; font-size: 0.9rem; color: var(--muted); }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.8rem;
}
/* Studio credit: subtle, inherits the muted footer color, mark lifts on hover/focus. */
.merx-credit { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.merx-mark {
  display: inline-block; width: 1.35rem; height: 1.35rem; color: inherit;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.merx-credit:hover .merx-mark,
.merx-link:hover .merx-mark,
.merx-link:focus-visible .merx-mark { transform: translateY(-3px); color: var(--ivory); }
.merx-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.merx-link:hover, .merx-link:focus-visible { color: inherit; }

/* ============================================================
   REVEAL ON SCROLL (gentle, never gates content)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Book grid breakpoints, identical to the store's Featured Books. */
@media (min-width: 40rem) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .book-grid { grid-template-columns: repeat(4, 1fr); } }

/* booking form: two-column fields once there is room */
@media (min-width: 34rem) { .bform__grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 48rem) {
  .about { grid-template-columns: 0.9fr 1.1fr; }
  .about-hero__grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .table-grid { grid-template-columns: 1fr 1.05fr; align-items: stretch; }
  /* Portrait anchors the left column and runs the full height of the copy,
     so the two sides balance in mass and no burgundy gap opens beside it. */
  .table-portrait { aspect-ratio: auto; max-width: none; height: 100%; min-height: 30rem; margin-inline: 0; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .table-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .nav-primary { display: flex; align-items: center; gap: 2rem; }
  .nav-book { display: inline-flex; }
  .menu-toggle { display: none; }

  /* Booking split: portrait bleeds full-height, fading into --ink toward the form. */
  .booking-section { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
  .booking-portrait { min-height: 100%; }
  .booking-portrait img { object-position: 50% 14%; }
  .booking-portrait::after {
    background: linear-gradient(90deg, rgba(22,17,14,0) 44%, rgba(22,17,14,0.5) 78%, var(--ink) 99%);
  }
  .booking-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 7vw, 7rem) clamp(2.5rem, 5vw, 5rem); }

  .hero { align-items: center; }
  /* portrait to the right, bleeding left into ink */
  .hero__portrait { left: auto; right: 0; width: 56%; }
  .hero__portrait img { object-position: 50% 12%; }
  .hero__portrait::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 6%, rgba(22,17,14,0.78) 30%, rgba(22,17,14,0.30) 52%, transparent 78%),
      linear-gradient(0deg, rgba(22,17,14,0.35), transparent 35%);
  }
}

/* ============================================================
   REDUCED MOTION - land resolved, no animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  /* The static vault splash is shown to everyone (no motion). ENTER cuts to the hero instantly. */
  .js .reveal { opacity: 1; transform: none; }
  /* Pillars: no lift movement, but the shadow may still deepen on hover/focus. */
  .pillar:hover, .pillar:focus-visible { transform: none; }
  /* The Table cards + portrait: drop the movement, keep the section usable.
     Cards may still deepen their shadow with no motion. */
  .tpillar:hover, .tpillar:focus-visible { transform: none; }
  .table-portrait:hover { transform: none; }
  .table-portrait:hover img { transform: none; }
  /* 3D books (Resources): rest at a gentle angle, no rotate on hover. */
  .book3d__inner { transform: rotateY(-16deg) rotateX(2deg); }
  .book3d:hover .book3d__inner, .book3d__link:focus-visible .book3d__inner { transform: rotateY(-12deg) rotateX(2deg); }
  /* Merx mark: brighten only, no lift. */
  .merx-credit:hover .merx-mark, .merx-link:hover .merx-mark, .merx-link:focus-visible .merx-mark { transform: none; }
}
