/* =========================================================================
   STEADY STATE · email sequence specimen pages (pre-webinar / post-webinar /
   pre-call). Shared by all three; tokens, type, band, lockup and footer come
   from ../assets/brand.css. Every font size carries +2px via var(--bump).
   Each email = a meta rail (number, job, send time, quadrant) + a dark-mode
   email client window (sender, subject, preview, body).
   ========================================================================= */

/* ------------------------------------------------------------ page head */
.seqhead { padding: clamp(76px, 13vh, 140px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.seqhead .eyebrow { margin-bottom: 22px; }
.seqhead .h1 { max-width: 22ch; }
.nw { white-space: nowrap; }
.seqhead .band { width: 150px; height: 24px; margin-top: 30px; }

/* phase jump chips (pre-webinar only) */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px auto 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(238, 243, 246, 0.02);
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: calc(12px + var(--bump)); color: var(--muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.jump a b { font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.jump a:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }

/* ---------------------------------------------------------------- phase */
.phase { padding-block: clamp(44px, 7vh, 76px) clamp(20px, 3vh, 36px); }
.phase + .phase { padding-top: clamp(56px, 9vh, 96px); }
.phase__head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  max-width: 1040px; margin: 0 auto clamp(30px, 4vw, 48px); padding-bottom: 18px; border-bottom: 1px solid var(--hair);
}
.phase__title {
  margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: calc(clamp(1.25rem, 2vw, 1.6rem) + var(--bump)); line-height: 1.1;
}
.phase__title span { color: var(--accent); margin-right: 12px; }
.phase__when { font-size: calc(13px + var(--bump)); color: var(--faint); letter-spacing: 0.03em; }

/* ---------------------------------------------------------- email rows */
.mails { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: flex; flex-direction: column; gap: clamp(30px, 4.4vw, 56px); }
.mail { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; scroll-margin-top: 24px; }

.mail__rail { position: sticky; top: 28px; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.mail__num {
  font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: 0.02em;
  font-size: calc(42px + var(--bump)); color: var(--accent);
}
.mail__job {
  margin-top: 12px; font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: calc(14px + var(--bump)); line-height: 1.3; color: var(--ink);
}
.mail__when { display: flex; gap: 9px; margin-top: 16px; font-size: calc(13px + var(--bump)); line-height: 1.45; color: var(--muted); }
.mail__when svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.mail__when b { display: block; color: var(--ink); font-weight: 700; }
.mail__q {
  margin-top: 16px; padding: 6px 11px; border-radius: 8px; background: var(--accent-soft); border: 1px solid rgba(12, 191, 240, 0.22);
  color: var(--accent-2); font-size: calc(10.5px + var(--bump)); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
}

/* ---------------------------------------------------- the email client */
.client {
  min-width: 0; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #111a20 0%, #0d1418 100%);
  border: 1px solid var(--hair-2);
  box-shadow: 0 46px 90px -56px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.client__head { padding: 22px clamp(20px, 3.2vw, 38px) 22px; border-bottom: 1px solid var(--hair); background: rgba(238, 243, 246, 0.015); }
.client__from { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* sender avatar: the office frame (1280x720, face at ~52% 23%), zoomed onto his face */
.client__av { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-3); border: 1px solid var(--hair-2); }
.client__av img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 23%; transform-origin: 52% 23%; transform: translate(-2%, 20%) scale(2.1); }
.client__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.client__who b { font-size: calc(15px + var(--bump)); font-weight: 700; color: var(--ink); }
.client__who span { font-size: calc(13px + var(--bump)); color: var(--faint); }
.client__subject {
  margin: 18px 0 0; font-family: var(--sans); font-weight: 800; letter-spacing: -0.012em; line-height: 1.25;
  font-size: calc(clamp(1.2rem, 1.8vw, 1.45rem) + var(--bump)); color: var(--ink); text-wrap: balance;
}
.client__preview { margin: 10px 0 0; font-size: calc(14px + var(--bump)); line-height: 1.5; color: var(--muted); }
.client__preview .client__pv {
  display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px; vertical-align: 1px;
  background: rgba(238, 243, 246, 0.06); color: var(--faint);
  font-size: calc(10px + var(--bump)); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}

.client__body { padding: 28px clamp(20px, 3.2vw, 38px) 34px; }
.client__body p { margin: 0 0 16px; max-width: 60ch; font-size: calc(16px + var(--bump)); line-height: 1.7; color: #d4dce1; text-wrap: pretty; }
.client__body b { color: var(--ink); font-weight: 700; }
.client__sign { margin-top: 24px !important; color: var(--ink) !important; font-weight: 700; }
.client__ps { margin: 22px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--muted) !important; }

/* merge tokens + link tokens */
.tok {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: calc(13px + var(--bump)); font-weight: 600;
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; vertical-align: 1px;
  background: rgba(238, 243, 246, 0.06); border: 1px solid var(--hair-2); color: var(--ink);
}
.tok--link { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(12, 191, 240, 0.38); }

/* numbered list (the three pillars, verbatim) */
.client__list { list-style: none; margin: 0 0 18px; padding: 0; max-width: 60ch; display: grid; gap: 10px; }
.client__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(238, 243, 246, 0.03); border: 1px solid var(--hair); }
.client__list b { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; color: var(--accent) !important; font-size: calc(15px + var(--bump)); }
.client__list span { font-size: calc(16px + var(--bump)); line-height: 1.55; color: var(--ink); }

/* quotes (real viewer comments) */
.client__body blockquote {
  margin: 0 0 12px; padding: 14px 18px; max-width: 60ch; border-radius: 4px 12px 12px 4px;
  border-left: 2px solid var(--accent); background: rgba(12, 191, 240, 0.05);
}
.client__body blockquote + p { margin-top: 22px; }
.client__body blockquote p { margin: 0; color: var(--ink); font-size: calc(15.5px + var(--bump)); line-height: 1.55; }
.client__body blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: calc(12px + var(--bump)); color: var(--faint); }

/* inline image (his CGM report) */
.client__fig { margin: 4px 0 22px; max-width: 62ch; }
.client__fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: 50% 50%; border-radius: 12px; background: #080c0f; border: 1px solid var(--hair-2); }
.client__fig figcaption { margin-top: 10px; font-size: calc(12.5px + var(--bump)); color: var(--faint); }

/* --------------------------------------------------- WhatsApp specimen */
.wa-wrap { max-width: 720px; margin: 0 auto; }
.wa { min-width: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--hair-2); background: #0a1014; box-shadow: 0 46px 90px -56px rgba(0, 0, 0, 0.95); }
.wa__bar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: #111a20; border-bottom: 1px solid var(--hair); }
.wa__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #06080a; border: 1px solid var(--hair-2); }
.wa__icon svg { width: 26px; height: 26px; }
.wa__title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.wa__title b { font-size: calc(15px + var(--bump)); color: var(--ink); }
.wa__title span { font-size: calc(12.5px + var(--bump)); color: var(--faint); }
.wa__feed { padding: 10px clamp(14px, 2.6vw, 28px) 28px; display: flex; flex-direction: column; gap: 10px; }
.wa__day { align-self: center; margin: 18px 0 6px; padding: 5px 12px; border-radius: 8px; background: #151f26; color: var(--muted); font-size: calc(11px + var(--bump)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.wa__msg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 560px; }
.bubble { position: relative; width: 100%; padding: 10px 14px 26px; border-radius: 4px 16px 16px 16px; background: #16212a; border: 1px solid rgba(238, 243, 246, 0.06); }
.bubble__name { display: block; margin-bottom: 4px; font-size: calc(13px + var(--bump)); font-weight: 800; color: var(--accent); }
.bubble p { margin: 0 0 10px; font-size: calc(15px + var(--bump)); line-height: 1.55; color: #dfe6ea; }
.bubble p:last-of-type { margin-bottom: 0; }
.bubble__time { position: absolute; right: 12px; bottom: 7px; font-size: calc(11px + var(--bump)); color: var(--faint); }
.wa__note { margin: 0; padding-left: 4px; font-size: calc(11px + var(--bump)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.wa__note b { color: var(--accent-2); font-weight: 800; }

/* attachments inside bubbles */
.att { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.att__cover { width: 66px; height: 84px; flex: none; border-radius: 6px; padding: 8px 6px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #0e1418, #06080a); border: 1px solid rgba(12, 191, 240, 0.35); }
.att__cover svg { width: 26px; height: 26px; }
.att__cover span { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: calc(8px + var(--bump)); line-height: 1.05; letter-spacing: 0.04em; color: var(--ink); }
.att__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.att__meta b { font-size: calc(14px + var(--bump)); color: var(--ink); overflow-wrap: anywhere; }
.att__meta span { font-size: calc(12px + var(--bump)); color: var(--faint); }
.att--img { display: block; padding: 0; overflow: hidden; }
.att--img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #080c0f; }
.att--voice { gap: 14px; }
.att__play { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.att__play::before { content: ""; margin-left: 3px; border-left: 12px solid var(--accent-ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.att__wave { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.att__wave i { display: block; width: 3px; flex: none; border-radius: 2px; background: rgba(238, 243, 246, 0.35); }
.att--video { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #080c0f; }
.att--video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; }
.att--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 10, 0.1), rgba(6, 8, 10, 0.75)); }
.att--video .att__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 54px; height: 54px; }
.att--video .att__cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: calc(12px + var(--bump)); font-weight: 700; color: var(--ink); }
.att__direction { margin: -4px 0 12px !important; font-size: calc(12.5px + var(--bump)) !important; color: var(--faint) !important; font-style: italic; }

.poll { margin: 2px 0 4px; }
.poll__q { font-weight: 700; color: var(--ink) !important; }
.poll ul { list-style: none; margin: 10px 0 0; padding: 0; }
.poll li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 2px; border-top: 1px solid var(--hair); font-size: calc(14.5px + var(--bump)); color: #dfe6ea; }
.poll li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--muted); }
.poll__foot { display: block; margin-top: 4px; font-size: calc(11.5px + var(--bump)); color: var(--faint); }

/* ------------------------------------------------------------ the foot */
.seqend { height: clamp(72px, 12vh, 120px); }

/* --------------------------------------------------------------- mobile */
@media (max-width: 880px) {
  .mail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mail__rail { position: static; padding-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .mail__num { font-size: calc(30px + var(--bump)); }
  .mail__job { margin-top: 0; }
  .mail__when { margin-top: 0; flex-basis: 100%; }
  .mail__when b { display: inline; margin-right: 6px; }
  .mail__q { margin-top: 0; }
}
@media (max-width: 560px) {
  .seqhead { padding-top: 64px; }
  .client__list li { padding: 11px 13px; grid-template-columns: 28px minmax(0, 1fr); }
  .client__list span { font-size: calc(15.5px + var(--bump)); }
  .jump a { padding: 10px 16px; letter-spacing: 0.1em; }
  .client { border-radius: 16px; }
  .client__head { padding: 18px 18px 18px; }
  .client__av { width: 40px; height: 40px; }
  .client__subject { margin-top: 14px; }
  .client__body { padding: 22px 18px 26px; }
  .client__body p { font-size: calc(15.5px + var(--bump)); line-height: 1.66; }
  .wa__feed { padding-inline: 10px; }
  .bubble { padding-inline: 12px; }
}
@media (max-width: 420px) {
  .tok { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .jump a { transition: none; }
}

/* --------------------------------------- JS off / reduced / ?thumb=1 */
html.no-js .band path, html.reduced .band path { stroke-dashoffset: 0; transition: none; }
html.reduced .jump a { transition: none; }

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
