/* =========================================================================
   Behind Closed Doors / Design System
   Stage 1: tokens, typography, components
   ========================================================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Tokens ----- */
:root {
  /* Color */
  --ink: #0D0A06;
  --parchment: #EDE4D4;
  --linen: #F4EDE0;
  --terracotta: #D89478;
  --bordeaux: #7A2D41;
  --gold: #C9A84C; /* glyph only */

  /* Type */
  --font-serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --font-display: "Unbounded", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md:   1.125rem;  /* 18 */
  --text-lg:   1.25rem;   /* 20 */
  --text-xl:   1.5rem;    /* 24 */
  --text-2xl:  2rem;      /* 32 */
  --text-3xl:  2.75rem;   /* 44 */
  --text-4xl:  3.75rem;   /* 60 */
  --text-5xl:  5rem;      /* 80 */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 6px;
  --radius-4: 12px; /* cards */

  /* Containers — desktop max-widths.
     prose: comfortable line-length for long-form reading
     default: hero / standard content
     wide: full-bleed inner content blocks
     xwide: image / multi-column grid sections */
  --container-narrow:  44rem;    /* 704px - prose */
  --container-default: 60rem;    /* 960px - hero, standard */
  --container-wide:    68.75rem; /* 1100px - content blocks */
  --container-xwide:   75rem;    /* 1200px - image, framework */

  /* Borders */
  --border-hairline: 1px solid rgba(13, 10, 6, 0.12);
  --border-bordeaux: 1px solid var(--bordeaux);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-slow: 600ms;
}

/* ----- Base ----- */
body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.55;
}

::selection { background: var(--bordeaux); color: var(--linen); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { font-size: var(--text-md); line-height: 1.6; }

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

.serif   { font-family: var(--font-serif); }
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; }
.mono    { font-family: var(--font-mono); font-weight: 400; }

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: var(--terracotta);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-default);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.container--xwide  { max-width: var(--container-xwide); }

@media (min-width: 768px) {
  .container { padding-left: var(--space-7); padding-right: var(--space-7); }
}

/* Tablet (768-1023px): cap each container at 90vw so they breathe but don't fill edge-to-edge */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .container         { max-width: min(var(--container-default), 90vw); }
  .container--narrow { max-width: min(var(--container-narrow), 90vw); }
  .container--wide   { max-width: min(var(--container-wide), 90vw); }
  .container--xwide  { max-width: min(var(--container-xwide), 90vw); }
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
@media (min-width: 768px) {
  .section { padding-top: var(--space-10); padding-bottom: var(--space-10); }
}

/* Surfaces */
.surface-parchment  { background: var(--parchment); color: var(--ink); }
.surface-linen      { background: var(--linen); color: var(--ink); }
.surface-terracotta { background: var(--terracotta); color: var(--ink); }
.surface-ink        { background: var(--ink); color: var(--linen); }
.surface-ink h1, .surface-ink h2, .surface-ink h3 { color: var(--linen); }

/* ----- Diamond glyph ----- */
.glyph {
  display: inline-block;
  color: var(--gold);
  line-height: 1;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
}
.glyph--lg { font-size: var(--text-2xl); }
.glyph--xl { font-size: var(--text-3xl); }

.glyph-row {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

/* ----- Navigation ----- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-5);
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .nav { padding: var(--space-6) var(--space-7); }
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.nav__brand:hover { color: var(--bordeaux); }
.nav__brand-glyph {
  color: var(--gold);
  margin-left: 0.45em;
  font-size: 0.85em;
  display: inline-block;
  vertical-align: 0.05em;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--text-base);
}
.nav__link {
  color: var(--ink);
  position: relative;
  transition: color 180ms var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--bordeaux);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--bordeaux);
}

/* ----- Footer ----- */
.footer {
  padding: var(--space-8) var(--space-5) var(--space-7);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}
@media (min-width: 768px) {
  .footer { padding: var(--space-9) var(--space-7) var(--space-8); }
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  color: var(--ink);
  opacity: 0.7;
}
.footer a { transition: opacity 180ms var(--ease); }
.footer a:hover { color: var(--bordeaux); opacity: 1; }
.footer__sep { user-select: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 500;
  border-radius: var(--radius-2);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--bordeaux);
  color: var(--linen);
}
.btn--primary:hover { background: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn--ghost:hover { background: var(--bordeaux); color: var(--linen); }

/* ----- Cards ----- */
.card {
  background: var(--linen);
  color: var(--ink);
  border-radius: var(--radius-4);
  padding: var(--space-7);
  border: var(--border-hairline);
}
.card--bordeaux { border: var(--border-bordeaux); }
.card--parchment { background: var(--parchment); }
.card--terracotta { background: var(--terracotta); }
.card--ink { background: var(--ink); color: var(--linen); }

/* ----- Links inline ----- */
.link {
  color: var(--bordeaux);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover { color: var(--ink); }

/* ----- Utilities ----- */
.text-center { text-align: center; }
.italic      { font-style: italic; }
.muted       { color: rgba(13, 10, 6, 0.7); }

.stack > * + * { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-7); }
.stack-xl > * + * { margin-top: var(--space-9); }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   Home: sealed envelope opens as you scroll into the manifesto
   ========================================================================= */

:root {
  --bg-dark: #2A2520;
}

/* Home page sits on a warm dark brown so the envelope reads as a real object. */
body.manifesto {
  background: var(--bg-dark);
  color: var(--parchment);
}
body.manifesto .nav__brand,
body.manifesto .nav__link { color: var(--parchment); }
body.manifesto .nav__brand:hover,
body.manifesto .nav__link:hover { color: var(--terracotta); }
body.manifesto .footer__inner { color: var(--parchment); opacity: 0.55; }
body.manifesto .footer a:hover { color: var(--terracotta); opacity: 1; }

/* Hero: envelope centered, brand + cue below */
.hero--envelope {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}
.hero__brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--parchment);
}
.hero__cue {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  color: var(--parchment);
  opacity: 0.6;
  transition: opacity 400ms var(--ease) 200ms;
}
body.is-open .hero__cue { opacity: 0; transition: opacity 250ms var(--ease); }
.hero__cue button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
}

/* ----- Envelope: rectangle body, triangular flap on top half, wax seal at the join ----- */
.envelope {
  position: relative;
  width: clamp(300px, 64vw, 540px);
  aspect-ratio: 1.6 / 1;
  perspective: 1200px;
}

.envelope__body {
  position: absolute;
  inset: 0;
  background: var(--parchment);
  border: 1px solid rgba(13, 10, 6, 0.20);
  border-radius: 4px;
  z-index: 1;
}

/* Flap: triangle covering the top half, pointed down to where the seal sits */
.envelope__flap {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 50%;
  background: var(--linen);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 3;
  transform-origin: 50% 0%;
  transform: rotateX(0);
  transition: transform 800ms var(--ease) 100ms;
}
/* Hairline outline for the flap diagonals so the triangle reads against the body */
.envelope__flap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(13, 10, 6, 0.22);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
body.is-open .envelope__flap { transform: rotateX(-160deg); }

/* Wax seal: bordeaux circle in two halves, with the gold glyph stamped in */
.seal {
  position: absolute;
  width: clamp(60px, 11vw, 90px);
  height: clamp(60px, 11vw, 90px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.seal__half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--bordeaux);
  transition: transform 600ms var(--ease);
}
.seal__half--left {
  left: 0;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  transform-origin: 100% 50%;
}
.seal__half--right {
  right: 0;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  transform-origin: 0% 50%;
}
body.is-open .seal__half--left  { transform: translate(-9px, 5px) rotate(16deg); }
body.is-open .seal__half--right { transform: translate( 9px, 5px) rotate(-16deg); }

.seal__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  z-index: 1;
  transition: opacity 300ms var(--ease);
}
body.is-open .seal__glyph { opacity: 0; }

/* ----- Manifesto: parchment letter sitting on the dark surface ----- */
.manifesto-body {
  position: relative;
  background: var(--parchment);
  color: var(--ink);
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-9);
  padding: var(--space-8) var(--space-6) var(--space-9);
  border-radius: 4px;
}
@media (min-width: 768px) {
  .manifesto-body {
    padding: var(--space-9) var(--space-9) var(--space-10);
    margin-bottom: var(--space-10);
  }
}

/* Stanzas */
.stanza { margin: 0 auto; }
.stanza + .stanza { margin-top: var(--space-7); }
.stanza p {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.72;
  color: var(--ink);
}
@media (min-width: 768px) {
  .stanza p { font-size: 1.25rem; line-height: 1.7; }
}

/* Pivot lines */
.stanza--pivot {
  text-align: center;
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}
.stanza--pivot p {
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.stanza--welcome { text-align: center; margin-top: var(--space-8); }
.stanza--welcome p {
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
}

/* Signature */
.signature {
  text-align: center;
  margin-top: var(--space-9);
  padding: var(--space-6) 0;
}
.signature__xo {
  font-family: "Sacramento", var(--font-serif), cursive;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  margin-top: var(--space-5);
  color: var(--ink);
}
.signature__name {
  font-family: "Sacramento", var(--font-serif), cursive;
  font-size: clamp(3rem, 6.5vw, 4.25rem);
  line-height: 1;
  margin-top: var(--space-2);
  letter-spacing: 0;
  color: var(--ink);
}

/* Two doors */
.two-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--container-default);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-9);
}
@media (min-width: 768px) {
  .two-doors {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    padding: var(--space-9) var(--space-7) var(--space-10);
  }
}

.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: var(--space-8);
  border: var(--border-bordeaux);
  border-radius: var(--radius-4);
  color: var(--ink);
  transition: transform 220ms var(--ease), background 220ms var(--ease), filter 220ms var(--ease);
}
.door--dinners { background: var(--linen); }
.door--mandate { background: var(--terracotta); }
.door__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.door__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--bordeaux);
  margin-top: var(--space-7);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.door__arrow { display: inline-block; transition: transform 220ms var(--ease); }
.door:hover .door__arrow { transform: translateX(4px); }
.door:hover { filter: brightness(0.97); }

/* Stanza + signature reveal: triggered by IntersectionObserver after the first untie.
   Two-doors and the manifesto-body itself fade in alongside the letter, and roll back when is-open is removed. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Two-doors fade in via IntersectionObserver when scrolled to (uses .reveal). */

/* Step inside: single primary button at the end of the manifesto.
   Centered, with generous vertical breathing room so it reads as a
   deliberate close-of-letter action, not a button in a header strip. */
.step-inside {
  display: flex;
  justify-content: center;
  padding: var(--space-9) var(--space-5) var(--space-10);
}
@media (min-width: 768px) {
  .step-inside {
    padding: var(--space-10) var(--space-7) var(--space-10);
  }
}
.step-inside__btn {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
}

/* =========================================================================
   Mandate Gatherings page — full-bleed editorial layout
   Every section stretches edge to edge. Text lives in a readable column
   centered within each section. Backgrounds alternate linen / parchment
   with one terracotta hero, one ink framework panel, and one bordeaux
   letter panel.
   ========================================================================= */

/* Page wrapper ------------------------------------------------------------ */
body.mg-page {
  background: var(--linen);
  color: var(--ink);
}

/* Header bleeds into the parchment hero so they read as one surface. */
.mg-header {
  background: var(--parchment);
}

/* Readable column inside any full-bleed section.
   Default = comfortable prose width. --wide gives the multi-column blocks
   (process phases, creation framework) a bit more room. */
.mg-readable {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.mg-readable--wide { max-width: 64rem; }

@media (min-width: 768px) {
  .mg-readable { padding-left: var(--space-7); padding-right: var(--space-7); }
}
@media (min-width: 1200px) {
  .mg-readable { padding-left: var(--space-8); padding-right: var(--space-8); }
}

/* Shared display headline — Cormorant Garamond, sized to feel
   editorial without crowding the line on mobile. */
.mg-display {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mg-display--bordeaux { color: var(--bordeaux); }
.mg-display--linen    { color: var(--linen); }

/* Diamond section break between major chapters. */
.mg-break {
  background: var(--linen);
  display: flex;
  justify-content: center;
  padding: var(--space-7) 0;
}
.mg-break .glyph {
  font-size: var(--text-xl);
  color: var(--gold);
}

/* 1. Hero — full bleed parchment, wavy bleed into terracotta below ------ */
.mg-hero {
  position: relative;
  background: var(--parchment);
  color: var(--bordeaux);
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
/* Wavy bottom edge: a terracotta shape rises into the hero from below so
   the parchment appears to end in an organic curve instead of a straight
   horizontal seam. preserveAspectRatio='none' stretches the wave full width. */
.mg-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px; /* hairline overlap kills any sub-pixel seam */
  height: clamp(48px, 6vw, 80px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 38 Q 300 4, 600 38 T 1200 38 L 1200 80 L 0 80 Z' fill='%23D89478'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.mg-hero .mg-readable { max-width: 64rem; position: relative; z-index: 1; }
/* Eyebrow: small mono cap above the headline, ✦ in old gold leads it.
   #C4512A is a deepened terracotta used here only because the brand
   #D89478 doesn't carry enough contrast at 13px on parchment. */
.mg-hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #C4512A;
  margin: 0 0 var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.mg-hero__eyebrow-glyph {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}
.mg-hero__title {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.mg-hero__sub {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.65);
  margin-top: var(--space-7);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
/* Adjacent subhead lines sit closer together than the first sits to the headline. */
.mg-hero__sub + .mg-hero__sub {
  margin-top: var(--space-4);
}
.mg-hero__cta {
  margin-top: var(--space-7);
}
/* Hero CTA: bordeaux fill, parchment text, mono lowercase tracking. */
.mg-hero__btn {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  border: 0;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.mg-hero__btn:hover { background: var(--ink); }

/* 2. The Problem — full bleed terracotta -------------------------------- */
.mg-problem {
  position: relative;
  background: var(--terracotta);
  color: var(--linen);
  padding-top: clamp(5rem, 10vw, 9rem);
  /* Extra bottom padding to leave room for the wavy edge so the closing
     line still has breathing room above the wave. */
  padding-bottom: clamp(7rem, 12vw, 11rem);
}
/* Wavy bottom edge: parchment rises into the terracotta so the seam
   between Problem and Belief is a soft curve instead of a hard line. */
.mg-problem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(48px, 6vw, 80px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 38 Q 300 4, 600 38 T 1200 38 L 1200 80 L 0 80 Z' fill='%23EDE4D4'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.mg-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
.mg-prose p {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--linen);
}
.mg-closing-line {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.4;
  color: var(--bordeaux);
  margin-top: var(--space-8);
}
.mg-closing-line__glyph {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--gold);
  font-weight: 400;
  vertical-align: 0.05em;
}

/* 3. The Belief — full bleed parchment ---------------------------------- */
.mg-belief {
  position: relative;
  overflow: hidden; /* keep the corner cluster from bleeding outside */
  background: var(--parchment);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-belief__body {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  margin-top: var(--space-6);
}

/* 4. The Examples — full bleed linen ------------------------------------ */
.mg-examples {
  background: var(--linen);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-mono-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--bordeaux);
  margin-top: var(--space-7);
}
.mg-examples__subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.7);
  margin-top: 1.5rem;
}
.mg-scenarios {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}
.mg-scenario {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.mg-scenario__bullet {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: var(--text-md);
  line-height: 1.7;
}
.mg-scenario__text {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
}

/* 5/6. Mood Board — Polaroids pinned to a parchment wall --------------- */
.mg-mood {
  background: var(--parchment);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-mood__subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.7);
  margin-top: 1.5rem;
}
.mg-mood__board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 2.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 768px) {
  .mg-mood__board {
    /* 4 polaroids per row, always — two clean rows for the 8 photos. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Polaroid frame: cream/off-white background, thicker bottom border for
   the classic Polaroid caption space, soft drop shadow so each one
   feels lifted off the wall. Width fills the grid column up to a cap. */
.mg-polaroid {
  position: relative;
  background: #F8F2E6;
  padding: 8px 8px 40px;
  width: 100%;
  max-width: 220px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(13, 10, 6, 0.15);
}
.mg-polaroid__photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.mg-polaroid__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mg-polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gold ✦ pushpin centered on the top edge of each Polaroid, half above
   the frame so it reads like it's pinning the photo to the wall. */
.mg-polaroid__pin {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(13, 10, 6, 0.3);
  z-index: 2;
  pointer-events: none;
}

/* Per-polaroid rotation + top offset for the hand-placed bulletin-board
   feel. Tilts within ±4°, offsets within 0–18px. */
.mg-polaroid:nth-child(1) { transform: rotate(-3deg);   margin-top: 8px; }
.mg-polaroid:nth-child(2) { transform: rotate( 2deg);   margin-top: 0; }
.mg-polaroid:nth-child(3) { transform: rotate(-1.5deg); margin-top: 14px; }
.mg-polaroid:nth-child(4) { transform: rotate( 3.5deg); margin-top: 4px; }
.mg-polaroid:nth-child(5) { transform: rotate(-2.5deg); margin-top: 18px; }
.mg-polaroid:nth-child(6) { transform: rotate( 1deg);   margin-top: 6px; }
.mg-polaroid:nth-child(7) { transform: rotate(-3.5deg); margin-top: 12px; }
.mg-polaroid:nth-child(8) { transform: rotate( 2.5deg); margin-top: 2px; }

/* Mobile: smaller polaroids, tighter gap, still tilted. */
@media (max-width: 767.98px) {
  .mg-mood__board { gap: 1.5rem 1rem; }
  .mg-polaroid {
    max-width: 160px;
    padding: 6px 6px 30px;
  }
  .mg-polaroid__pin { font-size: 18px; }
}

/* 6. The Process — full bleed parchment --------------------------------- */
.mg-process {
  position: relative;
  overflow: hidden; /* keep the corner cluster from bleeding outside */
  background: var(--parchment);
  padding-top: clamp(5rem, 10vw, 9rem);
  /* Extra bottom padding so the four-phases content clears the wavy edge. */
  padding-bottom: clamp(7rem, 12vw, 11rem);
}
/* Wavy bottom edge: terracotta rises into the parchment so the seam
   between Process and Testimonials is a soft curve instead of a hard line. */
.mg-process::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(48px, 6vw, 80px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 38 Q 300 4, 600 38 T 1200 38 L 1200 80 L 0 80 Z' fill='%23D89478'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}
.mg-process__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  line-height: 1.55;
  color: var(--bordeaux);
  margin-top: var(--space-5);
}
.mg-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-9);
}
@media (min-width: 768px) {
  .mg-phases {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-9);
    row-gap: var(--space-9);
  }
}
.mg-phase { display: flex; flex-direction: column; }
.mg-phase__num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  color: var(--bordeaux);
  line-height: 1;
}
.mg-phase__name {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: var(--space-3);
}
.mg-phase__body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  margin-top: var(--space-4);
}

/* 7. Testimonials — full bleed terracotta, parchment paper cards ------- */
.mg-testimonials {
  background: var(--terracotta);
  padding: 5rem 2rem;
}

/* Container: stacks on mobile, single horizontal row of 4 from 768px up. */
.mg-tcards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .mg-tcards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;
    row-gap: 0;
    /* align-items: stretch (default) so every card gets the same height */
  }
}

/* Each parchment card: sharp corners, soft drop shadow, slight tilt.
   Flex column lets the attribution stick to the bottom on the short
   card so all four cards are exactly the same size. */
.mg-tcard {
  background: var(--parchment);
  width: 100%;
  padding: 1.75rem 1.5rem;
  margin: 0;
  box-shadow: 0 8px 24px rgba(13, 10, 6, 0.18);
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
/* Mobile: gentle ±1deg tilts so they still feel pinned. */
.mg-tcard--tl { transform: rotate(-1deg); }
.mg-tcard--tr { transform: rotate( 1deg); }
.mg-tcard--bl { transform: rotate( 1deg); }
.mg-tcard--br { transform: rotate(-1deg); }

@media (min-width: 768px) {
  /* Each position gets its own angle + a different top offset so the
     four cards sit at varied heights like notes left on a table. */
  .mg-tcard--tl { transform: rotate(-2.2deg); margin-top: 0; }
  .mg-tcard--tr { transform: rotate( 1.8deg); margin-top: 1.5rem; }
  .mg-tcard--bl { transform: rotate( 1.5deg); margin-top: 0.8rem; }
  .mg-tcard--br { transform: rotate(-1.8deg); margin-top: 0.3rem; }
}

/* Quote fills available vertical space; attribution gets pushed to the
   bottom on shorter cards so every card visually balances. */
.mg-tcard__quote {
  flex: 1 0 auto;
  margin: 0;
}

.mg-tcard__quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* Attribution: hairline divider above, mono-cap small label below. */
.mg-tcard__attr {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(122, 45, 65, 0.3);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.mg-tcard__attr cite { font-style: normal; }

/* 7.5 The rooms we build — full bleed linen, 2-col editorial card grid.
   No card chrome (no border, no shadow) — cards sit directly on the linen
   surface like an editorial spread, not a UI card list. */
.mg-rooms {
  background: var(--linen);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-rooms__subhead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.7);
  margin-top: var(--space-5);
  max-width: 44rem;
}
.mg-rooms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 768px) {
  .mg-rooms__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 3rem;
  }
}
.mg-room__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--bordeaux);
}
.mg-room__body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  margin-top: 0.5rem;
}

/* Section divider — wavy terracotta hairline with gold ✦ floating at
   the center. The line is drawn as two SVG paths with a gap in the
   middle so the glyph appears to sit on top, breaking the line. */
.mg-divider {
  background: var(--linen);
  padding: 4rem 0;
  display: flex;
  justify-content: center;
}
.mg-divider__svg {
  display: block;
  width: 50%;
  max-width: 600px;
  height: auto;
}
@media (max-width: 767.98px) {
  .mg-divider__svg { width: 70%; }
}

/* 9.5 Common questions — full bleed linen, accordion FAQ.
   Uses native <details>/<summary>. Smooth height animation via the
   grid-template-rows 0fr→1fr trick wrapped around the answer. */
.mg-faq {
  background: var(--parchment);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-faq__subhead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.7);
  margin-top: var(--space-5);
}
.mg-faq__list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 0.5px solid rgba(13, 10, 6, 0.15);
}
.mg-faq__item {
  border-bottom: 0.5px solid rgba(13, 10, 6, 0.15);
}
.mg-faq__question {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: 1.25rem 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 180ms var(--ease);
}
.mg-faq__question::-webkit-details-marker { display: none; }
.mg-faq__question::marker { content: ""; }
.mg-faq__question:hover { color: var(--bordeaux); }
.mg-faq__q-text { flex: 1; }
.mg-faq__indicator {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--bordeaux);
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
}
.mg-faq__item[open] .mg-faq__indicator {
  transform: rotate(45deg); /* + becomes ✕ */
}
/* Smooth expand/collapse: wrapper animates 0fr→1fr on grid-template-rows.
   The answer inside uses overflow:hidden so content clips during the
   transition. */
.mg-faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease);
}
.mg-faq__item[open] .mg-faq__answer-wrap {
  grid-template-rows: 1fr;
}
.mg-faq__answer {
  overflow: hidden;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(13, 10, 6, 0.85);
}
.mg-faq__item[open] .mg-faq__answer {
  padding-bottom: 1.25rem;
}

/* 8. The Creation Framework — linen surround, dark photo inset --------
   The section background is linen, flowing past from the sections above
   and below. The dark photographic block sits as a rounded inset on top. */
.mg-framework {
  background: var(--linen);
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.mg-framework__inset {
  /* The candlelit-table photo with a 35% ink overlay — slightly lighter
     than before so more of the photo's warmth and detail comes through.
     Capped at ~90% width on desktop, 95% on mobile, with rounded corners
     and a soft drop shadow so it reads as a contained artifact. */
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(13, 10, 6, 0.35), rgba(13, 10, 6, 0.35)),
    url("framework-bg-sm.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--linen);
  max-width: 90%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(13, 10, 6, 0.25);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
}
@media (max-width: 767.98px) {
  .mg-framework__inset {
    max-width: 95%;
    border-radius: 4px;
    padding: 3rem 1.5rem;
  }
}
.mg-framework .mg-display {
  /* Tuned to fit the 47-char heading on a single line inside the inset
     at most desktop widths, while still scaling down gracefully on mobile. */
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: -0.015em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.mg-elements {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-9);
}
.mg-element {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}
@media (min-width: 768px) {
  .mg-element {
    grid-template-columns: 14rem 1fr;
    gap: var(--space-8);
    align-items: baseline;
  }
}
.mg-element__name {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--terracotta);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.mg-element__body {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  color: var(--linen);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.mg-element-sep {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: var(--text-md);
  line-height: 1;
  padding: var(--space-3) 0;
  opacity: 0.85;
}

/* 9. A note from the one at the helm — full bleed bordeaux ------------ */
.mg-letter {
  position: relative;
  background: var(--bordeaux);
  color: var(--linen);
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(6rem, 12vw, 10rem);
}
/* Wider readable container for this section so the two-column block
   has room to breathe. */
.mg-letter .mg-readable {
  max-width: 50rem; /* ~800px */
}
/* Section heading at the top, centered, generous space above + below. */
.mg-letter__heading {
  text-align: center;
  margin: 0 0 3rem;
}
/* Two-column block: tilted Polaroid-style photo on left, intro on right.
   align-items: center vertically anchors the paragraph at roughly the
   center of the photo so they feel related, not stacked. */
.mg-letter__columns {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0 0 4rem;
}
.mg-letter__photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--parchment);
  box-shadow: 0 4px 16px rgba(13, 10, 6, 0.25);
  transform: rotate(-3.5deg);
}
.mg-letter__intro {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  color: var(--parchment);
  text-align: left;
  margin: 0;
  max-width: 28rem;
}
/* Tablet: shrink photo + gap; keep two-column. */
@media (max-width: 899.98px) and (min-width: 768px) {
  .mg-letter__photo {
    width: 160px;
    height: 160px;
  }
  .mg-letter__columns {
    gap: 2rem;
  }
}
/* Mobile: stack vertically, photo on top centered, intro below centered. */
@media (max-width: 767.98px) {
  .mg-letter__columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .mg-letter__photo {
    width: 140px;
    height: 140px;
  }
  .mg-letter__intro {
    text-align: center;
    font-size: 17px;
  }
}
.mg-letter__body {
  /* Caveat: handwritten feel, but with steady print-style letterforms
     so it stays legible at long body length. Bumped size + line-height
     to compensate for handwriting fonts reading visually smaller. */
  font-family: "Caveat", "Cormorant Garamond", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.5;
  color: var(--linen);
}
.mg-letter__signoff {
  /* Sacramento for the signature: matches the home-page signature style. */
  font-family: "Sacramento", "Caveat", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: var(--linen);
  margin-top: var(--space-7);
}
.mg-letter__glyph {
  position: absolute;
  right: clamp(var(--space-5), 4vw, var(--space-9));
  bottom: clamp(var(--space-5), 4vw, var(--space-9));
  color: var(--gold);
  font-size: var(--text-2xl);
  line-height: 1;
}

/* 10. Inquiry Form — full bleed linen ---------------------------------- */
.mg-inquiry {
  background: var(--linen);
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.mg-inquiry__intro {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  margin-top: var(--space-5);
}
.tally-embed {
  margin: var(--space-8) 0 0;
  text-align: left;
}
.tally-embed iframe {
  display: block;
  width: 100%;
  min-height: 227px;
  border: 0;
}

/* Hand-drawn wavy line texture for linen and parchment sections.
   Three variants rotate so the texture feels organic, not repeated.
   Stroke held at ~0.75px via vector-effect: non-scaling-stroke so the
   lines stay hair-thin no matter how tall the section stretches.
   Only applied to linen + parchment surfaces — never to the terracotta
   hero, ink framework, or bordeaux letter panels. */
.mg-examples,
.mg-inquiry {
  background-color: var(--linen);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.mg-belief,
.mg-process {
  background-color: var(--parchment);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Variant 1 — 3 loose curves, more sway. Process gets the corner cluster
   (mirrored to bottom-left) layered on top of the sketch texture. */
.mg-process {
  background-image:
    url("wavy-corner-left.svg"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'><g fill='none' stroke='%23D89478' stroke-width='0.75' stroke-linecap='round' vector-effect='non-scaling-stroke' opacity='0.13'><path d='M0 180 Q 220 120, 460 175 T 880 200 T 1200 165'/><path d='M0 430 Q 260 370, 520 425 T 980 450 T 1200 410'/><path d='M0 680 Q 280 620, 580 685 T 1000 700 T 1200 670'/></g></svg>");
  background-position: bottom left, 0 0;
  background-size: clamp(280px, 38vw, 520px) auto, 100% 100%;
  background-repeat: no-repeat, no-repeat;
}

/* Variant 2 — 4 gentler curves */
.mg-belief {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'><g fill='none' stroke='%23D89478' stroke-width='0.75' stroke-linecap='round' vector-effect='non-scaling-stroke' opacity='0.14'><path d='M0 130 Q 240 100, 500 130 T 980 150 T 1200 130'/><path d='M0 340 Q 280 310, 540 340 T 1020 360 T 1200 345'/><path d='M0 540 Q 260 510, 520 540 T 1000 560 T 1200 545'/><path d='M0 720 Q 240 690, 500 720 T 980 735 T 1200 720'/></g></svg>");
}

/* Diagonal wavy-line cluster in the lower-right corner. Reusable: drop
   the .mg-corner-waves class on any linen or parchment section. The
   cluster sits over any existing background-image (the sketch texture). */
.mg-corner-waves {
  /* Second background layer: corner SVG anchored bottom-right, sized so
     it occupies ~the right third of the section width and never crowds
     the readable column. */
  background-image:
    url("wavy-corner.svg"),
    var(--bg-sketch-fallback, none);
}
/* Belief gets the corner cluster + keeps its variant-2 sketch texture. */
.mg-belief {
  background-image:
    url("wavy-corner.svg"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'><g fill='none' stroke='%23D89478' stroke-width='0.75' stroke-linecap='round' vector-effect='non-scaling-stroke' opacity='0.14'><path d='M0 130 Q 240 100, 500 130 T 980 150 T 1200 130'/><path d='M0 340 Q 280 310, 540 340 T 1020 360 T 1200 345'/><path d='M0 540 Q 260 510, 520 540 T 1000 560 T 1200 545'/><path d='M0 720 Q 240 690, 500 720 T 980 735 T 1200 720'/></g></svg>");
  background-position: bottom right, 0 0;
  background-size: clamp(280px, 38vw, 520px) auto, 100% 100%;
  background-repeat: no-repeat, no-repeat;
}

/* Variant 3 — 5 close-set curves, most architectural */
.mg-examples,
.mg-inquiry {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'><g fill='none' stroke='%23D89478' stroke-width='0.75' stroke-linecap='round' vector-effect='non-scaling-stroke' opacity='0.11'><path d='M0 110 Q 200 80, 420 105 T 820 125 T 1200 110'/><path d='M0 275 Q 240 245, 480 275 T 920 295 T 1200 280'/><path d='M0 430 Q 280 400, 560 430 T 980 450 T 1200 435'/><path d='M0 590 Q 260 560, 520 590 T 960 610 T 1200 595'/><path d='M0 745 Q 220 715, 460 745 T 900 765 T 1200 750'/></g></svg>");
}

/* No-JS fallback: hide the envelope and cue, show the manifesto as a static letter */
.no-js .envelope,
.no-js .hero__cue { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .two-doors { opacity: 1; transform: none; transition: none; }
  .envelope__flap,
  .seal__half,
  .seal__glyph,
  .hero__cue { transition: none; }
}
