/* =========================================================================
   Order Flow School - pitch site (design system A) - "Session Notes"

   Ivan's wrapper, deliberately the inverse of Edgar's funnel. Light, cool and
   clinical, near-black ink on a cool off-white, one deep teal accent, editorial
   restraint and a lot of air. Scrolling from this page into a deliverable
   should feel like a handoff, which is why nothing in here borrows his pale
   blue or his near-black.

   Palette and type locked in research/BUILD-SPINE.md. Cabinet Grotesk for
   display, General Sans for everything else, both self hosted from Fontshare.
   No third face. Background is a single faint cool wash plus grain, with
   hairline rules between sections and nothing else.

   Built by Ivan Furman.
   ========================================================================= */

/* Cabinet Grotesk ships no 600 on Fontshare, so the real 700 answers both the
   600 and 700 requests and 500 carries the lighter display cases. */
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #e9edf1;

  --text: #10151b;
  --text-2: #454e59;
  --text-3: #5f6b78;

  --line: #d6dce3;
  --line-soft: #e4e9ee;

  --accent: #0e5e58;
  --accent-2: #14746c;
  --accent-deep: #0a4641;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 94, 88, 0.10);

  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Cabinet Grotesk", "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-y: clamp(72px, 11vh, 132px);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------- Base --------------------------------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }

/* One page-level canvas: a single faint cool wash of the accent from the top
   left into bg. Sections stay transparent on top, so there are no seams. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(148deg, rgba(14, 94, 88, 0.06) 0%, rgba(14, 94, 88, 0.015) 42%, var(--bg) 78%), var(--bg);
}
/* grain, so the wash never bands */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* Hairline rules between sections. The canvas underneath never changes colour,
   so these read as editorial rules rather than a seam between two blocks. */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  height: 1px; background: var(--line);
}

/* ------------------------------ Typography ------------------------------ */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.arrow, .arrow-down {
  display: inline-block; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  vertical-align: middle; margin-left: 7px;
  transition: transform 0.3s var(--ease);
}
.arrow { transform: rotate(-45deg); }
.arrow-down { transform: rotate(45deg); margin-left: 8px; }

/* -------------------------------- Reveal -------------------------------- */
.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.hero__inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero__inner .reveal:nth-child(2) { transition-delay: 0.18s; }
.hero__inner .reveal:nth-child(3) { transition-delay: 0.3s; }

/* -------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 13px 26px; border-radius: 980px;
  font-family: var(--font); font-size: 1rem; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent); transition: transform 0.6s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(14, 94, 88, 0.45); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative; text-align: center;
  padding-top: clamp(76px, 12vh, 140px);
  padding-bottom: clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.hero__inner { position: relative; }
.hero__title {
  margin: 0 auto;
  max-width: 1000px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 2.95rem);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
/* the words carry the entrance, so the h1 itself never holds a transition GSAP
   could sample half-way through */
.hero__title.split { opacity: 1; transform: none; transition: none; }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(0.42em); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); will-change: opacity, transform, filter; }
.hero__title.is-in .word { opacity: 1; transform: none; filter: blur(0); }

.mark { position: relative; white-space: nowrap; color: var(--accent-deep); }
.mark::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -0.04em; height: 0.085em; background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.5s; }
.hero__title.is-in .mark::after { transform: scaleX(1); }

.hero__actions { margin-top: 40px; display: flex; justify-content: center; }
.hero__actions .arrow-down { animation: chevBob 2.2s var(--ease) infinite; }

/* -------------------------------- Player -------------------------------- */
.hplayer { margin: 44px auto 0; max-width: 760px; }
.hplayer__stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #0b0f13; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -34px rgba(16, 21, 27, 0.45);
}
.hplayer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b0f13; }
.hplayer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }

.hplayer__scrim { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.45s var(--ease); background: radial-gradient(120% 120% at 50% 45%, rgba(4, 10, 12, 0.14), rgba(4, 10, 12, 0.56)); }
.hplayer__stage:not([data-state="idle"]) .hplayer__scrim { opacity: 0; }

.hplayer__big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.4); background: var(--accent); transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease), border-color 0.4s var(--ease); }
.hplayer__big svg { width: 32px; height: 32px; fill: var(--accent-ink); margin-left: 4px; position: relative; z-index: 1; }
.hplayer__big-glow { position: absolute; inset: 0; border-radius: 50%; animation: hpPulse 2.8s ease-out infinite; }
.hplayer__big:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--accent-2); border-color: #fff; }
.hplayer__stage:not([data-state="idle"]) .hplayer__big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }
@keyframes hpPulse { 0% { box-shadow: 0 0 0 0 rgba(20, 116, 108, 0.5); } 70% { box-shadow: 0 0 0 22px rgba(20, 116, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 116, 108, 0); } }

.hplayer__cc { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); max-width: 84%; text-align: center; font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.06rem); line-height: 1.4; color: #fff; pointer-events: none; transition: bottom 0.3s var(--ease); }
.hplayer__cc span { background: rgba(6, 10, 12, 0.66); padding: 3px 10px; border-radius: 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hplayer__cc:empty { display: none; }
.hplayer__stage:hover .hplayer__cc, .hplayer__stage[data-state="paused"] .hplayer__cc { bottom: 82px; }

.hplayer__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(to top, rgba(4, 10, 12, 0.86), rgba(4, 10, 12, 0.4) 60%, transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.hplayer__stage:hover .hplayer__bar, .hplayer__stage[data-state="paused"] .hplayer__bar, .hplayer__stage.hp-touch .hplayer__bar { opacity: 1; transform: none; }
.hplayer__stage[data-state="idle"] .hplayer__bar { opacity: 0; pointer-events: none; }

.hp-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: none; background: transparent; color: #fff; cursor: pointer; border-radius: 8px; opacity: 0.84; transition: opacity 0.2s var(--ease), background 0.2s var(--ease); }
.hp-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.hp-btn svg { width: 20px; height: 20px; fill: #fff; }
.hp-btn--mute svg, .hp-btn--full svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-i-play, .hp-i-sound { display: none; }
.hplayer__stage[data-state="paused"] .hp-i-pause, .hplayer__stage[data-state="idle"] .hp-i-pause { display: none; }
.hplayer__stage[data-state="paused"] .hp-i-play, .hplayer__stage[data-state="idle"] .hp-i-play { display: block; }
.hp-time { font-size: 0.72rem; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }

.hp-scrub { position: relative; flex: 1 1 auto; height: 28px; display: flex; align-items: center; cursor: pointer; }
.hp-scrub__track { position: relative; width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); transition: height 0.15s var(--ease); }
.hp-scrub:hover .hp-scrub__track, .hp-scrub.dragging .hp-scrub__track { height: 6px; }
.hp-scrub__buf { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.32); }
.hp-scrub__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), #7fc2b9); box-shadow: 0 0 10px rgba(20, 116, 108, 0.6); }
.hp-scrub__knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform 0.18s var(--ease); box-shadow: 0 1px 5px rgba(4, 10, 12, 0.45); }
.hp-scrub:hover .hp-scrub__knob, .hp-scrub.dragging .hp-scrub__knob { transform: translate(-50%, -50%) scale(1); }

.hp-speed { position: relative; }
.hp-btn--speed { width: auto; min-width: 44px; padding: 0 10px; font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-speed__menu { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); min-width: 80px; padding: 6px; background: rgba(9, 14, 18, 0.97); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; box-shadow: 0 16px 40px rgba(4, 10, 12, 0.5); display: none; flex-direction: column; gap: 2px; }
.hp-speed__menu.open { display: flex; }
.hp-speed__menu button { border: none; background: transparent; color: rgba(255, 255, 255, 0.82); font-family: var(--font); font-size: 0.8rem; font-weight: 600; padding: 9px 10px; border-radius: 7px; cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; }
.hp-speed__menu button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hp-speed__menu button.is-on { background: rgba(20, 116, 108, 0.6); color: #fff; }

@media (max-width: 560px) {
  .hp-btn { width: 36px; height: 36px; }
  .hp-btn--full { display: none; }
  .hplayer__cc { bottom: 62px; }
}

/* Hero placeholder label: sits over Ivan's poster frame until heroEmbed is set. */
.hplayer__ph { position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; justify-items: center; gap: 7px; text-align: center; padding: 60px 12% 24px; pointer-events: none; background: linear-gradient(180deg, rgba(6, 10, 12, 0) 0%, rgba(6, 10, 12, 0.78) 100%); }
.hplayer__ph-eyebrow { font-family: var(--font); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #8fd0c7; }
.hplayer__ph-line { font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.hplayer__stage[data-state="embed"] .hplayer__ph, .hplayer__stage[data-state="playing"] .hplayer__ph { display: none; }
@media (max-width: 560px) { .hplayer__ph { padding: 44px 6% 16px; } .hplayer__ph-line { display: none; } }

/* ----------------------------- Deliverables ----------------------------- */
.deliverables { padding-top: clamp(32px, 5vh, 60px); }
.deliverables__title { text-align: center; margin-bottom: clamp(48px, 8vh, 84px); }

.group { margin-bottom: clamp(64px, 10vh, 112px); }
.group:last-child { margin-bottom: 0; }
.group__head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 40px; }
.group__rule { flex: 1; height: 1px; background: var(--line); max-width: 220px; transform: scaleX(0); transform-origin: center; transition: transform 0.9s var(--ease); }
.group__head.is-in .group__rule { transform: scaleX(1); }
.group__meta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.group__label { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.group__count { font-family: var(--font); font-size: 0.72rem; font-weight: 600; color: var(--text-3); letter-spacing: 0.2em; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.grid--1 { grid-template-columns: 1fr; }

/* Preview card: a framed browser window plus a clear type hierarchy */
.pcard {
  appearance: none; font: inherit; color: inherit; text-align: left; position: relative;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px 12px 20px; cursor: pointer; display: flex; flex-direction: column;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 10px 30px -22px rgba(16, 21, 27, 0.30);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.pcard:hover { border-color: rgba(14, 94, 88, 0.35); box-shadow: 0 30px 60px -30px rgba(16, 21, 27, 0.32), 0 0 0 1px rgba(14, 94, 88, 0.08); }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(14, 94, 88, 0.09), transparent 44%); opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; }
.pcard:hover::after { opacity: 1; }

/* the window frame */
.thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; border: 1px solid var(--line-soft); box-shadow: 0 14px 30px -20px rgba(16, 21, 27, 0.35); }
.thumb--wide { aspect-ratio: 16 / 7; }
.thumb__bar { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8)); border-bottom: 1px solid rgba(16, 21, 27, 0.08); backdrop-filter: blur(6px); }
.thumb__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(16, 21, 27, 0.14); }
.thumb__bar i:nth-child(1) { background: #ff5f57; } .thumb__bar i:nth-child(2) { background: #febc2e; } .thumb__bar i:nth-child(3) { background: #28c840; }
.thumb__url { margin-left: 8px; flex: 1; height: 14px; border-radius: 7px; background: rgba(16, 21, 27, 0.06); display: flex; align-items: center; padding: 0 8px; font-family: var(--font); font-size: 8.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.thumb__img { position: absolute; inset: 26px 0 0 0; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: 50% 0%; transition: object-position 2.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s var(--ease); }
.pcard:hover .thumb__img { object-position: 50% 38%; }
.thumb--wide .thumb__img { object-position: 50% 50%; }
.pcard:hover .thumb--wide .thumb__img { object-position: 50% 50%; transform: scale(1.02); }
.thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* Preview still to be shot: a deliberate labelled frame, never a broken image.
   Swap the whole .thumb__ph for <img class="thumb__img" ...> once shot. */
.thumb__ph { position: absolute; inset: 26px 0 0 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px; text-align: center; background: linear-gradient(180deg, var(--surface-2), #dfe5ea); }
.thumb__ph img { width: clamp(38px, 14%, 62px); height: auto; opacity: 0.22; border-radius: 8px; }
.thumb__ph span { font-family: var(--font); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

/* type */
.pcard__body { padding: 16px 8px 0; }
.pcard__kicker { display: block; font-family: var(--font); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pcard__title { display: block; font-family: var(--display); font-size: 1.36rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; color: var(--text); }
.pcard__desc { display: block; margin-top: 7px; font-size: 0.94rem; line-height: 1.5; color: var(--text-2); }
.pcard__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.87rem; font-weight: 600; color: var(--accent); transition: gap 0.3s var(--ease); }
.pcard:hover .pcard__link { gap: 10px; }
.pcard__link .arrow { margin-left: 0; border-color: currentColor; }
.pcard--wide .pcard__body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.pcard--wide .pcard__link { margin-top: 0; }

/* --------------------------------- CTA ---------------------------------- */
.cta { text-align: center; overflow: hidden; }
.cta__wrap { position: relative; }
.cta__title { margin: 0 0 22px; font-family: var(--display); font-size: clamp(2.4rem, 6.5vw, 3.9rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.cta__sub { margin: 0 auto 36px; max-width: 54ch; font-size: 1.02rem; line-height: 1.6; color: var(--text-2); }
.cal-inline { position: relative; width: min(900px, 100%); margin: 0 auto; height: min(760px, 92vh); border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -44px rgba(16, 21, 27, 0.4); }
.cal-inline iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------- Footer -------------------------------- */
/* Branding-only banner, height exactly 1.5x the branding, centred in it. */
.footer { position: relative; height: 42px; background: rgba(16, 21, 27, 0.04); border-top: 1px solid var(--line); }
.footer__inner { height: 100%; display: flex; align-items: center; justify-content: center; padding-inline: var(--gutter); }
.footer__note { font-family: var(--font); font-size: 0.72rem; font-weight: 600; line-height: 28px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); text-align: center; }

/* ------------------------------ Sticky CTA ------------------------------ */
/* Pitch site only. It never appears on any page of Edgar's funnel. */
.stickycta {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 24px;
  border-radius: 980px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em;
  box-shadow: 0 12px 40px -12px rgba(14, 94, 88, 0.5), 0 0 0 1px rgba(16, 21, 27, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.stickycta.is-visible { opacity: 1; visibility: visible; transform: translate(var(--mgx, 0px), var(--mgy, 0px)) scale(1); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.stickycta.is-visible:hover { transform: translate(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px)) scale(1.02); }
.stickycta__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: stickyPulse 2.4s var(--ease) infinite; }
@keyframes stickyPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
@media (max-width: 560px) { .stickycta { left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); justify-content: center; } }

/* ------------------------------- Lightbox ------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 64px); background: rgba(16, 21, 27, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__inner { max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lightbox__stage { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--surface); max-height: 78vh; transform-origin: top left; transition: transform 0.5s var(--ease); will-change: transform; }
.lightbox__stage img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; display: block; }
.lightbox__stage--embed { height: 78vh; background: #ffffff; }
.lightbox__frame { width: 100%; height: 100%; border: 0; display: block; background: #ffffff; }
.lightbox__open { margin-left: 12px; font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.4); transition: color 0.3s var(--ease); }
.lightbox__open:hover { color: #fff; }
.lightbox__placeholder { padding: clamp(28px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.lightbox__placeholder img { width: 72px; height: auto; opacity: 0.35; border-radius: 10px; }
.lightbox__placeholder p { margin: 0; font-size: 0.92rem; color: var(--text-3); max-width: 46ch; }
.lightbox__title { margin: 0; font-family: var(--display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.lightbox__close { position: absolute; top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); transform: rotate(90deg); }

/* ------------------------------- Keyframes ------------------------------ */
@keyframes chevBob { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(2px, 2px); } }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding-block: clamp(56px, 8vh, 80px); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .pcard--wide .pcard__body { grid-template-columns: 1fr; }
  .pcard--wide .pcard__link { margin-top: 14px; }
  .thumb--wide { aspect-ratio: 16 / 9; }
  .group__rule { max-width: 60px; }
  .hero__actions .btn { width: 100%; }
  .cta { padding-bottom: 104px; }   /* the sticky pill never covers the last line */
  .stickycta { padding: 12px 22px; }
  .cal-inline { height: 80vh; border-radius: 16px; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox, .lightbox__stage { transition: none; }
  .hplayer__big-glow, .hero__actions .arrow-down { animation: none; }
  .mark::after { transition: none; transform: scaleX(1); }
  .group__rule { transition: none; transform: scaleX(1); }
  .thumb__img, .pcard { transition: none; }
  .stickycta { transform: none; transition: opacity 0.25s linear, visibility 0s linear 0.25s; }
  .stickycta.is-visible { transform: none; transition: opacity 0.25s linear; }
  .stickycta__dot { animation: none; }
}
html.reduced *, html.reduced *::before, html.reduced *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; transition-delay: 0s !important; }

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
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; }
@media (max-width: 700px) { .tag, [class*="badge"], [class*="pill"] { margin-left: 0; } }
@media (max-width: 420px) { .tok-merge, .tok-link, code { white-space: normal; } }

/* ------------------------- Sender options (pitch site) ------------------- */
/* Agency branding lockup, configured in PITCH_CONFIG.brand and removed when
   empty. It is empty on this build, so nothing renders top-left. */
.agency-bar { position: absolute; top: clamp(18px, 3vw, 28px); left: clamp(18px, 3vw, 32px); z-index: 6; display: inline-flex; align-items: center; gap: 10px; }
.agency-bar a { display: inline-flex; align-items: center; gap: 10px; }
.agency-bar img { height: 26px; width: auto; display: block; }
.agency-bar span { font-family: var(--font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }

/* Hero embed (Loom / Wistia), written in by main.js once heroEmbed is set. */
.hplayer__embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0b0f13; }
.hplayer__stage[data-state="embed"] .hplayer__scrim,
.hplayer__stage[data-state="embed"] .hplayer__poster,
.hplayer__stage[data-state="embed"] .hplayer__big,
.hplayer__stage[data-state="embed"] .hplayer__bar,
.hplayer__stage[data-state="embed"] .hplayer__cc { display: none; }
