/**
 * Hub /sito-matrimonio/ — page CSS.
 * Hero: the couple's address is the call to action and drives a phone showing a replica of the real guest site;
 * theme atelier, real-product sections (phones and replicas of the site and the panel), tools overview.
 */

/* ── Hero ── */
/* The field stops short of the bottom so the phone straddles rose and cream. */
.gw-sm-hero {
    --sm-overlap: clamp(4.5rem, 8vw, 7rem);
    --field-inset: 0 0 var(--sm-overlap);
}
.gw-sm-hero__grid { grid-template-columns: minmax(0, 35rem) auto; }
/* Centres the copy on the coloured field, not on the phone that overhangs it; the extra 2.5rem keeps the last
   line off the field's edge when the copy is almost as tall as the phone. */
.gw-sm-hero__copy { margin-bottom: calc(var(--sm-overlap) + 2.5rem); }

/* The call to action is the address itself: what is typed here drives the phone. On two lines, app.goweddy.com/ small
   above the names, so the names have the whole width. */
.gw-sm-claim {
    display: flex;
    width: min(100%, 36rem);
    padding: .4rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 0 1px hsl(340 30% 60% / .25), 0 18px 40px -22px hsl(340 40% 30% / .4);
}
.gw-sm-claim:focus-within { box-shadow: 0 0 0 3px hsl(var(--gw-wine) / .3), 0 18px 40px -22px hsl(340 40% 30% / .4); }
.gw-sm-claim__field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .1rem;
    padding-inline: 1rem .75rem;
    font-size: 1.05rem;
}
/* width:100% drops the input's built-in ~20ch minimum, which pushed the column off narrow phones. */
.gw-sm-claim__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-weight: 500;
    color: hsl(var(--gw-fg));
}
.gw-sm-claim__input::placeholder { color: hsl(var(--gw-muted-fg) / .7); font-weight: 400; }
.gw-sm-claim__domain { font-size: .78rem; line-height: 1.3; color: hsl(var(--gw-muted-fg)); }
.gw-sm-claim__cta {
    flex-shrink: 0;
    padding: .85rem 1.5rem;
    border: 0;
    border-radius: .7rem;
    background: hsl(var(--gw-wine));
    color: #fff;
    font-weight: 600;
    transition: background .18s ease;
}
.gw-sm-claim__cta:hover { background: hsl(var(--gw-wine-dark)); }
.gw-sm-claim__cta:focus-visible { outline: 2px solid hsl(var(--gw-wine-dark)); outline-offset: 2px; }

/* ── A scrolled page: the cover shortened, and the "Chi siamo" section below it,
   where the palette and the heading font show the most ── */
.gw-sm-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    font-size: 4.1cqi;
    font-synthesis: none;
    background: var(--pal-bg);
}
.gw-sm-page .gw-rp-cover { position: relative; inset: auto; height: 138cqi; font-size: 1em; }
.gw-sm-page .gw-rp-cover--elegant .gw-rp-cover__content { padding: 2.5em 1.5em 1.25em; }
.gw-sm-page .gw-rp-cover--minimal .gw-rp-cover__content { padding-bottom: 1.25em; }
.gw-sm-page > .gw-rp-cover__feed { font-size: 1em; }
.gw-sm-sec { display: flex; flex-direction: column; }
.gw-sm-sec__label,
.gw-sm-sec__date { font-family: var(--site-body); }
.gw-sm-sec__title { font-family: var(--site-heading); line-height: 1.1; }
.gw-sm-sec__people { display: grid; }
.gw-sm-sec__people span { overflow: hidden; }
.gw-sm-sec__people img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gw-sm-page--elegant .gw-sm-sec {
    align-items: center;
    padding: 2.25em 1.5em;
    text-align: center;
    background: var(--pal-bg-alt);
}
.gw-sm-page--elegant .gw-sm-sec__label {
    font-size: .65em;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pal-muted);
}
.gw-sm-page--elegant .gw-sm-sec__label::after {
    content: '';
    display: block;
    width: 3.85em;
    height: 1px;
    margin: .6em auto 0;
    background: var(--pal-border);
}
.gw-sm-page--elegant .gw-sm-sec__title { margin-top: .5em; font-size: 2em; font-weight: 300; color: var(--pal-text); }
.gw-sm-page--elegant .gw-sm-sec__date { margin-top: .35em; font-size: .875em; color: var(--pal-muted); }
.gw-sm-page--elegant .gw-sm-sec__people { grid-template-columns: 1fr 1fr; gap: 1em; width: 100%; margin-top: 1.5em; }
.gw-sm-page--elegant .gw-sm-sec__people span {
    aspect-ratio: 3 / 4;
    border-radius: .75em;
    border: 1px solid color-mix(in srgb, var(--pal-primary) 15%, transparent);
    background: linear-gradient(145deg, var(--pal-bg-alt), #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.gw-sm-page--minimal .gw-sm-sec { padding: 2.25em 1.25em; }
.gw-sm-page--minimal .gw-sm-sec__label {
    font-size: .6875em;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pal-muted);
}
.gw-sm-page--minimal .gw-sm-sec__title { margin-top: .6em; font-size: 2.1em; font-weight: var(--site-hw); letter-spacing: -.03em; line-height: 1; color: var(--pal-text); }
.gw-sm-page--minimal .gw-sm-sec__date { margin-top: .5em; font-size: .9375em; color: var(--pal-text-light); }
.gw-sm-page--minimal .gw-sm-sec__people { margin-top: 1.5em; }
.gw-sm-page--minimal .gw-sm-sec__people span {
    aspect-ratio: 4 / 5;
    background: var(--pal-accent);
}
.gw-sm-page--minimal .gw-sm-sec__people span + span { display: none; }

@media (max-width: 767.98px) {
    .gw-sm-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .gw-sm-hero__copy { margin-bottom: 2.5rem; }
    .gw-sm-hero .gw-rp-phone { justify-self: center; width: min(17rem, 78vw); }
}
/* Sito stacks below 768px, not 992px: from there its copy centres over the phone, as
   .gw-opening__copy does on the other product pages (product.css). */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gw-sm-hero__copy { text-align: center; }
    .gw-sm-hero .gw-opening__title,
    .gw-sm-hero .gw-opening__lead,
    .gw-sm-claim { margin-inline: auto; }
    .gw-sm-claim { text-align: start; }
    .gw-sm-hero .gw-trust { justify-content: center; text-align: start; }
}
@media (max-width: 575.98px) {
    .gw-sm-claim { flex-direction: column; gap: .4rem; }
    .gw-sm-claim__field { padding-block: .55rem .6rem; }
    .gw-sm-claim__cta { padding-block: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-rp-cover { transition: none; }
}

/* ── Theme atelier: pick a palette and a type pairing, both phones follow ── */
@property --pal-primary { syntax: '<color>'; inherits: true; initial-value: #C08080; }
@property --pal-accent { syntax: '<color>'; inherits: true; initial-value: #F0D6D6; }
@property --pal-bg { syntax: '<color>'; inherits: true; initial-value: #FFFBFB; }
@property --pal-bg-alt { syntax: '<color>'; inherits: true; initial-value: #FDF4F4; }
@property --pal-text { syntax: '<color>'; inherits: true; initial-value: #3D2B2B; }
@property --pal-text-light { syntax: '<color>'; inherits: true; initial-value: #7A5C5C; }
@property --pal-muted { syntax: '<color>'; inherits: true; initial-value: #A68E8E; }
@property --pal-border { syntax: '<color>'; inherits: true; initial-value: #F0D6D6; }

.gw-sm-atelier {
    position: relative;
    isolation: isolate;
    max-width: 62rem;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
    overflow: hidden;
    border-radius: 1.75rem;
    /* A transition list replaces, never adds: the .rv entrance from base.css is repeated here, or the block pops in. */
    transition: opacity .8s ease, transform .8s ease,
        --pal-primary .6s ease, --pal-accent .6s ease, --pal-bg .6s ease, --pal-bg-alt .6s ease,
        --pal-text .6s ease, --pal-text-light .6s ease, --pal-muted .6s ease, --pal-border .6s ease;
}
.gw-sm-atelier::before,
.gw-sm-atelier::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.gw-sm-atelier::before {
    background:
        radial-gradient(45% 60% at 28% 50%, hsl(0 0% 100% / .5), transparent 70%),
        color-mix(in oklab, var(--pal-accent) 78%, var(--pal-primary));
}
.gw-sm-atelier::after {
    background: color-mix(in oklab, var(--pal-primary) 22%, transparent);
    -webkit-mask: url(../img/patterns/floral-mask.webp) 0 0 / 520px repeat;
    mask: url(../img/patterns/floral-mask.webp) 0 0 / 520px repeat;
}

.gw-sm-atelier__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 21rem);
    justify-content: center;
    align-items: center;
    column-gap: clamp(2.5rem, 6vw, 5rem);
}
.gw-rp-phone--atelier {
    width: clamp(13.5rem, 20vw, 16.5rem);
    box-shadow:
        inset 0 0 0 1.5px hsl(0 0% 100% / .14),
        0 0 0 1px hsl(340 30% 8% / .5),
        0 36px 60px -28px hsl(340 50% 12% / .6);
}
.gw-rp-phone--atelier .gw-sm-page { opacity: 0; transition: opacity .5s ease; }
.gw-rp-phone--atelier .gw-sm-page.is-active { opacity: 1; }

/* The reseal button straddles the phone's bottom edge: it appears where the eye already
   is and takes no room of its own, so nothing below moves when it shows up. */
.gw-sm-atelier__device { position: relative; justify-self: center; }
.gw-sm-reseal {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    font-size: .92rem;
    white-space: nowrap;
    transform: translate(-50%, 50%);
    animation: gw-sm-reseal-in .4s ease both;
}
.gw-sm-reseal[hidden] { display: none; }
/* .btn-wine lifts by 1px on hover through transform; keep the centring translate. */
.gw-sm-reseal:hover { transform: translate(-50%, calc(50% - 1px)); }
.gw-sm-reseal:focus-visible { outline: 2px solid hsl(var(--gw-wine-dark)); outline-offset: 3px; }
@keyframes gw-sm-reseal-in {
    from { opacity: 0; transform: translate(-50%, calc(50% + .5rem)); }
    to { opacity: 1; transform: translate(-50%, 50%); }
}

/* ── Intro envelope: app/assets/css/sites/intro-envelope.css scoped to the phone.
   Viewport units became container units: 1cqw is 1vw of the phone. ── */
.gw-rp-phone .site-intro {
    position: absolute; inset: 0; z-index: 2;
    perspective: 1500px; perspective-origin: 50% 50%;
    --paper-0: #f6f1e6;
    --paper-1: #eee4d0;
    --paper-2: #e2d3b6;
    --ink: #5d5138;
    --ink-soft: #6d5f40;
    --gold-deep: #8f6a22;
    --seal-size: 48cqw;
    --seal-lift: calc(var(--seal-size) * 0.11);
    --fold-apex: 60%;
    --fold-drop: 42cqw;
    /* The sheets run past the screen by --bleed (at the border their torn edge would pull emptiness in), so a
       height read on a sheet is --fold-apex moved by bleed * (1 - 2 * 0.6). */
    --bleed: 4.1cqw;
    --paper-apex: calc(var(--fold-apex) - var(--bleed) * 0.2);
    --fold-base: calc(var(--paper-apex) - var(--seal-size) * 0.34);
    --fold-rise: calc(var(--paper-apex) - var(--seal-size) * 0.68);
    --top-base: max(0%, calc(var(--paper-apex) - var(--fold-drop)));
    --bot-base: min(100%, calc(var(--fold-rise) + var(--fold-drop)));
    --tip-round: 14.4cqw;
    --seal-img: url(../img/intro/seal-wax.webp);
    /* A layer of its own: without one, Chrome let the site underneath show in the screen's rounded corners. */
    will-change: transform;
}
.gw-rp-phone .site-intro[hidden] { display: none; }
/* Sealed and lit from the first paint; the names wait until the phone scrolls into view. */
.gw-rp-phone .site-intro.is-waiting,
.gw-rp-phone .site-intro.is-waiting *,
.gw-rp-phone .site-intro.is-waiting *::before { animation-play-state: paused; }
.gw-rp-phone__screen:has(.site-intro:not([hidden]):not(.gone)) .gw-rp-phone__status { color: #3a3026; }
.gw-rp-phone .site-intro::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(38, 27, 14, 0.5);
    transition: opacity 1.4s ease .23s;
}
.gw-rp-phone .site-intro.is-open::before { opacity: 0; }
.gw-rp-phone .site-intro::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: var(--paper-1);
}
.gw-rp-phone .site-intro.is-open::after { display: none; }
.gw-rp-phone .site-intro.gone { visibility: hidden; pointer-events: none; }

.gw-rp-phone .site-intro .flap {
    position: absolute; inset: 0;
    transition: transform 1.15s cubic-bezier(.6,.03,.3,1), filter 1.15s ease;
}
/* The wrapper carries the shadows, .cut tears the edge, .paper carries the cut: clip-path applies after
   filter, so they cannot share an element. */
.gw-rp-phone .site-intro .flap > .cut {
    position: absolute; inset: calc(var(--bleed) * -1);
    filter: url(#introDeckle);
}
/* Photographed cotton paper, its tile 400px on a phone 390px wide. */
.gw-rp-phone .site-intro .cut > .paper {
    position: absolute; inset: 0;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(90,66,35,0.18), rgba(90,66,35,0.06) 22%, transparent 34%),
        linear-gradient(0deg, var(--tone, transparent), var(--tone, transparent)),
        url(../img/intro/paper-cotton.webp),
        radial-gradient(140% 120% at 50% 42%, var(--paper-0) 0%, var(--paper-1) 55%, var(--paper-2) 100%);
    background-size: auto, auto, 102.6cqw, auto;
    background-blend-mode: normal, normal, multiply, normal;
}
.gw-rp-phone .site-intro .cut > .paper::after {
    content: ""; position: absolute; inset: 0;
    pointer-events: none;
    background: var(--fold-light, none);
}
.gw-rp-phone .site-intro .f-top    { --tone: rgba(255,255,255,0.13); transform-origin: 50% 0;    z-index: 4; }
.gw-rp-phone .site-intro .f-bottom { transform-origin: 50% 100%; z-index: 3; }
.gw-rp-phone .site-intro .f-left   { transform-origin: 0 50%;    z-index: 2; }
.gw-rp-phone .site-intro .f-right  { transform-origin: 100% 50%; z-index: 2; }
.gw-rp-phone .site-intro .f-left,
.gw-rp-phone .site-intro .f-right,
.gw-rp-phone .site-intro .f-bottom {
    --tone: rgba(112,86,48,0.06);
    --fold-stops:
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.02) 14%,
        rgba(120,92,52,0.08) 44%,
        rgba(104,78,42,0.17) 100%;
}
.gw-rp-phone .site-intro .f-top    { --fold-light: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.05) 46%, rgba(104,78,42,0.10) 100%); }
.gw-rp-phone .site-intro .f-left   { --fold-light: linear-gradient(90deg,  var(--fold-stops)); }
.gw-rp-phone .site-intro .f-right  { --fold-light: linear-gradient(270deg, var(--fold-stops)); }
.gw-rp-phone .site-intro .f-bottom { --fold-light: linear-gradient(0deg,   var(--fold-stops)); }

.gw-rp-phone .site-intro .f-top .paper {
    clip-path: polygon(
        -1% -1%, 101% -1%,
        101% var(--top-base),
        calc(50% + var(--tip-round)) calc(var(--paper-apex) - var(--tip-round) * 0.84),
        calc(50% + var(--tip-round) * 0.62) calc(var(--paper-apex) - var(--tip-round) * 0.70),
        calc(50% + var(--tip-round) * 0.45) calc(var(--paper-apex) - var(--tip-round) * 0.62),
        calc(50% - var(--tip-round) * 0.45) calc(var(--paper-apex) - var(--tip-round) * 0.62),
        calc(50% - var(--tip-round) * 0.62) calc(var(--paper-apex) - var(--tip-round) * 0.70),
        calc(50% - var(--tip-round)) calc(var(--paper-apex) - var(--tip-round) * 0.84),
        -1% var(--top-base));
}
.gw-rp-phone .site-intro .f-bottom .paper {
    clip-path: polygon(
        -1% 101%, 101% 101%,
        101% var(--bot-base),
        calc(50% + var(--tip-round)) calc(var(--fold-rise) + var(--tip-round) * 0.84),
        calc(50% + var(--tip-round) * 0.62) calc(var(--fold-rise) + var(--tip-round) * 0.70),
        calc(50% + var(--tip-round) * 0.45) calc(var(--fold-rise) + var(--tip-round) * 0.62),
        calc(50% - var(--tip-round) * 0.45) calc(var(--fold-rise) + var(--tip-round) * 0.62),
        calc(50% - var(--tip-round) * 0.62) calc(var(--fold-rise) + var(--tip-round) * 0.70),
        calc(50% - var(--tip-round)) calc(var(--fold-rise) + var(--tip-round) * 0.84),
        -1% var(--bot-base));
}
.gw-rp-phone .site-intro .f-left .paper {
    clip-path: polygon(
        -1% -1%,
        calc(50.4% - var(--tip-round) * 0.5)  calc(var(--fold-base) - var(--tip-round) * 0.75),
        calc(50.4% - var(--tip-round) * 0.32) calc(var(--fold-base) - var(--tip-round) * 0.42),
        calc(50.4% - var(--tip-round) * 0.28) calc(var(--fold-base) - var(--tip-round) * 0.2),
        calc(50.4% - var(--tip-round) * 0.28) calc(var(--fold-base) + var(--tip-round) * 0.2),
        calc(50.4% - var(--tip-round) * 0.32) calc(var(--fold-base) + var(--tip-round) * 0.42),
        calc(50.4% - var(--tip-round) * 0.5)  calc(var(--fold-base) + var(--tip-round) * 0.75),
        -1% 101%);
}
.gw-rp-phone .site-intro .f-right .paper {
    clip-path: polygon(
        101% -1%, 101% 101%,
        calc(49.6% + var(--tip-round) * 0.5)  calc(var(--fold-base) + var(--tip-round) * 0.75),
        calc(49.6% + var(--tip-round) * 0.32) calc(var(--fold-base) + var(--tip-round) * 0.42),
        calc(49.6% + var(--tip-round) * 0.28) calc(var(--fold-base) + var(--tip-round) * 0.2),
        calc(49.6% + var(--tip-round) * 0.28) calc(var(--fold-base) - var(--tip-round) * 0.2),
        calc(49.6% + var(--tip-round) * 0.32) calc(var(--fold-base) - var(--tip-round) * 0.42),
        calc(49.6% + var(--tip-round) * 0.5)  calc(var(--fold-base) - var(--tip-round) * 0.75));
}

/* Resting shadows close to the edge and short, as under paper that lies flat. */
.gw-rp-phone .site-intro .f-top {
    filter:
        drop-shadow(0 1.3px 0.5px rgba(255, 253, 247, 0.95))
        drop-shadow(0 1px 1.6px rgba(60, 42, 18, 0.36))
        drop-shadow(1px 4px 7px rgba(60, 42, 18, 0.19))
        drop-shadow(2px 9px 18px rgba(60, 42, 18, 0.07));
}
.gw-rp-phone .site-intro .f-bottom {
    filter:
        drop-shadow(0 -1px 1.2px rgba(60, 42, 18, 0.20))
        drop-shadow(0 -2px 5px rgba(60, 42, 18, 0.11));
}
.gw-rp-phone .site-intro .f-left {
    filter:
        drop-shadow(0.8px 0.6px 0.5px rgba(255, 253, 247, 0.7))
        drop-shadow(1px 1px 1.6px rgba(60, 42, 18, 0.30))
        drop-shadow(3px 2px 7px rgba(60, 42, 18, 0.13));
}
.gw-rp-phone .site-intro .f-right {
    filter:
        drop-shadow(-0.8px 0.6px 0.5px rgba(255, 253, 247, 0.7))
        drop-shadow(-1px 1px 1.6px rgba(60, 42, 18, 0.30))
        drop-shadow(-3px 2px 7px rgba(60, 42, 18, 0.13));
}
.gw-rp-phone .site-intro.is-open .flap     { transition: transform 1.9s cubic-bezier(.34,.09,.38,1); backface-visibility: hidden; will-change: transform; }
.gw-rp-phone .site-intro.is-open .f-top    { transform: rotateX(120deg);  transition-duration: 1.9s;  transition-delay: .16s; filter: brightness(1.05) drop-shadow(0 0 2px rgba(52, 35, 14, 0.22)); }
.gw-rp-phone .site-intro.is-open .f-left   { transform: rotateY(150deg);  transition-duration: 2.15s; transition-delay: .34s; filter: brightness(0.93) drop-shadow(0 0 2px rgba(52, 35, 14, 0.26)); }
.gw-rp-phone .site-intro.is-open .f-right  { transform: rotateY(-150deg); transition-duration: 2.15s; transition-delay: .34s; filter: brightness(0.93) drop-shadow(0 0 2px rgba(52, 35, 14, 0.26)); }
.gw-rp-phone .site-intro.is-open .f-bottom { transform: rotateX(130deg);  transition-duration: 1.9s;  transition-delay: .52s; filter: brightness(0.92) drop-shadow(0 -1px 1.2px rgba(52, 35, 14, 0.17)); }

.gw-rp-phone .site-intro .light {
    position: absolute; inset: 0; z-index: 6; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), transparent 16%);
    box-shadow: inset 0 0 20.5cqw rgba(84,62,32,0.2);
    transition: opacity .9s ease .4s;
}
.gw-rp-phone .site-intro.is-open .light { opacity: 0; transition-delay: .08s; }

.gw-rp-phone .site-intro .sweep {
    position: absolute; inset: -20%; z-index: 21; pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255,243,210,0.17) 50%, transparent 58%);
    opacity: 0;
    animation: siSweepPass 1.7s cubic-bezier(.4,.1,.3,1) 1.6s both;
}
@keyframes siSweepPass {
    0%   { transform: translateX(-80%); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateX(80%); opacity: 0; }
}

/* The default names scale of a new site is "l" (x1.45). */
.gw-rp-phone .site-intro .addr {
    position: absolute; left: 50%;
    top: calc(6cqh + 8cqw);
    bottom: calc(100% - var(--fold-apex) + var(--seal-lift) + var(--seal-size) / 2 + 5cqw);
    transform: translateX(-50%); z-index: 8; text-align: center; pointer-events: none;
    display: flex; flex-direction: column; justify-content: center;
    color: var(--ink); transition: opacity .35s ease;
}
.gw-rp-phone .site-intro .addr-names {
    font-family: var(--site-heading, Georgia, serif);
    font-size: min(calc(8.2cqw * 1.45), 9cqh);
    line-height: 1.02;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}
.gw-rp-phone .site-intro .addr-names .amp {
    display: block; color: var(--gold-deep);
    font-size: 0.5em; line-height: 1.05;
}
.gw-rp-phone .site-intro .addr-line { display: block; }
@keyframes siInkIn {
    from { opacity: 0; filter: blur(7px); transform: translateY(10px); }
    to   { opacity: 1; filter: blur(0); transform: none; }
}
.gw-rp-phone .site-intro .addr-line,
.gw-rp-phone .site-intro .addr-names .amp {
    animation: siInkIn 1.5s cubic-bezier(.22,.61,.36,1) both;
}
.gw-rp-phone .site-intro .addr-names .amp { animation-delay: .3s; }
.gw-rp-phone .site-intro .amp + .addr-line { animation-delay: .6s; }
.gw-rp-phone .site-intro.is-open .addr { opacity: 0; }

/* The wax's own outline, blurred and slid away from the light. In two pieces: a mask is applied after a
   filter, so on one element it would cut the blur back to the outline. */
.gw-rp-phone .site-intro .seal-shadow {
    position: absolute; left: 50%; z-index: 8;
    top: calc(var(--fold-apex) - var(--seal-lift));
    width: var(--seal-size); height: var(--seal-size);
    transform: translate(calc(-50% + var(--seal-size) * 0.014), calc(-50% + var(--seal-size) * 0.026));
    filter: blur(calc(var(--seal-size) * 0.018));
    pointer-events: none;
    transition: opacity .45s ease .12s;
}
.gw-rp-phone .site-intro .seal-shadow::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(44, 28, 9, 0.42);
    -webkit-mask: var(--seal-img) center / contain no-repeat; mask: var(--seal-img) center / contain no-repeat;
}
.gw-rp-phone .site-intro.is-open .seal-shadow { opacity: 0; transition-delay: 0s; }

.gw-rp-phone .site-intro .seal {
    position: absolute; left: 50%; z-index: 9;
    top: calc(var(--fold-apex) - var(--seal-lift));
    width: var(--seal-size); height: var(--seal-size);
    margin: calc(var(--seal-size) / -2) 0 0 calc(var(--seal-size) / -2);
    border: 0; padding: 0; background: none; cursor: pointer;
    perspective: 520px;
}
.gw-rp-phone .site-intro .seal:hover { filter: brightness(1.05); }
.gw-rp-phone .site-intro .seal:active { filter: brightness(0.94); }
.gw-rp-phone .site-intro .seal:focus-visible { outline: 3px solid rgba(198,162,76,0.75); outline-offset: 8px; border-radius: 50%; }
.gw-rp-phone .site-intro.is-open .seal { pointer-events: none; }

.gw-rp-phone .site-intro .half { position: absolute; inset: 0; }
/* the photograph leaves air around the wax: grown back, so the flaps' tips stay under it */
.gw-rp-phone .site-intro .half svg,
.gw-rp-phone .site-intro .wax,
.gw-rp-phone .site-intro .seal-shadow::before { transform: scale(1.16); }
.gw-rp-phone .site-intro .half svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
/* One grey photograph, twice: as the outline of the couple's colour, and laid over it in hard-light, where
   its darks shade the wax and its lights glint on it. */
.gw-rp-phone .site-intro .wax {
    position: absolute; inset: 0; isolation: isolate;
    background: var(--wax-mid);
    -webkit-mask: var(--seal-img) center / contain no-repeat; mask: var(--seal-img) center / contain no-repeat;
}
.gw-rp-phone .site-intro .wax::after {
    content: ""; position: absolute; inset: 0;
    background: var(--seal-img) center / contain no-repeat;
    mix-blend-mode: hard-light;
}
.gw-rp-phone .site-intro .h-l { clip-path: polygon(0 0, 54.7% 0, 47.7% 15%, 55.7% 30%, 46.7% 46%, 54.7% 62%, 47.7% 78%, 53.7% 90%, 48.7% 100%, 0 100%); }
.gw-rp-phone .site-intro .h-r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 48% 100%, 53% 90%, 47% 78%, 54% 62%, 46% 46%, 55% 30%, 47% 15%); }

.gw-rp-phone .site-intro .seal-shine { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.gw-rp-phone .site-intro .seal-shine::before {
    content: ""; position: absolute; top: -25%; bottom: -25%; left: -45%; width: 32%;
    background: linear-gradient(75deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-18deg);
    animation: siSealShine 4.6s ease-in-out 2.4s infinite;
}
@keyframes siSealShine {
    0%   { transform: translateX(0) skewX(-18deg); }
    14%  { transform: translateX(500%) skewX(-18deg); }
    100% { transform: translateX(500%) skewX(-18deg); }
}
.gw-rp-phone .site-intro.is-open .seal-shine { display: none; }

.gw-rp-phone .site-intro.is-open .h-full { display: none; }
.gw-rp-phone .site-intro.is-open .h-l { animation: siFallL 1.25s linear forwards; }
.gw-rp-phone .site-intro.is-open .h-r { animation: siFallR 1.25s linear forwards; }
@keyframes siFallL {
    0%   { transform: none; opacity: 1; }
    5%   { transform: translate(-7px, -1px) rotate(-3.5deg); }
    12%  { transform: translate(-8px, 0) rotate(-4deg); }
    24%  { transform: translate(-9px, 2px) rotate(-4.5deg); }
    40%  { transform: translate(-12px, 14px) rotate(-8deg) rotateX(7deg); }
    55%  { transform: translate(-16px, 42px) rotate(-14deg) rotateX(16deg); }
    70%  { transform: translate(-22px, 90px) rotate(-22deg) rotateX(27deg); opacity: 1; }
    85%  { transform: translate(-29px, 158px) rotate(-33deg) rotateX(40deg); opacity: 0.9; }
    100% { transform: translate(-36px, 242px) rotate(-45deg) rotateX(54deg); opacity: 0; }
}
@keyframes siFallR {
    0%   { transform: none; opacity: 1; }
    5%   { transform: translate(8px, -1px) rotate(4.5deg); }
    12%  { transform: translate(9px, 1px) rotate(5deg); }
    24%  { transform: translate(10px, 3px) rotate(5.5deg); }
    40%  { transform: translate(14px, 16px) rotate(9deg) rotateX(6deg) rotateY(-7deg); }
    55%  { transform: translate(19px, 45px) rotate(16deg) rotateX(15deg) rotateY(-13deg); }
    70%  { transform: translate(26px, 95px) rotate(25deg) rotateX(26deg) rotateY(-19deg); opacity: 1; }
    85%  { transform: translate(33px, 165px) rotate(36deg) rotateX(38deg) rotateY(-26deg); opacity: 0.9; }
    100% { transform: translate(40px, 250px) rotate(48deg) rotateX(51deg) rotateY(-33deg); opacity: 0; }
}

.gw-rp-phone .site-intro .crumb {
    position: absolute; top: 50%; left: 50%; opacity: 0; pointer-events: none;
    background: var(--wax-deep);
}
.gw-rp-phone .site-intro .c1 { width: 7px; height: 6px; margin: -34px 0 0 -3px; border-radius: 55% 45% 60% 40%; }
.gw-rp-phone .site-intro .c2 { width: 5px; height: 5px; margin: 6px 0 0 2px;  border-radius: 45% 55% 40% 60%; background: var(--wax-edge); }
.gw-rp-phone .site-intro .c3 { width: 4px; height: 4px; margin: -12px 0 0 -1px; border-radius: 60% 40% 50% 50%; }
.gw-rp-phone .site-intro.is-open .c1 { animation: siCrumb1 .85s linear forwards; }
.gw-rp-phone .site-intro.is-open .c2 { animation: siCrumb2 .7s linear .04s forwards; }
.gw-rp-phone .site-intro.is-open .c3 { animation: siCrumb3 .6s linear .01s forwards; }
@keyframes siCrumb1 {
    0% { opacity: 0; transform: none; }
    6% { opacity: 1; }
    22% { transform: translate(-9px, -10px) rotate(80deg); }
    55% { transform: translate(-16px, 34px) rotate(200deg); opacity: 1; }
    100% { transform: translate(-21px, 150px) rotate(340deg); opacity: 0; }
}
@keyframes siCrumb2 {
    0% { opacity: 0; transform: none; }
    7% { opacity: 1; }
    30% { transform: translate(10px, 6px) rotate(-110deg); }
    100% { transform: translate(18px, 130px) rotate(-300deg); opacity: 0; }
}
@keyframes siCrumb3 {
    0% { opacity: 0; transform: none; }
    8% { opacity: 1; }
    26% { transform: translate(5px, -7px) rotate(60deg); }
    100% { transform: translate(9px, 110px) rotate(220deg); opacity: 0; }
}

/* Above the phone's own address bar, which a real viewport would not include. */
.gw-rp-phone .site-intro .hint {
    position: absolute; left: 50%; bottom: calc(19cqw + 5cqh); z-index: 9;
    transform: translateX(-50%);
    font-size: 2.9cqw; letter-spacing: 0.34em; text-transform: uppercase;
    color: var(--ink-soft); white-space: nowrap; text-shadow: 0 1px 0 rgba(255,255,255,0.75);
    transition: opacity .35s ease;
    animation: siFadeIn 1.1s ease-out 1.4s both;
}
@keyframes siFadeIn { from { opacity: 0; } to { opacity: 1; } }
.gw-rp-phone .site-intro .hint::after { content: ""; display: block; width: 6cqw; height: 1px; background: currentColor; opacity: 0.5; margin: 2.9cqw auto 0; }
.gw-rp-phone .site-intro.is-open .hint { opacity: 0; animation: none; }

@media (prefers-reduced-motion: reduce) {
    .gw-rp-phone .site-intro .flap { transition: opacity .5s ease !important; transform: none !important; }
    .gw-rp-phone .site-intro.is-open .flap { opacity: 0; }
    .gw-rp-phone .site-intro .sweep, .gw-rp-phone .site-intro .addr-line, .gw-rp-phone .site-intro .addr-names .amp, .gw-rp-phone .site-intro .hint { animation: none; }
    .gw-rp-phone .site-intro .sweep { opacity: 0; }
    .gw-rp-phone .site-intro .seal-shine::before { animation: none; }
    .gw-rp-phone .site-intro.is-open .crumb { animation: none; }
    .gw-rp-phone .site-intro.is-open .h-l, .gw-rp-phone .site-intro.is-open .h-r { animation: none; opacity: 0; transition: opacity .4s ease; }
}

.gw-sm-atelier__controls { display: flex; flex-direction: column; gap: 1.75rem; color: hsl(var(--gw-fg)); }

@media (max-width: 767.98px) {
    .gw-sm-atelier__stage { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    /* The coloured field starts below the phone's top, so the phone rises out of it as in the hero. */
    .gw-sm-atelier { padding-block: 0 2rem; overflow: visible; }
    .gw-sm-atelier::before,
    .gw-sm-atelier::after { top: 6rem; border-radius: inherit; }
    /* Small enough that the phone and the colour row share one screen: a tap must show its effect. */
    .gw-rp-phone--atelier { justify-self: center; width: 11.5rem; padding: .42rem; border-radius: 2.1rem; }
    .gw-rp-phone--atelier .gw-rp-phone__screen { border-radius: 1.75rem; }
    .gw-sm-atelier__controls { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-sm-atelier,
    .gw-rp-phone--atelier .gw-sm-page { transition: none; }
    .gw-sm-reseal { animation: none; }
}

/* Story: the mobile timeline, rail on the left, progress fills as it scrolls. */
.gw-rp-tl { position: relative; margin: 0 1em 0 calc(1em + 10px); padding: 1em 0 3em; }
.gw-rp-tl::before,
.gw-rp-tl::after { content: ''; position: absolute; left: -10px; top: 0; width: 3px; border-radius: 2px; background: var(--pal-primary); }
.gw-rp-tl::before { bottom: 0; opacity: .12; }
.gw-rp-tl::after { height: var(--tl-progress, 0%); }
.gw-rp-tl__item { position: relative; margin-bottom: 3em; }
.gw-rp-tl__marker { position: absolute; left: -28px; top: 4em; display: flex; justify-content: center; width: 38px; }
.gw-rp-tl__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--pal-primary);
    box-shadow: 0 0 0 4px var(--pal-bg);
}
.gw-rp-tl__item.is-reached .gw-rp-tl__dot { background: var(--pal-primary); }
.gw-rp-tl__card { overflow: hidden; border-radius: .75em; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.gw-rp-tl__card img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.gw-rp-tl__body { display: flex; flex-direction: column; padding: 1.6em; }
.gw-rp-tl__period { margin-bottom: .45em; font-size: .65em; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--pal-primary); }
.gw-rp-tl__title { margin-bottom: .4em; font-size: 1.2em; font-weight: 600; line-height: 1.3; }
.gw-rp-tl__desc { font-size: .875em; line-height: 1.7; color: var(--pal-text-light); }

/* ── Story section: phone and words, the phone scrolls with the page ── */
.gw-sm-story { padding-block: clamp(4rem, 8vw, 6.5rem); }
.gw-sm-story__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 27rem);
    justify-content: center;
    align-items: center;
    column-gap: clamp(3rem, 8vw, 6.5rem);
}

/* ── RSVP section: guest and couple side by side ── */
@media (min-width: 768px) {
    .gw-sm-rsvp { padding-block: clamp(3rem, 6vw, 5rem); }
}
/* The answer travelling from the guest's "yes" to the couple's row; drawn by the script. */
.gw-sm-rsvp__wire { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gw-sm-rsvp__wire path { fill: none; stroke: hsl(var(--gw-wine) / .55); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.gw-sm-rsvp__wire circle { fill: hsl(var(--gw-wine)); opacity: 0; }
.gw-sm-rsvp__wire.is-on path,
.gw-sm-rsvp__wire.is-on circle { opacity: 1; transition: opacity .3s ease; }
.gw-sm-rsvp__more { margin: 2.5rem 0 0; text-align: center; }

@media (max-width: 991.98px) {
    .gw-sm-rsvp__wire { display: none; }
}
@media (max-width: 767.98px) {
    .gw-sm-story__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .gw-sm-story__copy { order: -1; }
}

/* ── Languages: the guest's own words, in turn ── */
@media (min-width: 768px) {
    .gw-sm-langs { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
}
.gw-sm-dictation,
.gw-sm-trip,
.gw-sm-people,
.gw-sm-wishes,
.gw-sm-mail { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.gw-sm-langs__grid,
.gw-sm-trip__grid,
.gw-sm-mail__grid {
    display: grid;
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.gw-sm-langs__show {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 18px 40px -26px hsl(340 40% 25% / .35);
}
/* Every phrase sits in the same cell: the box keeps the height of the longest one. */
.gw-sm-langs__phrase {
    display: grid;
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    font-weight: 400;
    line-height: 1.1;
    color: hsl(var(--gw-fg));
}
.gw-sm-langs__phrase span { grid-area: 1 / 1; opacity: 0; transform: translateY(.25em); transition: opacity .5s ease, transform .5s ease; }
.gw-sm-langs__phrase span.is-active { opacity: 1; transform: none; }
.gw-sm-langs__codes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.gw-sm-langs__code {
    min-width: 2.75rem;
    padding: .45rem .6rem;
    border: 1px solid hsl(var(--gw-border));
    border-radius: .6rem;
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: hsl(var(--gw-muted-fg));
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gw-sm-langs__code:hover { border-color: hsl(var(--gw-wine) / .5); color: hsl(var(--gw-wine)); }
.gw-sm-langs__code[aria-pressed="true"] { background: hsl(var(--gw-wine)); border-color: hsl(var(--gw-wine)); color: #fff; }
.gw-sm-langs__code:focus-visible { outline: 2px solid hsl(var(--gw-wine)); outline-offset: 2px; }
.gw-sm-langs__note { margin: 1.1rem 0 0; font-size: .82rem; color: hsl(var(--gw-muted-fg)); }

/* Places: the location cards, and the extra pages tucked under them. */
.gw-sm-loc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gw-sm-loc__card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.gw-sm-loc__card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gw-sm-loc__time {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}
.gw-sm-loc__body { flex: 1; display: flex; flex-direction: column; padding: 1.35rem 1.35rem 0; }
.gw-sm-loc__type { margin-bottom: .4rem; font-size: .62rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.gw-sm-loc__name { margin-bottom: .3rem; font-family: var(--site-heading); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--pal-primary); }
.gw-sm-loc__address { margin-bottom: 1rem; font-size: .82rem; line-height: 1.5; }
.gw-sm-loc__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    margin-top: auto;
    border-radius: 11px;
    background: var(--pal-primary);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
}
.gw-sm-loc__notes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.1rem -1.35rem 0;
    padding: .85rem 1.35rem;
    border-top: 1px solid color-mix(in srgb, var(--pal-text-light) 10%, transparent);
    font-size: .8rem;
    font-weight: 500;
    color: var(--pal-primary);
}
.gw-sm-trip__pages { position: relative; width: min(22rem, 64%); margin: -1.75rem 0 0 -2.5rem; padding: 1.25rem; border-radius: 1.25rem; }
.gw-sm-trip__pages .gw-rp-canvas__title { margin-bottom: 1rem; font-size: 1.6rem; }
.gw-sm-ep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gw-sm-ep__card { display: flex; flex-direction: column; overflow: hidden; border-radius: .75rem; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); text-align: center; }
.gw-sm-ep__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gw-sm-ep__card span { padding: .55rem .5rem .65rem; font-family: var(--site-heading); font-size: 1.15rem; font-weight: 600; line-height: 1.2; color: var(--pal-primary); }

/* ── Special people: the heading split in two, the section wide below ── */
.gw-sm-people__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gw-sm-people__head .gw-cs-feature__subtitle { margin: 0; }
.gw-sm-people__show { max-width: 62rem; margin-inline: auto; }
.gw-sm-wit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.gw-sm-wit__head { display: block; margin-bottom: 1.25rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--pal-muted); }
.gw-sm-wit__group { display: flex; flex-direction: column; }
.gw-sm-wit__cards { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gw-sm-wit__card { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
/* What the site shows until a photo is added. */
.gw-sm-wit__photo {
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, var(--pal-bg-alt), #fff);
    border: 1px solid color-mix(in srgb, var(--pal-primary) 15%, transparent);
}
.gw-sm-wit__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gw-sm-wit__info { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem 1.1rem; text-align: center; font-size: .82rem; }
.gw-sm-wit__info b { margin-bottom: .2rem; font-size: 1rem; font-weight: 600; color: var(--pal-primary); }
.gw-sm-wit__info small { margin-top: .3rem; font-size: inherit; line-height: 1.5; }

/* ── Wishes: the guestbook inside a phone, the form starting below the last message ── */
.gw-sm-wishes__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 27rem);
    justify-content: center;
    column-gap: clamp(3rem, 8vw, 6.5rem);
    align-items: center;
}
.gw-sm-gb { padding: 0 1em; }
.gw-sm-gb__item { display: flex; gap: 1em; padding: 1.5em 0; border-bottom: 1px solid var(--pal-border); }
.gw-sm-gb__item:first-child { padding-top: 0; }
.gw-sm-gb__item:last-child { border-bottom: 0; }
.gw-sm-gb__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: calc(2.75em / .8);
    height: calc(2.75em / .8);
    border-radius: 50%;
    font-size: .8em;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
}
.gw-sm-gb__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.gw-sm-gb__meta { display: flex; align-items: baseline; gap: 1em; margin-bottom: .25em; }
.gw-sm-gb__meta b { font-size: .875em; font-weight: 500; color: var(--pal-text); }
.gw-sm-gb__meta small { font-size: .75em; color: var(--pal-muted); }
.gw-sm-gb__msg { font-size: .95em; line-height: 1.7; color: var(--pal-muted); }
.gw-sm-gb__photo { display: block; width: 9.4em; height: auto; aspect-ratio: 1 / 1; margin-top: 1em; object-fit: cover; border: 1px solid var(--pal-border); border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.gw-sm-gb__form { margin: 2.5em 1em 0; padding: 1em; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.gw-sm-gb__label { display: block; margin-bottom: .5em; font-size: .875em; font-weight: 600; }
.gw-sm-gb__input {
    display: flex;
    align-items: center;
    min-height: 3.6em;
    padding: 0 .95em;
    border: 1.5px solid color-mix(in srgb, var(--pal-text) 50%, #fff);
    border-radius: 13px;
    font-size: .9em;
    color: var(--pal-muted);
}

/* ── Email: the message a guest receives (partials/emails/layout.php), and the send
   dialog of the panel over its corner ── */
.gw-sm-mail__show {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 2fr);
    align-items: end;
    max-width: 42rem;
}
.gw-sm-email {
    grid-area: 1 / 1 / 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 1px hsl(var(--gw-border) / .6), 0 30px 60px -34px hsl(340 45% 25% / .35);
    font-family: Arial, Helvetica, sans-serif;
}
.gw-sm-email__title { display: block; padding: 2.25rem 2rem 1.5rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; font-weight: 700; line-height: 1.25; text-align: center; color: #9e4563; }
.gw-sm-email__body { padding: 0 2rem 1.75rem; font-size: .92rem; line-height: 1.6; color: #666; }
.gw-sm-email__body p { margin: 0 0 1em; }
.gw-sm-email__body p:last-child { margin: 0; }
.gw-sm-email__guest { transition: opacity .3s ease; }
.gw-sm-email__guest.is-swapping { opacity: 0; }
.gw-sm-email__cta { display: block; padding: 1.5rem 2rem; background: #9e4563; text-align: center; }
.gw-sm-email__cta span { display: inline-block; padding: .8rem 2.25rem; border-radius: 4px; background: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .5px; color: #9e4563; }
.gw-sm-email__foot { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.5rem 2rem; background: #333; text-align: center; }
.gw-sm-email__foot small { font-size: .68rem; color: #999; }
/* The logo file is drawn in near-black: as a mask it prints white, like the email's own. */
.gw-sm-email__logo {
    width: 110px;
    aspect-ratio: 118.811 / 18.995;
    margin-block: .4rem;
    background: #fff;
    -webkit-mask: url(../img/logo-goweddy.svg) center / contain no-repeat;
    mask: url(../img/logo-goweddy.svg) center / contain no-repeat;
}

.gw-sm-send {
    grid-area: 1 / 2 / 2 / 4;
    z-index: 1;
    margin-bottom: -2.5rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 0 1px hsl(var(--gw-border)), 0 30px 60px -28px hsl(340 45% 25% / .5);
    font-family: var(--gw-font-sans);
    color: hsl(var(--gw-fg));
}
.gw-sm-send__head { display: flex; align-items: center; justify-content: space-between; padding: .95rem 1.2rem; border-bottom: 1px solid hsl(var(--gw-border)); }
.gw-sm-send__head b { font-size: 1.02rem; font-weight: 600; }
.gw-sm-send__head i { font-size: .8rem; color: hsl(var(--gw-muted-fg)); }
.gw-sm-send__body { padding: 1rem 1.2rem .9rem; }
.gw-sm-send__tmpl { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding: .65rem .75rem; border: 1px solid hsl(30 20% 92%); border-radius: .75rem; background: #fbfaf8; }
.gw-sm-send__tmpl > i { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: hsl(var(--gw-champagne)); color: hsl(var(--gw-wine)); }
.gw-sm-send__tmpl span { display: flex; flex-direction: column; min-width: 0; }
.gw-sm-send__tmpl b { font-size: .84rem; font-weight: 600; line-height: 1.2; }
.gw-sm-send__tmpl small { font-size: .78rem; color: hsl(var(--gw-muted-fg)); }
.gw-sm-send__label { display: block; margin-bottom: .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: hsl(345 8% 62%); }
.gw-sm-send__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.gw-sm-send__seg button {
    padding: .5rem;
    border: 1.5px solid hsl(var(--gw-border));
    border-radius: .6rem;
    background: #fff;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: hsl(var(--gw-muted-fg));
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gw-sm-send__seg button:hover { border-color: hsl(var(--gw-wine) / .5); color: hsl(var(--gw-wine)); }
.gw-sm-send__seg button[aria-pressed="true"] { background: hsl(var(--gw-wine)); border-color: hsl(var(--gw-wine)); color: #fff; }
.gw-sm-send__seg button:focus-visible { outline: 2px solid hsl(var(--gw-wine)); outline-offset: 2px; }
.gw-sm-send__count { display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; font-size: .82rem; color: hsl(var(--gw-muted-fg)); }
.gw-sm-send__count i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: hsl(152 50% 40%); }
.gw-sm-send__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; padding: .85rem 1.2rem 1rem; border-top: 1px solid hsl(var(--gw-border)); }
.gw-sm-send__cancel,
.gw-sm-send__go { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem; border-radius: .6rem; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.gw-sm-send__cancel { border: 1px solid hsl(var(--gw-border)); color: hsl(var(--gw-muted-fg)); }
.gw-sm-send__go { background: hsl(var(--gw-wine)); color: #fff; }

/* A narrower copy column keeps the send dialog wide enough for its two buttons. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gw-sm-mail__grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
    .gw-sm-langs__grid,
    .gw-sm-trip__grid,
    .gw-sm-mail__grid,
    .gw-sm-wishes__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
    .gw-sm-wishes__copy { order: -1; }
    .gw-sm-wishes .gw-rp-phone--inner { justify-self: center; }
    .gw-sm-trip__show { width: 100%; max-width: 40rem; justify-self: center; }
    .gw-sm-trip__pages { margin-left: auto; margin-right: -1rem; }
    .gw-sm-mail__show { width: 100%; justify-self: center; margin-bottom: 2.5rem; }
    .gw-sm-people__head { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; }
}
@media (max-width: 767.98px) {
    .gw-sm-wit { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
/* A phone swipes the location cards, like the real site. */
@media (max-width: 575.98px) {
    .gw-sm-loc {
        display: flex;
        gap: .85rem;
        margin-inline: calc(-1 * var(--canvas-pad));
        padding: .25rem var(--canvas-pad) .5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--canvas-pad);
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    .gw-sm-loc::-webkit-scrollbar { display: none; }
    .gw-sm-loc__card { flex: 0 0 calc((100% + var(--canvas-pad) - .85rem) / 1.2); scroll-snap-align: start; }
    .gw-sm-trip__pages { width: 88%; margin-right: -.5rem; }
    .gw-sm-wit__cards { gap: .75rem; }
    .gw-sm-wit__info { padding: .75rem .6rem .9rem; font-size: .78rem; }
    .gw-sm-wit__info b { font-size: .92rem; }
    .gw-sm-mail__show { display: flex; flex-direction: column; margin-bottom: 0; }
    .gw-sm-send { align-self: flex-end; width: calc(100% - 1.5rem); margin: -2.5rem 0 0; }
    .gw-sm-email__title { padding: 1.75rem 1.4rem 1.25rem; font-size: 1.35rem; }
    .gw-sm-email__body { padding: 0 1.4rem 1.5rem; }
    .gw-sm-email__cta,
    .gw-sm-email__foot { padding-inline: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-sm-langs__phrase span { transition: none; }
}

/* ── Phone reading line and rhythm: see product.css ── */
@media (max-width: 767.98px) {
    .gw-sm-hero { padding-bottom: 2.25rem; }
    .gw-sm-story,
    .gw-sm-dictation,
    .gw-sm-trip,
    .gw-sm-people,
    .gw-sm-wishes,
    .gw-sm-mail { padding-block: 2.25rem; }
    .gw-sm-rsvp__more { text-align: left; }
    .gw-sm-rsvp__more .btn-ghost { display: block; text-align: center; }
}

