/* Homepage: hero stage, scroll story, feature vignettes, theme ring.
   Motion only runs under html.motion (set by site.js unless reduced motion). */

/* ---------- Invitation card (scales with its own width) ---------- */
.invite-card {
  container-type: inline-size; background: var(--bg); color: var(--text); aspect-ratio: 5 / 7; width: 100%;
  border-radius: 6px; padding: 4%; box-shadow: 0 2px 6px rgba(43, 39, 36, 0.05), 0 24px 54px rgba(43, 39, 36, 0.12);
  transition: background 0.5s ease, color 0.5s ease;
}
.invite-inner { height: 100%; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6cqi 5cqi; }
.invite-eyebrow, .invite-rsvp { font: 400 2.8cqi/1.6 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0; }
.invite-names { font-family: var(--display); font-size: 11.5cqi; line-height: 1.05; margin: 4cqi 0 1cqi; display: grid; }
.invite-amp { font-family: var(--script); font-style: italic; color: var(--accent); font-size: 0.7em; }
.invite-orn { color: var(--accent); width: 34cqi; height: auto; margin: 2cqi 0; }
.invite-line { font: italic 400 4.4cqi/1.4 var(--display); color: var(--muted); margin: 0; }
.invite-date { font: 400 5.4cqi/1.3 var(--display); margin: 4cqi 0 0; }
.invite-place { font-size: 3.8cqi; color: var(--muted); margin: 0.5cqi 0 4cqi; }

/* ---------- Toast (pretend RSVP notifications, inside the phone story) ---------- */
.toast {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.95rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.8rem; line-height: 1.25; white-space: nowrap; text-align: left;
}
.toast strong { display: block; font-weight: 400; color: var(--ink); }
.toast em { font-style: normal; color: var(--muted); font-size: 0.72rem; }
.toast-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8a9a7b; box-shadow: 0 0 0 4px rgba(138, 154, 123, 0.18); }
@keyframes toast-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: 1240px; margin: 0 auto; min-height: min(100svh, 920px);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(16px, 4vw, 48px) 6rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 4rem; } }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin-bottom: 1.5rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .word { display: inline-block; }
.hero-title em { font-style: italic; color: var(--accent-deep); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin: 2rem 0 1.2rem; }
.motion .hero-title .word { transform: translateY(110%); animation: rise 1.15s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 130ms + 120ms); }
.motion .intro { opacity: 0; transform: translateY(14px); animation: fade-up 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 130ms + 150ms); }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.hero-flora { position: absolute; inset: 0; pointer-events: none; z-index: 0; color: var(--accent); opacity: 0.5; }
.flora { position: absolute; }
.flora.f1 { left: -40px; top: 6%; width: 150px; }
.flora.f2 { right: -30px; bottom: 0; width: 170px; }
.flora.f3 { left: 46%; top: 4%; }
.branch { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .flora.f1 { width: 90px; left: -30px; } .flora.f2 { width: 110px; } .flora.f3 { display: none; } }

.hero-stage { position: relative; z-index: 1; display: grid; justify-items: center; perspective: 1400px; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0 -10% 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, var(--blush), transparent); opacity: 0.7;
}
.stage-tilt {
  position: relative; width: min(370px, 78vw); aspect-ratio: 5 / 8; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
.card-lift { position: absolute; left: 0; right: 0; top: 0; z-index: 2; transform: translateY(calc(var(--p, 0) * -70px)) rotate(calc(-2deg + var(--p, 0) * 5deg)); }
.envelope, .env-pocket {
  position: absolute; left: -7%; right: -7%; bottom: 0; height: 34%;
  transform: translateY(calc(var(--p, 0) * 110px)); opacity: calc(1 - var(--p, 0) * 1.6);
}
.envelope { z-index: 1; }
.env-back { position: absolute; inset: 0; background: #efe6db; border-radius: 6px; box-shadow: 0 34px 60px rgba(43, 39, 36, 0.14); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 80%; background: #e9dfd2; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transform: scaleY(-1); }
.env-pocket { z-index: 3; background: linear-gradient(180deg, #f5eee6, #efe6db); clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; }
.motion .env-flap { animation: flap-open 0.9s cubic-bezier(.5, 0, .2, 1) 0.35s both; }
.motion #demo-card { animation: card-out 1.5s cubic-bezier(.2, .8, .2, 1) 0.9s both; }
@keyframes flap-open { from { transform: scaleY(1); } to { transform: scaleY(-1); } }
@keyframes card-out { from { transform: translateY(52%); } to { transform: none; } }


.demo-controls {
  position: relative; z-index: 5; margin-top: 1.75rem; width: min(400px, 100%); display: grid; gap: 0.75rem;
  padding: 1rem 1.15rem; border-radius: 20px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.motion .demo-controls { opacity: 0; animation: fade-up 1s cubic-bezier(.2, .8, .2, 1) 1.6s forwards; }
.demo-names { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center; font-family: var(--display); font-size: 1.4rem; color: var(--accent); }
.demo-names input { font: 400 1.3rem var(--display); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.3rem 0.1rem; text-align: center; background: transparent; }
.demo-names input:focus { box-shadow: none; border-bottom-color: var(--accent); }
.demo-row { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-row input[type="date"] { width: auto; flex: 1 1 140px; padding: 0.5rem 0.7rem; font-size: 0.9rem; }
.swatches { border: 0; padding: 0; margin: 0; display: flex; gap: 0.45rem; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(135deg, var(--sw-bg) 50%, var(--sw-accent) 50%); transition: transform 0.25s, box-shadow 0.25s; }
.swatch:hover span { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-hint { margin: 0; text-align: center; font: italic 400 0.95rem var(--display); color: var(--muted); }

.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue span { display: block; height: 40%; background: var(--accent-deep); animation: cue 2.2s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------- Scroll story (How it works) ---------- */
.story { position: relative; background: var(--paper); }
.motion .story { height: 340vh; }
.story-sticky {
  max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 7vw, 7rem); align-items: center;
}
.motion .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 4.5rem; padding-bottom: 2rem; }
.story-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.75rem; }
.story-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.motion .story-steps li { opacity: 0.28; }
.motion .story[data-active="1"] [data-step="1"],
.motion .story[data-active="2"] [data-step="2"],
.motion .story[data-active="3"] [data-step="3"] { opacity: 1; transform: translateX(10px); }
.step-n { font: 300 2.6rem/1 var(--display); color: var(--accent); }
.story-steps h3 { margin-bottom: 0.3rem; }
.story-steps p { color: var(--ink-soft); margin: 0; max-width: 30em; }
.story-bar { height: 1px; background: var(--line); position: relative; max-width: 360px; }
.story-bar span { position: absolute; inset: 0; background: var(--accent-deep); transform-origin: left; transform: scaleX(var(--p, 0)); }

.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; background: #fff; border: 10px solid #26221f;
  box-shadow: 0 40px 80px rgba(43, 39, 36, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(calc(-3deg + var(--p, 0) * 6deg)) translateY(calc((0.5 - var(--p, 0.5)) * 40px));
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 99px; background: #26221f; z-index: 5; }
.phone-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 36px; background: #fff; }
.screen { position: absolute; inset: 0; opacity: 0; transform: scale(0.97); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.story:not([data-active]) .screen-1,
.story[data-active="1"] .screen-1,
.story[data-active="2"] .screen-2,
.story[data-active="3"] .screen-3 { opacity: 1; transform: none; }
/* Mini wedding sites inside the phone */
.phone .ws { font-size: 12px; }
.phone .ws-s { padding: 2.2rem 16px; }
.phone .ws-hero-classic { min-height: 360px; padding-top: 1.5rem; }
.phone .ws-names { font-size: 2.7rem; }
.phone .ws-h h2 { font-size: 1.7rem; }
.phone .ws-count-num { font-size: 3.4rem; }
.phone .ws-eyebrow, .phone .ws-sub { font-size: 0.62rem; }
.phone .ws-footer { display: none; }
.theme-layer { position: absolute; inset: 0; opacity: 0; }
.theme-layer.layer-1 { opacity: 1; }
.motion .theme-layer { animation: layer-cycle 9s infinite both; }
.motion .layer-2 { animation-delay: 3s; }
.motion .layer-3 { animation-delay: 6s; }
@keyframes layer-cycle { 0% { opacity: 0; } 5%, 33% { opacity: 1; } 39%, 100% { opacity: 0; } }
.screen-swatches { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; display: flex; gap: 8px; padding: 8px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); }
.screen-swatches .sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(135deg, var(--sw-bg) 50%, var(--sw-accent) 50%); }
.motion .screen-swatches .sw { animation: sw-on 9s infinite both; }
.motion .sw-2 { animation-delay: 3s; }
.motion .sw-3 { animation-delay: 6s; }
@keyframes sw-on { 0% { box-shadow: none; } 5%, 33% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); } 39%, 100% { box-shadow: none; } }
.screen-scroll { transform: translateY(calc(max(0, var(--p, 0) - 0.33) * -1000px)); }
.rsvp-mock { position: absolute; inset: 0; display: grid; align-content: end; gap: 10px; padding: 24px 24px 44px; background: #fdf8f6; text-align: center; font-size: 12px; }
.rm-eyebrow { margin: 0; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.rm-title { margin: 0 0 6px; font: 300 1.9rem/1.1 var(--display); }
.rm-choice, .rm-field { border: 1px solid var(--line); border-radius: 8px; padding: 9px; text-align: left; background: #fff; }
.rm-choice.is-on { border-color: #c9a19a; box-shadow: inset 3px 0 0 #c9a19a; }
.rm-btn { justify-self: center; margin-top: 6px; padding: 9px 22px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.rm-toasts { position: absolute; left: 12px; right: 12px; top: 40px; display: grid; gap: 8px; }
.rm-toasts .toast { white-space: normal; }
.motion .rm-toasts .toast { opacity: 0; translate: 0 -10px; }
.motion .story[data-active="3"] .rm-toasts .toast { animation: toast-in 0.6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 0.7s + 0.3s); }
@media (max-width: 860px) {
  .story-sticky { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .motion .story-sticky { align-content: start; gap: 1.25rem; padding-top: 4.5rem; }
  .story-copy h2 { font-size: 2rem; }
  .story-steps { margin: 1rem 0 0.5rem; }
  .story-steps li { grid-template-columns: 1fr; gap: 0.25rem; text-align: center; }
  .motion .story-steps li { display: none; }
  .motion .story[data-active="1"] [data-step="1"], .motion .story[data-active="2"] [data-step="2"], .motion .story[data-active="3"] [data-step="3"] { display: grid; transform: none; }
  .story-bar { margin: 0 auto; width: 60%; }
  .phone { width: min(220px, 58vw); border-width: 8px; border-radius: 36px; }
  .phone-screen { border-radius: 28px; }
  .rsvp-mock { gap: 7px; padding: 16px 16px 28px; }
  .rm-title { font-size: 1.35rem; }
  .rm-field { display: none; }
  .rm-choice { padding: 7px; }
  .rm-toasts { top: 34px; left: 8px; right: 8px; gap: 6px; }
  .rm-toasts .toast { padding: 0.4rem 0.65rem; font-size: 0.7rem; }
  .rm-toasts .toast:nth-child(3) { display: none; }
}

/* ---------- Feature vignettes ---------- */
.features-cta { display: grid; justify-items: center; gap: 0.9rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.features-cta p { margin: 0; }
.feature { position: relative; transition: background 0.4s ease; }
.feature:hover { background: var(--paper); }
.vg { position: relative; height: 112px; margin-bottom: 1.4rem; border-radius: 12px; background: var(--paper); overflow: hidden; }
.feature:hover .vg { background: var(--white); }
.vg-env, .vg-pocket { position: absolute; left: 50%; bottom: 14px; width: 128px; translate: -50% 0; }
.vg-env { height: 54px; background: #efe6db; border-radius: 4px; }
.vg-pocket { height: 42px; background: #f5eee6; clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); border-radius: 0 0 4px 4px; }
.vg-card { position: absolute; left: 50%; bottom: 22px; width: 100px; height: 72px; translate: -50% 0; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; display: grid; gap: 7px; align-content: start; transform: translateY(34px); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) 0.2s; }
.vg-card i { display: block; height: 3px; border-radius: 2px; background: var(--line); }
.vg-card i:first-child { width: 60%; margin: 0 auto; background: var(--accent); }
.is-visible .vg-card { transform: translateY(-4px); }
.feature:hover .vg-card { transform: translateY(-16px); }
.vg-rsvp { padding: 12px 18px; display: grid; align-content: center; }
.vg-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; opacity: 0; transform: translateX(-10px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i) * 0.25s + 0.2s); }
.vg-row:last-child { border-bottom: 0; }
.vg-row b { font-weight: 400; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6f8a63; }
.vg-row:nth-child(2) b { color: var(--danger); }
.is-visible .vg-row, html:not(.motion) .vg-row { opacity: 1; transform: none; }
.vg-bar { height: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.vg-block { position: absolute; left: 22px; right: 22px; height: 20px; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.vg-block.b1 { top: 26px; box-shadow: inset 3px 0 0 var(--accent); }
.vg-block.b2 { top: 54px; }
.vg-block.b3 { top: 82px; }
.motion .is-visible .vg-block.b1 { animation: swap-down 4.5s cubic-bezier(.6, 0, .3, 1) infinite 0.6s; }
.motion .is-visible .vg-block.b2 { animation: swap-up 4.5s cubic-bezier(.6, 0, .3, 1) infinite 0.6s; }
@keyframes swap-down { 0%, 20% { transform: none; } 40%, 70% { transform: translateY(28px) scale(1.03); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); } 90%, 100% { transform: none; } }
@keyframes swap-up { 0%, 20% { transform: none; } 40%, 70% { transform: translateY(-28px); } 90%, 100% { transform: none; } }
.vg-guests { padding: 14px 22px; display: grid; gap: 8px; align-content: center; }
.vg-line { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: all 0.5s ease; transition-delay: calc(var(--i) * 0.18s + 0.2s); }
.vg-line span { width: 14px; height: 14px; border-radius: 50%; background: var(--blush); }
.vg-line i { height: 4px; border-radius: 2px; background: var(--line); width: calc(55% + var(--i) * 8%); }
.is-visible .vg-line, html:not(.motion) .vg-line { opacity: 1; transform: none; }
.vg-seating { display: grid; place-items: center; }
.vg-table { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent); background: #fff; }
.vg-table span { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 1px solid var(--accent); background: #fff; transform: rotate(calc(var(--i) * 45deg)) translateY(-40px); transition: background 0.4s ease; transition-delay: calc(var(--i) * 0.15s + 0.3s); }
.is-visible .vg-table span:nth-child(-n + 6) { background: var(--accent); }
.feature:hover .vg-table span { background: var(--accent); }
.vg-check { padding: 14px 24px; display: grid; gap: 12px; align-content: center; }
.vg-task { display: flex; align-items: center; gap: 12px; }
.vg-task span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--accent); transition: background 0.4s ease; transition-delay: calc(var(--i) * 0.4s + 0.3s); }
.vg-task i { height: 4px; border-radius: 2px; background: var(--line); flex: 1; position: relative; }
.vg-task i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; transition-delay: calc(var(--i) * 0.4s + 0.45s); }
.is-visible .vg-task:not(:last-child) span { background: var(--accent); }
.is-visible .vg-task:not(:last-child) i::after { transform: scaleX(1); }

/* ---------- Theme ring carousel ---------- */
.carousel { padding: clamp(4rem, 8vw, 6rem) 16px clamp(3rem, 6vw, 5rem); overflow: hidden; text-align: center; }
.ring-stage {
  --card: 210px; --r: 500px; position: relative; max-width: 1200px; margin: 0 auto;
  height: calc(var(--card) * 1.4 + 120px); perspective: 1300px; perspective-origin: 50% 15%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ring-stage:active { cursor: grabbing; }
.ring {
  position: absolute; left: 50%; top: 24px; width: var(--card); height: calc(var(--card) * 1.4); margin-left: calc(var(--card) / -2);
  transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg));
}
.ring-item {
  position: absolute; inset: 0; margin: 0;
  /* Place around the circle, then counter-rotate so every card faces the viewer. */
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r)) rotateY(calc(var(--i) * -360deg / var(--n) - var(--rot, 0deg)));
  opacity: calc(0.3 + (var(--face, 1) + 1) * 0.35);
}
.ring-item .invite-card { transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), box-shadow 0.6s ease; }
.ring-item.is-front .invite-card { transform: translateY(-10px); box-shadow: 0 4px 10px rgba(43, 39, 36, 0.06), 0 40px 70px rgba(43, 39, 36, 0.18); }
.ring-floor { position: absolute; left: 50%; bottom: 6px; width: min(1000px, 96%); height: 110px; translate: -50% 0; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(closest-side, rgba(239, 226, 218, 0.9), transparent); z-index: -1; }
.ring-controls { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); margin-top: 1.25rem; }
.ring-btn { background: none; border: 0; width: 56px; padding: 0.6rem 0.3rem; color: var(--ink-soft); cursor: pointer; transition: color 0.2s, transform 0.3s; }
.ring-btn svg { display: block; width: 100%; }
.ring-btn:hover { color: var(--accent-deep); }
.ring-btn[data-ring="prev"]:hover { transform: translateX(-4px); }
.ring-btn[data-ring="next"]:hover { transform: translateX(4px); }
.ring-name { margin: 0; min-width: 7ch; font: italic 300 2.1rem/1 var(--display); }
.ring-hint { margin: 0.6rem 0 0; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .ring-stage { --card: 150px; --r: 300px; perspective: 900px; } .ring-name { font-size: 1.7rem; } }
html:not(.js) .ring-stage { height: auto; perspective: none; }
html:not(.js) .ring { position: static; transform: none; width: auto; height: auto; margin: 0; display: flex; gap: 1rem; overflow-x: auto; }
html:not(.js) .ring-item { position: static; transform: none; flex: 0 0 200px; opacity: 1; }

/* ---------- Local section with drifting word ---------- */
.local { position: relative; overflow: hidden; }
.local > *:not(.big-word) { position: relative; z-index: 1; }
.big-word {
  position: absolute; left: 0; top: 50%; margin: 0; white-space: nowrap; pointer-events: none;
  font: italic 300 clamp(7rem, 22vw, 21rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(181, 154, 127, 0.35);
  transform: translate(calc(12% - var(--p, 0.5) * 45%), -50%);
}

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(5rem, 10vw, 8rem) 16px; background: linear-gradient(180deg, var(--white), var(--paper)); }
.cta-band .lede { margin: 0 auto 2rem; }
.cta-flora { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 3vw; color: var(--accent); opacity: 0.45; pointer-events: none; }
.cta-flora > div { width: clamp(80px, 12vw, 150px); }

/* ---------- About page ---------- */
.about-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(4rem, 10vw, 7.5rem) 16px clamp(3rem, 7vw, 5rem); }
.about-hero .lede { margin: 0 auto; }
.about-title .line { display: block; }
.about-flora { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 4vw; color: var(--accent); opacity: 0.45; pointer-events: none; }
.about-flora > div { width: clamp(70px, 11vw, 150px); }
.about-mono { display: block; width: 92px; height: 92px; margin: 2.5rem auto 0; color: var(--accent); --display: "Cormorant Garamond", Georgia, serif; }
.about-story { background: var(--paper); padding: clamp(4rem, 9vw, 7rem) 16px; }
.about-story-inner { max-width: 680px; margin: 0 auto; }
.about-story header { text-align: center; margin-bottom: 2.5rem; }
.about-prose p { font-size: 1.15rem; line-height: 1.85; color: var(--ink-soft); }
.about-quote { margin: 2.5rem 0; padding: 0; text-align: center; }
.about-quote p { font: italic 300 clamp(1.9rem, 4.5vw, 2.8rem)/1.2 var(--display) !important; color: var(--accent-deep) !important; margin: 0; }
.about-quote::before, .about-quote::after { content: ""; display: block; width: 60px; height: 1px; margin: 1.5rem auto; background: var(--accent); opacity: 0.6; }
.principles { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.principles li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.principles .step-n { display: block; margin-bottom: 0.75rem; }
.principles p { color: var(--ink-soft); margin: 0; }
.about-sign { max-width: 640px; margin: 0 auto; padding: 0 16px clamp(4rem, 8vw, 6rem); text-align: center; }
.about-sign > p:first-child { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.8; }
.about-signature { font: 400 clamp(2.4rem, 6vw, 3.4rem)/1.1 "Pinyon Script", cursive; color: var(--ink); margin: 1.5rem 0 0.5rem; }
