:root {
    --forest-950: #102921;
    --forest-900: #17382f;
    --forest-800: #244b40;
    --forest-700: #356356;
    --clay: #b76d52;
    --clay-dark: #95513b;
    --cream: #f5efe5;
    --cream-soft: #fbf8f2;
    --paper: #fffdf9;
    --ink: #1e2824;
    --muted: #69736d;
    --line: rgba(23, 56, 47, .14);
    --white-line: rgba(255, 255, 255, .17);
    --shadow: 0 30px 80px rgba(24, 48, 40, .12);
    --serif: "Italiana", "Times New Roman", serif;
    --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--cream-soft);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: .14;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
    position: fixed;
    top: .75rem;
    left: 50%;
    z-index: 100;
    padding: .8rem 1rem;
    border-radius: 999px;
    background: var(--paper);
    transform: translate(-50%, -200%);
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem);
    color: var(--cream-soft);
}

.brand {
    display: inline-flex;
    gap: .85rem;
    align-items: center;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: .95rem;
}

.brand-copy { display: grid; gap: .12rem; }
.brand-copy strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; letter-spacing: .04em; }
.brand-copy small { opacity: .68; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }

.header-action {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    padding: .74rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.header-action:hover { background: var(--cream); color: var(--forest-900); }
.header-action svg { width: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(28rem, 1.12fr);
    align-items: center;
    min-height: min(920px, 100svh);
    padding: 8rem clamp(1.25rem, 6.5vw, 7.5rem) 5rem;
    overflow: hidden;
    color: var(--cream-soft);
    background:
        radial-gradient(circle at 18% 20%, rgba(90, 132, 115, .4), transparent 28rem),
        linear-gradient(122deg, var(--forest-900), var(--forest-950));
}

.hero::after {
    position: absolute;
    right: -8rem;
    bottom: -16rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255,255,255,.02), 0 0 0 10rem rgba(255,255,255,.015);
    content: "";
}

.hero-copy { position: relative; z-index: 2; max-width: 38rem; padding-top: 1rem; }

.eyebrow {
    display: flex;
    gap: .7rem;
    align-items: center;
    margin: 0 0 1.6rem;
    color: var(--clay);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow span { width: 2.2rem; height: 1px; background: currentColor; }

.couple-name {
    margin: 0 0 1rem;
    color: rgba(245, 239, 229, .78);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 2rem);
    letter-spacing: .05em;
}

.couple-name i { margin: 0 .25rem; color: var(--clay); font-weight: 400; }

.hero h1,
.section-heading h2,
.memory-intro h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.2rem, 7.4vw, 8rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .86;
}

.hero h1 em,
.section-heading h2 em,
.memory-intro h2 em { color: var(--clay); font-weight: 400; }

.hero-lead {
    max-width: 34rem;
    margin: 2rem 0 0;
    color: rgba(245, 239, 229, .72);
    font-size: clamp(.98rem, 1.4vw, 1.12rem);
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 1.45rem; align-items: center; margin-top: 2rem; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.45rem;
    padding: .85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary { gap: 1.2rem; background: var(--clay); color: white; box-shadow: 0 16px 32px rgba(7, 20, 16, .18); transition: background .25s ease, transform .25s ease; }
.button-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.button-primary svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }

.text-link {
    padding: .5rem 0 .3rem;
    border-bottom: 1px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.78);
    font-size: .86rem;
    text-decoration: none;
}

.hero-visual { position: relative; z-index: 1; width: min(100%, 47rem); height: min(46rem, 78vh); min-height: 36rem; margin-left: auto; }

.hero-orbit {
    position: absolute;
    top: 5%;
    right: 0;
    width: 82%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255,255,255,.015), 0 0 0 4rem rgba(255,255,255,.01);
}

.hero-photo { position: absolute; margin: 0; overflow: hidden; }
.hero-photo::after { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); content: ""; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo-main {
    top: 4%;
    right: 5%;
    width: min(64%, 27rem);
    height: 84%;
    border-radius: 48% 48% 1rem 1rem;
    box-shadow: 0 36px 70px rgba(4, 15, 11, .3);
}

.hero-photo-main img { object-position: 50% 46%; }

.hero-photo-note {
    bottom: 2%;
    left: 0;
    width: min(47%, 20rem);
    padding: .55rem .55rem 1rem;
    border-radius: .35rem;
    background: var(--cream);
    color: var(--forest-900);
    box-shadow: 0 26px 55px rgba(2, 15, 10, .34);
    transform: rotate(-4deg);
}

.hero-photo-note::after { box-shadow: none; }
.hero-photo-note img { aspect-ratio: 4 / 3; }
.hero-photo-note figcaption { display: grid; gap: .15rem; padding: .75rem .4rem .05rem; }
.hero-photo-note figcaption span { color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-photo-note figcaption strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }

.hero-flower { position: absolute; right: -3%; bottom: -4%; width: 9.5rem; fill: none; stroke: var(--clay); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; opacity: .78; }

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: clamp(1.25rem, 6.5vw, 7.5rem);
    display: flex;
    gap: .7rem;
    align-items: center;
    color: rgba(255,255,255,.42);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.scroll-cue span { position: relative; display: block; width: 1px; height: 2.6rem; overflow: hidden; background: rgba(255,255,255,.14); }
.scroll-cue span::after { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--clay); content: ""; animation: scrollLine 2.2s ease-in-out infinite; }

@keyframes scrollLine { 55%, 100% { transform: translateY(200%); } }

.story { padding: clamp(5rem, 10vw, 9rem) 0; overflow: hidden; background: var(--cream); }

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(16rem, .3fr);
    gap: 2rem 5rem;
    align-items: end;
    max-width: 83rem;
    margin: 0 auto 4rem;
    padding: 0 clamp(1.25rem, 6.5vw, 4.5rem);
}

.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading h2 { font-size: clamp(3.4rem, 6vw, 6.3rem); line-height: .95; }
.section-heading > p:last-child { margin: 0 0 .35rem; color: var(--muted); line-height: 1.75; }

.story-rail {
    display: grid;
    grid-auto-columns: minmax(18rem, 25vw);
    grid-auto-flow: column;
    gap: 1rem;
    align-items: end;
    padding: 0 max(1.25rem, calc((100vw - 83rem) / 2));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: inline mandatory;
}

.story-rail::-webkit-scrollbar { display: none; }
.story-card { position: relative; height: clamp(20rem, 32vw, 31rem); margin: 0; overflow: hidden; border-radius: .25rem; scroll-snap-align: start; }
.story-card-tall { height: clamp(24rem, 39vw, 38rem); }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.story-card:hover img { transform: scale(1.025); }
.story-card::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,28,22,.72)); content: ""; }
.story-card figcaption { position: absolute; right: 1.4rem; bottom: 1.3rem; left: 1.4rem; z-index: 1; color: white; font-family: var(--serif); font-size: 1.25rem; }

.swipe-hint { display: none; }

.memory-section { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 4.5vw, 4rem); background: var(--cream-soft); }
.memory-section::before { position: absolute; top: 0; left: 50%; width: min(90%, 72rem); height: 1px; background: var(--line); content: ""; transform: translateX(-50%); }

.memory-intro { max-width: 74rem; margin: 0 auto 4rem; text-align: center; }
.memory-intro .eyebrow { justify-content: center; }
.memory-intro h2 { font-size: clamp(3.5rem, 6vw, 6.5rem); line-height: .93; }
.memory-intro > p:last-child { max-width: 39rem; margin: 2rem auto 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

.memory-layout { display: grid; grid-template-columns: minmax(17rem, .67fr) minmax(28rem, 1.33fr); max-width: 72rem; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }

.memory-aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: var(--cream);
    background:
        radial-gradient(circle at 20% 0, rgba(91,134,115,.35), transparent 22rem),
        var(--forest-900);
}

.memory-aside > div { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .5rem; }
.aside-number { grid-row: 1 / 3; padding-top: .25rem; color: var(--clay); font-family: var(--serif); font-size: 1rem; }
.memory-aside h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.memory-aside p { margin: 0; color: rgba(245,239,229,.58); font-size: .82rem; line-height: 1.65; }
.memory-aside blockquote { margin: auto 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--white-line); color: rgba(245,239,229,.76); font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }

.form-card { position: relative; min-height: 42rem; }
.form-card form { padding: clamp(1.5rem, 4vw, 3.5rem); }
.form-heading { display: flex; gap: 1rem; align-items: center; margin-bottom: 2.35rem; }
.form-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: var(--cream); color: var(--forest-900); }
.form-icon svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.5; }
.form-heading p { margin: 0 0 .15rem; color: var(--clay); font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.form-heading h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }

.field-group { margin-top: 1.6rem; }
.field-group label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.field-label-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .65rem; }
.field-label-row > span { color: var(--muted); font-size: .7rem; }

.input-wrap { position: relative; margin-top: .65rem; }
.input-wrap svg { position: absolute; top: 50%; left: 1rem; width: 1.15rem; fill: none; stroke: var(--forest-700); stroke-linecap: round; stroke-width: 1.5; transform: translateY(-50%); }
.input-wrap input { width: 100%; min-height: 3.45rem; padding: .8rem 1rem .8rem 3rem; border: 1px solid var(--line); border-radius: .6rem; outline: 0; background: white; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.input-wrap input::placeholder { color: #a2aaa5; }
.input-wrap input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(53,99,86,.1); }
.input-wrap input[aria-invalid="true"] { border-color: #b64d43; }
.field-error { min-height: 1.15rem; margin: .35rem 0 0; color: #a13f37; font-size: .72rem; }

.drop-zone { position: relative; display: grid; justify-items: center; min-height: 14rem; padding: 1.5rem; border: 1px dashed rgba(23,56,47,.3); border-radius: .75rem; text-align: center; background: rgba(245,239,229,.35); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--clay); background: rgba(183,109,82,.06); }
.drop-zone.is-dragging { transform: scale(.995); }
.drop-zone input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone input:focus-visible + .drop-icon { outline: 3px solid rgba(53,99,86,.22); outline-offset: 4px; }
.drop-icon { display: grid; width: 3.4rem; height: 3.4rem; margin: .2rem 0 .65rem; place-items: center; border-radius: 50%; background: var(--forest-900); color: white; }
.drop-icon svg { width: 1.5rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.drop-zone strong { margin-bottom: .25rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.drop-copy { max-width: 20rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.drop-button { margin-top: .7rem; color: var(--clay-dark); font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }

.selected-files { margin-top: .75rem; padding: .8rem 1rem; border-radius: .65rem; background: var(--cream-soft); }
.selected-summary { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; font-weight: 700; }
.selected-summary button { padding: 0; border: 0; background: transparent; color: var(--clay-dark); font-size: .7rem; cursor: pointer; }
.selected-files ul { display: grid; gap: .45rem; max-height: 10rem; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line); overflow: auto; list-style: none; }
.selected-files li { display: grid; grid-template-columns: 1.7rem 1fr auto 1.6rem; gap: .5rem; align-items: center; min-width: 0; }
.file-kind { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: .35rem; background: white; color: var(--forest-700); font-size: .68rem; font-weight: 700; }
.file-name { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: .65rem; }
.file-remove { display: grid; width: 1.6rem; height: 1.6rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.file-remove:hover { background: rgba(183,109,82,.1); color: var(--clay-dark); }
.file-remove svg { width: .85rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.audio-recorder { display: flex; gap: .65rem; align-items: center; min-height: 4rem; padding: .65rem; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.record-button, .stop-button { display: inline-flex; gap: .6rem; align-items: center; min-height: 2.7rem; padding: .65rem .9rem; border: 0; border-radius: .48rem; background: var(--cream); color: var(--forest-900); font-size: .75rem; font-weight: 700; cursor: pointer; }
.record-dot { width: .65rem; height: .65rem; border: 2px solid var(--clay); border-radius: 50%; }
.stop-button { margin-left: auto; background: var(--clay); color: white; }
.recording-info { display: flex; gap: .45rem; align-items: center; color: var(--clay-dark); font-size: .72rem; font-weight: 600; }
.recording-pulse { width: .55rem; height: .55rem; border-radius: 50%; background: #bd4139; animation: pulse 1.2s ease-in-out infinite; }
.recording-info time { min-width: 2.5rem; font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }

.audio-preview { display: flex; gap: .5rem; align-items: center; width: 100%; }
.audio-preview audio { width: 100%; height: 2.6rem; }
.audio-preview button { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--cream); color: var(--clay-dark); cursor: pointer; }
.audio-preview svg { width: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.support-note { margin: .5rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.upload-feedback { margin-top: 1.5rem; }
.feedback-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; color: var(--muted); font-size: .72rem; }
.feedback-row strong { color: var(--forest-900); font-variant-numeric: tabular-nums; }
.progress-track { width: 100%; height: .42rem; overflow: hidden; border-radius: 999px; background: var(--cream); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--clay); transition: width .25s ease; }
.progress-track.is-processing span { width: 92% !important; animation: processing 1.5s ease-in-out infinite alternate; }
@keyframes processing { from { opacity: .45; } to { opacity: 1; } }

.form-status { min-height: 1.1rem; margin: .65rem 0 0; color: #a13f37; font-size: .75rem; line-height: 1.45; }
.form-status.is-success { color: var(--forest-700); }

.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 3.7rem; margin-top: .5rem; padding: .8rem 1.2rem; border: 0; border-radius: .6rem; background: var(--forest-900); color: white; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.submit-button:hover:not(:disabled) { background: var(--forest-800); transform: translateY(-1px); }
.submit-button:disabled { opacity: .58; cursor: wait; }
.submit-button svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }

.privacy-note { display: flex; gap: .45rem; justify-content: center; align-items: center; margin: .8rem 0 0; color: var(--muted); font-size: .66rem; text-align: center; }
.privacy-note svg { flex: 0 0 auto; width: .9rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }

.success-card { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 3rem; text-align: center; background: var(--paper); }
.success-card[hidden] { display: none; }
.success-mark { display: grid; width: 5rem; height: 5rem; margin-bottom: 1.5rem; place-items: center; border-radius: 50%; background: var(--forest-900); color: var(--cream); box-shadow: 0 0 0 .65rem var(--cream); }
.success-mark svg { width: 2.3rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.success-card > p:first-of-type { margin: 0 0 .5rem; color: var(--clay); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.success-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 4rem); font-weight: 400; }
.success-card h3 + p { max-width: 26rem; margin: 1rem 0 1.6rem; color: var(--muted); line-height: 1.7; }

.site-footer { display: grid; justify-items: center; padding: 5rem 1.25rem calc(3rem + env(safe-area-inset-bottom)); text-align: center; color: var(--cream); background: var(--forest-950); }
.footer-monogram { display: grid; width: 5.5rem; height: 5.5rem; margin-bottom: 1.5rem; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-family: var(--serif); font-size: 1.5rem; }
.footer-monogram i { color: var(--clay); }
.site-footer p { margin: 0 0 .6rem; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); }
.site-footer > span { color: rgba(245,239,229,.5); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .hero { grid-template-columns: minmax(0, .9fr) minmax(23rem, 1.1fr); padding-right: 2.5rem; padding-left: 2.5rem; }
    .hero-visual { height: min(40rem, 70vh); min-height: 32rem; }
    .memory-layout { grid-template-columns: 17rem 1fr; }
    .memory-aside { padding: 2rem; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 5rem; }
    .site-header { padding: 1rem 1.1rem; }
    .brand-copy small { display: none; }
    .brand-mark { width: 2.4rem; height: 2.4rem; }
    .header-action { min-height: 2.4rem; padding: .55rem .8rem; }

    .hero { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100svh; padding: 7rem 1.1rem 4rem; }
    .hero::after { display: none; }
    .hero-copy { width: 100%; padding: 0 .35rem; text-align: center; }
    .hero-copy .eyebrow { justify-content: center; margin-bottom: 1.1rem; }
    .couple-name { margin-bottom: .65rem; font-size: 1.25rem; }
    .hero h1 { font-size: clamp(4rem, 18vw, 5.6rem); line-height: .88; }
    .hero-lead { max-width: 31rem; margin: 1.4rem auto 0; font-size: .92rem; line-height: 1.68; }
    .hero-actions { justify-content: center; margin-top: 1.4rem; }
    .text-link { display: none; }
    .button { min-height: 3.2rem; }

    .hero-visual { flex: 1; width: min(100%, 29rem); height: auto; min-height: 26rem; max-height: 31rem; margin: 1.8rem auto 0; }
    .hero-photo-main { top: 0; right: 8%; width: 69%; height: 88%; }
    .hero-photo-note { bottom: 0; left: 2%; width: 47%; padding: .35rem .35rem .55rem; }
    .hero-photo-note figcaption { padding: .5rem .25rem 0; }
    .hero-photo-note figcaption span { font-size: .52rem; }
    .hero-photo-note figcaption strong { font-size: .88rem; }
    .hero-flower { right: -5%; width: 7rem; }
    .scroll-cue { display: none; }

    .story { padding: 5rem 0 4.2rem; }
    .section-heading { display: block; margin-bottom: 2.2rem; padding: 0 1.25rem; text-align: center; }
    .section-heading .eyebrow { justify-content: center; margin-bottom: 1.1rem; }
    .section-heading h2 { font-size: clamp(3.15rem, 14vw, 4.5rem); }
    .section-heading > p:last-child { max-width: 24rem; margin: 1.25rem auto 0; font-size: .9rem; }
    .story-rail { grid-auto-columns: 76vw; gap: .7rem; padding: 0 1.25rem; }
    .story-card, .story-card-tall { height: 27rem; border-radius: .25rem; }
    .story-card figcaption { font-size: 1.1rem; }
    .swipe-hint { display: flex; gap: .4rem; justify-content: center; align-items: center; margin: 1rem 0 0; color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
    .swipe-hint svg { width: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

    .memory-section { padding: 4.8rem 1rem; }
    .memory-intro { margin-bottom: 2.3rem; }
    .memory-intro .eyebrow { margin-bottom: 1rem; }
    .memory-intro h2 { font-size: clamp(3.05rem, 14vw, 4.5rem); }
    .memory-intro > p:last-child { margin-top: 1.4rem; font-size: .9rem; }
    .memory-layout { display: block; border-radius: .8rem; }
    .memory-aside { display: none; }
    .form-card { min-height: 38rem; }
    .form-card form { padding: 1.35rem; }
    .form-heading { margin-bottom: 1.8rem; }
    .form-heading h3 { font-size: 1.7rem; }
    .field-label-row { align-items: flex-end; }
    .field-label-row > span { max-width: 52%; text-align: right; }
    .drop-zone { min-height: 12.5rem; }
    .audio-recorder { flex-wrap: wrap; }
    .success-card { padding: 1.5rem; }
    .privacy-note { line-height: 1.4; }
}

@media (max-width: 390px) {
    .brand-copy strong { font-size: .9rem; }
    .header-action span { font-size: .72rem; }
    .hero { padding-top: 6.35rem; }
    .hero h1 { font-size: 3.8rem; }
    .hero-lead { font-size: .84rem; }
    .hero-visual { min-height: 23rem; margin-top: 1.3rem; }
    .hero-photo-note { width: 49%; }
    .story-rail { grid-auto-columns: 82vw; }
    .field-label-row { display: block; }
    .field-label-row > span { display: block; max-width: none; margin-top: .25rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
