/* Shared page-family styles for the home page's appended product story. */
.spotgram-story {
  --story-display: clamp(36px, 6.2vw, 92px);
  --story-heading: clamp(32px, 4.4vw, 66px);
  --story-label: 11px;
  --story-body: clamp(15px, 1.3vw, 18px);
  --story-section: clamp(88px, 11vw, 168px);
  --story-gutter: clamp(20px, 6vw, 96px);
  --story-ink: #192923;
  --story-paper: #f5f5ee;
  --story-accent: #b9cc8f;
  color: var(--text);
  font-family: var(--font-sans);
}
.spotgram-story *, .spotgram-story *::before, .spotgram-story *::after { box-sizing: border-box; }
.spotgram-story h2, .spotgram-story h3, .spotgram-story p, .spotgram-story figure { margin: 0; }
.spotgram-story h2 { font-size: var(--story-heading); font-weight: var(--font-weight-medium); line-height: 1.4; letter-spacing: -.045em; }
.spotgram-story h3 { font-size: clamp(20px, 1.9vw, 28px); font-weight: var(--font-weight-medium); line-height: 1.5; letter-spacing: -.03em; }
.spotgram-story p { font-size: var(--story-body); line-height: 2; }
.spotgram-story .story-label, .spotgram-story .story-kicker, .spotgram-story .story-coordinate { font-size: var(--story-label); font-weight: var(--font-weight-medium); letter-spacing: .12em; line-height: 1.8; }
.story-shell { padding-inline: var(--story-gutter); margin-inline: auto; max-width: 1600px; }
.story-intro { padding-top: 48px; padding-bottom: var(--story-section); }
.story-kicker { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }
.story-intro__heading { margin-top: var(--story-section); }
.story-intro__heading .story-label { margin-bottom: 30px; }
.spotgram-story .story-intro h2 { font-size: var(--story-display); }
.story-intro h2 .story-line__text > span { color: var(--muted); }
.story-intro__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 60px; }
.story-coordinate { color: var(--muted); }
.story-intro__bottom p { max-width: 560px; }
.story-window { height: 105svh; min-height: 640px; padding: 0 24px; }
.story-window__frame { height: 100%; position: relative; overflow: hidden; background: #2b4a50; }
.story-window__frame > img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; object-position: 50% 50%; }
.story-window__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,28,.65), rgba(7,23,28,.08)), linear-gradient(0deg, rgba(7,23,28,.3), transparent 45%); }
.story-window__copy { position: relative; color: #fff; padding: clamp(72px, 12vh, 140px) var(--story-gutter); height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.story-window__copy .story-label { margin-bottom: 42px; }
.story-window__copy > p:last-child { margin-top: 32px; }
.story-window__footer { position: absolute; inset: auto var(--story-gutter) 32px; display: flex; align-items: center; gap: 28px; color: #fff; }
.story-window__progress { height: 1px; max-width: 160px; flex: 1; background: #ffffff40; overflow: hidden; }
.story-window__progress i { display: block; height: 100%; background: #fff; transform-origin: left; }
.story-window__note { font-size: var(--story-label); letter-spacing: .16em; }
.story-app { padding-block: var(--story-section); }
.story-app__heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px 60px; align-items: end; }
.story-app__heading .story-label { grid-column: 1 / -1; }
.story-app__heading > p:last-child { color: var(--muted); }
.story-app__visual { padding-top: 64px; }
.story-app__visual img { display: block; width: 100%; height: auto; border-radius: 12px; }
.story-app__visual figcaption { font-size: var(--story-label); color: var(--muted); margin-top: 16px; text-align: right; letter-spacing: .04em; }
.story-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.story-features article { border-top: 1px solid var(--line); padding-top: 24px; }
.story-features .story-label { display: block; color: var(--muted); margin-bottom: 28px; }
.story-features p { color: var(--muted); margin-top: 18px; }
.story-memory { color: var(--story-paper); background: var(--story-ink); padding-top: var(--story-section); overflow: hidden; }
.story-memory__top { text-align: center; }
.story-memory__top .story-label { color: var(--story-accent); margin-bottom: 36px; }
.story-memory__top h2 .story-line__text > span { color: var(--story-accent); }
.story-memory__top > p:last-child { margin-top: 32px; color: #d0d7ce; }
.story-gallery { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: clamp(20px, 5vw, 80px); margin: 100px -5% 0; padding: 60px 0; }
.story-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-gallery__photo { min-width: 0; }
.story-gallery__photo img { border: 7px solid var(--story-paper); box-shadow: 0 24px 70px #00000030; }
.story-gallery__photo--left { transform: rotate(-8deg); }
.story-gallery__photo--right { transform: rotate(8deg); }
.story-gallery__photo--left img, .story-gallery__photo--right img { aspect-ratio: 4 / 5; }
.story-gallery__photo--center img { aspect-ratio: 3 / 4; }
.story-gallery__photo figcaption { font-size: var(--story-label); letter-spacing: .08em; margin-top: 20px; text-align: center; }
.story-memory__end { padding-block: 96px var(--story-section); text-align: center; }
.story-memory__end p { font-size: clamp(22px, 2.8vw, 40px); line-height: 1.7; letter-spacing: -.03em; margin-bottom: 32px; }
.story-memory__end .story-label { color: var(--story-accent); }
.story-sound { display: flex; height: 36px; align-items: center; justify-content: center; gap: 5px; margin-bottom: 36px; }
.story-sound i { background: var(--story-accent); width: 2px; height: 12px; }
.story-sound i:nth-child(2n) { height: 25px; }
.story-sound i:nth-child(3n) { height: 36px; }
.story-outro { padding-top: var(--story-section); text-align: center; overflow: hidden; }
.story-outro > .story-label { color: var(--muted); margin-bottom: 32px; }
.spotgram-story .story-outro h2 { font-size: clamp(34px, 5.2vw, 78px); }
.story-outro h2 + div > p:first-child { margin-top: 32px; color: var(--muted); }
.story-download { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--text); color: var(--bg); border-radius: 999px; text-decoration: none; font-size: var(--story-body); padding: 20px 28px; margin-top: 36px; transition: transform .35s ease, box-shadow .35s ease; }
.story-download:hover { transform: translateY(-3px); box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 12%, transparent); }
.story-download:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.story-download span { font-size: 24px; transition: transform .35s ease; }
.story-download:hover span, .story-download:focus-visible span { transform: translate(3px, -3px); }
.spotgram-story .story-outro__platform { font-size: var(--story-label); color: var(--muted); letter-spacing: .14em; margin-top: 20px; }
.story-wordmark { font-size: clamp(70px, 17vw, 260px); font-weight: var(--font-weight-medium); letter-spacing: -.075em; line-height: 1; margin: 100px 0 0; opacity: .1; }
.spotgram-story .story-line { display: block; letter-spacing: inherit; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.spotgram-story .story-line__text { display: block; letter-spacing: inherit; }
.spotgram-story .story-line__text > span { letter-spacing: inherit; }
.story-features article { position: relative; }
.story-features article::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--text); }
.story-app__visual { perspective: 1200px; }
.story-gallery__photo--center { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .spotgram-story { --story-display: clamp(26px, 7.8vw, 48px); --story-heading: clamp(26px, 7vw, 42px); }
  .spotgram-story .story-outro h2 { font-size: clamp(24px, 6.6vw, 42px); }
  .story-intro__bottom { display: block; margin-top: 36px; }
  .story-coordinate { display: none; }
  .story-kicker { font-size: 9px; letter-spacing: .05em; }
  .story-window { padding: 0 12px; min-height: 620px; height: 90svh; }
  .story-window__copy { padding-inline: 24px; }
  .story-window__copy h2 { font-size: clamp(22px, 6.2vw, 42px); }
  .story-app__heading { display: block; }
  .story-app__heading h2 { margin: 28px 0; }
  .story-app__visual { padding-top: 40px; }
  .story-features { grid-template-columns: 1fr; margin-top: 48px; gap: 32px; }
  .story-features .story-label { margin-bottom: 12px; }
  .story-features p { margin-top: 12px; }
  .story-gallery { margin: 44px -30% 0; gap: 24px; }
  .story-gallery__photo figcaption { font-size: 9px; }
  .story-gallery__photo img { border-width: 4px; }
  .story-window__footer { gap: 16px; inset-inline: 24px; }
  .story-window__note { letter-spacing: .05em; }
  .story-memory__end { padding-top: 40px; }
  .story-wordmark { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-download, .story-download span { transition: none; }
}
