/* ============================================================
   MEMORA27 — Mediterranean luxury landing page
   Palette: Aegean ink, sun-bleached ivory, terracotta, olive, brass
   ============================================================ */

:root {
  --ink: #15283a;          /* deep Aegean ink */
  --sea: #1f5f7a;          /* sea tone for accents */
  --ivory: #f7f2e7;        /* sun-bleached ivory */
  --sand: #efe6d4;         /* warm sand */
  --terra: #b9603f;        /* terracotta */
  --olive: #6e7b58;        /* olive leaf */
  --brass: #b18a4f;        /* quiet brass/gold */
  --line: rgba(21, 40, 58, 0.14);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 36px;
  padding: 22px clamp(20px, 5vw, 64px);
  color: #fdfaf2;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, color .35s ease;
}
.nav.is-solid {
  background: rgba(247, 242, 231, 0.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: 4px;
}
.nav-brand span { color: var(--brass); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 12.5px; letter-spacing: 2.6px; text-transform: uppercase; opacity: .85;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s;
}
.nav-links a:hover { opacity: 1; border-bottom-color: var(--brass); }
.nav-cta {
  font-size: 12.5px; letter-spacing: 2.6px; text-transform: uppercase;
  padding: 11px 24px; border: 1px solid currentColor; border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 30, 44, .28) 0%, rgba(14, 30, 44, .14) 52%, rgba(14, 30, 44, 0) 78%),
    linear-gradient(to bottom, rgba(14, 30, 44, .12) 0%, rgba(14, 30, 44, .02) 45%, rgba(14, 30, 44, .28) 100%);
}
.hero-inner { position: relative; display: flex; align-items: center; width: 100%; max-width: 1360px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 140px clamp(22px, 7vw, 80px) 110px; color: #fdfaf2; }
.hero-copy { max-width: 720px; }
.hero-memory-peek {
  position: absolute; right: clamp(22px, 7vw, 80px); bottom: 38px; width: min(360px, 34vw);
  display: flex; align-items: center; gap: 12px; padding: 10px 13px 10px 10px;
  border: 1px solid rgba(21,40,58,.12); border-radius: 6px; background: rgba(253,250,242,.96);
  color: var(--ink); box-shadow: 0 18px 48px rgba(5,16,24,.24); text-decoration: none;
}
.hero-memory-peek > img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; }
.hero-memory-copy { display: grid; min-width: 0; gap: 3px; }
.hero-memory-copy small { color: var(--brass); font-size: 7px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.hero-memory-copy strong { overflow: hidden; color: var(--ink); font: 600 14px/1.15 var(--serif); letter-spacing: .15px; text-overflow: ellipsis; white-space: nowrap; }
.hero-memory-copy > span { overflow: hidden; color: rgba(21,40,58,.68); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hero-memory-date { align-self: flex-start; margin-left: auto; color: rgba(21,40,58,.55); font-size: 7px; font-weight: 650; letter-spacing: 1.2px; white-space: nowrap; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 5px; text-transform: uppercase; opacity: .92; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.04; letter-spacing: .5px; margin-bottom: 28px; text-wrap: balance;
}
.hero h1 em { color: #f3dfb8; }
.hero-sub { max-width: 560px; font-size: clamp(15px, 1.5vw, 17.5px); font-weight: 300; opacity: .94; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-size: 12.5px; letter-spacing: 2.8px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s ease, background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--terra); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.btn.solid:hover { background: #a65236; }
.btn.ghost { border-color: rgba(253, 250, 242, .65); color: #fdfaf2; }
.btn.ghost:hover { background: rgba(253, 250, 242, .14); }
.btn.lg { padding: 18px 46px; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; padding: clamp(90px, 12vw, 150px) 24px clamp(80px, 10vw, 130px); background: var(--ivory); }
.rule { width: 1px; height: 64px; margin: 0 auto 44px; background: var(--brass); }
.manifesto-line {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.25; max-width: 760px; margin: 0 auto 26px; text-wrap: balance;
}
.manifesto-line em { color: var(--terra); }
.manifesto-small { max-width: 520px; margin: 0 auto; color: rgba(21, 40, 58, .72); font-size: 15.5px; }

/* ---------- Feature bands ---------- */
.band { padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 72px); }
.band.alt { background: var(--sand); }
.band-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 90px);
  align-items: center; max-width: 1240px; margin: 0 auto;
}
.band-grid.flip { grid-template-columns: 1fr 1.15fr; }
.frame { position: relative; }
.frame img {
  width: 100%; border-radius: 14px; border: 1px solid rgba(21, 40, 58, .10);
  box-shadow: 0 30px 70px rgba(21, 40, 58, .18);
}
.frame::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--brass); border-radius: 14px; opacity: .55;
}
.frame.arch img { border-radius: 260px 260px 14px 14px; }
.frame.arch::after { border-radius: 260px 260px 14px 14px; }
.chapter { font-size: 12px; letter-spacing: 4.5px; color: var(--brass); margin-bottom: 20px; }
.chapter.center { text-align: center; }
.chapter.light { color: #e8cf9e; }
.band-copy h2, .suite-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12; margin-bottom: 22px; text-wrap: balance;
}
.band-copy h2 em, .suite-title em { color: var(--sea); }
.band-copy p { color: rgba(21, 40, 58, .8); max-width: 480px; margin-bottom: 26px; font-size: 16px; }
.kbd {
  display: inline-block; font-family: var(--sans); font-size: 13px; line-height: 1;
  padding: 3px 8px 4px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: #fff; color: var(--ink);
}
.fine-list { list-style: none; }
.fine-list li {
  padding: 13px 0 13px 30px; border-top: 1px solid var(--line);
  font-size: 14.5px; letter-spacing: .4px; position: relative;
}
.fine-list li:last-child { border-bottom: 1px solid var(--line); }
.fine-list li::before {
  content: ''; position: absolute; left: 4px; top: 50%; width: 14px; height: 1px; background: var(--brass);
}

/* ---------- Suite ---------- */
.suite { padding: clamp(80px, 10vw, 130px) clamp(20px, 6vw, 72px); background: var(--ivory); }
.suite-title { text-align: center; margin-bottom: clamp(44px, 6vw, 70px); }
.suite-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 0 auto;
}
.suite-card {
  background: #fdfaf2; border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 32px 34px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.suite-card::before {
  content: ''; position: absolute; top: 0; left: 32px; width: 46px; height: 2px; background: var(--brass);
}
.suite-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(21, 40, 58, .12); }
.suite-card h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: .6px; margin-bottom: 10px; }
.suite-card p { font-size: 14.5px; color: rgba(21, 40, 58, .74); }

/* ---------- Promise ---------- */
.promise { background: var(--ink); color: #f5efe2; padding: clamp(58px, 7vw, 82px) 24px; text-align: center; }
.promise-inner { max-width: 820px; margin: 0 auto; }
.promise-line {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.22; margin-bottom: 24px; text-wrap: balance;
}
.promise-small { color: rgba(245, 239, 226, .72); max-width: 580px; margin: 0 auto; font-size: 15.5px; }

/* ---------- Life, then the page: the new cinematic finale ---------- */
.life-finale { background: var(--ivory); }
.life-showcase {
  position: relative; height: min(900px, 92svh); min-height: 720px; overflow: hidden;
  isolation: isolate; background: #172c38; color: #fdfaf2;
}
.life-showcase::before { content: ''; position: absolute; z-index: 3; top: 0; right: 0; left: 0; height: 82px; border-top: 1px solid rgba(237,207,149,.36); background: linear-gradient(180deg, rgba(21,40,58,.32), rgba(21,40,58,.12) 35%, transparent); pointer-events: none; }
.life-showcase:focus-visible { outline: 2px solid #edcf95; outline-offset: -4px; }
.life-slides, .life-slide { position: absolute; inset: 0; }
.life-slide {
  z-index: 0; overflow: hidden; opacity: 0; pointer-events: none; transform: scale(1.016);
  transition: opacity .9s ease, transform 1.35s cubic-bezier(.2,.7,.2,1);
}
.life-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: scale(1); }
.life-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.life-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,24,31,.46) 0%, rgba(11,24,31,.32) 34%, rgba(11,24,31,.10) 66%, rgba(11,24,31,.15) 100%),
              linear-gradient(0deg, rgba(9,19,23,.34) 0%, transparent 35%, rgba(10,20,25,.05) 100%);
}
.life-layout {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(310px,1fr) minmax(340px,430px);
  align-items: center; gap: clamp(30px,6vw,92px); padding: 105px clamp(24px,8vw,118px) 126px;
}
.life-copy { max-width: 630px; align-self: center; margin-top: 12px; opacity: 0; transform: translateY(18px); transition: opacity .7s ease .18s, transform .8s ease .18s; }
.life-slide.is-active .life-copy { opacity: 1; transform: none; }
.life-place { display: flex; align-items: center; gap: 13px; margin: 0 0 27px; color: rgba(253,250,242,.86); font-size: 10px; font-weight: 600; letter-spacing: 3px; line-height: 1.5; text-transform: uppercase; }
.life-place::before { content: ''; width: 27px; height: 1px; background: #e5c98f; }
.life-quote { max-width: 620px; margin: 0; color: #fffdf8; font-family: var(--serif); font-size: clamp(37px,5.1vw,68px); font-weight: 500; line-height: 1.08; letter-spacing: -.4px; text-wrap: balance; text-shadow: 0 2px 22px rgba(0,0,0,.25); }
.life-quote em { color: #f3dfb8; }
.life-caption { max-width: 390px; margin: 24px 0 0; color: rgba(253,250,242,.76); font-size: 13px; font-weight: 300; line-height: 1.7; letter-spacing: .25px; }
.life-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 31px; color: #efdbb1; font-family: var(--serif); font-size: 13px; font-style: italic; letter-spacing: .35px; }
.life-note::before { content: ''; width: 30px; height: 1px; background: rgba(239,219,177,.65); }

/* This visual follows the actual MemorySpread structure in the app reference. */
.life-memory {
  --memory-ink: #24251f; --memory-muted: #787970; --memory-line: #e7e5de; --memory-paper: #fffefa; --memory-accent: #1c6c58;
  width: 100%; max-width: 430px; justify-self: end; overflow: hidden; color: var(--memory-ink);
  background: rgba(255,254,250,.98); border: 1px solid rgba(255,255,255,.6); border-radius: 4px;
  box-shadow: 0 26px 80px rgba(4,14,19,.32); opacity: 0; transform: translateY(24px) scale(.985);
  transition: opacity .72s ease .34s, transform .85s cubic-bezier(.2,.7,.2,1) .34s;
}
.life-slide.is-active .life-memory { opacity: 1; transform: none; }
.life-memory-top { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: var(--memory-paper); }
.life-memory-top > span { color: var(--memory-muted); font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.life-memory-top > div { display: flex; align-items: center; gap: 11px; color: #85857c; font-size: 7px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.life-memory-top b { font-weight: 700; }
.life-memory-top i { margin-left: 2px; color: var(--memory-muted); font-size: 17px; font-style: normal; font-weight: 300; line-height: 1; }
.life-memory-cover { display: block; width: 100%; height: 164px; object-fit: cover; }
.life-memory-content { padding: 18px 22px 21px; }
.life-memory-content h3 { margin: 0; color: var(--memory-ink); font-family: var(--sans); font-size: 19px; font-weight: 400; line-height: 1.18; letter-spacing: 1.15px; text-transform: uppercase; }
.life-memory-purpose { margin: 7px 0 0; color: var(--memory-muted); font-size: 10px; line-height: 1.5; }
.life-memory-columns { display: grid; grid-template-columns: minmax(0,1fr) 138px; gap: 23px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--memory-line); }
.life-memory-label { display: block; color: var(--memory-muted); font-size: 7px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.life-memory-body { margin: 8px 0 0; color: #45463f; font-family: Georgia,'Times New Roman',serif; font-size: 12px; line-height: 1.7; }
.life-memory-facts { margin: 0; border-top: 1px solid var(--memory-line); }
.life-memory-facts > div { display: flex; justify-content: space-between; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--memory-line); }
.life-memory-facts dt { flex: 0 0 auto; color: var(--memory-muted); font-size: 6.5px; letter-spacing: 1px; text-transform: uppercase; }
.life-memory-facts dd { margin: 0; color: #45463f; font-size: 8px; line-height: 1.35; text-align: right; }
.life-memory-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--memory-line); color: #85857c; font-size: 7px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.life-memory-foot span:last-child { color: var(--memory-accent); }

.life-controls { position: absolute; z-index: 4; right: clamp(24px,8vw,118px); bottom: 29px; left: clamp(24px,8vw,118px); display: flex; align-items: center; gap: 20px; }
.life-arrow { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid rgba(253,250,242,.42); border-radius: 50%; background: rgba(10,24,30,.12); color: #fffdf8; font-size: 16px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.life-arrow:hover { transform: translateY(-1px); border-color: rgba(253,250,242,.85); background: rgba(253,250,242,.15); }
.life-progress-wrap { min-width: 0; flex: 1; display: flex; align-items: center; gap: 16px; }
.life-progress { position: relative; height: 1px; flex: 1; background: rgba(253,250,242,.3); }
.life-progress span { position: absolute; top: 0; left: 0; width: 20%; height: 1px; background: #edcf95; transition: width .45s ease; }
.life-tabs { display: flex; align-items: center; gap: clamp(8px,1.6vw,22px); }
.life-tabs button { padding: 7px 0; border: 0; background: transparent; color: rgba(253,250,242,.62); font-size: 8px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; cursor: pointer; transition: color .2s ease; white-space: nowrap; }
.life-tabs button:hover, .life-tabs button[aria-pressed="true"] { color: #fffdf8; }
.life-counter { flex: 0 0 auto; min-width: 54px; color: #fffdf8; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-align: right; }
.life-toggle { min-width: 44px; padding: 7px 2px; border: 0; background: transparent; color: rgba(253,250,242,.82); font-family: var(--sans); font-size: 8px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: color .2s ease; }
.life-toggle:hover, .life-toggle:focus-visible { color: #fffdf8; }
.life-toggle:focus-visible, .life-arrow:focus-visible, .life-tabs button:focus-visible { outline: 1px solid #edcf95; outline-offset: 4px; }
.life-close { padding: clamp(75px,10vw,128px) 24px clamp(78px,9vw,115px); background: var(--ivory); text-align: center; }
.life-close .rule { height: 44px; margin-bottom: 26px; }
.life-close .chapter { margin-bottom: 17px; }
.life-close h2 { max-width: 860px; margin: 0 auto; color: var(--ink); font-family: var(--serif); font-size: clamp(35px,5vw,61px); font-weight: 500; line-height: 1.13; text-wrap: balance; }
.life-close h2 em { color: var(--terra); }
.life-close-copy { margin: 20px auto 28px; color: rgba(21,40,58,.68); font-size: 13px; letter-spacing: .25px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 34px clamp(20px, 5vw, 64px); background: var(--ivory); border-top: 1px solid var(--line);
}
.footer-brand { font-family: var(--serif); font-weight: 600; letter-spacing: 4px; font-size: 16px; }
.footer-brand span { color: var(--brass); }
.footer-note { font-size: 12.5px; letter-spacing: 1.8px; color: rgba(21, 40, 58, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-memory-peek { right: 5vw; width: min(360px, calc(100vw - 44px)); }
  .band-grid, .band-grid.flip { grid-template-columns: 1fr; gap: 44px; }
  .band-grid.flip .band-copy { order: 2; }
  .band-grid.flip .frame { order: 1; }
  .frame::after { inset: 12px -12px -12px 12px; }
  .suite-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .suite-grid { grid-template-columns: 1fr; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding-top: 120px; padding-bottom: 32px; }
  .hero-memory-peek { position: relative; right: auto; bottom: auto; width: min(100%, 360px); margin: 26px 0 0 auto; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-sub { margin-bottom: 28px; }
  .btn { padding: 14px 28px; }
  .frame.arch img, .frame.arch::after { border-radius: 150px 150px 10px 10px; }
}

/* ---------- Product-photography framing for app shots ---------- */
.shot-stack { position: relative; padding: 0 10% 12% 0; }
.shot-stack.over-left { padding: 0 0 12% 10%; }
.shot-main {
  position: relative;
  background: #f1e7d2;                 /* warm linen mat */
  padding: clamp(10px, 1.6vw, 20px);
  border: 1px solid rgba(21, 40, 58, 0.09);
  border-radius: 8px;
  box-shadow: 0 46px 90px rgba(21, 40, 58, 0.22);
}
.shot-main::after {
  content: ''; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 1px solid var(--brass); border-radius: 8px; opacity: .5;
}
.shot-stack.over-left .shot-main::after { inset: 16px 16px -16px -16px; }
.shot-main img { width: 100%; border-radius: 4px; border: 1px solid rgba(21, 40, 58, 0.08); }
.shot-over {
  position: absolute; right: 0; bottom: 0; width: 48%;
  background: #fdfaf2;                 /* polaroid card */
  padding: 9px;
  border: 1px solid rgba(21, 40, 58, 0.08);
  border-radius: 6px;
  box-shadow: 0 28px 60px rgba(21, 40, 58, 0.3);
  transform: rotate(-2.4deg);
}
.shot-stack.over-left .shot-over { right: auto; left: 0; transform: rotate(2.4deg); }
.shot-over img { width: 100%; border-radius: 3px; border: 1px solid rgba(21, 40, 58, 0.07); }
@media (max-width: 920px) {
  .shot-stack { padding: 0 6% 14% 0; }
  .shot-stack.over-left { padding: 0 0 14% 6%; }
  .shot-over { width: 54%; }
}

/* ---------- Floating detail cards (the craft close-ups) ---------- */
.shot-stack { padding-top: 7%; }
.shot-stack.over-left { padding-top: 7%; }
.shot-chip {
  position: absolute; top: 0; width: 34%; z-index: 2;
  background: #fdfaf2; padding: 7px;
  border: 1px solid rgba(21, 40, 58, 0.09); border-radius: 7px;
  box-shadow: 0 22px 48px rgba(21, 40, 58, 0.28);
}
.shot-chip img { width: 100%; border-radius: 4px; }
.shot-chip.chip-right { right: 3%; transform: rotate(2.2deg); }
.shot-chip.chip-left { left: 3%; width: 30%; transform: rotate(-2.2deg); }
.shot-chip.chip-sm { width: 27%; }
@media (max-width: 920px) {
  .shot-chip { width: 38%; }
  .shot-chip.chip-left { width: 34%; }
}

/* Slideshow layouts: maintain the story and readable MemorySpread panel on small screens. */
@media (max-width: 980px) {
  .life-layout { grid-template-columns: minmax(270px,1fr) minmax(310px,380px); gap: 28px; padding-right: 5vw; padding-left: 5vw; }
  .life-quote { font-size: clamp(36px,5vw,55px); }
  .life-controls { right: 5vw; left: 5vw; }
  .life-tabs { gap: 12px; }
  .life-tabs button { letter-spacing: 1px; }
}
@media (max-width: 720px) {
  .life-showcase { height: auto; min-height: 1080px; }
  .life-photo { object-position: 57% center; }
  .life-veil { background: linear-gradient(180deg, rgba(11,24,31,.28) 0%, rgba(11,24,31,.18) 27%, rgba(11,24,31,.40) 56%, rgba(11,24,31,.72) 100%); }
  .life-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 23px; padding: 100px 22px 145px; }
  .life-copy { max-width: 560px; margin: 0; }
  .life-place { margin-bottom: 17px; font-size: 8px; letter-spacing: 2px; }
  .life-quote { max-width: 560px; font-size: clamp(34px,9vw,51px); }
  .life-caption { margin-top: 12px; font-size: 12px; }
  .life-note { display: none; }
  .life-memory { width: min(100%,410px); max-width: 410px; align-self: center; }
  .life-memory-cover { height: 132px; }
  .life-memory-content { padding: 15px 17px 17px; }
  .life-memory-content h3 { font-size: 16px; }
  .life-memory-columns { grid-template-columns: minmax(0,1fr) 122px; gap: 14px; margin-top: 13px; padding-top: 12px; }
  .life-memory-body { font-size: 11px; }
  .life-controls { right: 19px; bottom: 20px; left: 19px; gap: 10px; flex-wrap: wrap; }
  .life-arrow { width: 34px; height: 34px; }
  .life-progress-wrap { order: 2; flex: 0 0 100%; gap: 12px; }
  .life-tabs { flex: 1; justify-content: center; gap: 13px; }
  .life-tabs button { font-size: 7px; letter-spacing: .7px; }
  .life-counter { min-width: 43px; font-size: 8px; }
  .life-close h2 { font-size: clamp(34px,9vw,48px); }
}
@media (max-width: 390px) {
  .life-showcase { min-height: 1120px; }
  .life-memory-columns { grid-template-columns: 1fr; }
  .life-memory-facts { margin-top: 5px; }
  .life-memory-facts > div { padding: 6px 0; }
  .life-tabs { gap: 8px; }
  .life-tabs button { font-size: 6.5px; letter-spacing: .35px; }
}
@media (prefers-reduced-motion: reduce) {
  .life-slide, .life-memory, .life-copy, .life-tabs button, .life-arrow, .life-progress span { transition: none; transform: none; }
}
