:root {
  --paper: #f9f3e9; --ink: #28201b; --muted: #6f5d53; --clay: #a53728;
  --clay-dark: #81291f; --rule: #ddcfc2; --white: #fffaf2; --sage: #e5e9db;
  --focus: #366466; --sage-ink: #374a35; --sage-dot: #4a7157; --sage-card: #edf0df;
  --envelope: #ddad94; --envelope-border: #ce9a7e; --rose: #f7e0d7; --rose-card: #fbeee3;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', sans-serif;
  color-scheme: light; font-family: var(--sans); color: var(--ink); background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 5; background: white; padding: 8px; }
.skip:focus { top: 12px; }
.mast { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--rule); gap: 16px; }
.mast nav { display: flex; gap: 28px; align-items: center; font-size: .9rem; font-weight: 700; }
.mast a, .footer a { text-decoration: none; }
.mast nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.member-link { color: var(--clay-dark); }
.language-menu { position: relative; }
.language-menu summary { display: grid; place-items: center; width: 38px; height: 38px; list-style: none; cursor: pointer; border: 1px solid var(--rule); border-radius: 50%; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary, .language-menu summary:hover { background: var(--white); border-color: var(--clay); }
.globe-icon { position: relative; display: block; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; }
.globe-icon::before, .globe-icon::after { position: absolute; content: ''; }
.globe-icon::before { inset: -1.5px 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.globe-icon::after { inset: 50% 0 auto; border-top: 1.5px solid currentColor; }
.language-menu ul { position: absolute; z-index: 3; right: 0; margin: 8px 0 0; min-width: max-content; padding: 6px; list-style: none; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); box-shadow: 0 12px 25px color-mix(in srgb, var(--ink) 14%, transparent); }
.language-menu a { display: block; padding: 8px 12px; border-radius: 7px; }
.language-menu a[aria-current=true] { background: var(--rose); color: var(--clay-dark); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; white-space: nowrap; font-size: 1.3rem; }
.logo-mark { height: 30px; width: 30px; display: inline-grid; place-items: center; border: 1px solid var(--clay); color: var(--clay); border-radius: 50%; font-family: var(--sans); font-size: .85rem; }
.pill { display: inline-flex; min-height: 47px; padding: 10px 20px; align-items: center; gap: 12px; justify-content: center; border: 1px solid transparent; border-radius: 100px; font-weight: 700; text-decoration: none; text-align: center; }
.pill.outline { border-color: var(--rule); }
.pill.demo-link { border-color: var(--envelope-border); color: var(--clay-dark); background: var(--white); }
.pill.demo-link:hover { border-color: var(--clay); }
.pill.primary { background: var(--clay); border-color: var(--clay); color: var(--white); }
.pill.primary:hover { background: var(--clay-dark); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 48px; min-height: 555px; padding-block: 58px 66px; }
.hero h1 { font: 500 clamp(3.7rem, 6.2vw, 6.05rem)/.97 var(--serif); letter-spacing: -.055em; }
.intro { max-width: 360px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.17rem); margin-top: 23px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 27px; }
.text-button { color: var(--clay-dark); text-underline-offset: .26em; font-weight: 700; }
.note { color: var(--muted); margin-top: 12px; font-size: .84rem; }
.hero-art { position: relative; width: min(100%, 500px); min-width: 0; justify-self: center; padding: 0 13px; isolation: isolate; scroll-margin-top: 13px; }
.hero-art::before { content: ''; position: absolute; z-index: -1; inset: -12% -12% 4%; pointer-events: none; background: radial-gradient(ellipse, var(--rose), transparent 68%); }
.eyebrow { color: var(--muted); letter-spacing: .16em; font-size: .62rem; font-weight: 700; }
.share-button { min-height: 38px; padding: 5px 13px; background: var(--white); color: var(--clay-dark); font-size: .82rem; }
.share-button:hover { border-color: var(--clay); }
.studio { padding: 44px clamp(20px, 5.4vw, 72px) 50px; background: var(--sage); border-radius: 22px; scroll-margin-top: 20px; }
.studio-start { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.studio-start .studio-heading p { margin-bottom: 0; }
.guest-studio .studio { width: 100%; padding-inline: clamp(12px, 3vw, 36px); }
.studio-heading h2, .how > h2, .faq > h2 { font: 500 clamp(2.35rem, 5vw, 3.65rem)/1.05 var(--serif); letter-spacing: -.04em; }
.studio-heading p { color: var(--sage-ink); margin: 7px 0 25px; }
.studio-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: -9px 0 20px; }
.studio-preview-actions .text-button { font-size: .89rem; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4.2vw, 54px); align-items: start; }
.fields { display: grid; gap: 15px; padding: 23px; background: var(--white); border-radius: 15px; border: 1px solid var(--rule); }
.fields label, .unlock label { display: grid; gap: 5px; font-weight: 700; font-size: .86rem; min-width: 0; }
.fields input:not([type=radio], [type=file]), .fields textarea, .unlock input { background: var(--white); border: 1px solid var(--rule); border-radius: 7px; width: 100%; padding: 8px 10px; color: var(--ink); min-height: 41px; }
.fields textarea { resize: vertical; }
.fields small { color: var(--muted); font-weight: 500; }
.occasions { margin: 0; padding: 0; border: 0; display: flex; gap: 7px; flex-wrap: wrap; min-inline-size: 0; }
.occasions legend { margin-bottom: 5px; font-weight: 700; font-size: .86rem; }
.occasions label { cursor: pointer; }
.occasions input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.occasions span { padding: 7px 10px; display: block; border-radius: 50px; border: 1px solid var(--rule); font-size: .82rem; }
.occasions input:checked + span { background: var(--rose); border-color: var(--clay); color: var(--clay-dark); }
.occasions input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.template-picker { min-inline-size: 0; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.template-picker legend { font-weight: 700; font-size: .86rem; margin-bottom: 5px; }
.template-picker label { cursor: pointer; }
.template-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.template-picker span { min-height: 62px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; }
.template-picker input:checked + span { border-color: var(--clay); background: var(--rose); color: var(--clay-dark); }
.template-picker input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.upload { position: relative; }
.upload input { position: absolute; inset: 18px 0; opacity: 0; width: 100%; cursor: pointer; }
.upload:focus-within .upload-cta { outline: 3px solid var(--focus); }
.upload-cta { border: 1px dashed var(--muted); color: var(--ink); padding: 10px; border-radius: 8px; }
.photo-queue { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-queue:empty, .status:empty { display: none; }
.photo-thumb { position: relative; }
.photo-thumb img { width: 51px; height: 51px; border-radius: 7px; object-fit: cover; }
.photo-thumb button { position: absolute; border: 0; border-radius: 50%; right: -4px; top: -4px; width: 22px; height: 22px; line-height: 1; background: var(--ink); color: white; }
.preview-panel { position: sticky; top: 16px; align-self: start; max-width: 100%; border-radius: 15px; background: var(--white); overflow: hidden; border: 1px solid var(--rule); }
.preview-bar { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: .75rem; padding: 8px; color: var(--sage-ink); background: var(--sage-card); border-bottom: 1px solid var(--rule); }
.preview-dot { width: 7px; height: 7px; background: var(--sage-dot); border-radius: 50%; }
.mode-note, .status { font-size: .84rem; color: var(--muted); }
.mobile-jump { display: none; }
.share-result { background: var(--sage); padding: 12px; border-radius: 8px; overflow-wrap: anywhere; display: grid; gap: 8px; }
.share-result input { min-width: 0; }
.share-result button, .share-result a { justify-self: start; text-decoration: underline; }
.share-result button { border: 0; background: transparent; padding: 0; color: inherit; }
.share-result .share-button { padding: 7px 16px; color: var(--white); background: var(--clay); text-decoration: none; }
.share-dialog { width: min(440px, calc(100% - 22px)); padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 30%, transparent); }
.share-dialog::backdrop { background: color-mix(in srgb, var(--ink) 62%, transparent); }
.share-dialog-header, .share-dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-dialog-header { justify-content: space-between; margin-bottom: 15px; }
.share-dialog-header h2 { font: 500 1.5rem/1.12 var(--serif); }
.share-dialog .pill { min-height: 41px; padding: 6px 13px; }
.share-field { display: grid; gap: 5px; font-size: .83rem; font-weight: 700; margin-bottom: 12px; }
.share-field input { min-width: 0; width: 100%; min-height: 41px; padding: 7px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; color: var(--ink); }
.share-dialog .status { margin-top: 10px; }
.receiver-share { display: flex; justify-content: flex-end; padding: 0 13px 9px; }
.order-gift .share-button { margin-inline-start: 8px; margin-block: 3px; }
.publication-options { display: grid; gap: 10px; }
.gift-upgrade { margin-block: 6px 10px; }
.gift-upgrade .pill { min-height: 37px; padding: 5px 12px; }
.steps { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; gap: 12px; margin: 23px 0 0; }
.gift-guide { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.price-card { padding: clamp(18px, 3vw, 26px); border: 1px solid var(--rule); border-radius: 14px; background: var(--white); }
.price-card h3 { font-size: .95rem; }
.price-amount { font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--serif); margin-block: 10px 14px; }
.price-publish { background: var(--rose-card); border-color: var(--envelope-border); }
.price-publish .price-amount { color: var(--clay-dark); }
.account-entry { width: min(450px, calc(100% - 34px)); margin-inline: auto; padding-block: clamp(38px, 9vw, 105px); }
.account-card h1 { font: 500 clamp(2rem, 6vw, 2.7rem)/1.08 var(--serif); letter-spacing: -.045em; }
.account-card p { margin-top: 12px; color: var(--muted); }
.account-card .pill { width: 100%; margin-top: 22px; }
.steps li { padding: 18px 0; border-top: 1px solid var(--rule); }
.steps h3 { font: 600 1.23rem/1.2 var(--serif); }
.steps p { color: var(--muted); margin-top: 5px; }
.how, .faq { padding-block: 58px 14px; }
.anniversary-counter { scroll-margin-top: 16px; }
.counter-intro { max-width: 63ch; margin-block: 10px; color: var(--muted); }
.counter-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-block: 20px 16px; border: 1px solid var(--envelope-border); border-radius: 16px; overflow: hidden; background: var(--white); }
.counter-field { display: grid; justify-items: start; align-content: center; gap: 10px; min-width: 0; padding: clamp(16px, 4vw, 33px); }
.counter-field label { font-weight: 700; }
.counter-field input { width: min(100%, 16rem); min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 7px; background: var(--white); color: var(--ink); }
.counter-reset { padding: 3px 0; border: 0; background: transparent; text-decoration: underline; font-size: .85rem; }
.counter-result { display: grid; place-content: center; gap: 12px; min-height: 115px; padding: 16px; text-align: center; background: var(--rose); color: var(--clay-dark); }
.counter-result output { display: grid; }
.counter-share { font-size: .84rem; }
.counter-tool .counter-card { margin-block: 24px 36px; }
.counter-tool .mast { flex-wrap: wrap; }
.counter-result strong { font: 600 clamp(2.8rem, 7vw, 5.1rem)/1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.distance-message { display: grid; gap: 7px; width: fit-content; max-width: 100%; margin-block: 16px; padding: 15px 18px; border: 1px solid var(--rule); border-radius: 4px 15px 15px 15px; background: var(--sage-card); color: var(--sage-ink); }
.distance-sender { font-size: .85rem; font-weight: 700; }
#anniversary-sample-top { scroll-margin-top: 16px; }
@media (max-width: 560px) { .counter-card { grid-template-columns: 1fr; } }
.faq { max-width: 720px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--muted); }
.footer { display: flex; margin-top: 55px; padding-block: 24px; gap: 18px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--rule); }
.footer a:not(.brand) { color: var(--muted); font-size: .85rem; }
.receiver { max-width: 670px; padding-block: 22px 45px; }
.receiver-brand { text-align: center; margin-bottom: 20px; }
.unlock { border-radius: 14px; border: 1px solid var(--rule); }
.unlock { padding: 26px; background: var(--white); display: grid; gap: 12px; max-width: 380px; margin: 40px auto; }
.unlock h1 { font: 500 2rem/1.08 var(--serif); }
.receiver > .status { text-align: center; margin-bottom: 12px; }
@media (max-width: 840px) {
  .hero { min-height: 480px; gap: 28px; }
  .hero h1 { font-size: clamp(3.1rem, 7.9vw, 4.25rem); }
  .hero-art { padding-inline: 8px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 34px); }
  .mast { padding: 14px 0; }
  .mast nav { gap: 12px; font-size: .8rem; }
  .desktop-nav { display: none; }
  .logo { font-size: 1.12rem; }
  .logo-mark { width: 25px; height: 25px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 32px; gap: 28px; min-height: 0; }
  .hero h1 { font-size: clamp(2.75rem, 11.7vw, 4.25rem); }
  .intro { margin-top: 14px; }
  .actions { margin-top: 18px; gap: 9px; }
  .hero .actions .pill { gap: 7px; padding-inline: 13px; font-size: .875rem; }
  .hero-art { width: min(100%, 415px); }
  .hero-art::before { inset-inline: 0; }
  .studio { padding: 24px 13px 19px; }
  .studio-heading { padding-inline: 5px; }
  .studio-grid, .steps, .gift-guide, .price-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .mobile-jump { display: block; justify-self: start; color: var(--clay-dark); font-size: .86rem; font-weight: 700; text-underline-offset: .25em; }
  .preview-back { margin: 10px 14px; }
  .fields { padding: 14px; }
  .steps { gap: 0; }
  .steps li { padding: 12px 0; }
  .how, .faq { padding-block: 37px 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.order-admin { padding-block: 38px; }
.order-admin header { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.order-admin header .brand { text-decoration: none; font-family: var(--serif); color: var(--clay-dark); }
.order-admin h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin-top: 8px; }
.order-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.order-metrics article, .order-list { border: 1px solid var(--rule); border-radius: 12px; background: var(--white); padding: 16px; }
.order-metrics article { display: grid; gap: 5px; }
.order-metrics span, .order-list th { color: var(--muted); font-size: .84rem; }
.order-metrics strong { font-size: 1.65rem; }
.order-state { border-radius: 4em; background: var(--rose); color: var(--clay-dark); padding: 5px 9px; font-size: .78rem; white-space: nowrap; }
.order-state[data-state=published] { background: var(--sage); color: var(--sage-ink); }
.order-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.order-filters a { border-radius: 5px; padding: 5px 10px; text-decoration: none; font-size: .86rem; }
.order-filters a[aria-current=page] { background: var(--ink); color: var(--white); }
.order-table { overflow: auto; }
.order-table table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: .87rem; }
.order-table th, .order-table td { border-bottom: 1px solid var(--rule); padding: 11px 8px; }
.order-table code { font-size: .74rem; }
.order-table .order-empty { text-align: center; padding: 26px; color: var(--muted); }
.legal { max-width: 680px; }
.legal section { margin-top: 23px; }
.legal section h2 { font: 600 1.45rem/1.2 var(--serif); margin-bottom: 5px; }
.legal section p { color: var(--muted); }
.order-admin > .order-list + .order-list { margin-top: 11px; }
@media(max-width:650px) {
  .mast .member-link { color: var(--clay-dark); text-align: right; }
}

.studio-grid { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.fields section { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 13px; }
.fields section h3 { font: 600 1.12rem/1.2 var(--serif); }
.fields select { width: 100%; padding: 8px 10px; min-height: 41px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 7px; }
.fields .subtle-button, .preview-tools button {
  border: 0; background: transparent; padding: 6px 0; color: var(--clay-dark); font-weight: 700;
  justify-self: start; text-align: left; text-decoration: underline; text-underline-offset: .22em;
}
.milestone-fields { display: grid; gap: 9px; }
.milestone-item { min-width: 0; margin: 0; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; display: grid; gap: 7px; }
.milestone-item legend { font-size: .81rem; font-weight: 700; padding-inline: 5px; }
.photo-queue { display: grid; }
.photo-row { display: grid; grid-template-columns: 51px minmax(0, 1fr); gap: 9px; align-items: center; }
.photo-row-actions { display: flex; gap: 10px; align-items: center; min-height: 23px; }
.photo-row-actions small, .photo-row-actions button { font-size: .72rem; }
.preview-panel { box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 10%, transparent); scroll-margin-top: 12px; }
.preview-bar { justify-content: space-between; padding-inline: 12px; flex-wrap: wrap; }
.preview-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.preview-tools { display: flex; flex-wrap: wrap; column-gap: 12px; }
.preview-scroll { overflow: auto; max-height: min(68vh, 690px); scrollbar-gutter: stable; overscroll-behavior-y: contain; background: var(--white); }
.preview-scroll:focus-visible { outline-offset: -3px; }
.preview-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: var(--paper); overscroll-behavior-y: contain; }
.preview-dialog::backdrop { background: color-mix(in srgb, var(--ink) 74%, transparent); }
.preview-dialog-toolbar { position: sticky; z-index: 1; top: 0; background: var(--white); display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; padding: 8px clamp(13px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.preview-toolbar-actions, .preview-device { display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: center; }
.preview-device { gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 30px; }
.preview-device button { min-height: 32px; border: 0; border-radius: 24px; background: transparent; color: var(--ink); padding: 3px 13px; font-size: .83rem; font-weight: 700; }
.preview-device button[aria-pressed=true] { background: var(--rose); color: var(--clay-dark); }
.preview-dialog-toolbar .pill { min-height: 39px; padding: 6px 13px; }
.preview-story { width: min(670px, calc(100% - 34px)); margin: 18px auto 35px; }
.preview-story .story { border-radius: 15px; }
.preview-story .story-block { scroll-margin-top: 62px; }
.preview-dialog[data-device=phone] .preview-story { width: min(390px, calc(100% - 34px)); }
.preview-status { padding: 8px 12px; }
[data-receiver] .story, .example-view .story { border-radius: 16px; }
[data-receiver] #gift-view:empty { display: none; }
.receiver-tools { justify-content: center; margin-block: 14px; }
.demo-bar nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.demo-bar nav .pill { min-height: 38px; padding: 6px 12px; }
.demo-stage .story { border: 1px solid var(--rule); border-radius: 15px; }
.demo-label { margin-bottom: 9px; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }
.example-view { margin-block: 24px; }
.example-view > section { scroll-margin-top: 16px; }
.example-view > section > p:not(.actions) { color: var(--muted); margin: 6px 0 16px; }
.example-view p.actions { margin-bottom: 35px; }
.story {
  --story-paper: var(--white); --story-ink: var(--ink); --story-accent: var(--clay-dark); --story-panel: var(--rose); --story-line: var(--envelope-border);
  container-type: inline-size; position: relative; overflow: clip; overflow-wrap: anywhere;
  background: var(--story-paper); color: var(--story-ink);
}
.story[data-theme=night] {
  --story-paper: #242239; --story-ink: var(--white); --story-accent: #f9bdc3;
  --story-panel: color-mix(in srgb, var(--story-paper) 88%, var(--story-accent));
  --story-line: color-mix(in srgb, var(--story-paper) 55%, var(--story-accent));
}
.story[data-theme=garden] {
  --story-paper: var(--sage-card); --story-ink: var(--sage-ink); --story-accent: var(--sage-dot);
  --story-panel: var(--sage); --story-line: color-mix(in srgb, var(--sage) 70%, var(--sage-ink));
}
.story-cover { padding: clamp(24px, 9cqi, 64px) 8% 6%; text-align: center; }
.story-mark {
  display: grid; place-items: center; width: 40px; height: 40px; margin-inline: auto;
  font: 500 1.5rem/1 var(--serif); color: var(--story-accent);
  border: 1px solid var(--story-line); border-radius: 50%;
}
.story-kicker { margin: 14px 0 7px; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.65rem, 2.6cqi, .8rem); font-weight: 700; color: var(--story-accent); }
.story-name { font: 500 clamp(2.65rem, 13cqi, 6.5rem)/.98 var(--serif); letter-spacing: -.065em; }
.story-subtitle { margin-top: 12px; font: italic 500 clamp(1rem, 4.5cqi, 1.45rem)/1.32 var(--serif); }
.story-cover-photo, .story-art { margin-top: clamp(21px, 6cqi, 44px); }
.story-photo-button { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: inherit; }
.story-photo-button img { transition: transform .33s ease; }
.story-photo-button:hover img { transform: scale(1.035); }
.story-photo-button:focus-visible { outline-offset: -4px; }
.story-cover-photo img, .story-art {
  width: 100%; aspect-ratio: 10 / 9; object-fit: cover; border-radius: 48% 48% 4px 4px / 42% 42% 4px 4px;
  background: var(--story-panel); border: 1px solid var(--story-line);
}
.story-art { display: grid; place-items: center; aspect-ratio: 1.4; position: relative; }
.story-art::before { content: ''; position: absolute; inset: 9%; border: 1px solid var(--story-line); border-radius: inherit; }
.story-art span { font: 400 clamp(3rem, 17cqi, 7rem)/1 var(--serif); color: var(--story-accent); }
.story-caption { color: var(--story-accent); font: italic 500 clamp(.82rem, 3.6cqi, 1.12rem)/1.3 var(--serif); padding-top: 9px; text-align: center; }
.story-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; margin: 0 8%; padding: 12px 0; border-block: 1px solid var(--story-line); }
.story-links a, .story-end a { color: var(--story-accent); text-underline-offset: .25em; font-size: clamp(.72rem, 3cqi, .88rem); }
.story-block { padding: clamp(30px, 9cqi, 72px) 8%; scroll-margin-top: 4px; }
.story-title { margin: 0 0 clamp(16px, 5cqi, 32px); font: 500 clamp(1.65rem, 8cqi, 3.35rem)/1.08 var(--serif); letter-spacing: -.045em; text-align: center; }
.story-date { display: grid; justify-items: center; border: 1px solid var(--story-line); padding: 15px; color: var(--story-accent); }
.story-date strong { font: 500 clamp(1.8rem, 9cqi, 3.3rem)/1.0 var(--serif); }
.story-date span, .story-timeline time { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.67rem, 3cqi, .85rem); }
.story-date time { margin-top: 4px; color: var(--story-ink); font: 500 clamp(.94rem, 3.8cqi, 1.2rem)/1.2 var(--serif); }
.story-timeline { list-style: none; padding: 0 0 0 20px; margin: 26px 0 0 8px; border-left: 1px solid var(--story-line); display: grid; gap: 22px; }
.story-timeline li { position: relative; }
.story-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; background: var(--story-accent); border-radius: 50%; left: -25px; top: 8px; }
.story-timeline time { color: var(--story-accent); }
.story-moment-title { font: 600 clamp(1.05rem, 4.5cqi, 1.55rem)/1.2 var(--serif); margin-block: 4px; }
.story-moment-note { font-size: clamp(.88rem, 3.4cqi, 1.03rem); white-space: pre-wrap; }
.story-memory summary { font: 600 clamp(1.05rem, 4.5cqi, 1.55rem)/1.28 var(--serif); margin-block: 4px; cursor: pointer; }
.story-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 420px); gap: 4px; margin-top: 13px; }
.story-countdown div { display: grid; gap: 4px; padding-block: 7px; background: var(--story-panel); }
.story-countdown strong { font-size: clamp(1rem, 4.2cqi, 1.55rem); }
.story-countdown span { font-size: clamp(.5rem, 2.3cqi, .72rem); letter-spacing: .04em; }
.story-photos { background: var(--story-panel); }
.story-gallery { display: grid; gap: clamp(14px, 5cqi, 34px); }
.story-print { padding: 7px 7px 10px; background: var(--story-paper); border: 1px solid var(--story-line); }
.story-print img { width: 100%; max-height: 550px; aspect-ratio: 4 / 3; object-fit: cover; }
.story[data-layout=wall] .story-cover { padding-bottom: clamp(20px, 6cqi, 40px); }
.story[data-layout=wall] .story-name { font-size: clamp(2.25rem, 10.75cqi, 5.4rem); }
.story[data-layout=wall] .story-photos { padding: clamp(22px, 5.5cqi, 38px) 6% clamp(20px, 6cqi, 44px); background: var(--story-paper); }
.story[data-layout=wall] .story-photos .story-title { font-size: clamp(1.4rem, 6cqi, 2.4rem); }
.story-wall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(5px, 1.5cqi, 12px); }
.story-wall-grid:has(> :nth-child(5)), .story-wall-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-wall-tile { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--story-panel); }
.story-wall-grid:has(> :nth-child(3):last-child) > :first-child { grid-column: span 2; grid-row: span 2; }
.story-wall-tile:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
.story-wall-tile .story-photo-button { height: 100%; overflow: hidden; }
.story-wall-tile img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.story-wall-tile:only-child img { aspect-ratio: 16 / 11; }
.story-wall-tile .story-caption {
  position: absolute; inset: auto 0 0; padding: .7em .65em .4em;
  color: var(--white); background: linear-gradient(0deg, var(--ink), transparent);
  font-size: clamp(.64rem, 2.75cqi, .93rem); pointer-events: none;
}
.photo-lightbox { width: min(780px, calc(100% - 20px)); padding: 10px; border: 1px solid var(--rule); border-radius: 15px; background: var(--white); color: var(--ink); }
.photo-lightbox::backdrop { background: color-mix(in srgb, var(--ink) 87%, transparent); }
.photo-lightbox img { width: 100%; max-height: 70dvh; object-fit: contain; background: var(--ink); border-radius: 8px; touch-action: pan-y; }
.photo-lightbox-bar, .photo-lightbox-arrows { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-lightbox-bar { margin-bottom: 8px; }
.photo-lightbox-arrows { margin-top: 8px; }
.photo-lightbox figcaption { margin-top: 8px; text-align: center; }
.photo-lightbox figcaption:empty { display: none; }
.photo-lightbox .pill { min-height: 42px; padding: 6px 14px; background: var(--white); color: var(--ink); }
.story-message { white-space: pre-wrap; font: 500 clamp(1.01rem, 4.15cqi, 1.45rem)/1.65 var(--serif); }
.story-letter-content { border: 1px solid var(--story-line); background: var(--story-panel); border-radius: 10px; }
.story-letter-content summary { padding: 20px 15px; text-align: center; cursor: pointer; color: var(--story-accent); font: 600 clamp(1rem, 4.2cqi, 1.3rem)/1.25 var(--serif); }
.story-letter-content .story-message { padding: 8px clamp(18px, 6cqi, 42px) 25px; }
.story-letter-content[open] .story-message { animation: letter-unfold .52s ease-out both; }
@keyframes letter-unfold { from { opacity: 0; transform: translateY(10px) rotateX(-8deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .story-letter-content[open] .story-message { animation: none; }
  .story-photo-button img { transition: none; }
}
.story-end { padding: 28px 8% 36px; background: var(--story-panel); text-align: center; }
.story-ending { margin-top: 14px; font: italic 500 clamp(1rem, 4.7cqi, 1.5rem)/1.3 var(--serif); }
.story-signature { margin: 8px 0; color: var(--story-accent); font: 500 clamp(.9rem, 3.3cqi, 1.24rem)/1.35 var(--serif); }
.story-credit { margin-top: 23px; color: var(--story-accent); font-size: .75rem; }
@media (max-width: 650px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-scroll { max-height: 67svh; }
  .preview-dialog-toolbar { justify-content: flex-end; }
  .preview-device { display: none; }
  .preview-story, .preview-dialog[data-device=phone] .preview-story { width: min(100%, 620px); margin-top: 0; }
  .preview-story .story { border-radius: 0; }
  [data-receiver].wrap { width: min(100%, 620px); padding: 0 0 20px; }
  [data-receiver] .story { border-radius: 0; }
  [data-receiver] .unlock { margin-inline: 18px; }
  [data-receiver] .receiver-brand { padding-top: 15px; }
}
#pageforus { position: relative; }
#pageforus::before {
  content: ''; display: block; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--clay) 0 12px, var(--white) 12px 18px, var(--envelope) 18px 30px, var(--white) 30px 36px);
}
#pageforus > .mast { position: sticky; top: 0; z-index: 4; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.head-accent { color: var(--clay); font-style: italic; letter-spacing: -.045em; }
.pill { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease; }
.pill.primary { box-shadow: 0 4px 0 var(--clay-dark); }
.pill.primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 color-mix(in srgb, var(--clay-dark) 80%, var(--ink)); }
.pill.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--clay-dark); }
.pill.outline:hover { background: var(--white); border-color: var(--envelope-border); }
.hero-copy > *, .hero-art { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(n+4) { animation-delay: .24s; }
.hero-art { animation-delay: .18s; animation-duration: .9s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.steps:not(.gift-guide) { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps:not(.gift-guide) li {
  counter-increment: step; position: relative; padding: 58px 22px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.steps:not(.gift-guide) li::before {
  content: counter(step); position: absolute; top: 18px; left: 22px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--rose); color: var(--clay-dark); font: 600 .95rem/1 var(--serif);
}
.steps:not(.gift-guide) li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px color-mix(in srgb, var(--ink) 9%, transparent); }
.gift-guide li { padding-left: 18px; border-top: 0; border-left: 2px solid var(--envelope); }
#pricing { margin-top: 58px; padding-block: 56px 62px; border-image: conic-gradient(var(--rose-card) 0 0) fill 0 / / 0 100vmax; }
#pricing + * { margin-top: 0; }
.price-card { transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px color-mix(in srgb, var(--ink) 9%, transparent); }
.price-publish { border: 2px solid var(--clay); box-shadow: 0 12px 30px color-mix(in srgb, var(--clay) 16%, transparent); }
.faq summary { position: relative; list-style: none; padding-right: 36px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px;
  border: 1px solid var(--rule); border-radius: 50%; color: var(--clay-dark); font-weight: 500; transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--rose); border-color: var(--rose); }
.faq summary:hover { color: var(--clay-dark); }
.faq details { padding: 16px 0; }
.cta-band {
  position: relative; overflow: hidden; margin-top: 70px; padding-block: clamp(56px, 9vw, 96px); text-align: center; color: var(--white);
  background-color: var(--clay);
  background-image: radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--envelope) 35%, transparent), transparent 40%), radial-gradient(circle at 88% 85%, color-mix(in srgb, var(--clay-dark) 80%, transparent), transparent 45%);
}
.cta-band::before { content: ''; position: absolute; left: 50%; top: 26px; width: min(420px, 70%); height: 80px; transform: translateX(-50%); border-top: 2px dashed color-mix(in srgb, var(--white) 55%, transparent); border-radius: 50%; }
.cta-title { font: 500 clamp(2.4rem, 5.6vw, 4.4rem)/1 var(--serif); letter-spacing: -.05em; }
.cta-band .head-accent { color: var(--rose); }
.cta-band .actions { justify-content: center; }
.cta-band .pill.primary { background: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 55%, var(--clay-dark)); }
.cta-band .pill.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--clay)); }
.cta-band .note { max-width: 56ch; margin: 18px auto 0; color: color-mix(in srgb, var(--white) 82%, transparent); }
.cta-band + * { margin-top: 0; }
#pageforus .footer { margin-top: 0; border-top: 0; }
.sticky-cta { display: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.steps > li.reveal:nth-child(2), .price-card.reveal:nth-child(2) { transition-delay: .1s; }
.steps > li.reveal:nth-child(3) { transition-delay: .2s; }
.steps > li.reveal:nth-child(4) { transition-delay: .3s; }
@media (max-width: 650px) {
  #pricing { margin-top: 37px; padding-block: 36px 40px; }
  .steps:not(.gift-guide) { gap: 10px; }
  .steps:not(.gift-guide) li { padding: 18px 18px 18px 62px; }
  .steps:not(.gift-guide) li::before { top: 18px; left: 18px; }
  .cta-band { margin-top: 44px; }
  .sticky-cta {
    display: block; position: fixed; z-index: 6; inset: auto 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--rule);
    animation: rise-in .3s ease both;
  }
  .sticky-cta .pill { width: 100%; }
  #pageforus .footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-art, .sticky-cta { animation: none; }
  .pill, .steps li, .price-card { transition: none; }
}
.story-intro { display: none; }
.story.is-sealed > :not(.story-intro) { display: none; }
.story.is-sealed .story-intro {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 4cqi, 22px);
  min-height: var(--story-intro-height, min(88svh, 780px)); padding: 44px 8%; text-align: center;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--story-accent) 13%, var(--story-paper)), var(--story-paper) 64%);
}
.story-intro > :not(.story-float) { position: relative; }
.story-intro-kicker { color: var(--story-accent); text-transform: uppercase; letter-spacing: .2em; font-size: clamp(.64rem, 2.6cqi, .8rem); font-weight: 700; }
.story-intro-note { max-width: 24ch; font: italic 500 clamp(1rem, 4.6cqi, 1.35rem)/1.35 var(--serif); }
.story-intro-cta { color: var(--story-accent); font-size: clamp(.72rem, 3cqi, .86rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; animation: intro-nudge 1.8s ease-in-out infinite; }
.story-envelope { position: relative; width: min(86%, 360px); aspect-ratio: 1.3; margin-block: 8px; padding: 0; border: 0; background: none; color: var(--story-ink); cursor: pointer; animation: envelope-float 3.6s ease-in-out infinite; }
.story-envelope > span { position: absolute; display: block; }
.story-envelope-back { inset: 0; border-radius: 10px; background: color-mix(in srgb, var(--story-accent) 22%, var(--story-panel)); }
.story-envelope-card {
  z-index: 1; inset: 7% 7% 9%; display: grid !important; place-content: start center; gap: 4px; padding-top: 9%; border-radius: 6px; background: var(--story-paper);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--story-ink) 12%, transparent); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .45s;
}
.story-envelope-card span { font: italic 500 clamp(.8rem, 3.4cqi, 1rem)/1 var(--serif); color: var(--story-accent); }
.story-envelope-card strong { font: 500 clamp(1.4rem, 7cqi, 2.2rem)/1.05 var(--serif); letter-spacing: -.04em; }
.story-envelope-front {
  z-index: 2; inset: 0; border-radius: 10px; background: var(--story-panel); clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--story-ink) 22%, transparent);
}
.story-envelope-flap {
  z-index: 3; inset: 0 0 auto; height: 54%; border-radius: 10px 10px 0 0; transform-origin: top; clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: color-mix(in srgb, var(--story-panel) 78%, var(--story-accent)); transition: transform .65s cubic-bezier(.4, 0, .2, 1), z-index 0s .32s;
}
.story-envelope-seal {
  z-index: 4; left: 50%; top: 54%; display: grid !important; place-items: center; width: clamp(38px, 12cqi, 52px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 48% 52% 50% 46%; background: var(--story-accent); color: var(--story-paper); font: 500 clamp(1.1rem, 5cqi, 1.5rem)/1 var(--serif);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--story-accent) 22%, transparent), 0 6px 14px color-mix(in srgb, var(--story-ink) 30%, transparent);
  animation: seal-pulse 2.2s ease-in-out infinite; transition: transform .3s ease, opacity .3s ease;
}
.story-envelope-address { z-index: 3; left: 0; right: 0; bottom: 10%; font: italic 500 clamp(.78rem, 3.4cqi, .98rem)/1.2 var(--serif); color: var(--story-accent); transition: opacity .3s ease; }
.story-envelope-address strong { font-weight: 600; font-size: 1.15em; }
.story.is-opening .story-envelope-address { opacity: 0; }
.story-envelope:hover .story-envelope-card { transform: translateY(-7%); transition-delay: 0s; }
.story.is-opening .story-envelope { animation: none; }
.story.is-opening .story-envelope-seal { animation: none; transform: scale(0) rotate(-30deg); opacity: 0; }
.story.is-opening .story-envelope-flap { z-index: 0; transform: rotateX(180deg); }
.story.is-opening .story-envelope-card { transform: translateY(-64%); }
.story.is-opening .story-intro > :not(.story-envelope, .story-float) { opacity: 0; transition: opacity .4s ease; }
.story.is-opening .story-intro { animation: intro-out .55s ease 1.25s both; }
.story-float { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.story-float span {
  position: absolute; bottom: -10%; color: var(--story-accent); opacity: 0; animation: heart-drift 11s linear infinite;
}
.story-float span:nth-child(1) { left: 8%; animation-delay: 0s; font-size: clamp(.6rem, 3.6cqi, 1.1rem); }
.story-float span:nth-child(2) { left: 72%; animation-delay: -4.2s; font-size: clamp(.6rem, 3.6cqi, .8rem); }
.story-float span:nth-child(3) { left: 30%; animation-delay: -7.5s; font-size: clamp(.6rem, 3.6cqi, 1.4rem); }
.story-float span:nth-child(4) { left: 88%; animation-delay: -2.1s; font-size: clamp(.6rem, 3.6cqi, .9rem); }
.story-float span:nth-child(5) { left: 16%; animation-delay: -9.3s; font-size: clamp(.6rem, 3.6cqi, 1.6rem); }
.story-float span:nth-child(6) { left: 55%; animation-delay: -5.6s; font-size: clamp(.6rem, 3.6cqi, .75rem); }
.story-float span:nth-child(7) { left: 42%; animation-delay: -1.2s; font-size: clamp(.6rem, 3.6cqi, 1rem); }
.story-float span:nth-child(8) { left: 94%; animation-delay: -8.1s; font-size: clamp(.6rem, 3.6cqi, 1.3rem); }
.story-float span:nth-child(9) { left: 63%; animation-delay: -3.4s; font-size: clamp(.6rem, 3.6cqi, .85rem); }
.story-float span:nth-child(10) { left: 24%; animation-delay: -6.7s; font-size: clamp(.6rem, 3.6cqi, 1.2rem); }
.story[data-motion] .story-cover { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--story-accent) 10%, var(--story-paper)), var(--story-paper) 70%); }
.story[data-motion] .story-cover > :not(.story-float) { position: relative; }
.story[data-motion] .story-cover .story-float span { animation-duration: 14s; }
.story[data-motion].is-open .story-cover > :not(.story-float) { animation: story-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.story[data-motion].is-open .story-cover > :nth-child(3) { animation-delay: .12s; }
.story[data-motion].is-open .story-cover > :nth-child(4) { animation-delay: .26s; }
.story[data-motion].is-open .story-cover > :nth-child(5) { animation-delay: .42s; }
.story[data-motion].is-open .story-cover > :nth-child(n+6) { animation-delay: .58s; }
.story[data-motion].is-open .story-cover-photo img { animation: ken-burns 16s ease-out both; }
.story[data-motion].is-open .story-mark { animation: story-rise 1.1s both, heartbeat 2.6s ease-in-out 1.2s infinite; }
.story .will-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.story .will-reveal.in-view { opacity: 1; transform: none; }
.story .story-wall-tile.will-reveal { transform: scale(.92); }
.story .story-timeline li.will-reveal { transform: translateX(-16px); }
.story .story-wall-tile.will-reveal.in-view, .story .story-timeline li.will-reveal.in-view { transform: none; }
.story .story-wall-tile:nth-child(2n), .story .story-timeline li:nth-child(2n) { transition-delay: .12s; }
.story .story-wall-tile:nth-child(3n) { transition-delay: .22s; }
.story-timeline li.in-view::before { animation: dot-pop .6s cubic-bezier(.3, 1.6, .5, 1) .2s both, dot-glow 2.8s ease-in-out 1s infinite; }
.story[data-motion] .story-date { position: relative; border-radius: 14px; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--story-accent) 9%, transparent), transparent 70%); }
.story[data-motion] .story-date strong { font-variant-numeric: tabular-nums; }
.story-date .story-ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 8px; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--story-ink); }
.story-date .story-ticker span { font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: clamp(.66rem, 2.8cqi, .82rem); }
.story-ticker b { color: var(--story-accent); font-variant-numeric: tabular-nums; font-size: 1.15em; }
.story-message.will-reveal { transform: none; }
.story-message.in-view { animation: ink-reveal 3.2s ease-out both; }
.story[data-motion] .story-letter { position: relative; background: linear-gradient(180deg, var(--story-paper), color-mix(in srgb, var(--story-panel) 45%, var(--story-paper))); }
.story[data-motion] .story-end { position: relative; overflow: hidden; }
.story-burst { position: absolute; left: 50%; top: 48px; width: 0; height: 0; pointer-events: none; }
.story-burst span { position: absolute; left: -.5em; top: -.5em; color: var(--story-accent); opacity: 0; font-size: clamp(.7rem, 3.4cqi, 1.1rem); }
.story-end.in-view .story-burst span { animation: heart-burst 1.8s cubic-bezier(.15, .8, .3, 1) .35s both; }
.story-burst span:nth-child(1) { --x: -120px; --y: -40px; } .story-burst span:nth-child(2) { --x: 120px; --y: -36px; }
.story-burst span:nth-child(3) { --x: -80px; --y: 40px; } .story-burst span:nth-child(4) { --x: 86px; --y: 46px; }
.story-burst span:nth-child(5) { --x: -150px; --y: 6px; } .story-burst span:nth-child(6) { --x: 150px; --y: 10px; }
.story-burst span:nth-child(7) { --x: -40px; --y: -64px; } .story-burst span:nth-child(8) { --x: 44px; --y: -60px; }
.story-burst span:nth-child(9) { --x: -100px; --y: 70px; } .story-burst span:nth-child(10) { --x: 104px; --y: 74px; }
.story-burst span:nth-child(11) { --x: -20px; --y: 80px; } .story-burst span:nth-child(12) { --x: 24px; --y: -86px; }
.story-end.in-view .story-mark { animation: heartbeat 2.6s ease-in-out .4s infinite; }
@keyframes envelope-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes seal-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }
@keyframes intro-nudge { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.06); filter: blur(4px); } }
@keyframes heart-drift { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: .32; } 80% { opacity: .18; } 100% { transform: translateY(-760px) translateX(18px) rotate(28deg); opacity: 0; } }
@keyframes story-rise { from { opacity: 0; transform: translateY(22px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ken-burns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes heartbeat { 0%, 60%, 100% { scale: 1; } 10% { scale: 1.14; } 20% { scale: .98; } 30% { scale: 1.09; } }
@keyframes dot-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dot-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--story-accent) 35%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--story-accent) 0%, transparent); } }
@keyframes ink-reveal { from { mask-position: 0 100%; } to { mask-position: 0 0; } }
.story-message.in-view { mask-image: linear-gradient(180deg, var(--ink) 45%, transparent 55%); mask-size: 100% 240%; }
@keyframes heart-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(20deg); } }

.hero-phone { width: min(100%, 520px); display: grid; justify-items: center; padding: 0; }
.hero-phone::before { inset: 0 -8% 10%; background: radial-gradient(ellipse at 50% 45%, var(--rose), transparent 66%); }
.phone {
  position: relative; width: 318px; height: 650px; padding: 11px; border-radius: 54px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--ink) 82%, var(--white)), var(--ink) 55%, color-mix(in srgb, var(--ink) 92%, var(--white)));
  box-shadow: inset 0 0 0 1.5px var(--muted), inset 0 0 0 5px var(--ink), 0 46px 80px -28px color-mix(in srgb, var(--ink) 60%, transparent), 0 24px 48px -24px color-mix(in srgb, var(--clay) 55%, transparent);
}
.phone::before, .phone::after { content: ''; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink); }
.phone::before { top: 150px; height: 74px; } .phone::after { top: 240px; height: 44px; }
.phone-island { position: absolute; z-index: 2; top: 22px; left: 50%; width: 96px; height: 27px; translate: -50% 0; border-radius: 20px; background: var(--ink); }
.phone-screen { height: 100%; overflow-y: auto; border-radius: 43px; background: var(--white); scrollbar-width: none; overscroll-behavior: contain; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen:focus-visible { outline-offset: 2px; }
.phone-screen .story { --story-intro-height: 628px; min-height: 100%; }
.phone-screen .story-cover, .phone-screen .story-intro { padding-top: 62px; }
.hero-heart { position: absolute; z-index: -1; color: var(--clay); opacity: .5; font-size: 1.3rem; animation: hero-heart 6s ease-in-out infinite; }
.hero-heart:nth-child(1) { left: 4%; top: 18%; } .hero-heart:nth-child(2) { right: 6%; top: 8%; font-size: .9rem; animation-delay: -1.5s; }
.hero-heart:nth-child(3) { right: 2%; top: 56%; font-size: 1.8rem; animation-delay: -3s; } .hero-heart:nth-child(4) { left: 9%; top: 72%; font-size: .85rem; animation-delay: -4.2s; }
.hero-heart:nth-child(5) { left: 0; top: 44%; font-size: 1.05rem; color: var(--envelope-border); animation-delay: -2.2s; }
@keyframes hero-heart { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
.hero-demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 20px; font-size: .88rem; }
.hero-demo-controls .demo-label { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero-demo-controls .preview-dot { background: var(--clay); animation: live-dot 1.6s ease-in-out infinite; }
.hero-demo-controls .share-button { min-height: 38px; padding: 6px 14px; }
@keyframes live-dot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 45%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 650px) {
  .hero-phone::before { inset-inline: 0; }
  .phone { width: min(300px, 82vw); height: 590px; border-radius: 50px; }
  .phone-screen { border-radius: 40px; }
  .phone-screen .story { --story-intro-height: 568px; }
}
@media (prefers-reduced-motion: reduce) {
  .story[data-motion] *, .story[data-motion] *::before, .hero-heart, .hero-demo-controls .preview-dot { animation: none !important; transition: none !important; }
  .story-float, .story-burst { display: none; }
}
