/* =============================================================
   7days — Story / Founder page
   Depends on common.css (tokens, header, buttons, container).
   ============================================================= */

.page-story { background: var(--c-paper); }

/* ---- Fade-up on scroll (safe: visible by default, JS adds motion) ---- */
.s-up { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .s-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .s-up.is-in { opacity: 1; transform: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.story-hero {
  padding: clamp(104px, 16vh, 180px) 0 clamp(48px, 7vh, 96px);
}
.story-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story-hero .eyebrow { color: var(--c-accent); }
.story-h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 16px 0 0;
}
.story-h1 em { font-style: italic; color: var(--c-accent); }
.story-meta {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  text-transform: uppercase;
}
.story-lead {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.story-hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.story-portrait {
  position: relative;
  border-radius: var(--r-md, 16px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px rgba(178,30,53,0.35),
              0 40px 80px -36px rgba(14,14,16,0.6);
}
.story-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.story-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,14,16,0.35));
  pointer-events: none;
}

/* ============================================================
   TIMELINE / CHAPTERS
   ============================================================ */
.story-timeline { padding: clamp(24px, 5vh, 64px) 0 clamp(48px, 8vh, 110px); }
.story-track {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: clamp(28px, 4vw, 56px);
}
.story-track::before {
  content: "";
  position: absolute;
  left: clamp(6px, 1vw, 12px);
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-line));
}
.chapter { position: relative; padding: clamp(22px, 3.4vh, 40px) 0; }
.chapter + .chapter { border-top: 1px solid var(--c-line-soft); }
.chapter::before {
  content: "";
  position: absolute;
  left: calc(clamp(28px, 4vw, 56px) * -1 + clamp(6px, 1vw, 12px) - 5px);
  top: clamp(30px, 4.2vh, 50px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-paper), 0 0 0 5px rgba(178,30,53,0.25);
}
.chapter-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.chapter-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 8px 0 12px;
}
.chapter-body {
  max-width: 62ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.64;
  color: var(--c-muted);
}

/* ============================================================
   PROMISE / WHY
   ============================================================ */
.story-promise {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: clamp(56px, 10vh, 120px) 0;
}
.story-promise .container {
  max-width: 900px;
}
.story-promise .eyebrow { color: var(--c-accent); }
.story-promise h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
  color: #fff;
}
.story-promise p {
  max-width: 64ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.66;
  color: rgba(255,255,255,0.74);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.story-cta {
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 9vh, 104px) 0;
}
.story-cta h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: #fff;
}
.story-cta .btn {
  background: #fff;
  color: var(--c-ink);
}
.story-cta .btn:hover { background: rgba(255,255,255,0.88); }
.story-cta .back {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .story-hero .container { grid-template-columns: 1fr; }
  .story-portrait { max-width: 420px; order: -1; }
}
