/* John & Annie's Story — page-scoped styles layered on magazine.css.
   Tokens (--ink, --accent, --cream, etc.) come from magazine.css :root. */

/* ---------- Hero (header + portrait) ---------- */
.ja-hero { padding: 56px 0 60px; border-bottom: 1px solid var(--line); }
.ja-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.ja-h1 { font-size: clamp(40px, 5.2vw, 80px); line-height: 0.98; letter-spacing: -0.02em; margin: 18px 0 20px; }
.ja-h1 .em { color: var(--accent); }
.ja-lede { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--ink-3); max-width: 540px; }
.ja-hero-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }

/* ---------- TEDx video ---------- */
.ja-video-sec { text-align: center; }
.ja-video-head { max-width: 720px; margin: 0 auto 38px; }
.ja-video-head .sec-num { display: block; }
.ja-video-h { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.0; margin: 6px 0 14px; }
.ja-video-h .em { color: var(--accent); }
.ja-video-sub { color: var(--muted-2); font-size: 16px; line-height: 1.5; }
.ja-video-light .ja-video-sub { color: var(--ink-3); }
.ja-video-frame { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; background: #000; }
.ja-video-facade { position: absolute; inset: 0; cursor: pointer; }
.ja-video-facade img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.ja-video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.5)); }
.ja-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 26px; padding-left: 4px; box-shadow: 0 12px 44px rgba(0,0,0,0.45); transition: transform 0.2s ease; }
.ja-video-facade:hover .ja-video-play { transform: translate(-50%, -50%) scale(1.08); }
.ja-video-label { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }

/* ---------- Story ---------- */
.ja-story-wrap { max-width: 760px; }
.ja-story-wrap p { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.7; color: var(--ink-3); margin: 0 0 24px; }
.ja-story-wrap p:first-child { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.5; color: var(--ink); }
.ja-story-wrap .ja-beat { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--ink); margin: 4px 0 28px; }
.ja-story-fig { margin: 8px 0 32px; }
.ja-story-fig > image-slot { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.ja-story-cap { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }
.ja-pull {
  margin: 36px 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--accent);
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16; color: var(--ink);
}

/* ---------- Story arc headings ---------- */
.ja-arc { margin: 52px 0 22px; }
.ja-arc:first-child { margin-top: 0; }
.ja-arc-num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ja-arc-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.ja-arc-h .em { color: var(--accent); }

/* ---------- Results ---------- */
.ja-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ja-results-closer { margin: 36px auto 0; max-width: 720px; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; color: var(--cream); }
.ja-result { padding: 30px 28px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(246,244,237,0.04); }
.ja-result-tag { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.ja-result-tag.is-accent { color: var(--accent); }
.ja-result-before { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.12; color: var(--cream); }
.ja-result-arrow { font-size: 22px; color: var(--accent); margin: 16px 0; line-height: 1; }
.ja-result-after { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2vw, 28px); line-height: 1.08; color: var(--accent); }

/* ---------- LoveJAAM Today ---------- */
.ja-today-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.ja-today-copy .sec-num { display: block; }
.ja-today-h { font-size: clamp(32px, 4vw, 56px); line-height: 1.0; letter-spacing: -0.02em; margin: 8px 0 20px; }
.ja-today-h .em { color: var(--accent); }
.ja-today-copy p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: var(--ink-3); margin: 0 0 18px; }
.ja-today-copy p:last-child { margin-bottom: 0; }
.ja-today-proof { display: grid; gap: 16px; }
.ja-proof { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ja-proof-num { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; color: var(--accent); margin-bottom: 6px; }
.ja-proof-label { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-3); }

/* ---------- Closing CTA ---------- */
.ja-cta { text-align: center; border-top: 1px solid var(--line); }
.ja-cta-inner { max-width: 760px; margin: 0 auto; }
.ja-cta-h { font-size: clamp(40px, 5vw, 72px); line-height: 1.0; margin: 0 0 18px; }
.ja-cta-h .em { color: var(--accent); }
.ja-cta-sub { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.ja-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .ja-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ja-hero { padding: 40px 0 44px; }
  .ja-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ja-hero-media { aspect-ratio: 16 / 10; }
  .ja-today-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .ja-h1 { font-size: clamp(36px, 11vw, 60px); }
  .ja-video-play { width: 62px; height: 62px; font-size: 22px; }
  .ja-results-grid { grid-template-columns: 1fr; }
}

/* ---------- Book-a-Call modal (Calendly self-scheduling) ---------- */
.ja-book-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(11,11,10,0.62); display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto; }
.ja-book-modal { position: relative; width: 100%; max-width: 640px; margin: auto; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(11,11,10,0.35); }
.ja-book-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--ink); opacity: .55; cursor: pointer; }
.ja-book-close:hover { opacity: 1; }
.ja-book-head { margin-bottom: 18px; }
.ja-book-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ja-book-title { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 0; font-weight: 600; }
.ja-book-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ja-book-error { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.ja-book-calendly { min-width: 320px; height: 640px; }
.ja-book-center { text-align: center; padding: 12px 0 4px; }
.ja-book-done-btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; padding: 13px 26px; cursor: pointer; font-family: inherit; margin-top: 16px; }
@media (max-width: 640px) {
  .ja-book-modal { padding: 26px 20px; border-radius: 14px; }
}
