/* ==========================================================================
   F01 · Email Marketing — scroll stories (Options A, B, C)
   Sticky, scroll-driven sections (same idea as H018 options 5-8):
   one feature at a time, shown through a real-looking email.
   ========================================================================== */
.sx { --ink: #1c1f24; --muted: #5b6070; --soft: #8a8f9c; --blue: #162ade; --line: rgba(24, 27, 33, .1); --p: 0;
  position: relative; font-family: Inter, Arial, sans-serif; color: var(--ink); border-top: 1px solid var(--line); overflow: visible; overflow-x: clip; }
.sx *, .sx *::before, .sx *::after { box-sizing: border-box; }
.sx img { display: block; max-width: 100%; }
.sx p { margin: 0; } .sx h2, .sx h3, .sx h4 { margin: 0; font-weight: 400; }
.sx-optbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; padding: 56px 20px 0; }
@media (min-width: 1024px) { .sx-optbar { padding: 72px 84px 0; } }
.sx-opt { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff4d6; color: #7a5600; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.sx-opt b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1c1f24; color: #fff; font-size: 12px; }
.sx-optbar small { color: var(--soft); font-size: 12px; }
.sx-head { max-width: 1320px; margin: 0 auto; padding: 22px 20px 40px; }
@media (min-width: 1024px) { .sx-head { padding: 22px 84px 48px; } }
.sx-eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.sx-head h2 { margin-top: 14px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.025em; max-width: 18ch; }

.sx-track { position: relative; height: calc(var(--n) * 85vh + 100vh); }
.sx-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* ---------- the real email ---------- */
.rm { --acc: #111; --tint: #f4f2ee; width: 600px; background: #fff; color: #222; font-family: Helvetica, Arial, sans-serif; text-align: center; }
.rm__pre { display: flex; justify-content: space-between; padding: 8px 24px; background: #f6f6f4; color: #8f8f8f; font-size: 10px; }
.rm__pre u { color: #6f6f6f; }
.rm__head { padding: 22px 24px 14px; }
.rm__logo { font-weight: 800; font-size: 24px; letter-spacing: .16em; color: var(--acc); }
.rm.serif .rm__logo { font: 600 27px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .34em; color: #111; }
.rm__nav { display: flex; justify-content: center; gap: 22px; padding: 12px 0; margin-top: 16px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; color: #444; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rm__strip { padding: 9px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rm__hero { width: 100%; height: 330px; object-fit: cover; }
.rm__intro { padding: 34px 48px 8px; }
.rm__kicker { color: var(--acc); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.rm__h { margin-top: 10px; font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; color: #111; }
.rm.serif .rm__h { font: 500 44px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.01em; }
.rm__p { margin-top: 14px; color: #555; font-size: 14.5px; line-height: 1.65; }
.rm__btn { display: inline-block; margin: 22px 0 6px; padding: 15px 34px; border-radius: var(--r, 0); background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rm__code { display: inline-block; margin-top: 14px; padding: 10px 18px; border: 1.5px dashed var(--acc); color: var(--acc); font: 700 15px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.rm__sec { padding: 30px 24px 10px; color: #111; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.rm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 24px 26px; }
.rm__grid.g2 { grid-template-columns: repeat(2, 1fr); }
.rm__grid figure { margin: 0; }
.rm__grid .ph { aspect-ratio: 1; background: var(--tint); overflow: hidden; }
.rm__grid .ph img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.rm__grid .ph.photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.rm__grid figcaption { margin-top: 9px; font-size: 12.5px; color: #222; line-height: 1.35; }
.rm__grid figcaption span { display: block; color: #777; font-size: 12px; }
.rm__grid figcaption u { display: inline-block; margin-top: 6px; color: var(--acc); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; }
.rm__split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--tint); text-align: left; }
.rm__split img { width: 100%; height: 230px; object-fit: cover; }
.rm__split div { padding: 22px 26px; }
.rm__split b { display: block; font-size: 19px; line-height: 1.2; color: #111; }
.rm.serif .rm__split b { font: 500 24px/1.1 "Cormorant Garamond", Georgia, serif; }
.rm__split p { margin-top: 8px; color: #555; font-size: 13px; line-height: 1.55; }
.rm__split u { display: inline-block; margin-top: 12px; color: var(--acc); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rm__list { padding: 10px 40px 26px; text-align: left; }
.rm__list div { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee; }
.rm__list img { width: 70px; height: 70px; object-fit: cover; }
.rm__list b { display: block; font-size: 15px; color: #111; } .rm__list span { color: #777; font-size: 12.5px; }
.rm__list em { font-style: normal; color: var(--acc); font-weight: 800; font-size: 18px; } .rm__list em small { display: block; color: #999; font-size: 10px; font-weight: 600; text-align: right; }
.rm__perks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.rm__perks div { padding: 18px 10px; color: #333; font-size: 11.5px; line-height: 1.4; }
.rm__perks div + div { border-left: 1px solid #eee; }
.rm__perks i { display: block; margin: 0 auto 6px; width: 22px; height: 22px; border: 1.5px solid var(--acc); border-radius: 50%; }
.rm__foot { padding: 28px 40px 34px; background: #f7f7f5; color: #8a8a8a; font-size: 11px; line-height: 1.7; }
.rm__social { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.rm__social i { width: 30px; height: 30px; border-radius: 50%; background: #1f1f1f; }
.rm__foot u { color: #555; }

/* ---------- mail client frame ---------- */
.mc { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 60px 120px -50px rgba(10, 14, 30, .55), 0 0 0 1px rgba(24, 27, 33, .08); }
.mc__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f6f6f7; border-bottom: 1px solid var(--line); flex: none; }
.mc__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e2e5; }
.mc__bar i:nth-child(1) { background: #ff6159; } .mc__bar i:nth-child(2) { background: #ffbd2e; } .mc__bar i:nth-child(3) { background: #28c941; }
.mc__hdr { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none; text-align: left; }
.mc__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.mc__subj { font-size: 15px; font-weight: 600; line-height: 1.3; }
.mc__from { margin-top: 2px; color: var(--muted); font-size: 12px; }
.mc__from b { color: var(--ink); font-weight: 600; }
.mc__meta { text-align: right; color: var(--soft); font-size: 11.5px; }
.mc__chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 9px; border-radius: 999px; background: #e8ebff; color: var(--blue); font-size: 11px; font-weight: 600; white-space: nowrap; }
.mc__chip.green { background: #e3f4ec; color: #12805c; } .mc__chip.amber { background: #fff2cc; color: #8a6200; }
.mc__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mc__body { position: relative; flex: 1; overflow: hidden; background: #eceef2; }
.mc__scroll { position: absolute; left: 50%; top: 0; transform-origin: top center; }

/* ---------- shared step mechanics ---------- */
.sx-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.sx-shot.is-on { opacity: 1; visibility: visible; }
.sx-cap { display: none; }

/* =================== OPTION A — list + mail client =================== */
.sxA .sx-sticky { display: grid; grid-template-columns: 1fr; align-items: center; }
.sxA__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; width: 100%; max-width: 1320px; height: 100%; margin: 0 auto; padding: 72px 84px 40px; }
.sxA__count { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.sxA__count b { font-size: 56px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.sxA__count span { color: var(--soft); font-size: 16px; }
.sxA__texts { position: relative; min-height: 190px; margin-top: 14px; }
.sxA__t { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.sxA__t.is-on { opacity: 1; transform: none; }
.sxA__t h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.02em; }
.sxA__t p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 44ch; }
.sxA__list { position: relative; margin: 18px 0 0; padding: 0 0 0 22px; list-style: none; display: grid; gap: 2px; }
.sxA__list::before, .sxA__list::after { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.sxA__list::before { background: var(--line); }
.sxA__list::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--p)); }
.sxA__list li { padding: 4px 0; color: var(--soft); font-size: 13px; transition: color .3s; }
.sxA__list li.is-on { color: var(--ink); font-weight: 600; }
.sxA__list li.is-done { color: var(--muted); }
.sxA__stage { position: relative; height: min(78vh, 760px); }

/* =================== OPTION B — big phone, brand colour =================== */
.sxB .sx-sticky { transition: background-color .8s ease; background: var(--bgc, #f3f4f7); }
.sxB__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; height: 100%; max-width: 1320px; margin: 0 auto; padding: 60px 84px 30px; }
.sxB__texts { position: relative; min-height: 260px; }
.sxB__t { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.sxB__t.is-on { opacity: 1; transform: none; }
.sxB__t .n { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.sxB__t h3 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.025em; }
.sxB__t p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 38ch; }
.sxB__phone { position: relative; width: 340px; height: min(82vh, 700px); padding: 11px; border-radius: 54px; background: #0f0f10; box-shadow: 0 70px 120px -50px rgba(0, 0, 0, .7), inset 0 0 0 2px #2d2d30; }
.sxB__screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; }
.sxB__status { position: relative; z-index: 3; display: flex; justify-content: space-between; height: 44px; padding: 15px 28px 0; background: #fff; font-size: 13px; font-weight: 600; }
.sxB__status::after { content: ""; position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #0f0f10; }
.sxB .sx-shot { top: 44px; }
.sxB .mhd { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 11.5px; color: var(--muted); }
.sxB .mhd .mc__av { width: 36px; height: 36px; font-size: 11px; }
.sxB .mhd b { display: block; color: var(--ink); font-size: 13px; }
.sxB .mhd strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.sxB .mbody { position: absolute; left: 0; right: 0; top: 74px; bottom: 0; overflow: hidden; background: #fff; }
.sxB__side { display: grid; gap: 8px; justify-items: start; }
.sxB__dot { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 12.5px; transition: color .3s; }
.sxB__dot i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; transition: transform .3s, opacity .3s; }
.sxB__dot.is-on { color: var(--ink); font-weight: 600; } .sxB__dot.is-on i { opacity: 1; transform: scale(1.6); background: var(--blue); }
.sxB__chip { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: rgba(20, 22, 30, .88); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; backdrop-filter: blur(8px); }

/* =================== OPTION C — stacking email cards =================== */
.sxC .sx-sticky { background: radial-gradient(80% 70% at 70% 40%, #eef0ff 0%, #f7f7f9 60%); }
.sxC__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; height: 100%; max-width: 1320px; margin: 0 auto; padding: 60px 84px 30px; }
.sxC__texts { position: relative; min-height: 240px; }
.sxC__t { position: absolute; inset: 0; opacity: 0; transform: translateX(-16px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.sxC__t.is-on { opacity: 1; transform: none; }
.sxC__t .n { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sxC__t .n b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; letter-spacing: 0; }
.sxC__t h3 { margin-top: 16px; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.06; letter-spacing: -.02em; }
.sxC__t p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.sxC__bar { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; margin-top: 26px; }
.sxC__bar i { height: 4px; border-radius: 2px; background: rgba(24, 27, 33, .12); overflow: hidden; }
.sxC__bar i::after { content: ""; display: block; height: 100%; width: calc(var(--f, 0) * 100%); background: var(--blue); }
.sxC__deck { position: relative; height: min(80vh, 760px); }
.sxC .card { position: absolute; left: 50%; top: 0; width: min(560px, 100%); height: 100%; margin-left: max(-280px, -50%); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -40px rgba(10, 14, 30, .55), 0 0 0 1px rgba(24, 27, 33, .06);
  transform: translateY(calc((1 - var(--o, 0)) * 110%)) scale(calc(1 - var(--dep, 0) * .045)) translateY(calc(var(--dep, 0) * -26px)); transition: transform .12s linear; will-change: transform; }
.sxC .card .mbody { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; overflow: hidden; background: #fff; }
.sxC .card .mhd { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11.5px; color: var(--muted); }
.sxC .card .mhd .mc__av { width: 38px; height: 38px; }
.sxC .card .mhd b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.sxC .card::after { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 30, calc(var(--dep, 0) * .12)); pointer-events: none; }

/* option B/C structure helpers */
.sxB .phonebox { position: absolute; inset: 0; }
.sxC .cwrap { display: contents; }

/* =================== mobile: plain stacked list =================== */
@media (max-width: 900px) {
  .sx-track { height: auto !important; }
  .sx-sticky { position: relative; height: auto; overflow: visible; background: none !important; }
  .sxA__grid, .sxB__grid, .sxC__grid { display: block; height: auto; padding: 0 16px 40px; }
  .sxA__texts, .sxA__list, .sxA__count, .sxB__texts, .sxB__side, .sxC__texts, .sxC__bar, .sxB__status { display: none; }
  .sxA__stage, .sxC__deck { height: auto; }
  .sxB__phone { width: 100%; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .sxB__screen { height: auto; border-radius: 0; background: none; overflow: visible; }
  .sx-shot { position: relative; inset: auto; top: 0 !important; opacity: 1; visibility: visible; margin: 0 0 40px; }
  .sx-cap { display: block; margin: 0 0 14px; }
  .sx-cap .n { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
  .sx-cap h3 { margin-top: 6px; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
  .sx-cap p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .sx-shot > .mc { height: 520px; }
  .sxB .phonebox { position: relative; height: 560px; border: 9px solid #0f0f10; border-radius: 36px; overflow: hidden; background: #fff; }
  .sxB .mbody { top: 74px; }
  .sxC .cwrap { display: block; margin-bottom: 40px; }
  .sxC .card { position: relative; left: auto; margin: 0; width: 100%; height: 540px; transform: none !important; }
  .sxC .card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sx * { transition: none !important; } }
