/* Stories page (user reference): the hands film as the opening, then each story as a full-width band,
   text and photo swapping sides, alternating cream and maroon. */

.sb-hero .hero-content { text-align: center; }
.sb-kicker { margin-bottom: 18px; font-size: 11px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); }
.sb-hero .hero-title em { display: block; }

.sb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(460px, 70svh, 680px); }
.sb.is-cream { background: var(--cream); color: var(--ink); }
.sb.is-dark { background: radial-gradient(110% 90% at 50% 30%, #451019 0%, var(--maroon-bg) 55%, #24070b 100%); color: var(--on-dark); }
.sb.is-text-right .sb-photo { order: -1; }

.sb-photo { position: relative; margin: 0; overflow: hidden; }
.sb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.sb:hover .sb-photo img { transform: scale(1.03); }

.sb-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 120px) clamp(24px, 6vw, 110px); }
.sb-tag { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-ink); }
.sb.is-dark .sb-tag { color: var(--gold-soft); }
.sb-title { margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; color: var(--wine-900); }
.sb.is-dark .sb-title { color: var(--gold-soft); }
.sb-rule { display: block; width: 48px; height: 1px; margin: 22px 0; background: var(--gold-ink); opacity: .7; }
.sb.is-dark .sb-rule { background: var(--gold); }
.sb-text { max-width: 44ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.85; color: var(--ink-soft); }
.sb.is-dark .sb-text { color: rgba(245, 234, 214, .86); }
.sb-more { align-self: flex-start; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--wine-900); }
.sb.is-dark .sb-more { color: var(--gold-soft); }
.sb-more:hover { opacity: .75; }
.sb-more:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }

@media (max-width: 899px) {
  .sb { grid-template-columns: 1fr; min-height: 0; }
  .sb-photo { aspect-ratio: 4 / 3; order: -1; }
  .sb.is-text-right .sb-photo { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .sb-photo img { transition: none; } }


/* ================= The stories (user): no transition. Each story is photo + words side by side; the photo runs the
   full height of the story, top to bottom. Photo left / words right, then words left / photo right, alternating. ================= */
.ss-stage { display: block; }
.ss-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 82svh, 780px); background: #efe2cb; }
.ss-scene:nth-child(even) .ss-left { order: 2; }
.ss-left { position: relative; overflow: hidden; margin: 0; }
.ss-left img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-right { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(56px, 8vw, 120px) clamp(32px, 6vw, 110px); text-align: left; color: var(--ink); }
.ss-scene:nth-child(even) .ss-right { background: #f4ead8; }
.ss-tag { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-ink); }
.ss-title { margin-top: 16px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.6vw, 58px); line-height: 1.12; color: var(--wine-900); }
.ss-rule { display: block; width: 52px; height: 1px; margin: 26px 0; background: var(--gold-ink); }
.ss-text { max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85; color: var(--ink-soft); }
.ss-more { margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wine-900); text-decoration: none; }
.ss-more:hover { opacity: .75; }
.ss-more:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
@media (max-width: 899px) {
  .ss-scene { grid-template-columns: 1fr; min-height: 0; }
  .ss-scene:nth-child(even) .ss-left { order: 0; }
  .ss-left { aspect-ratio: 4 / 3; }
  .ss-right { padding: 40px 20px 52px; }
}


/* no opening section now (user): the stories start right under a solid header */
.ss-page .site-header { background: rgba(42, 10, 14, .97); }
.ss-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= Reference layout (user): opening, tighter story bands, maroon close ================= */
html { scroll-behavior: smooth; }
/* opening: words left, photo right fading into the cream */
.sx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 78svh, 720px); padding-top: var(--header-h); background: #f4ead8; overflow: hidden; }
.sx-hero-photo { position: absolute; top: var(--header-h); right: 0; bottom: 0; width: 56%; margin: 0; }
.sx-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sx-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f4ead8 0%, rgba(244, 234, 216, .75) 16%, rgba(244, 234, 216, 0) 42%); }
.sx-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 7vw, 100px) clamp(24px, 8vw, 130px); }
.sx-kicker { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-ink); }
.sx-title { margin-top: 18px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 4.6vw, 72px); line-height: 1.06; color: var(--wine-900); }
.sx-title em { font-style: italic; color: var(--gold-ink); }
.sx-rule { display: block; width: 56px; height: 1px; margin: 28px 0; background: var(--gold-ink); }
.sx-sub { max-width: 40ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.8; color: var(--ink-soft); }
.sx-down { margin-top: 30px; padding: 15px 26px; background: var(--wine-900); color: #f6ecdc; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .3s; }
.sx-down:hover { background: var(--maroon-bg); }
.sx-down:focus-visible, .sx-cta-btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }

/* story bands: a little shorter, words a little tighter, like the reference */
.ss-scene { min-height: clamp(420px, 60svh, 580px); }
.ss-right { padding: clamp(44px, 6vw, 90px) clamp(28px, 6vw, 100px); }
.ss-title { font-size: clamp(32px, 3vw, 48px); }
.ss-rule { margin: 22px 0; }
.ss-text { max-width: 44ch; font-size: clamp(15px, 1.05vw, 17px); }
.ss-more { margin-top: 26px; }
.ss-scene + .ss-scene { border-top: 1px solid rgba(125, 90, 27, .12); }

/* close: maroon, golden hands fading in from the left */
.sx-cta { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 70% 50%, #4a111b 0%, var(--maroon-bg) 55%, #24070b 100%); color: #f6ecdc; }
.sx-cta-bg { position: absolute; left: 0; top: 0; height: 100%; width: 42%; object-fit: cover; object-position: 30% 50%; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%); mask-image: linear-gradient(90deg, #000 30%, transparent 100%); }
.sx-cta-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 9vw, 110px) 24px; text-align: center; }
.sx-cta .sx-kicker { color: var(--gold-soft); }
.sx-cta-title { margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.15; }
.sx-cta-title em { display: block; font-style: italic; color: var(--gold-soft); }
.sx-cta-sub { margin-top: 14px; font-family: var(--display); font-style: italic; font-size: 17px; color: rgba(246, 236, 220, .8); }
.sx-cta-btn { flex: none; padding: 17px 30px; background: #e9d3a6; color: var(--wine-900); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .3s; }
.sx-cta-btn:hover { background: var(--gold-soft); }

@media (max-width: 899px) {
  .sx-hero { grid-template-columns: 1fr; min-height: 0; }
  .sx-hero-photo { position: relative; top: auto; width: 100%; aspect-ratio: 4 / 3; order: -1; }
  .sx-hero-photo::after { background: linear-gradient(0deg, #f4ead8 0%, rgba(244, 234, 216, 0) 35%); }
  .sx-hero-copy { padding: 8px 20px 52px; }
  .sx-cta-inner { flex-direction: column; gap: 28px; }
  .sx-cta-bg { width: 100%; opacity: .25; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* heading at the start of the page (user): the one line, centred on cream */
.sx-head { padding: calc(var(--header-h) + clamp(56px, 9svh, 110px)) 20px clamp(48px, 7svh, 84px); background: #f4ead8; text-align: center; }
.sx-head-title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4.6vw, 72px); line-height: 1.08; color: var(--wine-900); }
.sx-head-title em { font-style: italic; color: var(--gold-ink); }
.sx-head .sx-rule { margin: 30px auto 0; }

/* close (user): no image, no maroon; words centred in the section, the button beneath */
.sx-cta { background: #f4ead8; color: var(--ink); border-top: 1px solid rgba(125, 90, 27, .12); }
.sx-cta-inner { flex-direction: column; gap: 34px; padding: clamp(80px, 12svh, 140px) 20px; }
.sx-cta .sx-kicker { color: var(--gold-ink); }
.sx-cta-title { color: var(--wine-900); }
.sx-cta-title em { color: var(--gold-ink); }
.sx-cta-sub { color: var(--ink-soft); }
.sx-cta-btn { background: var(--wine-900); color: #f6ecdc; }
.sx-cta-btn:hover { background: var(--maroon-bg); }

/* one cream only (user): every background on this page is the same brand cream, no second shade */
.ss-page main, .ss, .ss-stage, .ss-scene, .ss-right, .ss-scene:nth-child(even) .ss-right, .sx-head, .sx-cta { background: var(--cream); }

/* close on maroon (user), no image; cream words, gold accents, cream button */
.ss-page .sx-cta { background: var(--maroon-bg); color: #f6ecdc; border-top: 0; }
.sx-cta .sx-kicker { color: var(--gold-soft); }
.sx-cta-title { color: #f6ecdc; }
.sx-cta-title em { color: var(--gold-soft); }
.sx-cta-btn { background: #e9d3a6; color: var(--wine-900); }
.sx-cta-btn:hover { background: var(--gold-soft); }
.sx-cta-btn:focus-visible { outline-color: var(--gold-soft); }

/* close back to cream (user): the same single cream, wine words, gold accents, wine button */
.ss-page .sx-cta { background: var(--cream); color: var(--ink); border-top: 1px solid rgba(125, 90, 27, .12); }
.ss-page .sx-cta .sx-kicker { color: var(--gold-ink); }
.ss-page .sx-cta-title { color: var(--wine-900); }
.ss-page .sx-cta-title em { color: var(--gold-ink); }
.ss-page .sx-cta-btn { background: var(--wine-900); color: #f6ecdc; }
.ss-page .sx-cta-btn:hover { background: var(--maroon-bg); }
.ss-page .sx-cta-btn:focus-visible { outline-color: var(--gold-ink); }

/* heading removed (user): the first story starts just under the header */
.ss-page .ss { padding-top: var(--header-h); }

/* taller stories (user agreed): about three-quarters of the screen each, so the photos show more */
@media (min-width: 900px) { .ss-page .ss-scene { min-height: clamp(560px, 75svh, 760px); } }

/* placeholder words, clearly marked until the real story arrives */
.ss-ph { padding: 0 4px; border: 1px dashed var(--gold-ink); background: rgba(201, 164, 92, .14); }

/* story links from the home page land with the title clear of the fixed header */
.ss-title { scroll-margin-top: calc(var(--header-h) + 32px); }

/* ================= Stories page tidy-up (owner, 12 Nov 2026) =================
   Read more: each story opens with two paragraphs; the button below opens the rest in place (js/story-more.js).
   Phones: every photo in the same 4:5 frame, so the stories line up (the wedding photo stays wide so the frame and
   the couple both show). The First Album Box photo now sits in the same frame: faces and the golden feet both in view. */
.ss-rest > .ss-text:first-child { margin-top: 12px; }
.ss-read { align-self: flex-start; min-height: 44px; margin-top: 10px; padding: 0; background: none; border: 0; border-bottom: 1px solid rgba(125, 90, 27, .45);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); cursor: pointer; touch-action: manipulation; }
.ss-read:hover { color: var(--wine-900); }
.ss-read:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.ss-read + .ss-rest:not([hidden]) { margin-top: 0; }
@media (max-width: 899px) {
  :root:root:root .ss-left { aspect-ratio: 4 / 5 !important; }
  :root:root:root .ss-scene[data-scene="2"] .ss-left { aspect-ratio: 4 / 3 !important; }
  :root:root:root .ss-scene[data-scene="first"] .ss-left { aspect-ratio: 4 / 5 !important; }
  :root:root:root .ss-scene[data-scene="first"] .ss-left img { position: absolute !important; inset: 0; height: 100% !important; object-fit: cover !important; object-position: 50% 40% !important; }
  .ss-right { padding: 32px 20px 44px; }
  .ss-more { margin-top: 18px; }
}

/* heading shown at the top (owner, 12 Nov 2026): small label, then the Title Case line, centred on the cream */
.sx-head .sx-kicker { margin-bottom: 16px; }
.sx-head + .ss { padding-top: 0 !important; }
@media (max-width: 767px) {
  .sx-head { padding: calc(var(--header-h) + 40px) 20px 36px; }
  .sx-head-title { font-size: 34px; }
  .sx-head .sx-rule { margin-top: 22px; }
}
/* line beneath the heading (owner, 12 Nov 2026) */
.sx-head-sub { margin-top: 14px; font-family: var(--display); font-style: italic; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.sx-head-title em { white-space: nowrap; }   /* "Real Stories" stays on one line */

/* heading matched to the rest of the site (owner, 12 Nov 2026), same as the Contact and About headings:
   dark first line, golden italic second line beneath, the short fading line under the heading, then the line of
   text in the site's plain body type. Phones 34px like every page heading; computers the same size as Contact. */
:root:root:root .sx-head-title { font-weight: 500; font-size: clamp(38px, 3.8vw, 60px); line-height: 1.08; color: #2a0a0e; }
:root:root:root .sx-head-title em { display: block; white-space: normal; font-style: italic; color: #7d5a1b; }
:root:root:root .sx-head .sx-rule { width: 56px; height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, #2a0a0e 50%, transparent); }
:root:root:root .sx-head-sub { max-width: 42ch; margin: 14px auto 0; font-family: inherit; font-style: normal; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 767px) {
  :root:root:root .sx-head { padding: calc(var(--header-h) + 48px) 20px 40px; }
  :root:root:root .sx-head-title { font-size: 34px; line-height: 1.1; }
}

/* stories centred (owner, 12 Nov 2026): no golden line under the titles; label, title, words and Read more centred */
:root:root:root .ss-right { align-items: center; text-align: center; }
:root:root:root .ss-title { margin-bottom: 18px; text-align: center; }
:root:root:root .ss-text { margin-left: auto; margin-right: auto; text-align: center; }
:root:root:root .ss-read { align-self: center; }

/* no line under the story titles (owner, 13 Nov 2026) */
:root:root:root:root .ss-title::after { content: none !important; display: none !important; }

/* collage of real families between the closing heading and the button (owner, 13 Nov 2026):
   nine square photos, three across, faces kept in view (photos sit a little above centre) */
.sx-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 720px; margin: 0 auto; padding: 0; list-style: none; }
.sx-collage li { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: #eadcc4; }
.sx-collage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 767px) { .sx-collage { gap: 4px; } }

/* real photos for four stories (owner, 13 Nov 2026), framed so no face is cut */
.ss-scene[data-scene="7"] .ss-left img { object-position: 50% 20%; }   /* mother's face and the father kissing the frame */
.ss-scene[data-scene="1"] .ss-left img { object-position: 50% 60%; }   /* the Swagatam frame on maroon */
.ss-scene[data-scene="4"] .ss-left img { object-position: 50% 40%; }
@media (max-width: 899px) {
  :root:root:root .ss-scene[data-scene="8"] .ss-left { aspect-ratio: 4 / 3 !important; }   /* wide photo: both parents in view */
}
/* new photos (owner, 13 Nov 2026): the welcome frame and all three faces; the blessing hand, both faces and the moulds */
:root:root .ss-scene[data-scene="1"] .ss-left img { object-position: 50% 9%; }
:root:root .ss-scene[data-scene="9"] .ss-left img { object-position: 50% 55%; }
/* Four Generations, One Blessing (owner, 14 Nov 2026): a wide photo, shown like Better Together */
@media (max-width: 767px) { :root:root:root .ss-scene[data-scene="11"] .ss-left { aspect-ratio: 4 / 3 !important; } }
