/* ============ THE TYPEFACE ============
   Milton Leroy — sanctuary's logo font (custom font, in-app at assets/fonts/).
   milton-leroy-classic.ttf also lives there — declared nowhere yet, by design. */
@font-face {
  font-family: 'Milton Leroy';
  src: url('https://lovable-crab-328.convex.cloud/api/storage/5efdff04-b151-46c2-82d4-62842258114c') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KPX';
  src: url('https://lovable-crab-328.convex.cloud/api/storage/3e9734cf-3d20-4f89-ac9a-00eec7840325') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* the wordmark — the logo is the only thing that wears Milton Leroy:
   nav brand, footer mark, and the big “sanctuary” on the home hero. */
.nav-brand,
.footer-mark,
#page-home .hero h1 {
  font-family: var(--wordmark);
}

:root {
    --linen: #E2DED3;
    --sage: #A8B89A;
    --sage-light: #C7D2BB;
    --sage-deep: #8A9B7E;
    --peach: #F4C8A8;
    --peach-soft: #F8DCC4;
    --sunrise: #E9B894;
    --gold: #D4A574;
    --seaglass: #B8CFC9;
    --ink: #3D332A;
    --cacao: #6B4A35;
    --whisper: #7A6B5E;
    --hush: #B5A695;
    --soft-earth: #9C8D7E;
    --serif: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    --script: 'Pinyon Script', cursive;
    --wordmark: 'KPX', 'Milton Leroy', 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    --img-radius: 6px;
    --gutter: clamp(28px, 9vw, 184px);
    --mosaic-gap: 14px;
    --mark-edge: 30px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  /* paint the canvas + browser chrome to match the header — the shell body
     no longer scrolls, so any revealed edge (safari chrome, overscroll,
     wrapper) must read as linen, never default black */
  html { scroll-behavior: smooth; height: 100%; background: #E2DED3; }

  body {
    font-family: var(--serif);
    color: var(--ink);
    background: var(--linen);
    font-weight: 400;
    line-height: 1.6;
    height: 100%;
    overflow: hidden;
    text-transform: lowercase;
  }

  /* the body is a fixed shell — the page scrolls inside #siteScroll. inside
     the platform's render iframe, position:fixed drifts on ios whenever the
     DOCUMENT scrolls (the floating detached nav), so the document never
     scrolls: this container does, and the fixed nav stays truly pinned. */
  #siteScroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* ============ NAV ============ */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px var(--gutter);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.6s ease, padding 0.4s ease;
    pointer-events: none;
  }
  nav.scrolled {
    background: rgba(226, 222, 211, 0.92);
    backdrop-filter: blur(12px);
    padding: 18px var(--gutter);
    box-shadow: 0 1px 0 rgba(61, 51, 42, 0.04);
  }
  nav > * { pointer-events: auto; }

  .nav-brand {
    font-size: 20px;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--cacao);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.5s ease;
  }
  nav.scrolled .nav-brand { opacity: 1; }
  .nav-brand:hover { opacity: 0.7; }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    opacity: 1;
    transition: opacity 0.4s ease;
  }
  .nav-links a {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 14px rgba(120,60,80,0.5);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.5s ease, text-shadow 0.5s ease, opacity 0.3s ease;
  }
  nav.scrolled .nav-links a {
    color: var(--cacao);
    text-shadow: none;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s ease;
  }
  .nav-links a:hover::after,
  .nav-links a.active::after { width: 100%; }
  .nav-links a:hover { opacity: 0.75; }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
    z-index: 101;
    display: flex;
    background: none;
    border: none;
    color: #fff;
    filter: drop-shadow(0 1px 10px rgba(150,90,110,0.5));
    cursor: default;
    padding: 0;
    width: 27px;
    height: 16px;
    flex: none;
    align-items: center;
    justify-content: center;
    transition: color 0.4s ease, filter 0.4s ease;
    pointer-events: none;
  }
  nav.scrolled .nav-toggle {
    color: var(--cacao);
    filter: none;
  }
  @media (min-width: 769px) {
    .nav-toggle { display: none; }
    nav.scrolled .nav-links { margin-right: 0; }
  }
  .nav-toggle svg {
    display: block;
    width: 27px;
    height: auto;
    overflow: visible;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-toggle .icon-waves path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .nav-toggle .icon-close {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: rotate(-30deg) scale(0.7);
  }
  .nav-toggle .icon-close path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }

  /* ============ PAGES ============ */
  .page { display: none; }
  .page.active { display: block; animation: pageIn 0.8s ease both; }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 38%;
    background-image:
      linear-gradient(180deg,
        rgba(236,158,182,0.30) 0%,
        rgba(244,184,182,0.20) 34%,
        rgba(250,206,182,0.14) 60%,
        rgba(253,224,202,0.28) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fe2dc8b5a-f0bd-4457-817c-bba111a50c2a&w=1920&q=75'),
      linear-gradient(180deg, #EFA6C4 0%, #F4B6C0 34%, #F8C6BC 60%, #FBD6C4 82%, #FDE6D2 100%);
    animation: heroDrift 42s infinite ease-in-out alternate;
  }

  @keyframes heroDrift {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.06); }
  }

  /* ============ BREATH SPIRAL ============ */
  .breath-spiral {
    width: clamp(96px, 12vw, 150px);
    height: clamp(96px, 12vw, 150px);
    margin: 30px auto 0;
    display: block;
    opacity: 0;
    animation: spiralFadeIn 2.4s ease 5.4s forwards;
    overflow: visible;
  }
  @keyframes spiralFadeIn {
    from { opacity: 0; }
    to { opacity: 0.92; }
  }
  .breath-spiral path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    animation: spiralBreathe 15s cubic-bezier(0.42, 0, 0.58, 1) 5.4s infinite;
    filter: drop-shadow(0 1px 6px rgba(150,90,110,0.4));
  }
  @keyframes spiralBreathe {
    0%      { stroke-dashoffset: var(--len); }
    33.33%  { stroke-dashoffset: 0; }
    50%     { stroke-dashoffset: 0; }
    83.33%  { stroke-dashoffset: var(--len); }
    100%    { stroke-dashoffset: var(--len); }
  }
  @media (prefers-reduced-motion: reduce) {
    .breath-spiral path { animation: none; stroke-dashoffset: 0; }
  }

  .hero .breath {
    margin-top: 26px;
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.35em;
    font-weight: 400;
    text-shadow: 0 1px 16px rgba(150,90,110,0.55);
  }
  .hero .breath .w {
    opacity: 0;
    animation: breathIn 1.6s ease forwards;
  }
  .hero .breath .w:nth-of-type(1) { animation-delay: 1.8s; }
  .hero .breath .w:nth-of-type(3) { animation-delay: 3.2s; }
  .hero .breath .w:nth-of-type(5) { animation-delay: 4.6s; }
  .hero .breath .sep {
    margin: 0 14px;
    opacity: 0;
    animation: breathSep 1.6s ease forwards;
  }
  .hero .breath .sep:nth-of-type(2) { animation-delay: 2.7s; }
  .hero .breath .sep:nth-of-type(4) { animation-delay: 4.1s; }
  @keyframes breathSep {
    from { opacity: 0; }
    to { opacity: 0.5; }
  }
  @keyframes breathIn {
    from { opacity: 0; }
    to { opacity: 0.92; }
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at center, rgba(120,70,90,0.0) 0%, rgba(120,70,90,0.05) 60%, rgba(120,70,90,0.14) 100%);
    z-index: 1;
    pointer-events: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38vh;
    background: linear-gradient(180deg,
      rgba(226, 222, 211, 0) 0%,
      rgba(226, 222, 211, 0.15) 18%,
      rgba(226, 222, 211, 0.45) 45%,
      rgba(226, 222, 211, 0.8) 72%,
      var(--linen) 100%);
    z-index: 1;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter);
    color: #fff;
    opacity: 0;
    animation: heroIn 2.5s ease 0.4s forwards;
    margin-bottom: 6vh;
  }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(52px, 9.7vw, 126px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 28px rgba(120,60,80,0.5), 0 1px 4px rgba(90,45,60,0.35);
  }
  .hero .tagline {
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-top: 18px;
    color: #fff;
    text-shadow: 0 1px 18px rgba(120,60,80,0.55);
    opacity: 0.97;
  }

  /* ============ INTERIOR PAGE HERO BASE ============ */
  .hero.hero-page .hero-slide {
    background-position: center;
    background-image:
      linear-gradient(180deg, rgba(40,52,42,0.5) 0%, rgba(45,58,46,0.4) 45%, rgba(40,52,42,0.55) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fedd2c20b-ff8f-4ad8-a27f-4987886160b5&w=1920&q=75'),
      linear-gradient(135deg, #6E7E62 0%, #8A9B7E 50%, #7E8E84 100%);
  }
  .hero.hero-page::after {
    background: linear-gradient(180deg,
      rgba(226, 222, 211, 0) 0%,
      rgba(226, 222, 211, 0.15) 18%,
      rgba(226, 222, 211, 0.45) 45%,
      rgba(226, 222, 211, 0.8) 72%,
      var(--linen) 100%);
  }
  .hero.hero-page .hero-content {
    color: #fff;
    margin-bottom: 6vh;
  }
  .hero.hero-page .hero-content h1 {
    color: #fff;
    text-shadow: 0 2px 30px rgba(10,24,14,0.5);
    font-size: clamp(34px, 5.5vw, 72px);
  }
  .hero.hero-page .hero-content .tagline {
    color: #fff;
    text-shadow: 0 1px 18px rgba(10,24,14,0.55);
    opacity: 0.97;
  }

  .hero.hero-offerings .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(40,52,42,0.5) 0%, rgba(45,58,46,0.4) 45%, rgba(40,52,42,0.55) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fedd2c20b-ff8f-4ad8-a27f-4987886160b5&w=1920&q=75'),
      linear-gradient(135deg, #6E7E62 0%, #8A9B7E 50%, #7E8E84 100%);
  }

  .hero.hero-events .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(40,48,42,0.5) 0%, rgba(45,52,42,0.42) 45%, rgba(38,46,36,0.56) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fffd9042c-8391-4e83-8748-8e453655ad9d&w=1920&q=75'),
      linear-gradient(135deg, #7E7A56 0%, #8A9B7E 50%, #6E7E62 100%);
  }

  .hero.hero-about .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(38,50,40,0.5) 0%, rgba(44,56,46,0.4) 45%, rgba(38,50,40,0.55) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F3c318da3-63f4-466f-b68d-bacde651a667&w=1920&q=75'),
      linear-gradient(135deg, #6E7E62 0%, #8A9B7E 50%, #7E8E84 100%);
  }

  .hero.hero-book .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(44,40,34,0.52) 0%, rgba(48,44,38,0.42) 45%, rgba(42,38,32,0.58) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F7da55f1a-86e3-4ac8-9fff-6669ffe23e22&w=1920&q=75'),
      linear-gradient(135deg, #8A6E52 0%, #9C8D7E 50%, #7E7A62 100%);
  }

  /* testimonials hero — its OWN image, fully independent of the contact (book)
     hero. swap only this url to change the testimonials photo without touching contact. */
  .hero.hero-testimonials .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(44,40,34,0.52) 0%, rgba(48,44,38,0.42) 45%, rgba(42,38,32,0.58) 100%),
      url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fdfe4a5af-9c70-4c07-a7d9-c59d02bbf34d&w=1920&q=75'),
      linear-gradient(135deg, #8A6E52 0%, #9C8D7E 50%, #7E7A62 100%);
  }

  /* ============ LANDING ============ */
  .landing {
    padding: 120px var(--gutter) 80px;
    text-align: center;
    background: var(--linen);
    position: relative;
    z-index: 2;
  }
  .landing-inner {
    max-width: 880px;
    margin: 0 auto;
  }
  .landing-eyebrow {
    font-family: var(--serif);
    font-size: clamp(15px, 1.7vw, 18px);
    letter-spacing: 0.3em;
    color: var(--cacao);
    font-weight: 500;
    margin: 0 auto 28px;
    display: block;
    max-width: 460px;
    text-align: left;
  }
  .landing-line {
    font-family: var(--serif);
    font-size: clamp(48px, 7.5vw, 86px);
    font-weight: 400;
    color: var(--cacao);
    letter-spacing: 0.005em;
    line-height: 1.15;
    margin-bottom: 72px;
  }
  .landing-paragraph {
    font-size: clamp(19px, 2.1vw, 24px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--cacao);
    letter-spacing: 0.005em;
    max-width: 640px;
    margin: 0 auto;
  }
  .landing-paragraph + .landing-paragraph {
    margin-top: 14px;
  }

  .welcome-lines {
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.8s ease, transform 1.8s ease;
  }
  .welcome-lines.shown {
    opacity: 1;
    transform: translateY(0);
  }
  .welcome-lines p {
    font-family: var(--serif);
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--cacao);
    letter-spacing: 0.18em;
    margin-bottom: 20px;
  }
  .welcome-lines p:last-child { margin-bottom: 0; }
  .welcome-lines p.belong {
    margin-top: 32px;
    font-size: clamp(17px, 1.95vw, 20px);
    color: var(--hush);
  }

  /* ============ PACE OF MODERN LIFE ============ */
  .pace-heading {
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--cacao);
    letter-spacing: 0.005em;
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
  }
  .pace-body {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
  }
  .pace-body p {
    font-size: clamp(17px, 1.9vw, 20px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--whisper);
    letter-spacing: 0.01em;
    margin-bottom: 22px;
  }
  .pace-body p:last-child { margin-bottom: 0; }

  /* ============ CONTAINED CEREMONY PHOTO ============ */
  .ceremony-feature {
    padding: 40px var(--gutter) 110px;
    background: var(--linen);
    text-align: center;
  }
  .ceremony-feature-frame {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--img-radius);
    background: linear-gradient(135deg, var(--peach-soft), var(--sage-light));
  }
  .ceremony-feature-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1s ease, transform 1.4s ease;
  }
  .ceremony-feature-frame img.loaded {
    opacity: 1;
    transform: scale(1);
  }

  /* ============ CEREMONY IMAGERY ============ */
  .ceremony {
    padding: 32px var(--gutter) 56px;
    background: var(--linen);
    text-align: center;
  }
  .ceremony-mosaic {
    display: flex;
    align-items: flex-start;
    gap: var(--mosaic-gap);
    max-width: 1500px;
    margin: 0 auto 96px;
  }
  .mosaic-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--mosaic-gap);
    min-width: 0;
  }
  .ceremony-img {
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--img-radius);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
  }
  .ceremony-img.in-view { opacity: 1; transform: translateY(0); }
  .ceremony-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .m-1 { aspect-ratio: 4 / 5; }
  .m-2 { aspect-ratio: 4 / 3; }
  .m-3 { aspect-ratio: 4 / 3; }
  .m-4 { aspect-ratio: 4 / 5; }
  .ceremony-img.c-kenna {
    background: linear-gradient(135deg, var(--peach-soft), var(--sage-light));
  }
  .ceremony-img.c-ceremony {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F19fca159-22e2-43e4-b225-e74ddfeba424&w=1920&q=75');
  }
  .ceremony-img.c-altar {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F7a6c2340-f7c2-4a1b-9aa2-8f603b4abf1b&w=1920&q=75');
  }
  .ceremony-img.c-dark {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F8c776eb5-1963-4655-875d-b98d5518ddd6&w=1920&q=75');
  }
  .ceremony-line {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--cacao);
    letter-spacing: 0.005em;
    margin: 0 auto;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    will-change: font-size;
  }
  .ceremony-credit {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--hush);
    font-weight: 500;
    text-align: center;
    display: block;
  }
  .ceremony-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.5);
    padding-bottom: 2px;
    margin-right: -0.25em;
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
  }
  /* the dash hangs outside the centered name — the name itself is what
     centers under the quote */
  .ceremony-credit a::before {
    content: '—';
    position: absolute;
    right: calc(100% + 0.6em);
    border: none;
  }
  .ceremony-credit a:hover {
    color: var(--gold);
    border-color: var(--gold);
  }

  /* ============ SECTIONS ============ */
  .section {
    padding: 140px var(--gutter);
    background: var(--linen);
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  .container-narrow {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .welcome-paragraph {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    letter-spacing: 0.005em;
  }
  .welcome-paragraph em {
    font-style: normal;
    color: var(--sage-deep);
  }

  .declarative {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.005em;
    color: var(--ink);
    text-align: center;
    padding: 160px var(--gutter);
    background: var(--linen);
  }
  .declarative em {
    font-style: normal;
    color: var(--sage-deep);
  }

  /* ============ THREE-FOLD LINE ============ */
  .three-fold {
    text-align: center;
    padding: 0 var(--gutter) 70px;
    background: var(--linen);
  }
  .three-fold-static {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(16px, 3.5vw, 52px);
    max-width: 1100px;
    margin: 0 auto;
    white-space: nowrap;
  }
  .three-fold-static .phrase {
    font-size: 20px;
    letter-spacing: 0.4em;
    color: var(--hush);
    opacity: 0.85;
    font-weight: 400;
    white-space: nowrap;
  }
  /* balance the line: the leading pad on the first phrase is mirrored by a
     negative margin on the last, cancelling its trailing letter-spacing so
     the visible glyphs sit centered (spacing itself stays uniform) */
  .three-fold-static .phrase:first-of-type { padding-left: 0.4em; }
  .three-fold-static .phrase:last-of-type { margin-right: -0.4em; }
  .three-fold-static .tf-sep {
    width: 1px;
    height: 20px;
    background: var(--gold);
    opacity: 0.5;
    flex: none;
  }

  /* ============ SECTION HEADERS ============ */
  .section-eyebrow {
    font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: 0.35em;
    color: var(--hush);
    margin-bottom: 20px;
    display: block;
    text-align: center;
  }
  .section-title {
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: var(--cacao);
    margin-bottom: 80px;
    letter-spacing: 0.005em;
  }
  .section-title em {
    font-style: normal;
    color: var(--cacao);
  }

  .section-eyebrow.sm {
    font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: 0.35em;
    margin-bottom: 14px;
  }
  .section-title.sm {
    font-size: clamp(30px, 4.6vw, 56px);
    margin-bottom: 0;
  }

  /* ============ OFFERINGS PREVIEW ============ */
  .offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
    margin-top: 60px;
    align-items: stretch;
  }
  .offering-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease, translate 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }
  .offering-card.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  .offering-card:hover .offering-image img,
  .offering-card:hover .offering-image {
    transform: scale(1.02);
  }
  .offering-card:hover .offering-name {
    color: var(--gold);
  }
  .offering-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border-radius: var(--img-radius);
    transition: transform 0.5s ease;
  }
  .offering-image.img-1 {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F9d4a0545-da9e-45ec-b28a-a8a7f3c2ff1f&w=1920&q=75');
  }
  .offering-image.img-2 {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2F23e98d00-2d48-4a56-bde9-daf7f3072866&w=1920&q=75');
  }
  .offering-image.img-3 {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fedd2c20b-ff8f-4ad8-a27f-4987886160b5&w=1920&q=75');
  }
  .offering-image.img-4 {
    background-image: url('/_next/image?url=https%3A%2F%2Flovable-crab-328.convex.cloud%2Fapi%2Fstorage%2Fe1adb5a6-ca27-4a26-ba0a-bccc5328463f&w=1920&q=75');
  }
  .offering-name {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 400;
    color: var(--cacao);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    line-height: 1.25;
    transition: color 0.3s ease;
  }
  .offering-desc {
    font-size: clamp(15px, 1.5vw, 16px);
    line-height: 1.5;
    color: var(--hush);
    font-weight: 400;
    letter-spacing: 0.015em;
  }

  /* ============ EVENTS PREVIEW ============ */
  .events-list {
    max-width: 560px;
    margin: 0 auto;
  }
  .event-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid rgba(61, 51, 42, 0.07);
  }
  .event-row:last-child { border-bottom: none; }
  .event-date {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 500;
    min-width: 92px;
  }
  .event-name {
    font-size: 18px;
    font-weight: 400;
    color: var(--cacao);
    letter-spacing: 0.01em;
  }
  .event-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--hush);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-top: 5px;
    max-width: 400px;
  }

  a.event-row {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.35s ease, padding 0.35s ease;
    border-radius: var(--img-radius);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  a.event-row:hover {
    background: rgba(212, 165, 116, 0.09);
  }
  a.event-row .event-name {
    transition: color 0.3s ease;
  }
  a.event-row:hover .event-name {
    color: var(--gold);
  }
  a.event-row:hover .event-date {
    opacity: 0.82;
  }

  /* ============ TESTIMONIALS ============ */
  .testimonials {
    padding: 64px var(--gutter) 72px;
    background: var(--linen);
    text-align: center;
  }
  .review-stage {
    display: grid;
    max-width: 600px;
    margin: 44px auto 0;
    touch-action: pan-y;
    cursor: grab;
  }
  .review-stage:active { cursor: grabbing; }
  .review {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
  }
  .review.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .review-mark {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 18px;
    user-select: none;
  }
  .review-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.7;
    color: var(--cacao);
    letter-spacing: 0.005em;
    max-width: 540px;
    margin: 0 auto 28px;
    padding: 0 12px;
  }
  .review-name {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--hush);
    font-weight: 500;
  }
  .review-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 44px;
  }
  .review-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hush);
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    border: none;
    padding: 0;
  }
  .review-dot.active {
    opacity: 1;
    transform: scale(1.4);
    background: var(--gold);
  }

  /* ============ BENEDICTION ============ */
  .benediction {
    text-align: center;
    padding: 96px var(--gutter) 104px;
    background: var(--linen);
  }
  .benediction-text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.4;
    color: var(--cacao);
    letter-spacing: 0.01em;
    max-width: 760px;
    margin: 0 auto;
  }
  .benediction-text.eyebrow-match {
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.16em;
    color: var(--hush);
  }
  .benediction-icon {
    width: 60px;
    margin: 0 auto 32px;
    opacity: 0.5;
  }

  /* ============ ICONS / DIVIDERS ============ */
  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px var(--gutter);
    opacity: 0.55;
  }
  .divider svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
  }
  .divider .line {
    width: 80px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
  }

  /* ============ OFFERINGS PAGE ============ */
  .offering-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 90px var(--gutter);
    max-width: 1460px;
    margin: 0 auto;
    scroll-margin-top: 90px;
  }
  .offering-detail.reverse { direction: rtl; }
  .offering-detail.reverse > * { direction: ltr; }
  .offering-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--linen);
    border-radius: var(--img-radius);
    align-self: center;
    justify-self: stretch;
  }
  .offering-detail-content h3 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--cacao);
    margin-bottom: 20px;
    letter-spacing: 0.005em;
    line-height: 1.15;
  }
  .offering-detail-content .subtitle {
    color: var(--hush);
    font-size: 19px;
    margin-bottom: 32px;
    font-weight: 400;
  }
  .offering-detail-content p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--whisper);
    font-weight: 400;
    margin-bottom: 24px;
  }
  .offering-detail-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--cacao);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
  }
  .offering-detail-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
  }
  .offering-detail.flash .offering-detail-content h3 {
    animation: flashName 1.6s ease;
  }
  @keyframes flashName {
    0%, 100% { color: var(--cacao); }
    30% { color: var(--gold); }
  }

  #offering-sacred { padding-top: 90px; }

  .hero-merge-pad { padding-top: 90px; }

  /* ============ EVENTS PAGE ============ */
  .event-card {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 56px 48px;
    background: transparent;
    border-left: 1px solid var(--gold);
    position: relative;
    scroll-margin-top: 110px;
    transition: border-color 0.4s ease;
  }
  .event-card-date {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
  }
  .event-card-name {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 400;
    color: var(--cacao);
    margin-bottom: 14px;
    letter-spacing: 0.005em;
    transition: color 0.4s ease;
  }
  .event-card-meta {
    font-size: 15px;
    color: var(--hush);
    margin-bottom: 32px;
    font-weight: 400;
  }
  .event-card .btn {
    margin-top: 8px;
  }
  .event-card.flash {
    border-color: var(--cacao);
  }
  .event-card.flash .event-card-name {
    animation: flashName 1.6s ease;
  }

  /* ============ RSVP MODAL (cloud form embed) ============ */
  .form-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
  }
  .form-modal.open { display: block; }
  .form-modal-scrim {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: pointer;
  }
  .form-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -47%);
    width: min(92vw, 620px);
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--linen);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(61, 51, 42, 0.16), 0 3px 8px rgba(61, 51, 42, 0.06);
    padding: 52px 48px 48px;
    opacity: 0;
    transition:
      opacity 0.4s ease,
      transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .form-modal.open .form-modal-card {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  .form-modal-close {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--cacao);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
  }
  .form-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
  }
  .form-modal-close svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  .form-modal-close svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .form-modal-eyebrow {
    font-size: 13px;
    letter-spacing: 0.26em;
    font-weight: 500;
    color: var(--cacao);
    margin-bottom: 30px;
  }
  .rsvp-panel { display: none; }
  .rsvp-panel.active {
    display: block;
    animation: pageIn 0.5s ease both;
  }
  .form-modal .form-group { margin-bottom: 26px; }
  .form-modal .btn { margin-top: 6px; }
  .form-modal .form-note { text-align: left; }

  /* ============ REQUIRED FIELDS — GENTLE ENFORCEMENT ============ */
  [data-cloud-form] input.field-missing,
  [data-cloud-form] select.field-missing,
  [data-cloud-form] textarea.field-missing {
    border-bottom-color: #B0603F !important;
  }
  .required-note {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #B0603F;
    text-align: left;
    animation: pageIn 0.4s ease both;
  }

  /* ============ POST-RSVP CONFIRMATION ACTIONS ============ */
  .confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
    animation: pageIn 0.6s ease both;
  }
  @media (min-width: 769px) {
    .confirm-actions { flex-direction: row; }
    .confirm-actions .confirm-btn { flex: 1; }
  }
  .confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--cacao);
    border: 1px solid var(--gold);
    padding: 14px 20px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.22em;
    cursor: pointer;
    text-transform: lowercase;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.4s ease, color 0.4s ease;
  }
  .confirm-btn:hover {
    background: var(--gold);
    color: var(--linen);
  }
  .confirm-btn svg {
    width: 16px;
    height: 16px;
    flex: none;
  }
  .confirm-btn svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ============ EVENT ACCORDIONS ============ */
  .event-accordions {
    margin: 4px 0 30px;
    border-top: 1px solid rgba(212, 165, 116, 0.28);
  }
  .event-accordion {
    border-bottom: 1px solid rgba(212, 165, 116, 0.28);
  }
  .event-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: none;
    padding: 20px 2px;
    cursor: pointer;
    font-family: var(--serif);
    text-align: left;
    color: var(--cacao);
    text-transform: lowercase;
    transition: color 0.35s ease;
  }
  .event-accordion-toggle:hover { color: var(--gold); }
  .event-accordion-label {
    font-size: 13px;
    letter-spacing: 0.26em;
    font-weight: 500;
  }
  .event-accordion-icon {
    position: relative;
    width: 13px;
    height: 13px;
    flex: none;
  }
  .event-accordion-icon::before,
  .event-accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--gold);
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease;
  }
  .event-accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
  }
  .event-accordion-icon::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
  }
  .event-accordion.open .event-accordion-icon::after {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  .event-accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease;
  }
  .event-accordion.open .event-accordion-panel { opacity: 1; }
  .event-accordion-inner { padding: 2px 0 26px; }
  .event-ring-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .event-ring-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--whisper);
    font-weight: 400;
    letter-spacing: 0.01em;
  }
  .event-ring-list li:last-child { margin-bottom: 0; }
  .event-ring-list li em { font-style: italic; color: inherit; }
  .event-ring-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
  }
  .event-accordion-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--whisper);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
  }

  /* ============ ABOUT PAGE ============ */
  .about-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px var(--gutter);
  }
  .about-section h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    color: var(--cacao);
    margin-bottom: 32px;
    letter-spacing: 0.005em;
  }
  .about-section h2 em {
    font-style: normal;
    color: var(--cacao);
  }
  .about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 24px;
  }
  .about-section p.intro {
    font-size: 22px;
    font-weight: 500;
  }
  .about-section ul {
    list-style: none;
    margin: 24px 0;
  }
  .about-section ul li {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid rgba(61,51,42,0.06);
  }
  .about-section p em {
    font-style: normal;
    color: var(--sage-deep);
  }
  .about-image {
    width: 100%;
    max-width: 520px;
    margin: 60px auto;
    aspect-ratio: 4 / 5;
    border-radius: var(--img-radius);
    background:
      url('https://images.unsplash.com/photo-1518604666860-9ed391f76460?w=1200&q=85&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
  }

  /* ============ KENNA PORTRAIT — SCREENSHOT-SHAPED PLACEHOLDER ============ */
  .about-photo {
    width: 100%;
    max-width: 620px;
    margin: 52px auto 4px;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(155deg, var(--peach-soft) 0%, var(--sage-light) 100%);
    box-shadow: 0 18px 44px rgba(61, 51, 42, 0.13), 0 4px 12px rgba(61, 51, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ============ WHAT GUIDES ME — THE FOUR TRUTHS ============ */
  .guide-name {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 400;
    color: var(--sage-deep);
    letter-spacing: 0.02em;
    margin: 6px 0 14px;
    line-height: 1.2;
  }
  .guide p { margin-bottom: 0; }
  .guide-sep {
    width: 44px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
    margin: 38px auto;
    border: none;
  }

  .word-column {
    text-align: center;
    padding: 80px var(--gutter);
    background: var(--linen);
  }
  .word-column-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 36px;
    max-width: 720px;
    margin: 0 auto;
  }
  .word-column-words span {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--sage-deep);
    letter-spacing: 0.1em;
    font-weight: 400;
  }

  /* ============ BOOK PAGE ============ */
  .book-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 80px;
    padding: 0 var(--gutter);
  }
  .book-intro p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--whisper);
    font-weight: 400;
  }
  .book-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--gutter) 160px;
  }
  .form-group {
    margin-bottom: 32px;
  }
  .form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--hush);
    margin-bottom: 12px;
    font-weight: 500;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(61, 51, 42, 0.2);
    font-family: var(--serif);
    font-size: 18px;
    color: var(--cacao);
    font-weight: 400;
    letter-spacing: 0.01em;
    outline: none;
    transition: border-color 0.3s ease;
    text-transform: lowercase;
  }
  .form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
  }
  .form-group select {
    cursor: pointer;
    appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A6B5E' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-bottom-color: var(--gold);
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--hush);
    opacity: 0.5;
  }

  /* cacao ink for everything the visitor types or selects — covers the
     cloud form embeds on the contact page and in the rsvp modal too */
  .book-form input,
  .book-form select,
  .book-form textarea,
  .form-modal input,
  .form-modal select,
  .form-modal textarea,
  [data-cloud-form] input,
  [data-cloud-form] select,
  [data-cloud-form] textarea,
  [data-cloud-form] option {
    color: var(--cacao) !important;
    font-family: var(--serif);
  }

  /* browser autofill paints its own pale background (white/lilac) over inputs
     — override it site-wide so autofilled fields keep the linen background and
     cacao text. the giant inset box-shadow repaints the fill; the long
     transition delay stops the native color from flashing back in. covers the
     book form, the contact embed, and the rsvp modal. */
  .book-form input:-webkit-autofill,
  .book-form textarea:-webkit-autofill,
  .book-form select:-webkit-autofill,
  .form-modal input:-webkit-autofill,
  .form-modal textarea:-webkit-autofill,
  .form-modal select:-webkit-autofill,
  [data-cloud-form] input:-webkit-autofill,
  [data-cloud-form] textarea:-webkit-autofill,
  [data-cloud-form] select:-webkit-autofill,
  .book-form input:-webkit-autofill:hover,
  .book-form input:-webkit-autofill:focus,
  .form-modal input:-webkit-autofill:hover,
  .form-modal input:-webkit-autofill:focus,
  [data-cloud-form] input:-webkit-autofill:hover,
  [data-cloud-form] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--linen) inset !important;
    box-shadow: 0 0 0 1000px var(--linen) inset !important;
    -webkit-text-fill-color: var(--cacao) !important;
    caret-color: var(--cacao);
    transition: background-color 9999s ease-in-out 0s !important;
    font-family: var(--serif) !important;
  }

  /* after the contact form is sent, the embed's confirmation renders in the
     same small letter-spaced style as the field titles */
  #contactFormWrap.form-sent [data-cloud-form],
  #contactFormWrap.form-sent [data-cloud-form] * {
    font-family: var(--serif) !important;
    font-size: 12px !important;
    letter-spacing: 0.25em !important;
    color: var(--hush) !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
    text-align: center !important;
    text-transform: lowercase !important;
    font-style: normal !important;
  }

  .btn {
    display: inline-block;
    background: transparent;
    color: var(--cacao);
    border: 1px solid var(--cacao);
    padding: 16px 44px;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.3em;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 0.4s ease, color 0.4s ease;
    text-decoration: none;
    font-weight: 500;
  }
  .btn:hover {
    background: var(--cacao);
    color: var(--linen);
  }
  .btn-block {
    width: 100%;
    margin-top: 16px;
  }
  .btn-light {
    border-color: var(--gold);
    color: var(--cacao);
  }
  .btn-light:hover {
    background: var(--gold);
    color: var(--linen);
  }
  .btn-quiet {
    border: none;
    padding: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--cacao);
    border-bottom: 1px solid var(--gold);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .btn-quiet:hover {
    background: transparent;
    color: var(--gold);
    opacity: 0.85;
    transform: translateX(3px);
  }
  .form-note {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--hush);
  }
  .form-success {
    text-align: center;
    padding: 60px var(--gutter);
    display: none;
  }
  .form-success.show { display: block; }
  .form-success h3 {
    font-size: 32px;
    font-weight: 400;
    color: var(--cacao);
    margin-bottom: 16px;
  }
  .form-success p {
    font-size: 17px;
    color: var(--whisper);
  }

  /* ============ FOOTER ============ */
  footer {
    background: var(--linen);
    padding: 56px var(--gutter) 44px;
    text-align: center;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
  }
  .footer-apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
  }
  .footer-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 280px;
    max-width: 86vw;
    padding: 8px 14px;
    border: 1px solid rgba(107, 74, 53, 0.3);
    border-radius: 5px;
    font-family: var(--serif);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--cacao);
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 500;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  }
  .footer-app:hover {
    background: var(--cacao);
    color: var(--linen);
    border-color: var(--cacao);
  }
  .footer-app svg {
    width: 13px;
    height: 13px;
    flex: none;
  }
  .footer-app svg * {
    fill: currentColor;
    stroke: none;
  }
  .footer-mark {
    font-size: 22px;
    color: var(--cacao);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
  }
  .footer-tagline {
    font-size: 15px;
    color: var(--hush);
    margin-bottom: 28px;
  }
  .footer-credit {
    margin-top: 8px;
    font-size: 11px;
    color: var(--hush);
    letter-spacing: 0.2em;
    opacity: 0.6;
  }

  /* ============ FADE-IN UTILITY ============ */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 768px) {
    nav {
      padding: 18px var(--gutter);
      transition:
        background 0.35s ease,
        padding 0.4s ease,
        top 0.45s cubic-bezier(0.33, 1, 0.68, 1),
        left 0.45s cubic-bezier(0.33, 1, 0.68, 1),
        right 0.45s cubic-bezier(0.33, 1, 0.68, 1),
        border-radius 0.45s ease,
        box-shadow 0.45s ease;
    }
    nav.scrolled { padding: 14px var(--gutter); }

    .nav-brand {
      opacity: 0;
      color: var(--cacao);
      text-shadow: none;
    }
    nav.scrolled .nav-brand { opacity: 1; }

    nav.menu-open {
      top: 10px;
      left: 14px;
      right: 14px;
      background: var(--linen);
      backdrop-filter: none;
      border-radius: 18px 18px 0 0;
      padding: 18px 28px;
      box-shadow: 0 14px 32px rgba(61, 51, 42, 0.12), 0 3px 8px rgba(61, 51, 42, 0.05);
    }
    nav.menu-open .nav-brand,
    nav.menu-open .nav-toggle {
      color: var(--cacao) !important;
      text-shadow: none !important;
    }
    nav.menu-open .nav-brand { opacity: 1; }

    .nav-toggle {
      pointer-events: auto;
      cursor: pointer;
    }
    nav.menu-open .nav-toggle {
      position: fixed;
      top: 38px;
      right: 42px;
      bottom: auto;
      left: auto;
      transform: translateY(-50%);
    }

    .nav-links {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--linen);
      gap: 22px;
      border-radius: 0 0 18px 18px;
      box-shadow: 0 14px 32px rgba(61, 51, 42, 0.12), 0 3px 8px rgba(61, 51, 42, 0.05);
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      padding: 0 30px;
      pointer-events: none;
      transform: translateY(-6px);
      margin-right: 0;
      transition:
        max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        padding 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    }
    nav.scrolled .nav-links { opacity: 0; }
    .nav-links.open {
      max-height: 440px;
      opacity: 1;
      padding: 24px 30px 34px;
      pointer-events: auto;
      transform: translateY(0);
    }
    nav.scrolled .nav-links.open { opacity: 1; }
    .nav-links a { color: var(--cacao) !important; text-shadow: none !important; }

    nav.menu-open .nav-toggle { color: var(--cacao) !important; filter: none; }
    nav.menu-open .nav-toggle .icon-waves { opacity: 0; transform: scale(0.7); }
    nav.menu-open .nav-toggle .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

    .section { padding: 60px var(--gutter); }
    .landing { padding: 90px var(--gutter) 60px; }
    .landing-eyebrow { letter-spacing: 0.26em; margin-bottom: 24px; }
    .landing-line { margin-bottom: 56px; }
    .welcome-lines p { letter-spacing: 0.14em; }
    .pace-heading { margin-bottom: 34px; }
    .pace-body p { margin-bottom: 20px; }
    .ceremony-feature { padding: 30px var(--gutter) 70px; }
    .ceremony-feature-frame { aspect-ratio: 4 / 5; }
    .ceremony { padding: 24px var(--gutter) 48px; }
    .ceremony-mosaic { gap: 10px; margin-bottom: 64px; }
    .mosaic-col { gap: 10px; }
    .three-fold { padding: 0 var(--gutter) 60px; }
    .three-fold-static { flex-wrap: nowrap; white-space: nowrap; gap: clamp(8px, 3vw, 24px); }
    .three-fold-static .phrase { letter-spacing: 0.18em; white-space: nowrap; }
    .three-fold-static .phrase:first-of-type { padding-left: 0.18em; }
    .three-fold-static .phrase:last-of-type { margin-right: -0.18em; }
    .three-fold-static .tf-sep { display: block; height: 16px; }
    .declarative { padding: 110px var(--gutter); }
    .testimonials { padding: 48px var(--gutter) 60px; }
    .review-stage { max-width: 440px; margin-top: 36px; }
    .review-mark { font-size: 46px; margin-bottom: 14px; }
    .review-quote { padding: 0 4px; }
    .review-dots { margin-top: 36px; }
    .benediction { padding: 56px var(--gutter) 64px; }
    .benediction-text.eyebrow-match { letter-spacing: 0.13em; }
    .hero::after { height: 32vh; }
    .hero.hero-page::after { height: 32vh; }
    #offering-sacred { padding-top: 60px; }
    .hero-merge-pad { padding-top: 60px; }
    .offerings-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }
    .offering-image { margin-bottom: 22px; }
    .offering-detail {
      grid-template-columns: 1fr;
      gap: 30px;
      padding: 56px var(--gutter);
    }
    .offering-detail.reverse { direction: ltr; }
    .offering-detail-image {
      max-width: 100%;
      margin: 0 auto;
    }
    .event-row {
      grid-template-columns: 1fr;
      gap: 4px;
      padding: 16px 0;
    }
    .event-desc { max-width: 100%; }
    a.event-row { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
    .event-card { padding: 40px 28px; scroll-margin-top: 90px; }

    .about-photo { max-width: 100%; }

    .form-modal-card {
      width: min(94vw, 560px);
      max-height: 90vh;
      padding: 44px 26px 38px;
    }
    .form-modal-close { top: 20px; right: 20px; }
    .form-modal-eyebrow { margin-bottom: 26px; }
  }

  /* ============ RSVP MODAL — FULL-STATE (WAITLIST) POLISH ============ */
  /* ONLY when a gathering is full: app.js tags the embed `.is-full` (its text
     contains "this gathering is full"). scoping every rule below to `.is-full`
     leaves the normal RSVP form and its success confirmation untouched. */
  .form-modal [data-cloud-form].is-full { line-height: 1.7; }
  .form-modal [data-cloud-form].is-full form { margin-top: 30px; }

  /* make the full-state message prominent so it reads immediately: the
     gathering is FULL and you're joining the cancellation list (not reserving
     a spot). scoped to the message — the non-form content in the embed. */
  .form-modal [data-cloud-form].is-full > *:not(form):not(button),
  .form-modal [data-cloud-form].is-full > *:not(form):not(button) > *:not(button),
  .form-modal [data-cloud-form].is-full > *:not(form):not(button) > *:not(button) > *:not(button) {
    font-size: 23px !important;
    line-height: 1.4 !important;
    color: var(--cacao) !important;
    letter-spacing: 0.01em !important;
  }
  /* keep the cancellation-form controls at their normal size even if the
     message and form share a wrapper, so only the message grows. */
  .form-modal [data-cloud-form].is-full input,
  .form-modal [data-cloud-form].is-full select,
  .form-modal [data-cloud-form].is-full textarea {
    font-size: 18px !important;
    letter-spacing: 0.01em !important;
  }


  /* ============ RSVP MODAL — "SPOT IS HELD" CONFIRMATION READABILITY ============ */
  /* the normal reservation confirmation ("your spot is held…") rendered small
     and light by default. app.js tags the embed `.is-confirmed` once that
     message is showing (the fields are gone and the success text is in), so
     enlarge + darken it here to sit comfortably on screen. scoped to the
     confirmation message only: the calendar buttons live OUTSIDE the embed in
     .confirm-actions (untouched), and the waitlist message uses .is-full,
     which has its own separate sizing. */
  .form-modal [data-cloud-form].is-confirmed,
  .form-modal [data-cloud-form].is-confirmed * {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: var(--cacao) !important;
    letter-spacing: 0.01em !important;
  }


  /* ============ TESTIMONIALS — POST-SUBMIT THANK YOU ============ */
  /* after the reflection is sent, app.js tags #page-testimonials `.thanks`
     (embed fields gone, success text in). hide the pre-submit invitation and
     let the thank-you sit large and calm, with the sign-off on its own line. */
  #page-testimonials .book-intro p + p { margin-top: 16px; }
  #page-testimonials.thanks .book-intro { display: none; }

  #page-testimonials.thanks #testimonialFormWrap [data-cloud-form],
  #page-testimonials.thanks #testimonialFormWrap [data-cloud-form] * {
    font-family: var(--serif) !important;
    font-size: clamp(23px, 3.4vw, 30px) !important;
    line-height: 1.5 !important;
    color: var(--cacao) !important;
    letter-spacing: 0.01em !important;
    font-style: normal !important;
    text-align: center !important;
  }

  .testimonial-signoff { display: none; }
  #page-testimonials.thanks .testimonial-signoff {
    display: block;
    text-align: center;
    font-family: var(--wordmark);
    font-size: clamp(21px, 2.8vw, 27px);
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--whisper);
    margin-top: 20px;
  }

  /* ============ TESTIMONIALS — SUBHEADINGS, TYPE SCALE + STAR RATING ============ */
  /* additions to the original form only (no boxes or borders) — just a clear,
     readable size hierarchy: subtitle (biggest) › question › answer (smallest),
     plus the cacao star rating. */

  /* subtitle — biggest */
  #testimonialFormWrap .form-section-heading {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.2em;
    color: var(--cacao);
    font-weight: 500;
    text-align: center;
    margin: 62px 0 34px;
  }

  /* question — middle, readable (dropped the wide tracking so long ones don't sprawl) */
  #testimonialFormWrap [data-cloud-form] label {
    font-size: 18px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.5 !important;
    text-transform: lowercase;
  }

  /* answer boxes — a faint full outline so each answer reads as a box to fill in,
     not floating text over a single underline. transparent fill keeps the linen
     showing through; 16px text keeps ios from auto-zooming on focus. */
  #testimonialFormWrap [data-cloud-form] input,
  #testimonialFormWrap [data-cloud-form] textarea,
  #testimonialFormWrap [data-cloud-form] select {
    font-size: 16px !important;
    background: transparent !important;
    border: 1px solid rgba(61, 51, 42, 0.18) !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
  }
  #testimonialFormWrap [data-cloud-form] input:focus,
  #testimonialFormWrap [data-cloud-form] textarea:focus,
  #testimonialFormWrap [data-cloud-form] select:focus {
    border-color: var(--gold) !important;
    outline: none !important;
  }

  /* dropdowns get a soft, wide down-chevron so it's clear they open for options */
  #testimonialFormWrap [data-cloud-form] select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10' fill='none'%3E%3Cpath d='M2 3 L9 8 L16 3' stroke='%236B4A35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 17px auto !important;
    padding-right: 44px !important;
  }
  /* the hint sits a touch smaller and softer, still readable */
  #testimonialFormWrap [data-cloud-form] input::placeholder,
  #testimonialFormWrap [data-cloud-form] textarea::placeholder {
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
    color: var(--whisper) !important;
    opacity: 0.85 !important;
  }

  #testimonialFormWrap .star-rating {
    display: flex;
    gap: 12px;
    padding: 8px 0 4px;
  }
  #testimonialFormWrap .star-rating .star {
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 0;
  }
  #testimonialFormWrap .star-rating .star svg { width: 100%; height: 100%; display: block; }
  #testimonialFormWrap .star-rating .star svg path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.3;
    stroke-linejoin: round;
    transition: fill 0.25s ease, stroke 0.25s ease;
  }
  #testimonialFormWrap .star-rating .star.filled svg path {
    fill: var(--cacao);
    stroke: var(--cacao);
  }

  /* ============ TESTIMONIALS — BRANDED DROPDOWNS ============ */
  /* the native <select> popup is os-drawn and can't be styled, so app.js swaps
     each one for this custom dropdown (the hidden native <select> keeps the value
     so submissions are unchanged): a linen menu, cacao serif options, gold hover
     + selected, and a chevron that rotates open — matching the rest of the form. */
  #testimonialFormWrap .cloud-select { position: relative; }
  #testimonialFormWrap .cloud-select.open { z-index: 50; }

  #testimonialFormWrap .cloud-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: 1px solid rgba(61, 51, 42, 0.18);
    border-radius: 10px;
    padding: 13px 15px;
    font-family: var(--serif);
    font-size: 16px;
    color: var(--cacao);
    letter-spacing: 0.01em;
    text-align: left;
    text-transform: lowercase;
    cursor: pointer;
    transition: border-color 0.3s ease;
  }
  #testimonialFormWrap .cloud-select.open .cloud-select-trigger,
  #testimonialFormWrap .cloud-select-trigger:focus {
    border-color: var(--gold);
    outline: none;
  }
  #testimonialFormWrap .cloud-select-value.is-placeholder {
    color: var(--whisper);
    opacity: 0.85;
  }
  #testimonialFormWrap .cloud-select-chevron {
    flex: none;
    width: 17px;
    height: 10px;
    line-height: 0;
    transition: transform 0.3s ease;
  }
  #testimonialFormWrap .cloud-select-chevron svg { width: 100%; height: 100%; display: block; }
  #testimonialFormWrap .cloud-select-chevron svg path {
    fill: none;
    stroke: var(--cacao);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #testimonialFormWrap .cloud-select.open .cloud-select-chevron { transform: rotate(180deg); }

  #testimonialFormWrap .cloud-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--linen);
    border: 1px solid rgba(107, 74, 53, 0.2);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(61, 51, 42, 0.16), 0 3px 8px rgba(61, 51, 42, 0.07);
    max-height: 288px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }
  #testimonialFormWrap .cloud-select.open .cloud-select-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  #testimonialFormWrap .cloud-select-option {
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--serif);
    font-size: 16px;
    color: var(--cacao);
    letter-spacing: 0.01em;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  #testimonialFormWrap .cloud-select-option:hover { background: rgba(212, 165, 116, 0.16); }
  #testimonialFormWrap .cloud-select-option.selected {
    color: var(--gold);
    background: rgba(212, 165, 116, 0.10);
  }
