:root {
  --night: #020d1d;
  --navy: #051a33;
  --navy-soft: #0b2947;
  --cream: #f7ead6;
  --cream-soft: #fff7eb;
  --ink: #081a31;
  --gold: #d89b3c;
  --gold-light: #efc77f;
  --green: #2f8b68;
  --line: rgba(216, 155, 60, .5);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
button, textarea, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(3.2rem, 7vw, 7.2rem); line-height: .95; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.5rem); line-height: 1.02; }
h3 { font-size: 1.35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--cream); color: var(--ink); }
.skip-link:focus { top: 16px; }
.eyebrow { margin-bottom: 12px; color: var(--gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.site-header { height: 76px; padding: 0 clamp(18px, 4vw, 58px); display: flex; align-items: center; gap: 34px; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(2, 13, 29, .96); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 1.2rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.brand small { color: #d4bd9b; font-size: .62rem; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.5vw, 38px); flex: 1; }
.nav-links a { padding: 9px 0; border-bottom: 1px solid transparent; color: #ddcfbb; font-size: .82rem; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: white; border-color: var(--gold); outline: 0; }
.header-action { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 6px auto; background: var(--cream); }

.legacy-hero { width: min(1660px, calc(100% - 12px)); min-height: min(710px, calc(100svh - 110px)); margin: 6px auto 0; display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--navy); }
.legacy-hero-image { min-height: 620px; position: relative; overflow: hidden; }
.legacy-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, var(--navy)), linear-gradient(0deg, rgba(2, 13, 29, .35), transparent 45%); }
.legacy-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; animation: settle 1.5s ease-out both; }
.legacy-hero-copy { padding: clamp(48px, 7vw, 110px) clamp(30px, 6vw, 90px); display: flex; justify-content: center; flex-direction: column; position: relative; }
.legacy-hero-copy::before { content: ""; width: 110px; height: 1px; position: absolute; top: 13%; right: 10%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.legacy-hero h1 { margin-bottom: 8px; color: var(--cream-soft); text-transform: uppercase; }
.keyhole { width: .42em; height: .66em; margin: 0 .08em; display: inline-block; position: relative; border: .07em solid var(--gold-light); border-radius: 50% 50% 16% 16%; vertical-align: .02em; box-shadow: 0 0 22px rgba(239, 199, 127, .3); }
.keyhole::after { content: ""; width: .12em; height: .25em; position: absolute; left: 50%; top: 47%; transform: translateX(-50%); background: var(--gold-light); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-kicker { margin-bottom: 18px; color: var(--gold-light); font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: .22em; text-transform: uppercase; }
.hero-promise { color: var(--cream); font-family: Georgia, serif; font-size: clamp(1.45rem, 2.5vw, 2.35rem); }
.hero-assurances { margin: 16px 0 28px; padding: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #eadac1; }
.hero-assurances span::before { content: "♡"; margin-right: 9px; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--gold-light); outline: 2px solid transparent; }
.button.primary { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); font-weight: 800; }
.button.primary:hover { background: var(--gold-light); }
.button.ghost { color: var(--cream); }
.button.quiet { border-color: rgba(8, 26, 49, .3); color: var(--ink); }
.button:disabled { cursor: not-allowed; opacity: .36; transform: none; }

.journey-band { margin: 10px 6px 0; padding: 28px clamp(22px, 5vw, 70px); border: 1px solid #cfad7c; border-radius: 6px; background: var(--cream); color: var(--ink); }
.journey-band > header { text-align: center; }
.journey-band .eyebrow { color: #8a5d20; }
.journey-band h2 { margin-bottom: 28px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(8, 26, 49, .18); }
.journey-steps article { min-height: 126px; padding: 24px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; background: var(--cream); }
.journey-steps article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-weight: 800; }
.journey-steps h3, .journey-steps p { margin-bottom: 4px; }
.journey-steps p { color: #4f4c47; }

.heritage-values { padding: clamp(72px, 9vw, 125px) max(20px, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 58% 35%, #0b2947 0, var(--night) 48%); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid article { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); }
.value-grid article:last-child { border-right: 0; }
.value-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 1.4rem; }
.value-grid h3 { margin-bottom: 12px; color: var(--gold-light); }
.value-grid p { color: #d4c7b4; }
.value-grid a { color: var(--gold-light); text-underline-offset: 5px; }
.closing-promise { padding: clamp(80px, 11vw, 140px) 20px; background: var(--cream); color: var(--ink); text-align: center; }
.closing-promise .eyebrow { color: #8a5d20; }
.closing-promise h2 { margin-bottom: 18px; }
.closing-promise p:not(.eyebrow) { max-width: 650px; margin: 0 auto 28px; color: #4f4c47; }

.grandparents-hero { min-height: 620px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.grandparents-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 13, 29, .14), rgba(2, 13, 29, .18) 55%, rgba(2, 13, 29, .88)); }
.grandparents-hero > img { width: 100%; height: 620px; object-fit: cover; }
.grandparents-title { position: absolute; z-index: 2; left: clamp(22px, 5vw, 80px); top: 44px; max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, .65); }
.grandparents-title h1 { font-size: clamp(3rem, 6vw, 6rem); }
.grandparents-title > p:last-child { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.5rem; }
.lock-panel { width: min(410px, calc(100% - 40px)); padding: 38px; position: absolute; z-index: 3; right: clamp(20px, 5vw, 70px); bottom: 46px; border: 1px solid var(--gold); border-radius: 8px; background: rgba(250, 238, 219, .95); color: var(--ink); text-align: center; box-shadow: 0 20px 65px rgba(0, 0, 0, .28); }
.lock-panel h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.2rem); }
.lock-panel p { margin-bottom: 0; }
.lock-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--gold); border-radius: 50%; color: #9b681f; font-size: 1.8rem; }
.path-grid { padding: 12px clamp(16px, 3vw, 34px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.path-grid a { min-height: 150px; padding: 22px; display: grid; grid-template-columns: 62px 1fr 18px; align-items: center; gap: 18px; border: 1px solid var(--gold); border-radius: 6px; background: var(--navy); text-decoration: none; }
.path-grid a:hover, .path-grid a:focus-visible { background: var(--navy-soft); outline: 2px solid transparent; transform: translateY(-2px); }
.path-grid a > span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 1.4rem; }
.path-grid strong, .path-grid small { display: block; }
.path-grid strong { color: var(--cream); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.path-grid small { margin-top: 6px; color: #d4c7b4; }
.path-grid b { color: var(--gold); font-size: 1.5rem; }
.promise-strip { margin: 4px clamp(16px, 3vw, 34px); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; }
.promise-strip p { min-height: 120px; margin: 0; padding: 24px; border-right: 1px solid var(--line); }
.promise-strip p:last-child { border-right: 0; }
.promise-strip strong, .promise-strip span { display: block; }
.promise-strip strong { margin-bottom: 8px; color: var(--gold-light); font-family: Georgia, serif; font-size: 1.15rem; }
.promise-strip span { color: #d4c7b4; font-size: .9rem; }
.closing-line { padding: 40px clamp(20px, 5vw, 80px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; color: var(--gold-light); font-family: Georgia, serif; font-size: 1.35rem; text-align: center; }
.closing-line span { height: 1px; background: var(--line); }
.closing-line p { margin: 0; }

.world-heading { max-width: 1000px; margin: 0 auto; padding: 70px 20px 42px; text-align: center; }
.world-heading h1 { margin-bottom: 15px; font-size: clamp(3rem, 7vw, 6.8rem); text-transform: uppercase; }
.world-heading > p:last-child { max-width: 720px; margin: 0 auto; color: #d4c7b4; }
.atlas { width: min(1660px, calc(100% - 24px)); aspect-ratio: 1.6; min-height: 560px; margin: 0 auto; position: relative; overflow: hidden; border: 1px solid var(--gold); border-radius: 12px; }
.atlas > img { width: 100%; height: 100%; object-fit: cover; }
.atlas-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 48%, rgba(2, 13, 29, .5)); }
.map-detail { width: min(340px, calc(100% - 30px)); padding: 22px; position: absolute; z-index: 3; left: 50%; top: 48%; transform: translate(-50%, -50%); border: 1px solid var(--gold); border-radius: 6px; background: rgba(2, 13, 29, .91); text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.map-detail h2 { margin-bottom: 10px; font-size: 2rem; }
.map-detail p:last-child { margin-bottom: 0; color: #d4c7b4; }
.detail-number { color: var(--gold-light); font-family: Georgia, serif; }
.map-marker { width: 44px; height: 44px; position: absolute; z-index: 4; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; background: var(--night); color: var(--gold-light); cursor: pointer; box-shadow: 0 0 0 5px rgba(216, 155, 60, .16); transition: transform .2s ease, background .2s ease; }
.map-marker:hover, .map-marker:focus-visible, .map-marker.selected { transform: scale(1.12); background: var(--gold); color: var(--ink); outline: 0; }
.map-marker span { font-weight: 800; }
.marker-1 { left: 21%; top: 20%; }.marker-2 { left: 17%; top: 39%; }.marker-3 { left: 69%; top: 18%; }.marker-4 { left: 80%; top: 55%; }
.marker-5 { left: 51%; top: 75%; }.marker-6 { left: 22%; top: 67%; }.marker-7 { left: 73%; top: 68%; }.marker-8 { left: 39%; top: 18%; }
.location-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: clamp(78px, 10vw, 130px) 0; }
.location-section > header { max-width: 700px; margin-bottom: 42px; }
.location-list { margin-bottom: 38px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; border-top: 1px solid var(--line); }
.location-list button { min-height: 84px; padding: 14px 0; display: grid; grid-template-columns: 52px 1fr; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; text-align: left; }
.location-list button:hover, .location-list button:focus-visible, .location-list button.selected { padding-left: 10px; background: rgba(216, 155, 60, .08); outline: 0; }
.location-list span { color: var(--gold); font-size: .78rem; }
.location-list strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }

.demo-page { background: #efe1cc; color: var(--ink); }
.demo-shell { width: min(1240px, calc(100% - 40px)); min-height: calc(100svh - 76px); margin: 0 auto; padding: 34px 0 100px; }
.memory-banner { min-height: 360px; margin-bottom: 26px; display: grid; grid-template-columns: .9fr 1.05fr .65fr; position: relative; overflow: hidden; border: 1px solid var(--gold); border-radius: 8px; background: var(--navy); color: var(--cream); }
.memory-banner > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.memory-banner > div { padding: 46px clamp(28px, 4vw, 56px); display: flex; justify-content: center; flex-direction: column; }
.memory-banner h1 { margin-bottom: 14px; font-size: clamp(3rem, 6vw, 5.8rem); text-transform: uppercase; }
.memory-banner > div > p:not(.eyebrow) { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.35rem; }
.memory-banner > div > span { padding-top: 18px; border-top: 1px solid var(--line); color: #dacbb6; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.memory-banner aside { margin: 24px 24px 24px 0; padding: 28px; display: flex; justify-content: center; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.memory-banner aside strong, .memory-banner aside small { display: block; }
.memory-banner aside strong { margin-bottom: 14px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.memory-banner aside small { color: #dacbb6; }
.auth-strip { min-height: 82px; margin-bottom: 26px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #c59e65; border-radius: 5px; background: var(--cream-soft); }
.account-state { display: flex; align-items: center; gap: 14px; }
.account-state strong, .account-state span { display: block; }
.account-state span { color: #5c5b56; font-size: .9rem; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #9c6d4c; box-shadow: 0 0 0 5px rgba(156, 109, 76, .12); }
.status-dot.ready { background: var(--green); box-shadow: 0 0 0 5px rgba(47, 139, 104, .13); }
.auth-actions { display: flex; gap: 10px; }
.system-message { min-height: 26px; margin: 0 0 12px; color: #56615a; }
.system-message.error { color: #8b342f; }
.system-message.success { color: var(--green); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid #c59e65; border-radius: 5px; background: var(--cream-soft); }
.step-pill { padding: 14px 8px; color: #6a6a64; font-size: .75rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .1em; border-bottom: 3px solid transparent; }
.step-pill.active { color: var(--ink); border-color: var(--gold); }
.step-pill.complete { color: #24684f; border-color: var(--green); }
.journey-workspace { outline: 0; }
.memory-panel { min-height: 510px; padding: clamp(28px, 5vw, 62px); border: 1px solid #c59e65; border-radius: 7px; background: var(--cream-soft); box-shadow: 0 24px 65px rgba(8, 26, 49, .12); }
.memory-panel[hidden] { display: none; }
.memory-panel h2 { margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.memory-panel header > p:last-child { color: #526058; }
.step-count { color: #98621e; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.upload-layout { margin: 40px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 70px); align-items: center; }
.file-control label { margin-top: 0; }
.file-control input[type="file"] { width: 100%; padding: 12px; border: 1px solid #9ba39d; border-radius: 3px; background: white; color: var(--ink); }
.file-control input[type="file"]::file-selector-button { margin-right: 14px; padding: 10px 14px; border: 1px solid #9b681f; border-radius: 3px; background: var(--gold-light); color: var(--ink); font-weight: 800; cursor: pointer; }
.file-control small { display: block; margin-top: 10px; color: #657169; }
.upload-preview { min-height: 290px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(8, 26, 49, .22); border-radius: 4px; background: #e8d8c0; }
.upload-preview img { width: 100%; height: 100%; max-height: 430px; object-fit: contain; }
.upload-preview p { margin: 0; padding: 28px; color: #657169; text-align: center; }
.panel-actions { margin-top: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-actions > span { color: #657169; font-size: .85rem; }
.review-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
.review-layout > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
label { display: block; margin: 26px 0 10px; font-weight: 800; }
input[type="text"], input[type="date"], textarea { width: 100%; padding: 15px; border: 1px solid #9ba39d; border-radius: 3px; background: white; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid #9b681f; outline-offset: 2px; }
.inline-note { margin-top: 18px; color: #526058; }
.protection-summary { margin: 36px 0; border-top: 1px solid rgba(8, 26, 49, .22); }
.protection-summary p { min-height: 92px; margin: 0; padding: 18px 0; display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 30px; align-items: center; border-bottom: 1px solid rgba(8, 26, 49, .22); }
.protection-summary span { color: #526058; }
.consent-group { margin: 34px 0 12px; }
.check-row { margin: 0; padding: 14px 0; display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid rgba(8, 26, 49, .16); font-weight: 400; }
.check-row input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--green); }
.upload-progress { margin-top: 30px; }
.upload-progress progress { width: 100%; height: 12px; accent-color: var(--green); }
.upload-progress span { display: block; margin-top: 8px; color: #526058; }
.confirmation { display: grid; place-items: center; align-content: center; text-align: center; }
.confirm-mark { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 2rem; }
.confirmation-preview { width: min(620px, 100%); max-height: 440px; margin: 10px 0 28px; object-fit: contain; border-radius: 4px; background: #e8d8c0; }
.confirmation-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.demo-page .confirmation .ghost { color: var(--ink); border-color: rgba(8, 26, 49, .35); }
.saved-memories { margin-top: 72px; padding: 64px clamp(28px, 5vw, 62px); border: 1px solid #c59e65; border-radius: 7px; background: var(--cream-soft); }
.saved-memories > header { max-width: 720px; }
.saved-memories h2 { margin-bottom: 12px; }
.saved-memories .eyebrow { color: #98621e; }
.saved-memories header > p:last-child { color: #526058; }
.memory-list { margin-top: 34px; border-top: 1px solid rgba(8, 26, 49, .22); }
.memory-list article { min-height: 132px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(8, 26, 49, .22); }
.memory-list h3 { margin-bottom: 6px; font-size: 1.45rem; }
.memory-list p { margin-bottom: 4px; color: #526058; }
.memory-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.empty-state { padding: 28px 0; }
.memory-viewer { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: auto; border: 1px solid var(--gold); border-radius: 6px; background: var(--cream-soft); color: var(--ink); box-shadow: 0 30px 90px rgba(2, 13, 29, .5); }
.memory-viewer::backdrop { background: rgba(2, 13, 29, .82); }
.memory-viewer figure { margin: 0; }
.memory-viewer img { width: 100%; max-height: 68vh; object-fit: contain; background: var(--night); }
.memory-viewer figcaption { padding: 26px clamp(22px, 5vw, 48px) 34px; }
.memory-viewer h2 { margin-bottom: 8px; }
.memory-viewer p { margin-bottom: 6px; color: #526058; }
.viewer-close { width: 44px; height: 44px; position: sticky; z-index: 2; top: 12px; float: right; margin: 12px 12px -56px 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(2, 13, 29, .88); color: white; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.memory-editor { width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: auto; border: 1px solid var(--gold); border-radius: 6px; background: var(--cream-soft); color: var(--ink); box-shadow: 0 30px 90px rgba(2, 13, 29, .5); }
.memory-editor::backdrop { background: rgba(2, 13, 29, .82); }
.memory-editor form { padding: clamp(26px, 5vw, 48px); }
.memory-editor header { margin-bottom: 28px; }
.memory-editor header p:last-child { color: #526058; }
.memory-editor label { display: block; margin: 18px 0 8px; }
.editor-actions { margin-top: 30px; display: flex; justify-content: flex-end; gap: 12px; }

.footer { min-height: 108px; padding: 28px clamp(20px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: var(--night); color: #d4c7b4; font-size: .72rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer strong { color: var(--cream); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.03); opacity: .75; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .header-action { display: none; }
  .legacy-hero { grid-template-columns: 1fr; }
  .legacy-hero-image { min-height: 480px; }
  .legacy-hero-image::after { background: linear-gradient(0deg, var(--navy), transparent 50%); }
  .legacy-hero-copy { margin-top: -90px; z-index: 2; }
  .value-grid, .path-grid, .promise-strip { grid-template-columns: 1fr 1fr; }
  .value-grid article:nth-child(2) { border-right: 0; }
  .value-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .promise-strip p:nth-child(2) { border-right: 0; }
  .promise-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .memory-banner { grid-template-columns: .9fr 1.1fr; }
  .memory-banner aside { grid-column: 1 / -1; margin: 0 24px 24px; min-height: 130px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { padding: 18px 22px; position: absolute; top: 76px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 4px; background: rgba(2, 13, 29, .99); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 4px; }
  .journey-steps { grid-template-columns: 1fr; }
  .grandparents-hero { min-height: 760px; }
  .grandparents-hero > img { height: 760px; }
  .grandparents-hero::after { background: linear-gradient(0deg, rgba(2, 13, 29, .9), transparent 65%); }
  .grandparents-title { top: 34px; }
  .lock-panel { left: 20px; right: 20px; bottom: 28px; width: auto; }
  .atlas { aspect-ratio: auto; min-height: 620px; }
  .atlas > img { position: absolute; inset: 0; object-position: center; }
  .map-detail { top: auto; bottom: 22px; transform: translateX(-50%); }
  .map-marker { width: 38px; height: 38px; }
  .location-list { grid-template-columns: 1fr; }
  .memory-banner { grid-template-columns: 1fr; }
  .memory-banner > img { height: 280px; min-height: 0; }
  .memory-banner aside { grid-column: auto; }
  .review-layout, .upload-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { height: 70px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 1.1rem; }
  .nav-links { top: 70px; }
  .legacy-hero { width: 100%; margin: 0; border-inline: 0; }
  .legacy-hero-image { min-height: 390px; }
  .legacy-hero-copy { padding: 42px 22px 52px; }
  .hero-assurances { grid-template-columns: 1fr; }
  .actions .button, .confirmation-actions .button { width: 100%; }
  .value-grid, .path-grid, .promise-strip { grid-template-columns: 1fr; }
  .value-grid article, .path-grid a, .promise-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .path-grid { padding-inline: 12px; }
  .closing-line { grid-template-columns: 1fr; }
  .closing-line span { display: none; }
  .world-heading { padding-top: 48px; }
  .atlas { width: calc(100% - 16px); min-height: 660px; }
  .map-marker { display: none; }
  .demo-shell { width: min(100% - 24px, 1240px); }
  .memory-banner > div { padding: 34px 22px; }
  .auth-strip, .memory-list article { align-items: stretch; flex-direction: column; }
  .auth-actions .button, .memory-actions .button { width: 100%; }
  .memory-actions { width: 100%; }
  .editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-actions .button { width: 100%; }
  .progress { overflow-x: auto; }
  .step-pill { min-width: 86px; }
  .panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .panel-actions .button { width: 100%; }
  .protection-summary p { grid-template-columns: 1fr; gap: 8px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
