
:root {
  --paper: #fbf7ef;
  --ink: #26231f;
  --muted: #766d62;
  --accent: #b69c76;
  --accent-strong: #8c6c42;
  --panel: rgba(255, 252, 246, 0.88);
  --line: rgba(38, 35, 31, 0.14);
  --heading: "Cormorant Garamond", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(182, 156, 118, 0.18), transparent 28rem),
    linear-gradient(145deg, #fffaf0 0%, #f1eadc 100%);
}
.hero-card { border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(78, 64, 45, 0.12); }
.button { border-radius: 999px; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
.motif-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.site-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}
.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 4;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-card {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 32px;
  align-items: stretch;
  padding: clamp(28px, 6vw, 72px);
  background: var(--panel);
  backdrop-filter: blur(18px);
  isolation: isolate;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; position: relative; z-index: 2; }
.eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.couple-names {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 500;
}
.amp { color: var(--accent-strong); font-style: italic; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
}
.hero-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.34);
}
.hero-intro {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: -6px 0 0;
}
.hero-visual {
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lettering-mark, .illustrated-mark {
  width: min(340px, 86%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--accent-strong);
  font-family: var(--heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  background: rgba(255,255,255,0.28);
}
.illustrated-mark::before,
.illustrated-mark::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid var(--accent);
  border-radius: 44% 56% 49% 51%;
  opacity: 0.42;
}
.illustrated-mark::before { transform: translate(-108px, -106px) rotate(-22deg); }
.illustrated-mark::after { transform: translate(114px, 112px) rotate(18deg); }
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.section {
  background: var(--panel);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.hero-card, .section, .footer {
  opacity: 1;
  transform: none;
}
.section.full { grid-column: 1 / -1; }
.section h2 {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
}
.section p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}
.facts {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fact strong { color: var(--ink); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  font-weight: 700;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.rsvp-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.92rem; }
.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.68);
  color: var(--ink);
  font: inherit;
}
.rsvp-form .wide { grid-column: 1 / -1; }
.hidden-field { position: absolute; left: -5000px; opacity: 0; }
.footer {
  text-align: center;
  color: var(--muted);
  margin-top: 36px;
  padding: 30px;
}
#countdown {
  color: var(--accent-strong);
  font-weight: 700;
}
@media (max-width: 800px) {
  .site-shell { width: min(100% - 20px, 720px); padding-top: 10px; }
  .hero-card { grid-template-columns: 1fr; min-height: auto; padding: 24px; }
  .hero-visual { min-height: 300px; }
  .section-grid { grid-template-columns: 1fr; }
  .rsvp-form { grid-template-columns: 1fr; }
  .couple-names { font-size: clamp(3.6rem, 20vw, 6rem); }
}


/* OpenClaw design spec: Minimal Expressivo */
:root {
  --paper: #fafaf8;
  --ink: #2e2a28;
  --muted: #8a8480;
  --accent: #c4b8aa;
  --accent-strong: #a89888;
  --panel: #f2eee9e8;
  --line: color-mix(in srgb, #2e2a28 16%, transparent);
  --heading: "Cormorant Garamond", "Baskerville", Georgia, serif;
  --body: "Gill Sans", "Trebuchet MS", sans-serif;
}
body.has-openclaw {
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 22rem),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent-strong) 16%, transparent), transparent 19rem),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 94%, white), var(--paper));
}
body.has-openclaw .hero-card {
  position: relative;
  overflow: hidden;
}
body.has-openclaw .hero-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  pointer-events: none;
}
body.has-openclaw .section {
  overflow: hidden;
}
body.has-openclaw .button {
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}
body.has-openclaw .button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* Expanded creative controls */
body.color-high_contrast {
  --paper: color-mix(in srgb, #fafaf8 78%, white);
  --ink: color-mix(in srgb, #2e2a28 92%, black);
  --panel: color-mix(in srgb, white 84%, #fafaf8);
}
body.color-monochrome_accent .section,
body.color-monochrome_accent .hero-card { filter: saturate(0.72); }
body.color-pastel_wash {
  --paper: color-mix(in srgb, #fafaf8 72%, white);
  --accent: color-mix(in srgb, #c4b8aa 52%, white);
  --accent-strong: color-mix(in srgb, #a89888 72%, #2e2a28);
}
body.color-earthy_layers { --paper: color-mix(in srgb, #fafaf8 80%, #d5c0a0); }
body.color-jewel_tone {
  --ink: color-mix(in srgb, #2e2a28 72%, #131027);
  --accent: color-mix(in srgb, #c4b8aa 62%, #1e6b5c);
  --accent-strong: color-mix(in srgb, #a89888 62%, #7d2749);
}
body.color-black_tie {
  --paper: #11100e;
  --ink: #f8f3e8;
  --muted: #d1c6b4;
  --panel: #191816e8;
  --line: rgba(248,243,232,0.18);
}
body.color-coastal_light {
  --paper: color-mix(in srgb, #fafaf8 76%, #edf8f6);
  --accent: color-mix(in srgb, #c4b8aa 54%, #82b6b3);
}

body.bg-radial_glow { background: radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 25rem), radial-gradient(circle at 82% 82%, color-mix(in srgb, var(--accent-strong) 22%, transparent), transparent 26rem), var(--paper); }
body.bg-split_canvas { background: linear-gradient(90deg, var(--paper) 0 50%, color-mix(in srgb, var(--accent) 18%, var(--paper)) 50% 100%); }
body.bg-paper_grain .motif-layer { background: radial-gradient(circle, color-mix(in srgb, var(--ink) 11%, transparent) 0 1px, transparent 1.6px); background-size: 13px 13px; opacity: 0.18; }
body.bg-editorial_grid .motif-layer { background-image: linear-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px); background-size: 7vw 7vw; }
body.bg-sunset_wash { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--paper)), var(--paper) 46%, color-mix(in srgb, var(--accent-strong) 16%, var(--paper))); }
body.bg-dark_luxe { background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 22rem), #11100e; }
body.bg-dark_luxe .hero-card,
body.bg-dark_luxe .section { box-shadow: 0 28px 120px rgba(0,0,0,0.32); }
body.bg-linen .motif-layer { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 6px); opacity: 0.32; }

body.type-editorial .couple-names { letter-spacing: -0.08em; text-transform: uppercase; }
body.type-romantic .couple-names { font-style: italic; letter-spacing: -0.035em; }
body.type-modernist .couple-names { font-family: var(--body); font-weight: 800; letter-spacing: -0.07em; text-transform: uppercase; }
body.type-organic .couple-names { font-style: italic; line-height: 0.94; }
body.type-art_deco .couple-names,
body.type-art_deco .section h2 { letter-spacing: 0.08em; text-transform: uppercase; }
body.type-soft_humanist .section p,
body.type-soft_humanist .hero-intro { font-size: 1.12rem; }

body.shape-sharp .hero-card,
body.shape-sharp .section,
body.shape-sharp .hero-visual,
body.shape-sharp .button,
body.shape-sharp .site-nav a { border-radius: 0; }
body.shape-rounded .hero-card,
body.shape-rounded .section { border-radius: 36px; }
body.shape-pill .hero-card,
body.shape-pill .section,
body.shape-pill .site-nav a,
body.shape-pill .button { border-radius: 999px; }
body.shape-pill .section { padding-inline: clamp(34px, 5vw, 70px); }
body.shape-organic .hero-card,
body.shape-organic .section { border-radius: 44% 56% 46% 54% / 8% 10% 9% 11%; }
body.shape-arched .hero-visual,
body.shape-arched .lettering-mark,
body.shape-arched .illustrated-mark { border-radius: 50% 50% 8px 8px; }
body.shape-cutout .hero-card,
body.shape-cutout .section { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
body.shape-mixed .section:nth-child(odd) { border-radius: 42px 10px; }
body.shape-mixed .section:nth-child(even) { border-radius: 10px 42px; }

body.surface-flat .hero-card,
body.surface-flat .section { box-shadow: none; backdrop-filter: none; }
body.surface-glass .hero-card,
body.surface-glass .section { background: color-mix(in srgb, var(--panel) 70%, transparent); backdrop-filter: blur(20px); }
body.surface-paper .hero-card,
body.surface-paper .section { background: color-mix(in srgb, var(--panel) 88%, #fff6e7); box-shadow: 0 12px 50px color-mix(in srgb, var(--ink) 10%, transparent); }
body.surface-outline .hero-card,
body.surface-outline .section { background: transparent; border: 1.5px solid var(--ink); }
body.surface-shadowed .hero-card,
body.surface-shadowed .section { box-shadow: 0 32px 90px color-mix(in srgb, var(--ink) 20%, transparent); }
body.surface-layered .section:nth-child(odd) { transform: translateX(-8px); }
body.surface-layered .section:nth-child(even) { transform: translateX(8px); }
body.surface-inked .hero-card,
body.surface-inked .section { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

body.button-outline .button { background: transparent; color: var(--ink); }
body.button-pill .button { border-radius: 999px; }
body.button-underlined .button { background: transparent; color: var(--ink); border-width: 0 0 1px; padding-inline: 0; min-height: 34px; }
body.button-boxed .button { border-radius: 0; box-shadow: 4px 4px 0 var(--accent); }
body.button-ghost .button { background: color-mix(in srgb, var(--paper) 45%, transparent); color: var(--ink); backdrop-filter: blur(12px); }

body.meta-inline .hero-meta span { border: 0; background: transparent; padding: 0; }
body.meta-inline .hero-meta span + span::before { content: "/"; margin-right: 12px; color: var(--accent); }
body.meta-stacked .hero-meta { display: grid; max-width: 360px; }
body.meta-rule .hero-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; }
body.meta-rule .hero-meta span { border: 0; background: transparent; padding: 0; }
body.meta-caption_strip .hero-meta { background: var(--ink); color: var(--paper); padding: 10px; width: fit-content; }
body.meta-caption_strip .hero-meta span { border-color: color-mix(in srgb, var(--paper) 24%, transparent); background: transparent; }

body.chrome-numbered .section { counter-increment: wedding-section; }
body.chrome-numbered .section h2::before { content: counter(wedding-section, decimal-leading-zero) " / "; color: var(--accent-strong); font-family: var(--body); font-size: 0.8rem; }
body.chrome-eyebrow .section::before { content: attr(data-section); display: block; font-family: var(--body); color: var(--accent-strong); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
body.chrome-side_label .section { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; }
body.chrome-side_label .section h2 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
body.chrome-framed .section::after { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent); pointer-events: none; }
body.chrome-oversized_titles .section h2 { font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.82; letter-spacing: -0.07em; }

body.lettering-seal .lettering-mark { border-radius: 50%; outline: 1px solid var(--accent); outline-offset: 10px; font-size: clamp(2rem, 6vw, 4rem); }
body.lettering-oversized .lettering-mark { width: 100%; border: 0; background: transparent; font-size: clamp(4rem, 12vw, 9rem); }
body.lettering-vertical .lettering-mark { writing-mode: vertical-rl; aspect-ratio: auto; width: auto; min-height: 360px; font-size: clamp(2.4rem, 7vw, 5.8rem); }
body.lettering-signature .lettering-mark { border: 0; background: transparent; font-style: italic; transform: rotate(-4deg); }
body.lettering-initials .lettering-mark { font-size: clamp(4rem, 12vw, 9rem); text-transform: uppercase; }
body.lettering-initials .lettering-mark br,
body.lettering-initials .lettering-mark .amp { display: none; }

body.nav-floating_pill .site-nav { position: sticky; top: 14px; margin-bottom: -46px; }
body.nav-floating_pill .site-nav a { border-radius: 999px; box-shadow: 0 14px 40px color-mix(in srgb, var(--ink) 12%, transparent); }
body.nav-side_index .site-nav { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); flex-direction: column; margin: 0; }
body.nav-side_index .site-nav a { writing-mode: vertical-rl; transform: rotate(180deg); }

body.intensity-calm .hero-card,
body.intensity-calm .section,
body.intensity-calm .footer { transition-duration: 520ms; }
body.intensity-expressive .hero-card,
body.intensity-expressive .section,
body.intensity-expressive .footer { transition-duration: 980ms; transition-delay: calc(var(--reveal-index, 0) * 110ms); }
body.scroll-sticky_hero .hero-card { position: sticky; top: 0; }
body.scroll-layered_reveal .section { transform-origin: top center; }
body.scroll-layered_reveal .section.is-visible:nth-child(odd) { transform: perspective(1200px) rotateX(0); }
body.scroll-parallax_motif .motif-layer { animation: motif-drift 18s ease-in-out infinite alternate; }
@keyframes motif-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -24px, 0) scale(1.03); }
}

/* Creative archetypes */
body.archetype-classic_invitation .site-shell { width: min(980px, calc(100% - 32px)); }
body.archetype-classic_invitation .hero-card { border-radius: 0; text-align: center; }
body.archetype-classic_invitation .hero-copy { align-items: center; }
body.archetype-classic_invitation .couple-names { font-size: clamp(4.4rem, 11vw, 8rem); }

body.archetype-editorial_magazine .site-shell { width: min(1220px, calc(100% - 28px)); }
body.archetype-editorial_magazine .hero-card { border-radius: 0; min-height: 82vh; }
body.archetype-editorial_magazine .couple-names { letter-spacing: -0.075em; text-transform: uppercase; }
body.archetype-editorial_magazine .section h2 { text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--body); font-size: clamp(1.1rem, 3vw, 2rem); }

body.archetype-cinematic_photo .site-shell { width: min(1320px, calc(100% - 24px)); }
body.archetype-cinematic_photo .hero-card { min-height: 88vh; color: var(--paper); background: var(--ink); }
body.archetype-cinematic_photo .hero-card .hero-meta span,
body.archetype-cinematic_photo .hero-card .hero-intro { color: color-mix(in srgb, var(--paper) 82%, transparent); }
body.archetype-cinematic_photo .hero-card .button.secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 62%, transparent); }

body.archetype-garden_story .hero-card,
body.archetype-garden_story .section { border-radius: 54px 18px 54px 18px; }
body.archetype-garden_story .section h2::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 14px; background: var(--accent); }

body.archetype-modern_poster { --panel: color-mix(in srgb, var(--paper) 84%, white); }
body.archetype-modern_poster .hero-card { border: 3px solid var(--ink); box-shadow: 18px 18px 0 var(--accent); border-radius: 0; }
body.archetype-modern_poster .couple-names { text-transform: uppercase; line-height: 0.78; letter-spacing: -0.08em; }
body.archetype-modern_poster .section { border-radius: 0; border-width: 2px; }

body.archetype-rustic_letter .site-shell { width: min(1050px, calc(100% - 32px)); }
body.archetype-rustic_letter .hero-card,
body.archetype-rustic_letter .section { box-shadow: 0 18px 70px color-mix(in srgb, var(--ink) 16%, transparent); transform-origin: center; }
body.archetype-rustic_letter .section:nth-child(odd) { transform: rotate(-0.25deg); }
body.archetype-rustic_letter .section:nth-child(even) { transform: rotate(0.25deg); }

body.archetype-minimal_luxury .site-shell { width: min(920px, calc(100% - 40px)); }
body.archetype-minimal_luxury .hero-card { min-height: 78vh; background: transparent; border: 0; box-shadow: none; text-align: center; }
body.archetype-minimal_luxury .hero-copy { align-items: center; }
body.archetype-minimal_luxury .hero-visual { min-height: 220px; border: 0; background: transparent; }
body.archetype-minimal_luxury .section { background: transparent; border-width: 0 0 1px; border-radius: 0; }

body.archetype-playful_bold .site-shell { width: min(1180px, calc(100% - 24px)); }
body.archetype-playful_bold .hero-card { border-radius: 34px; box-shadow: -12px 14px 0 color-mix(in srgb, var(--accent) 64%, white); }
body.archetype-playful_bold .couple-names { transform: rotate(-1deg); }
body.archetype-playful_bold .section:nth-child(3n) { border-radius: 18px 54px 18px 54px; }

/* Hero variants */
body.hero-centered .hero-card { grid-template-columns: 1fr; text-align: center; }
body.hero-centered .hero-copy { align-items: center; }
body.hero-centered .hero-visual { min-height: 260px; width: min(540px, 100%); justify-self: center; }
body.hero-full_bleed .site-shell { width: 100%; padding-top: 0; }
body.hero-full_bleed .hero-card { min-height: 94vh; border-radius: 0; grid-template-columns: 1fr; padding: clamp(28px, 7vw, 92px); }
body.hero-full_bleed .hero-visual { position: absolute; inset: 0; min-height: 100%; border: 0; border-radius: 0; opacity: 0.34; z-index: 0; }
body.hero-full_bleed .hero-copy { max-width: min(900px, 88vw); color: var(--paper); text-shadow: 0 2px 34px color-mix(in srgb, var(--ink) 42%, transparent); }
body.hero-full_bleed .hero-meta span { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 32%, transparent); background: color-mix(in srgb, var(--ink) 22%, transparent); }
body.hero-full_bleed .button.secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 58%, transparent); }
body.hero-poster .hero-card { grid-template-columns: 1fr; }
body.hero-poster .couple-names { font-size: clamp(5rem, 17vw, 14rem); text-transform: uppercase; line-height: 0.76; }
body.hero-poster .hero-meta { max-width: 760px; }
body.hero-invitation .hero-card { width: min(860px, 100%); margin-inline: auto; min-height: 76vh; }
body.hero-invitation .hero-card::before { content: ""; position: absolute; inset: 32px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); pointer-events: none; }
body.hero-monogram .hero-card { grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); }
body.hero-monogram .hero-copy { order: 2; }
body.hero-monogram .hero-visual { order: 1; min-height: 360px; }
body.hero-photo_story .hero-card { grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); }
body.hero-photo_story .hero-copy { order: 2; }
body.hero-photo_story .hero-visual { order: 1; min-height: 620px; }

/* Section flows */
body.flow-cards .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.flow-timeline .section-grid { grid-template-columns: 1fr; width: min(820px, 100%); margin-inline: auto; position: relative; }
body.flow-timeline .section-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 1px; background: var(--accent); opacity: 0.52; }
body.flow-timeline .section { margin-left: 58px; border-radius: 24px; }
body.flow-story .section-grid { grid-template-columns: 1fr; width: min(760px, 100%); margin-inline: auto; gap: 34px; }
body.flow-story .section { background: transparent; border-width: 0 0 1px; border-radius: 0; }
body.flow-magazine .section-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
body.flow-magazine .section { grid-column: span 6; }
body.flow-magazine .section:nth-child(3n + 1) { grid-column: span 7; min-height: 320px; }
body.flow-magazine .section:nth-child(3n + 2) { grid-column: span 5; }
body.flow-magazine .section.full { grid-column: 1 / -1; }
body.flow-stacked .section-grid { grid-template-columns: 1fr; gap: 16px; }
body.flow-alternating .section-grid { grid-template-columns: 1fr; }
body.flow-alternating .section { width: min(760px, 92%); }
body.flow-alternating .section:nth-child(even) { margin-left: auto; }

/* Motifs */
body.motif-botanical .motif-layer::before,
body.motif-botanical .motif-layer::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 62% 38% 56% 44%;
  opacity: 0.26;
}
body.motif-botanical .motif-layer::before { left: -110px; top: 9vh; transform: rotate(-24deg); }
body.motif-botanical .motif-layer::after { right: -120px; bottom: 4vh; transform: rotate(28deg); }
body.motif-geometric .motif-layer { background-image: linear-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: 58px 58px; }
body.motif-paper .motif-layer { background: radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--ink) 8%, transparent) 0 1px, transparent 2px), radial-gradient(circle at 70% 62%, color-mix(in srgb, var(--accent) 12%, transparent) 0 1px, transparent 2px); background-size: 18px 18px, 24px 24px; opacity: 0.32; }
body.motif-luxury_lines .motif-layer { background: linear-gradient(115deg, transparent 0 46%, color-mix(in srgb, var(--accent) 30%, transparent) 46% 46.2%, transparent 46.2% 100%), linear-gradient(65deg, transparent 0 58%, color-mix(in srgb, var(--accent-strong) 18%, transparent) 58% 58.15%, transparent 58.15% 100%); }
body.motif-rustic_texture .motif-layer { background: repeating-linear-gradient(12deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 9px); opacity: 0.34; }
body.motif-soft_blobs .motif-layer { background: radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 18rem), radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--accent-strong) 22%, transparent), transparent 21rem); }
body.motif-stars .motif-layer { background: radial-gradient(circle at 10% 20%, var(--accent) 0 1px, transparent 2px), radial-gradient(circle at 34% 68%, var(--accent-strong) 0 1px, transparent 2px), radial-gradient(circle at 78% 22%, var(--accent) 0 1px, transparent 2px), radial-gradient(circle at 92% 78%, var(--accent-strong) 0 1px, transparent 2px); background-size: 180px 180px; opacity: 0.42; }

/* Photo and lettering treatments */
body.photo-full_bleed .hero-visual img { object-fit: cover; }
body.photo-oval .hero-visual { border-radius: 48% 52% 45% 55%; }
body.photo-polaroid .hero-visual { border: 16px solid color-mix(in srgb, white 88%, var(--paper)); border-bottom-width: 54px; box-shadow: 0 24px 80px color-mix(in srgb, var(--ink) 18%, transparent); transform: rotate(-1.6deg); }
body.photo-soft_mask .hero-visual { border-radius: 34% 66% 58% 42%; }
body.photo-duotone .hero-visual img { filter: grayscale(1) sepia(0.42) saturate(1.55) contrast(0.95); mix-blend-mode: multiply; }
body.photo-grain .hero-visual::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16) 0 1px, transparent 1px 4px); opacity: 0.28; pointer-events: none; }

/* Density */
body.density-minimal .hero-meta span:nth-child(2),
body.density-minimal #countdown { display: none; }
body.density-minimal .section { padding: clamp(22px, 3vw, 34px); }
body.density-rich .site-shell { padding-block: 46px 76px; }
body.density-rich .hero-card { gap: clamp(32px, 6vw, 82px); }
body.density-rich .section { padding: clamp(32px, 5vw, 58px); }
body.density-rich .section h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

/* Legacy layout aliases kept for older generated specs */
body.openclaw-minimal .hero-card { grid-template-columns: 1fr; text-align: center; }
body.openclaw-minimal .hero-copy { align-items: center; }
body.openclaw-minimal .hero-visual { min-height: 280px; width: min(520px, 100%); justify-self: center; }
body.openclaw-editorial .hero-card { grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr); }
body.openclaw-editorial .couple-names { letter-spacing: -0.055em; }
body.openclaw-garden .hero-card,
body.openclaw-garden .section { border-radius: 44px 18px 44px 18px; }
body.openclaw-garden .section::before { content: "flor"; color: var(--accent); font-family: var(--heading); font-size: 0.9rem; letter-spacing: 0.25em; text-transform: uppercase; }
body.openclaw-poster .hero-card { border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--accent); }
body.openclaw-poster .couple-names { text-transform: uppercase; line-height: 0.84; }
body.openclaw-poster .section h2 { text-transform: uppercase; letter-spacing: 0.08em; }
body.openclaw-storybook .site-shell { width: min(1040px, calc(100% - 32px)); }
body.openclaw-storybook .hero-card { border-radius: 52px; }
body.openclaw-storybook .couple-names { font-style: italic; }
body.openclaw-atelier .hero-card { transform: rotate(-0.4deg); }
body.openclaw-atelier .section:nth-child(even) { transform: rotate(0.3deg); }

/* Motion */
body.motion-soft_reveal .hero-card,
body.motion-soft_reveal .section,
body.motion-soft_reveal .footer,
body.motion-romantic_float .hero-card,
body.motion-romantic_float .section,
body.motion-romantic_float .footer,
body.motion-editorial_slide .hero-card,
body.motion-editorial_slide .section,
body.motion-editorial_slide .footer,
body.motion-poster_snap .hero-card,
body.motion-poster_snap .section,
body.motion-poster_snap .footer {
  opacity: 0;
  transition: opacity 760ms ease, transform 760ms ease;
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}
body.motion-soft_reveal .hero-card,
body.motion-soft_reveal .section,
body.motion-soft_reveal .footer { transform: translateY(28px); }
body.motion-editorial_slide .hero-card,
body.motion-editorial_slide .section,
body.motion-editorial_slide .footer { transform: translateX(-34px); }
body.motion-romantic_float .hero-card,
body.motion-romantic_float .section,
body.motion-romantic_float .footer { transform: translateY(34px) scale(0.985); }
body.motion-poster_snap .hero-card,
body.motion-poster_snap .section,
body.motion-poster_snap .footer { transform: translateY(20px) rotate(-0.45deg); transition-timing-function: cubic-bezier(.2,.9,.16,1); }
body.motion-soft_reveal .is-visible,
body.motion-editorial_slide .is-visible,
body.motion-romantic_float .is-visible,
body.motion-poster_snap .is-visible {
  opacity: 1;
  transform: none;
}
body.motion-romantic_float .motif-layer::before,
body.motion-romantic_float .motif-layer::after {
  animation: motif-float 8s ease-in-out infinite alternate;
}
@keyframes motif-float {
  from { translate: 0 0; }
  to { translate: 0 -18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.has-openclaw .hero-card,
  body.has-openclaw .section,
  body.has-openclaw .footer,
  body.has-openclaw .motif-layer::before,
  body.has-openclaw .motif-layer::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 800px) {
  body.has-openclaw .hero-card,
  body.hero-monogram .hero-card,
  body.hero-photo_story .hero-card {
    grid-template-columns: 1fr;
  }
  body.hero-full_bleed .hero-card { min-height: 82vh; }
  body.flow-magazine .section-grid,
  body.flow-cards .section-grid { grid-template-columns: 1fr; }
  body.flow-magazine .section,
  body.flow-magazine .section:nth-child(3n + 1),
  body.flow-magazine .section:nth-child(3n + 2) { grid-column: 1 / -1; }
  body.hero-monogram .hero-copy,
  body.hero-photo_story .hero-copy,
  body.hero-monogram .hero-visual,
  body.hero-photo_story .hero-visual { order: initial; }
  body.nav-side_index .site-nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  body.nav-side_index .site-nav a {
    writing-mode: initial;
    transform: none;
  }
  body.chrome-side_label .section {
    grid-template-columns: 1fr;
  }
  body.chrome-side_label .section h2 {
    writing-mode: initial;
    transform: none;
  }
}

