/* ==========================================================================
   CRYSTAL GELLATA — "Ink & Light"
   Design system for the author site. Vanilla CSS, no framework.

   CONTENTS
   01. Tokens
   02. Reset & base
   03. Typography
   04. Layout primitives
   05. Decorative atoms (rules, grain, facets)
   06. Buttons & links
   07. Top bar
   08. Header / navigation
   09. Hero
   10. 3D book
   11. Stat strip & counters
   12. Cards (tilt / glass)
   13. Timeline
   14. Quote & feature bands
   15. Gallery & lightbox
   16. Reviews
   17. Forms
   18. CTA bands
   19. Footer
   20. Sticky mobile bar
   21. Demo popup
   22. Prose & misc pages
   23. Motion utilities
   24. Responsive
   25. Reduced motion & print
   ========================================================================== */

/* 01. TOKENS ============================================================== */
:root {
  /* Ink family — deep warm blacks, the "before" of the story */
  --ink:        #14100D;
  --ink-2:      #1D1713;
  --ink-3:      #2A211A;
  --ink-4:      #3A2E24;

  /* Bone family — warm parchment, the "after" */
  --bone:       #F7F2E9;
  --bone-2:     #EFE6D6;
  --bone-3:     #E2D6C0;

  /* Gold — the light breaking through */
  --gold:       #C2A15C;
  --gold-lite:  #E6D2A8;
  --gold-deep:  #8E7038;
  --gold-ink:   #7C5E2A;   /* AA-safe gold for text on bone */

  /* Support */
  --crystal:    #8AA0B4;
  --rose:       #A8574F;
  --muted:      #6B6157;   /* secondary text on light — 5.2:1 on --bone */
  --muted-dk:   #A99B89;   /* secondary text on dark  — 6.8:1 on --ink  */

  /* Roles */
  --surface:      var(--bone);
  --surface-alt:  var(--bone-2);
  --text:         var(--ink);
  --hairline:     rgba(20, 16, 13, .14);
  --hairline-dk:  rgba(230, 210, 168, .18);

  /* Glass */
  --glass:        rgba(247, 242, 233, .72);
  --glass-dk:     rgba(29, 23, 19, .58);
  --glass-blur:   blur(18px) saturate(160%);

  /* Gradients */
  --gradient-lux: linear-gradient(100deg, #8E7038 0%, #E6D2A8 28%, #C2A15C 52%, #F3E6C8 74%, #A5843F 100%);
  --gradient-ink: linear-gradient(165deg, #1D1713 0%, #14100D 60%, #0E0B09 100%);

  /* Layered shadows — three planes, never a single blur */
  --sh-1: 0 1px 2px rgba(20,16,13,.05), 0 2px 6px rgba(20,16,13,.04);
  --sh-2: 0 1px 2px rgba(20,16,13,.05), 0 8px 22px rgba(20,16,13,.07), 0 18px 44px rgba(20,16,13,.05);
  --sh-3: 0 2px 4px rgba(20,16,13,.06), 0 14px 34px rgba(20,16,13,.10), 0 34px 76px rgba(20,16,13,.10);
  --sh-gold: 0 10px 30px rgba(142,112,56,.18), 0 26px 60px rgba(142,112,56,.12);

  /* Type */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --shell:    1280px;
  --shell-nar: 900px;
  --sec-pad:  clamp(4.5rem, 11vh, 9rem);
  --radius:   4px;
  --radius-lg: 6px;

  /* Motion */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-pop:   cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);
  --dur:        .55s;

  /* Z-index scale */
  --z-grain: 2;
  --z-progress: 45;
  --z-header: 50;
  --z-mobilebar: 60;
  --z-menu: 70;
  --z-lightbox: 80;
  --z-modal: 90;
}

/* 02. RESET & BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  /* clip, not hidden: contains the decorative overhang without turning the
     root into a scroll container (which would break position: sticky). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

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

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold-lite); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .8rem 1.4rem;
  background: var(--ink);
  color: var(--bone);
  font-size: .9rem;
  letter-spacing: .06em;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; color: var(--bone); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 03. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 1.3rem + 5.6vw, 5.6rem); }
h2 { font-size: clamp(2.05rem, 1.25rem + 3.1vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1.05vw, 1.85rem); line-height: 1.18; }
h4 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);  line-height: 1.28; }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

em, .italic { font-style: italic; }

.display-italic {
  font-style: italic;
  color: var(--gold-ink);
}
.on-dark .display-italic { color: var(--gold-lite); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-body);
  font-size: .705rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gradient-lux);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .42vw, 1.32rem);
  line-height: 1.66;
  color: var(--muted);
  max-width: 60ch;
}
.on-dark .lede { color: var(--muted-dk); }

.text-muted { color: var(--muted); }
.on-dark .text-muted { color: var(--muted-dk); }

.measure { max-width: 66ch; }
.measure-tight { max-width: 52ch; }

/* Drop cap for the opening paragraph of a story block */
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 4.1em;
  line-height: .8;
  padding: .07em .12em 0 0;
  color: var(--gold-ink);
}

/* 04. LAYOUT PRIMITIVES =================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: var(--shell-nar); }

.section { padding-block: var(--sec-pad); position: relative; }
.section-tight { padding-block: clamp(3rem, 7vh, 5rem); }

.on-dark {
  background: var(--gradient-ink);
  color: var(--bone);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--bone); }
.on-dark a { color: var(--gold-lite); }
.on-dark a:hover { color: #fff; }

.bg-alt { background: var(--surface-alt); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }

.stack-sm > * + * { margin-top: .85rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.6rem; }

.section-head { max-width: 58ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--gradient-lux);
}

.cluster { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* 05. DECORATIVE ATOMS ==================================================== */
/* Paper grain — one fixed overlay, pointer-events none */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Gold rule with a centred facet */
.rule {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-block: 2rem;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--gold) 55%, transparent);
  opacity: .55;
}
.rule i {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--gradient-lux);
  flex: none;
}

/* Oversized ghost numeral behind content */
.ghost-num {
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: .74;
  color: var(--ink);
  opacity: .045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.on-dark .ghost-num { color: var(--gold-lite); opacity: .05; }

/* Floating crystal facets — drifting decoration */
.facet-float {
  position: absolute;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
  will-change: transform;
}

/* Section divider — a soft curve mask */
.divider-curve {
  position: absolute;
  left: 0; right: 0;
  height: clamp(40px, 6vw, 90px);
  pointer-events: none;
  z-index: 1;
}
.divider-curve.top { top: -1px; }
.divider-curve.bottom { bottom: -1px; transform: scaleY(-1); }
.divider-curve svg { width: 100%; height: 100%; display: block; }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient-lux);
  z-index: var(--z-progress);
  will-change: transform;
}

/* Image frame with a layered offset plate */
.framed {
  position: relative;
  isolation: isolate;
}
.framed > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--sh-3);
  position: relative;
  z-index: 2;
}
.framed::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  opacity: .5;
  border-radius: var(--radius);
  z-index: 1;
}
.framed.flip::after { inset: 18px 18px -18px -18px; }

/* Duotone treatment used on archival shots */
.duotone {
  filter: sepia(.34) contrast(1.06) saturate(.78) brightness(.97);
  transition: filter .7s var(--ease-out);
}
.duotone:hover { filter: sepia(.1) contrast(1.03) saturate(1) brightness(1); }

/* 06. BUTTONS & LINKS ===================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.05rem 2.1rem;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .795rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-2);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .3s var(--ease-soft);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-lux);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover, .btn:focus-visible {
  color: var(--ink);
  box-shadow: var(--sh-gold);
  transform: translateY(-2px);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-gold { --btn-bg: transparent; --btn-fg: var(--ink); background: var(--gradient-lux); }
.btn-gold::before { background: var(--ink); }
.btn-gold:hover, .btn-gold:focus-visible { color: var(--gold-lite); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.on-dark .btn-ghost { --btn-fg: var(--bone); border-color: var(--hairline-dk); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }

.btn-sm { padding: .78rem 1.5rem; min-height: 42px; font-size: .72rem; }

/* Ripple injected by JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(247, 242, 233, .42);
  pointer-events: none;
  animation: ripple .62s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Understated arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .775rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-ink);
  padding-block: .35rem;
}
.on-dark .link-arrow { color: var(--gold-lite); }
.link-arrow span {
  position: relative;
  padding-bottom: 3px;
  background-image: var(--gradient-lux);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .45s var(--ease-out);
}
.link-arrow:hover span, .link-arrow:focus-visible span { background-size: 100% 1px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* 07. TOP BAR ============================================================= */
.topbar {
  position: relative;
  z-index: calc(var(--z-header) + 1);
  background: var(--ink);
  color: var(--muted-dk);
  font-size: .78rem;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(230, 210, 168, .1);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding-block: .35rem;
}
.topbar-contact { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted-dk);
  text-decoration: none;
  transition: color .3s var(--ease-soft);
}
.topbar a:hover { color: var(--gold-lite); }
.topbar svg { width: 14px; height: 14px; flex: none; opacity: .8; }

.topbar-ticker {
  overflow: hidden;
  flex: 1;
  text-align: center;
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.topbar-ticker span { display: inline-block; animation: tickerIn .6s var(--ease-out); }
@keyframes tickerIn { from { opacity: 0; transform: translateY(8px); } }

.social-row { display: flex; align-items: center; gap: .35rem; }
.social-row a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.social-row a:hover { border-color: rgba(230,210,168,.3); transform: translateY(-2px); }
.social-row svg { width: 15px; height: 15px; opacity: 1; }

/* 08. HEADER / NAVIGATION ================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .45s var(--ease-out), background .45s var(--ease-out);
}
.header.is-stuck {
  background: rgba(247, 242, 233, .88);
  box-shadow: 0 1px 0 var(--hairline), 0 14px 40px rgba(20,16,13,.09);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
  transition: min-height .45s var(--ease-out);
}
.header.is-stuck .header-inner { min-height: 70px; }

/* Logo slot — image asset only, never a hardcoded name string */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  transition: opacity .3s var(--ease-soft);
}
.logo:hover { opacity: .78; }
.logo img {
  width: auto;
  height: 54px;
  transition: height .45s var(--ease-out);
}
.header.is-stuck .logo img { height: 44px; }
.footer .logo img { height: 58px; }

.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.5rem); }
.nav-list { display: flex; align-items: center; gap: clamp(.25rem, 1vw, 1.1rem); }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .55rem;
  font-size: .775rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease-soft);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .55rem; right: .55rem;
  bottom: .35rem;
  height: 1px;
  background: var(--gradient-lux);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold-ink); }
.nav-link .chev { width: 11px; height: 11px; transition: transform .35s var(--ease-out); }

/* Mega dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(640px, 82vw);
  transform: translate(-50%, 14px);
  padding: 1.6rem;
  background: rgba(247, 242, 233, .93);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .38s var(--ease-out), transform .38s var(--ease-out), visibility .38s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mega-item {
  display: flex;
  gap: .95rem;
  padding: .8rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: background .3s var(--ease-soft), transform .3s var(--ease-out);
}
.mega-item:hover { background: rgba(226, 214, 192, .55); transform: translateX(3px); }
.mega-item img {
  width: 62px; height: 78px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
  box-shadow: var(--sh-1);
}
.mega-item strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .2rem;
}
.mega-item span { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* Hamburger */
.burger {
  display: none;
  width: 46px; height: 46px;
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background .2s var(--ease-soft);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .42s var(--ease-out), top .28s var(--ease-out);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--gradient-ink);
  padding: 6rem var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .close {
  position: absolute;
  top: 1.4rem; right: var(--gutter);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--bone);
}
.mobile-menu .close svg { width: 22px; height: 22px; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  padding: .85rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 210, 168, .12);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.mobile-menu.is-open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 62ms + 110ms);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--gold-lite); }
.mobile-foot { margin-top: 2.5rem; display: grid; gap: 1.2rem; }
.mobile-foot .social-row { justify-content: flex-start; }

/* 09. HERO ================================================================ */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-ink);
  color: var(--bone);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.4) brightness(.44) contrast(1.12) saturate(.7);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(194,161,92,.24), transparent 58%),
    linear-gradient(100deg, rgba(14,11,9,.94) 0%, rgba(14,11,9,.82) 42%, rgba(14,11,9,.5) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(5rem, 12vh, 8rem);
  width: 100%;
}
.hero h1 { color: var(--bone); margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.2rem; }

/* Per-word masked reveal */
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-words .word > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(108%);
  transition: transform .95s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 72ms);
}
.reveal-words.is-visible .word > i { transform: translateY(0); }

/* Floating glass trust card, offset over the media */
.hero-card {
  position: absolute;
  left: 0;
  bottom: -15%;
  width: min(272px, 74vw);
  padding: 1.4rem 1.5rem;
  background: var(--glass-dk);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--hairline-dk);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-3);
  z-index: 4;
}
.hero-card .stars { margin-bottom: .5rem; }
.hero-card p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--bone);
  margin-bottom: .6rem;
}
.hero-card cite {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-dk);
  z-index: 4;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -46px; left: 0;
  width: 1px; height: 46px;
  background: linear-gradient(transparent, var(--gold-lite));
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue { to { top: 46px; } }

/* 10. 3D BOOK ============================================================= */
.book-stage {
  position: relative;
  perspective: 1600px;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.book {
  position: relative;
  width: clamp(210px, 25vw, 310px);
  aspect-ratio: 5 / 7.6;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(6deg);
  transition: transform .9s var(--ease-out);
  will-change: transform;
  animation: bookFloat 7s ease-in-out infinite;
}
.book-stage:hover .book { transform: rotateY(-11deg) rotateX(2deg); }
@keyframes bookFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

.book-face {
  position: absolute;
  inset: 0;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  backface-visibility: hidden;
}
.book-cover {
  background: linear-gradient(145deg, #241C16 0%, #14100D 52%, #2E241B 100%);
  box-shadow:
    inset -14px 0 22px rgba(0,0,0,.55),
    inset 2px 0 0 rgba(230,210,168,.14),
    0 26px 54px rgba(20,16,13,.5),
    0 60px 120px rgba(20,16,13,.36);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 2.2rem 1.5rem;
  gap: .55rem;
  transform: translateZ(16px);
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(194,161,92,.42);
  border-radius: 2px;
  pointer-events: none;
}
/* Moving specular sheen across the cover */
.book-cover::after {
  content: "";
  position: absolute;
  inset: -60% -120%;
  background: linear-gradient(103deg, transparent 38%, rgba(255,250,235,.2) 48%, transparent 58%);
  transform: translateX(-40%);
  animation: sheen 6.5s var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 62%  { transform: translateX(-46%); }
  100%     { transform: translateX(46%); }
}
.book-cover .bk-eye {
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-cover .bk-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  line-height: 1.06;
  color: var(--bone);
}
.book-cover .bk-title em { display: block; color: var(--gold-lite); }
.book-cover .bk-sub {
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-dk);
  max-width: 22ch;
  line-height: 1.6;
}
.book-cover .bk-author {
  margin-top: .5rem;
  font-family: var(--f-display);
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone);
}
.book-cover svg { width: 40px; height: 52px; }

/* Page block + spine give it real thickness */
.book-pages {
  position: absolute;
  top: 3px; bottom: 3px;
  right: -1px;
  width: 30px;
  transform: rotateY(90deg) translateZ(calc(100% - 15px)) translateX(15px);
  transform-origin: right center;
  background: repeating-linear-gradient(90deg, #F4EDDF 0 1px, #DED2BC 1px 2.5px);
  border-radius: 1px;
}
.book-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 32px;
  transform: rotateY(-90deg) translateZ(16px);
  transform-origin: left center;
  background: linear-gradient(180deg, #2E241B, #14100D);
  box-shadow: inset -3px 0 8px rgba(0,0,0,.5);
}
.book-shadow {
  position: absolute;
  left: 6%; right: 6%;
  bottom: -34px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 68%);
  filter: blur(9px);
  animation: bookShadow 7s ease-in-out infinite;
}
@keyframes bookShadow {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(.86); opacity: .34; }
}

.book-badge {
  position: absolute;
  top: -12px; right: -22px;
  z-index: 5;
  padding: .55rem 1rem;
  background: var(--gradient-lux);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: var(--sh-2);
  transform: rotate(4deg);
}

/* 11. STAT STRIP ========================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-dk);
  border-bottom: 1px solid var(--hairline-dk);
}
.stat {
  padding: clamp(1.8rem, 4vw, 2.8rem) 1.2rem;
  text-align: center;
  border-right: 1px solid var(--hairline-dk);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold-lite);
  margin-bottom: .5rem;
}
.stat span {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

/* 12. CARDS =============================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 249, .72);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover, .card:focus-visible {
  box-shadow: var(--sh-3);
  border-color: rgba(194, 161, 92, .5);
}
/* Gradient border that traces in on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-lux);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}
.card:hover::after, .card:focus-visible::after { opacity: 1; }

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bone-3);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .7s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.07); filter: brightness(1.05); }
.card-media .tag {
  position: absolute;
  left: .9rem; top: .9rem;
  z-index: 2;
  padding: .35rem .75rem;
  background: var(--glass-dk);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-dk);
  border-radius: 2px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-lite);
}
.card-body {
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  flex: 1;
  transform: translateZ(28px);
}
.card-body p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-body .link-arrow { margin-top: auto; padding-top: .3rem; }

/* Feature (icon) card */
.feature {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, .55);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .5s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--sh-2); background: rgba(255,253,249,.9); }
.on-dark .feature {
  background: rgba(255,255,255,.035);
  border-color: var(--hairline-dk);
}
.on-dark .feature:hover { background: rgba(255,255,255,.07); }
.feature-icon {
  width: 46px; height: 46px;
  margin-bottom: 1.2rem;
  color: var(--gold-ink);
  animation: floaty 5.5s ease-in-out infinite;
}
.on-dark .feature-icon { color: var(--gold); }
.feature-icon svg { width: 100%; height: 100%; stroke-width: 1.1; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.feature h3 { margin-bottom: .55rem; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* 13. TIMELINE ============================================================ */
.timeline { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: .5rem; bottom: .5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: .45;
}
.tl-item { position: relative; padding-left: 3.4rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 5px; top: .55rem;
  width: 13px; height: 13px;
  transform: rotate(45deg);
  background: var(--surface);
  border: 1px solid var(--gold);
  transition: background .45s var(--ease-out), transform .45s var(--ease-out);
}
.on-dark .tl-item::before { background: var(--ink); }
.tl-item.is-visible::before { background: var(--gradient-lux); transform: rotate(45deg) scale(1.12); }
.tl-year {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: .35rem;
}
.on-dark .tl-year { color: var(--gold); }
.tl-item h3 { margin-bottom: .5rem; }
.tl-item p { color: var(--muted); font-size: .98rem; margin: 0; }
.on-dark .tl-item p { color: var(--muted-dk); }

/* 14. QUOTE & FEATURE BANDS =============================================== */
.quote-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.quote-band .qb-bg {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  will-change: transform;
}
.quote-band .qb-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.5) brightness(.34) contrast(1.16) saturate(.6);
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 70% at 50% 45%, rgba(20,16,13,.62), rgba(14,11,9,.94));
}
blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 1rem + 2.5vw, 3rem);
  font-style: italic;
  line-height: 1.24;
  color: var(--bone);
  text-wrap: balance;
}
blockquote p { max-width: none; margin-bottom: .6em; }
blockquote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--f-body);
  font-style: normal;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-mark {
  display: block;
  font-family: var(--f-display);
  font-size: 5rem;
  line-height: .5;
  color: var(--gold);
  opacity: .48;
  margin-bottom: 1.4rem;
}

/* Horizontal scroll rail */
.rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.rail::-webkit-scrollbar-track { background: var(--hairline); }
.rail > * { flex: 0 0 clamp(230px, 27vw, 320px); scroll-snap-align: start; }

/* Sticky-caption media column */
.sticky-col { position: sticky; top: 7.5rem; align-self: start; }

/* 15. GALLERY & LIGHTBOX ================================================== */
.masonry { columns: 3; column-gap: 1.1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.1rem; }

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--sh-1);
  background: var(--bone-3);
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.shot:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.shot img { width: 100%; transition: transform 1.2s var(--ease-out), filter .6s; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(14,11,9,.9));
  color: var(--bone);
  font-size: .84rem;
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 8, 6, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  transform: scale(.94);
  transition: transform .5s var(--ease-pop);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox figcaption {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--muted-dk);
  font-size: .9rem;
}
.lightbox .lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--bone);
  border: 1px solid rgba(230,210,168,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  transition: background .3s, transform .3s var(--ease-out);
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.14); transform: scale(1.06); }
.lightbox .lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev  { left: 1.4rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* 16. REVIEWS ============================================================= */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.rating-score {
  font-family: var(--f-display);
  font-size: 3.1rem;
  line-height: 1;
  color: var(--gold-ink);
}
.on-dark .rating-score { color: var(--gold-lite); }
.rating-meta { font-size: .86rem; color: var(--muted); }
.on-dark .rating-meta { color: var(--muted-dk); }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; color: var(--gold); }
.stars.lg svg { width: 20px; height: 20px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 2.4rem;
}
.chip {
  padding: .6rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: transparent;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft), background .3s var(--ease-soft);
}
.chip:hover { color: var(--ink); border-color: var(--gold); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.on-dark .chip { border-color: var(--hairline-dk); color: var(--muted-dk); }
.on-dark .chip:hover { color: var(--bone); }
.on-dark .chip[aria-pressed="true"] { background: var(--gradient-lux); color: var(--ink); border-color: transparent; }

.reviews-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 31vw, 390px);
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem .4rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.reviews-rail::-webkit-scrollbar { height: 3px; }
.reviews-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: rgba(255, 253, 249, .74);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.on-dark .review {
  background: rgba(255,255,255,.045);
  border-color: var(--hairline-dk);
}
.review-top { display: flex; align-items: center; gap: .85rem; }
.avatar {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-lux);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.1rem;
  line-height: 1;
}
.review-who { flex: 1; min-width: 0; }
.review-who b { display: block; font-weight: 700; font-size: .95rem; }
.review-who span { font-size: .76rem; color: var(--muted); }
.on-dark .review-who span { color: var(--muted-dk); }
/* The Google mark sits beside .review-who, not inside it. */
.review-top .g-mark { width: 18px; height: 18px; flex: none; align-self: flex-start; }
.review blockquote {
  font-family: var(--f-body);
  font-size: .97rem;
  font-style: normal;
  line-height: 1.68;
  color: var(--ink);
}
.on-dark .review blockquote { color: var(--bone-2); }
.review footer {
  margin-top: auto;
  padding-top: .3rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-dark .review footer { color: var(--gold); }

.reviews-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* 17. FORMS =============================================================== */
.form { display: grid; gap: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }

.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.5rem 1rem .65rem;
  min-height: 58px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 253, 249, .6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease-soft), background .3s var(--ease-soft), box-shadow .3s;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; padding-top: 1.7rem; }
.field select { cursor: pointer; background-image: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194,161,92,.16);
}
.field label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  font-size: .98rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .28s var(--ease-out), color .28s var(--ease-soft);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select.has-value + label {
  transform: translateY(-.72rem) scale(.74);
  color: var(--gold-ink);
}
.field .err {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--rose);
  min-height: 1.15rem;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--rose); }

.field-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: .84rem; color: var(--muted); }

.form-status {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(194,161,92,.1);
  font-size: .95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.form-status.is-shown { opacity: 1; transform: translateY(0); }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(247,242,233,.35);
  border-top-color: var(--bone);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 18. CTA BANDS =========================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(194,161,92,.2), transparent 62%),
    var(--gradient-ink);
}
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band .cluster { justify-content: center; }

/* 19. FOOTER ============================================================== */
.footer {
  background: var(--gradient-ink);
  color: var(--muted-dk);
  padding-top: clamp(3.5rem, 8vh, 5.5rem);
  border-top: 1px solid var(--hairline-dk);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer h4 {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer p { font-size: .93rem; line-height: 1.7; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a {
  color: var(--muted-dk);
  text-decoration: none;
  font-size: .93rem;
  display: inline-block;
  transition: color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.footer-links a:hover { color: var(--gold-lite); transform: translateX(4px); }
.footer-contact a { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: .3rem; color: var(--gold); flex: none; }

.footer-bottom {
  border-top: 1px solid var(--hairline-dk);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
}
.footer-bottom a { color: var(--gold-lite); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.credit strong { font-weight: 400; }

/* 20. STICKY MOBILE BAR =================================================== */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-mobilebar);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline-dk);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 -8px 30px rgba(20,16,13,.24);
}
.mobile-bar a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 58px;
  background: rgba(29, 23, 19, .93);
  color: var(--bone);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-bar a.wa { background: rgba(20, 83, 45, .95); }
.mobile-bar svg { width: 19px; height: 19px; flex: none; }
.mobile-bar a::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: pulseRing 2.8s var(--ease-soft) infinite;
  pointer-events: none;
}
.mobile-bar a.wa::before { animation-delay: 1.4s; }
@keyframes pulseRing {
  0%   { transform: scale(.55); opacity: .45; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* 21. DEMO POPUP ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(10, 8, 6, .74);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--bone);
  background: linear-gradient(165deg, rgba(38,30,24,.94), rgba(16,13,10,.97));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-radius: 8px;
  box-shadow: 0 40px 110px rgba(0,0,0,.62);
  transform: scale(.9) translateY(18px);
  opacity: 0;
  transition: transform .6s var(--ease-pop), opacity .45s var(--ease-out);
}
.modal.is-open .modal-card { transform: scale(1) translateY(0); opacity: 1; }
/* Animated gradient border */
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1.5px;
  background: var(--gradient-lux);
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderFlow 7s linear infinite;
  pointer-events: none;
}
@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.modal-card .modal-facet {
  width: 52px; height: 66px;
  margin: 0 auto 1.4rem;
  color: var(--gold);
  animation: floaty 5s ease-in-out infinite;
}
.modal-card h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  color: var(--bone);
  margin-bottom: .9rem;
}
.modal-card h2 em { color: var(--gold-lite); }
.modal-card p {
  max-width: 44ch;
  margin-inline: auto;
  font-size: .98rem;
  color: var(--muted-dk);
  margin-bottom: 1.1rem;
}
.modal-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.modal-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border: 1px solid var(--hairline-dk);
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-lite);
}
.modal-badges svg { width: 13px; height: 13px; }
.modal-countdown {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.modal-actions { display: grid; gap: .75rem; justify-items: center; }
.modal-dismiss {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dk);
  padding: .6rem 1rem;
  min-height: 44px;
  transition: color .3s var(--ease-soft);
}
.modal-dismiss:hover { color: var(--bone); }
.modal-close {
  position: absolute;
  top: .8rem; right: .8rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--muted-dk);
  border-radius: 50%;
  transition: color .3s, background .3s, transform .4s var(--ease-out);
}
.modal-close:hover { color: var(--bone); background: rgba(255,255,255,.08); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

/* 22. PROSE & MISC PAGES ================================================== */
.page-head {
  position: relative;
  padding-block: clamp(4rem, 11vh, 7.5rem) clamp(3rem, 7vh, 5rem);
  background: var(--gradient-ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 100% at 88% 12%, rgba(194,161,92,.2), transparent 60%);
}
.page-head h1 { margin-bottom: 1rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--muted-dk);
}
.crumbs a { color: var(--muted-dk); text-decoration: none; }
.crumbs a:hover { color: var(--gold-lite); }
.crumbs svg { width: 11px; height: 11px; opacity: .6; }
.crumbs [aria-current] { color: var(--gold); }

.prose { max-width: 72ch; }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.15em; color: var(--muted); }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--gold-ink); }

.meta-list { display: grid; gap: .1rem; }
.meta-list div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: .94rem;
}
.on-dark .meta-list div { border-color: var(--hairline-dk); }
.meta-list dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .2rem;
}
.on-dark .meta-list dt { color: var(--muted-dk); }
.meta-list dd { margin: 0; }

.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { padding: .7rem .4rem; text-align: left; border-bottom: 1px solid var(--hairline-dk); }
.hours th { font-weight: 400; color: var(--muted-dk); }
.hours tr.today td, .hours tr.today th { color: var(--gold-lite); }

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound .code {
  font-family: var(--f-display);
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: .82;
  color: var(--gold-ink);
  opacity: .22;
  margin-bottom: -1rem;
}

/* Video */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-3);
  cursor: pointer;
  background: var(--ink);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) sepia(.28); transition: transform 1.2s var(--ease-out), filter .6s; }
.video-frame:hover img { transform: scale(1.05); filter: brightness(.72) sepia(.14); }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass-dk);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-dk);
  color: var(--bone);
  transition: transform .45s var(--ease-pop), background .3s;
}
.video-frame:hover .play { transform: scale(1.1); background: rgba(194,161,92,.35); }
.play svg { width: 24px; height: 24px; margin-left: 4px; }
.play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pulseRing 3s var(--ease-soft) infinite;
}

/* Custom cursor — desktop pointers only */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s;
  will-change: transform;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover {
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(194,161,92,.12);
}

/* 22b. DARK-CONTEXT TEXT ==================================================
   .on-dark supplies both a dark background and the matching text colours.
   The hero, page headers, CTA bands and quote bands paint their own dark
   grounds instead, so they need the same treatment explicitly — without it
   --muted body copy and ink-coloured ghost buttons fall below 4.5:1.
   ========================================================================== */
.hero, .page-head, .cta-band, .quote-band { color: var(--bone); }

.hero h1, .hero h2,
.page-head h1, .page-head h2,
.cta-band h1, .cta-band h2,
.quote-band h2 { color: var(--bone); }

.hero .eyebrow,
.page-head .eyebrow,
.cta-band .eyebrow,
.quote-band .eyebrow { color: var(--gold); }

.hero .lede,
.page-head .lede,
.cta-band .lede,
.cta-band p,
.quote-band p:not(blockquote p) { color: var(--muted-dk); }

.hero .display-italic,
.page-head .display-italic,
.cta-band .display-italic,
.quote-band .display-italic { color: var(--gold-lite); }

/* Ghost buttons default to ink text; on a dark ground that is invisible. */
.hero .btn-ghost,
.page-head .btn-ghost,
.cta-band .btn-ghost,
.quote-band .btn-ghost {
  --btn-fg: var(--bone);
  border-color: var(--hairline-dk);
}

/* Feature cards on dark sections are translucent, so their body copy sits on
   the dark ground and needs the lighter secondary tone. Content cards (.card)
   keep --muted because they paint a near-white surface of their own. */
.on-dark .feature p,
.on-dark .feature li { color: var(--muted-dk); }

.on-dark .meta-list dd,
.page-head .crumbs a { color: var(--bone-2); }

/* 23. MOTION UTILITIES ==================================================== */
[data-anim] {
  opacity: 0;
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: transform, opacity;
}
[data-anim="up"]    { transform: translateY(38px); }
[data-anim="down"]  { transform: translateY(-30px); }
[data-anim="left"]  { transform: translateX(46px); }
[data-anim="right"] { transform: translateX(-46px); }
[data-anim="zoom"]  { transform: scale(.94); }
[data-anim="fade"]  { transform: none; }
[data-anim].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.parallax { will-change: transform; }

/* 24. RESPONSIVE ========================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { left: -4%; }
}

@media (max-width: 940px) {
  /* Horizontal entrance offsets would push content past the viewport edge
     before they resolve, so narrow screens animate vertically instead. */
  [data-anim="left"], [data-anim="right"] { transform: translateY(38px); }

  .nav-list, .nav .btn { display: none; }
  .burger { display: grid; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: auto; }
  /* Headline leads on narrow screens; the book follows it. */
  .book-stage { min-height: 340px; }
  /* Floating facets would sit across the headline once the hero is one column. */
  .facet-float { display: none; }
  .hero-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 2rem; }
  .split, .split-wide { grid-template-columns: 1fr; }
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-dk); }
  .sticky-col { position: static; }
  .topbar-ticker { display: none; }
}

@media (max-width: 768px) {
  body { padding-bottom: 60px; }           /* clears the sticky action bar */
  .mobile-bar { display: grid; }
  .topbar-contact .tb-mail,
  .topbar-contact .tb-addr { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .masonry { columns: 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .meta-list div { grid-template-columns: 1fr; gap: .2rem; }
  .cursor-dot { display: none; }
  .framed::after { inset: 12px -12px -12px 12px; }
  .lb-prev { left: .6rem; }
  .lb-next { right: .6rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hairline-dk); }
  .stat:last-child { border-bottom: 0; }
  .topbar-inner { justify-content: center; }
  .btn { width: 100%; }
  .cluster > .btn { width: 100%; }
  .book-badge { right: -6px; }
}

/* 25. REDUCED MOTION & PRINT ============================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .reveal-words .word > i { transform: none !important; }
  .parallax, .hero-bg, .qb-bg { transform: none !important; }
  .book { animation: none; transform: rotateY(-14deg); }
  .cursor-dot { display: none; }
}

@media print {
  .topbar, .header, .mobile-bar, .modal, .lightbox, .grain,
  .progress, .cursor-dot, .scroll-cue, .cta-band { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .on-dark, .page-head, .hero { background: #fff !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .page-head h1 { color: #000 !important; }
  a { text-decoration: underline; }
}
