/* ============================================================
   DANIELLA ATELIER — design system per design.md
   Quiet luxury editorial. Ivory resting state, gold threads,
   garnet for drama. Cormorant Garamond + Jost. Squared edges.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-v21-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-v21-latin-300italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-v21-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/jost-v20-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/jost-v20-latin-regular.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --gold: #c4aa70;
  --gold-light: #d9c99a;
  --gold-dark: #a8904f;
  --garnet: #330000;
  --garnet-deep: #1a0000;
  --ivory: #e9e5df;
  --linen: #ebded4;
  --black: #000000;
  --muted: #6b6560;
  --border-fine: rgba(0, 0, 0, 0.12);
  --ivory-fine: rgba(233, 229, 223, 0.16);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --sans: "Jost", "Century Gothic", sans-serif;

  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 180ms;
  --base: 320ms;
  --slow: 560ms;

  --page-max: 1200px;
  --prose-max: 560px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.loading { overflow: hidden; }
body {
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 1px solid var(--gold-dark); outline-offset: 3px; }
.skip-link {
  position: fixed; top: -60px; left: var(--space-4); z-index: 200;
  background: var(--black); color: var(--ivory);
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 22px; transition: top var(--fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- type scale ---------- */
.t-display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 9vw, 112px); line-height: 0.98; letter-spacing: -0.02em;
}
.t-hero {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.015em;
}
.t-h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.t-h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.t-italic { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; }
.t-body { font-size: 14px; line-height: 1.75; max-width: var(--prose-max); }
.t-small { font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; }
.t-label {
  font-family: var(--sans); font-weight: 400; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.t-caption { font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.em { font-style: italic; font-family: var(--serif); }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- shared layout ---------- */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-8); }
section { position: relative; }

/* thick gold accent above headings */
.accent-bar { width: 40px; height: 2px; background: var(--gold); margin-bottom: var(--space-6); }

/* gold centred divider: lines + rotated diamond */
.divider {
  display: flex; align-items: center; gap: var(--space-4);
  max-width: 360px; margin: 0 auto; padding: 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.55; }
.divider .diamond { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }

/* corner-ornament pull quote */
.pullquote {
  position: relative; padding: var(--space-8) var(--space-8);
  max-width: 640px;
}
.pullquote::before, .pullquote::after {
  content: ""; position: absolute; width: 28px; height: 28px;
}
.pullquote::before { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.pullquote::after { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 400; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 0;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--black); color: var(--ivory); }
.btn--primary:hover { background: var(--garnet); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost {
  background: transparent; color: inherit; padding: 12px 4px; position: relative;
}
.btn--ghost::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform-origin: right center; transform: scaleX(1);
  transition: transform var(--base) var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(0); }
.btn--sm { padding: 10px 20px; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 64px;
  display: flex; align-items: center;
  color: var(--ivory);
  transition: background-color var(--base) var(--ease-out), color var(--base) var(--ease-out), box-shadow var(--base) var(--ease-out);
}
.site-nav::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--garnet), var(--gold));
}
.site-nav .wrap {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
}
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 15px;
  letter-spacing: 0.25em; text-transform: uppercase; white-space: nowrap;
}
.wordmark span { color: var(--gold); }
.nav-links { display: flex; gap: var(--space-8); align-items: center; }
.nav-links a {
  position: relative; font-size: 10px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right center;
  transition: transform var(--base) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-links a.active { color: var(--gold-dark); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left center; }
.site-nav:not(.is-solid) .nav-links a.active { color: var(--gold-light); }
.nav-thread {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left center; opacity: 0.9;
}
.nav-cta { flex: none; }
.site-nav.is-solid { background: var(--ivory); color: var(--black); box-shadow: 0 1px 0 var(--border-fine); }
.site-nav.is-solid .wordmark span { color: var(--gold-dark); }

/* mobile menu */
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 12px 0 12px 12px;
  color: inherit;
}
.menu-toggle .bars { display: block; width: 26px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--base) var(--ease-inout), top var(--base) var(--ease-inout);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 9px; }
body.menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--garnet-deep);
  background-image: radial-gradient(80% 60% at 50% 30%, rgba(196, 170, 112, 0.10), transparent 70%);
  display: flex; flex-direction: column; justify-content: center; padding: var(--space-16) var(--space-8);
  opacity: 0; pointer-events: none; transition: opacity var(--slow) var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-weight: 300; color: var(--ivory);
  font-size: clamp(32px, 9vw, 48px); line-height: 1.5; letter-spacing: 0.01em;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out), color var(--fast);
}
.mobile-menu a:hover { color: var(--gold-light); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu a:nth-child(5) { transition-delay: 240ms; }
.mobile-menu .t-label { color: var(--gold); margin-bottom: var(--space-8); opacity: 0.9; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--garnet-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6);
  color: var(--ivory);
}
.preloader .wordmark { font-size: 18px; color: var(--ivory); opacity: 0; }
.preloader .line { width: 120px; height: 1px; background: var(--ivory-fine); position: relative; overflow: hidden; }
.preloader .line i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left center; display: block; }
.preloader .t-caption { color: var(--gold-light); opacity: 0.7; }

/* ---------- prologue stage ---------- */
.stage { position: relative; background: var(--garnet-deep); }
.stage__pin {
  height: 100vh; height: 100svh; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 50% 110%, #4a0d05 0%, var(--garnet) 45%, var(--garnet-deep) 100%);
}
#gem-canvas, .stage__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.stage__fallback { object-fit: cover; object-position: 62% center; opacity: 0.9; display: none; }
.stage.no-webgl #gem-canvas { display: none; }
.stage.no-webgl .stage__fallback { display: block; }
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 45%, transparent 40%, rgba(13, 0, 0, 0.55) 100%);
}
.hero-copy {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ivory); padding: 0 var(--space-8);
}
/* photographic fallback: the stone is fixed in the image, so the copy steps
   aside into a left-aligned editorial composition on wide screens */
@media (min-width: 641px) {
  .stage.no-webgl .hero-copy { align-items: flex-start; text-align: left; padding: 0 8vw; }
  .stage.no-webgl .hero-sub { max-width: 380px; }
  .stage.no-webgl .scroll-cue { left: 8vw; transform: none; align-items: flex-start; }
}
.hero-copy .t-label { color: var(--gold); margin-bottom: var(--space-8); }
.hero-title { color: var(--ivory); text-shadow: 0 2px 44px rgba(13, 0, 0, 0.5); }
.hero-title .em { color: var(--gold-light); }
.hero-sub {
  margin-top: var(--space-8); max-width: 460px; color: rgba(233, 229, 223, 0.78);
  font-size: 13px; letter-spacing: 0.02em;
  text-shadow: 0 1px 18px rgba(13, 0, 0, 0.65), 0 0 42px rgba(13, 0, 0, 0.5);
}
.scroll-cue {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  color: rgba(233, 229, 223, 0.6); z-index: 3;
}
.scroll-cue .stem { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); }

/* the lid of light */
.lid {
  position: absolute; inset: 0; z-index: 5; background: var(--ivory);
  clip-path: inset(50% 0 50% 0);
  display: flex; align-items: center; justify-content: center;
}
.lid__line {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.4vw, 40px); color: var(--black); text-align: center;
  padding: 0 var(--space-8); opacity: 0;
}
.lid__line .gold { color: var(--gold-dark); }
.lid__edge {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 6;
  background: linear-gradient(90deg, transparent 4%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 96%);
  opacity: 0; pointer-events: none;
}

/* ---------- chapters ---------- */
.chapters { background: var(--ivory); }
.chapter { padding: var(--space-32) 0; position: relative; overflow: clip; }
.chapter + .chapter { border-top: 1px solid var(--border-fine); }
.chapter__numeral {
  position: absolute; top: var(--space-12); right: var(--space-8);
  font-family: var(--serif); font-weight: 300; line-height: 0.8;
  font-size: clamp(120px, 22vw, 280px);
  color: transparent; -webkit-text-stroke: 1px rgba(168, 144, 79, 0.28);
  user-select: none; pointer-events: none;
}
.chapter:nth-child(even) .chapter__numeral { right: auto; left: var(--space-8); }
.chapter__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-8);
  align-items: center;
}
.chapter__copy { grid-column: span 5; }
.chapter__media { grid-column: span 7; }
.chapter--flip .chapter__copy { order: 2; grid-column: span 5; }
.chapter--flip .chapter__media { order: 1; grid-column: span 7; }
.chapter__label { color: var(--gold-dark); margin-bottom: var(--space-6); display: block; }
.chapter__title { margin-bottom: var(--space-8); }
.chapter__title .em { color: var(--gold-dark); }
.chapter__body { color: var(--muted); }
.chapter__body strong { font-weight: 400; color: var(--black); }
.chapter__body p + p { margin-top: var(--space-4); }

/* image reveal frames */
.frame { overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.frame--p { aspect-ratio: 3 / 4; }
.frame--l { aspect-ratio: 3 / 2; }
.frame__veil { position: absolute; inset: 0; background: var(--ivory); transform-origin: top; }
.chapter--dark .frame__veil { background: var(--garnet-deep); }

/* chapter I — typographic only */
.chapter--words .chapter__grid { align-items: start; }
.chapter--words .chapter__copy { grid-column: 2 / span 6; }
.chapter--words .chapter__aside { grid-column: 9 / span 3; padding-top: var(--space-12); }
.chapter__aside .t-small { color: var(--muted); }
.chapter__aside .t-small + .t-small { margin-top: var(--space-4); }

/* chapter III — the making triptych (garnet interlude) */
.chapter--dark {
  background: var(--garnet-deep);
  background-image: radial-gradient(70% 50% at 50% 0%, rgba(196, 170, 112, 0.07), transparent 70%);
  color: var(--ivory);
}
.chapter--dark .chapter__body { color: rgba(233, 229, 223, 0.66); }
.chapter--dark .chapter__body strong { color: var(--ivory); }
.chapter--dark .chapter__label { color: var(--gold); }
.chapter--dark .chapter__title .em { color: var(--gold-light); }
.chapter--dark .chapter__numeral { -webkit-text-stroke-color: rgba(217, 201, 154, 0.22); }
.triptych {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4);
  margin-top: var(--space-16); align-items: end;
}
.triptych .frame:nth-child(1) { grid-column: 1 / span 3; aspect-ratio: 2 / 3; }
.triptych .frame:nth-child(2) { grid-column: 4 / span 6; aspect-ratio: 3 / 2; margin-bottom: var(--space-16); }
.triptych .frame:nth-child(3) { grid-column: 10 / span 3; aspect-ratio: 2 / 3; margin-bottom: var(--space-8); }
.triptych figcaption {
  margin-top: var(--space-3); color: rgba(233, 229, 223, 0.45);
}
.step-list { display: flex; gap: var(--space-8); margin-top: var(--space-8); flex-wrap: wrap; }
.step-list .tag {
  border: 1px solid var(--gold); color: var(--gold-light);
  padding: 6px 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---------- what people bring us ---------- */
.bring { background: var(--linen); padding: var(--space-32) 0; }
.bring__head { max-width: 640px; margin-bottom: var(--space-16); }
.bring__head .t-h1 .em { color: var(--gold-dark); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.card {
  background: var(--linen); cursor: pointer; position: relative;
  transition: transform var(--base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); }
.card .frame { aspect-ratio: 3 / 4; }
.card .frame img { transition: transform 1200ms var(--ease-out); }
.card:hover .frame img { transform: scale(1.045); }
.card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--space-6);
  background: linear-gradient(to top, rgba(26, 0, 0, 0.55), transparent 45%);
  opacity: 0; transition: opacity var(--base) var(--ease-out);
}
.card:hover .card__overlay { opacity: 1; }
.card__overlay .t-label { color: var(--gold-light); }
.card__meta { padding: var(--space-6) 0 0; }
.card__cat { color: var(--gold-dark); display: block; margin-bottom: var(--space-2); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.card__line { color: var(--muted); font-size: 12.5px; margin-top: var(--space-2); max-width: 34ch; }

/* ---------- how we want you to feel ---------- */
.feel {
  background: var(--garnet);
  background-image: radial-gradient(90% 70% at 50% 20%, rgba(196, 170, 112, 0.10), transparent 65%);
  color: var(--ivory); padding: var(--space-32) 0;
}
.feel .t-label { color: var(--gold); }
.feel__intro { max-width: 560px; color: rgba(233, 229, 223, 0.66); margin-top: var(--space-6); }
.feel__list { margin-top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.feel__line {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 4.6vw, 54px); line-height: 1.15;
  color: rgba(233, 229, 223, 0.22);
  transition: color 900ms var(--ease-out), transform 900ms var(--ease-out);
  transform: translateX(0);
}
.feel__line.lit { color: var(--gold-light); transform: translateX(var(--space-6)); }
.feel__line:nth-child(even) { align-self: flex-end; text-align: right; }
.feel__line:nth-child(even).lit { transform: translateX(calc(var(--space-6) * -1)); }
.feel__coda { margin-top: var(--space-24); color: rgba(233, 229, 223, 0.5); max-width: 480px; }

/* ---------- Danielle & Bobby ---------- */
.us { background: var(--ivory); padding: var(--space-32) 0; overflow: clip; }
.us__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-8); align-items: center; }
.us__media { grid-column: 1 / span 7; }
.us__copy { grid-column: 8 / span 5; }
.us__copy .t-h2 .em { color: var(--gold-dark); }
.us__copy .chapter__body { margin-top: var(--space-8); }
.us .pullquote { margin-top: var(--space-12); }
.us .pullquote .t-italic { color: var(--black); }
.us .pullquote cite { display: block; margin-top: var(--space-4); font-style: normal; }

/* ---------- begin ---------- */
.begin { background: var(--linen); padding: var(--space-32) 0; text-align: center; }
.begin .divider { margin-bottom: var(--space-12); }
.begin__title { max-width: 720px; margin: 0 auto; }
.begin__title .em { color: var(--gold-dark); }
.begin__body { max-width: 480px; margin: var(--space-8) auto 0; color: var(--muted); }
.begin__actions {
  margin-top: var(--space-12); display: flex; gap: var(--space-8); justify-content: center; align-items: center; flex-wrap: wrap;
}
.begin__note { margin-top: var(--space-8); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--garnet-deep); color: rgba(233, 229, 223, 0.7);
  padding: var(--space-24) 0 var(--space-12); position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--garnet), var(--gold));
}
.footer__grid { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; align-items: flex-start; }
.site-footer .wordmark { color: var(--ivory); }
.footer__tag { margin-top: var(--space-4); font-size: 12px; color: rgba(233, 229, 223, 0.45); }
.footer__nav { display: flex; gap: var(--space-8); }
.footer__nav a { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; transition: color var(--fast); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__rule { border: 0; border-top: 1px solid var(--ivory-fine); margin: var(--space-12) 0 var(--space-6); }
.footer__base { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer__base .t-caption { color: rgba(233, 229, 223, 0.4); }
.footer__base a { color: var(--gold-light); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); } 60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); } 100% { transform: translate(0, 0); }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--gold); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(196, 170, 112, 0.55); transform: rotate(45deg);
  transition: width var(--base) var(--ease-out), height var(--base) var(--ease-out), margin var(--base) var(--ease-out), opacity var(--base);
}
body.cursor-hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- reveal defaults (JS toggles) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .frame__veil { transform: scaleY(1); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .chapter__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .chapter__copy, .chapter__media, .chapter--flip .chapter__copy, .chapter--flip .chapter__media { grid-column: 1 / -1; order: initial; }
  .chapter--words .chapter__copy { grid-column: 1 / -1; }
  .chapter--words .chapter__aside { grid-column: 1 / -1; padding-top: 0; }
  .triptych { grid-template-columns: repeat(6, 1fr); }
  .triptych .frame:nth-child(1) { grid-column: 1 / span 3; }
  .triptych .frame:nth-child(2) { grid-column: 4 / span 3; margin-bottom: 0; aspect-ratio: 2/3; }
  .triptych .frame:nth-child(3) { grid-column: 2 / span 4; margin-bottom: 0; }
  .us__grid { grid-template-columns: 1fr; }
  .us__media, .us__copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-6); }
  .chapter { padding: var(--space-24) 0; }
  .cards { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  /* keep the fallback stone out from under the copy on portrait screens */
  .stage__fallback { object-position: 42% 62%; opacity: 0.8; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .frame__veil { transform: scaleY(0); }
  .frame img { transform: none; }
  .cursor-dot, .cursor-ring, .grain { display: none; }
}
