@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/bc-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bc-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bc-800.woff2") format("woff2"); }

:root {
  --navy: #14213D;
  --stock: #0F1830;
  --coral: #FF6B5B;
  --cream: #F4EDE0;
  --max: 1440px; /* content stops growing here; backgrounds stay full-bleed */
  --gutter: max(clamp(16px, 4vw, 56px), calc((100vw - var(--max)) / 2));
  --rail-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* coarse film grain: dark speckle for coral fields, coral speckle for navy fields */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .34 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .42 0 0 0 0 .357 0 0 0 .45 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* folded tape flag, authored */
  --tape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='44' viewBox='0 0 54 44'%3E%3Cdefs%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='150%25'%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='1.6' flood-color='%23000' flood-opacity='.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cpolygon points='0,0 54,0 54,28 40,40 0,40' fill='%23FF6B5B'/%3E%3Cpolygon points='40,40 54,28 40,28' fill='%23B8443A'/%3E%3Cline x1='0' y1='7' x2='54' y2='7' stroke='%23000' stroke-opacity='.2'/%3E%3C/g%3E%3C/svg%3E");
  /* grease-pencil X, authored with displaced strokes */
  --grease: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Cdefs%3E%3Cfilter id='g' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06 .12' numOctaves='3' seed='4' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='9'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23g)' stroke='%23F4EDE0' stroke-width='9' stroke-linecap='round' fill='none' opacity='.92'%3E%3Cpath d='M24 18 L176 122'/%3E%3Cpath d='M178 14 L22 124'/%3E%3C/g%3E%3C/svg%3E");

  /* film perforation tiles */
  --perf-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='7' y='1' width='14' height='10' rx='2.5' fill='%2314213D'/%3E%3C/svg%3E");
  --perf-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='7' y='1' width='14' height='10' rx='2.5' fill='%23FF6B5B'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--rail-h) + 16px);
  scroll-behavior: smooth;
  scrollbar-color: var(--coral) var(--navy);
  scrollbar-width: thin;
}

body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: var(--navy); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--coral); }

h1, h2, h3 { margin: 0; font-weight: 800; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.rail :focus-visible, .strip :focus-visible, .call :focus-visible { outline-color: var(--navy); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--cream); color: var(--navy); padding: 8px 16px; font-weight: 700; text-transform: uppercase; }
.skip:focus { left: 8px; }

/* ---------- splash: revenue rocket punches through the navy ---------- */
.splash { display: none; }
.splash-on .splash {
  display: block; position: fixed; inset: 0; z-index: 2147483647;
  background: var(--coral) var(--grain-dark); overflow: hidden;
  animation: splash-failsafe 0.01s 7s forwards; /* if scripts fail, never trap the page */
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }
.splash .pane { position: absolute; top: 0; bottom: 0; background: var(--navy); will-change: transform; }
.splash .pane-l { left: 0; width: 50%; }
.splash .pane-r { left: 50%; right: 0; }
.splash .pane::before, .splash .pane::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-coral) repeat-x 0 0 / 28px 12px;
}
.splash .pane::before { top: 14px; }
.splash .pane::after { bottom: 14px; }
.splash-on cal-floating-button { visibility: hidden; animation: cal-show 0.01s 7s forwards; }
@keyframes cal-show { to { visibility: visible; } }
.splash .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash .puff { transform-box: fill-box; transform-origin: center; }
.splash-line {
  position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(36px, 7vh, 88px); margin: 0; text-align: center;
  font-size: clamp(1.75rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
}
.splash-line span { display: block; width: fit-content; margin-inline: auto; color: var(--coral); }
.splash-line span + span { color: var(--cream); margin-top: 0.12em; }
.splash-line .sub { margin-top: 0.7em; color: var(--cream); font-size: clamp(0.8125rem, 1.5vw, 1.125rem); font-weight: 700; letter-spacing: 0.14em; line-height: 1.25; opacity: 0.8; }
/* countdown: one big numeral behind the rocket, hard offset shadow */
.splash-count { position: absolute; inset: 0; --ns: min(30vh, 58vw); --cy: 44%; pointer-events: none; } /* script overrides both */
.splash-count .n {
  position: absolute; left: 0; right: 0; top: var(--cy); text-align: center; transform: translateY(-50%); opacity: 0;
  font-size: var(--ns); font-weight: 800; line-height: 0.8; color: var(--coral); text-shadow: 0.04em 0.04em 0 #B8443A;
}
.splash-count .word { font-size: min(var(--ns), 21vw); font-style: italic; text-transform: uppercase; color: var(--cream); text-shadow: 0.05em 0.05em 0 var(--coral); }
.splash-count .tm {
  position: absolute; left: 0; right: 0; top: calc(var(--cy) - var(--ns) * 0.4 - 2.2rem); text-align: center; opacity: 0;
  color: var(--cream); font-size: 1.125rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
}
.splash-count .tm i { display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.7em; border-radius: 50%; background: var(--coral); animation: tm-blink 0.5s steps(2, jump-none) infinite; }
@keyframes tm-blink { to { opacity: 0.15; } }
.splash-hint {
  position: absolute; left: 0; right: 0; bottom: 44px; margin: 0; text-align: center;
  color: var(--coral); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0;
}
.splash.ready .splash-hint { opacity: 0.85; }

/* ---------- rail ---------- */
.rail {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: stretch;
  height: var(--rail-h);
  background: var(--coral) var(--grain-dark);
  color: var(--navy);
}
.rail::before, .rail::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-navy) repeat-x 0 0 / 28px 12px;
  pointer-events: none;
}
.rail::before { top: 4px; }
.rail::after { bottom: 4px; }

.rail-strip {
  display: flex; flex: 1; min-width: 0;
  margin-block: 18px; margin-left: var(--gutter);
  align-items: stretch;
}
.cell {
  position: relative; display: flex; align-items: center;
  padding: 0 20px;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border-right: 1px solid rgba(20, 33, 61, 0.55);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cell:first-child { border-left: 1px solid rgba(20, 33, 61, 0.55); }
.cell-brand { gap: 10px; font-size: 1.375rem; letter-spacing: 0.14em; padding-inline: 24px; }
.cell:hover { background: rgba(20, 33, 61, 0.16); }
.cell[aria-current]:not(.cell-brand) { background: var(--coral); color: var(--navy); border: 3px solid var(--navy); padding-inline: 17px; }

.rail-book {
  flex: none; display: flex; align-items: center;
  margin: 18px var(--gutter) 18px 12px; padding: 0 22px;
  background: var(--cream); color: var(--navy);
  font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rail-book:hover { background: var(--navy); color: var(--coral); }

/* ---------- shared pieces ---------- */
.window {
  background: var(--cream); color: var(--navy);
  padding: 16px 20px; border-radius: 2px;
  font-size: 1.375rem; line-height: 1.3;
  max-width: 40ch;
}

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; min-width: 230px;
  background: var(--coral) var(--grain-dark); color: var(--navy);
  position: relative; padding: 30px 40px;
  font-weight: 800; font-size: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cta::before, .cta::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: var(--perf-navy) repeat-x 0 0 / 20px 8px;
}
.cta::before { top: 7px; }
.cta::after { bottom: 7px; }
.cta:hover { background: var(--cream); }
.cta-dark { background: var(--navy); color: var(--coral); }
.cta-dark::before, .cta-dark::after { background-image: var(--perf-coral); }
.cta-dark:hover { background: var(--cream); color: var(--navy); }
.cta-dark:hover::before, .cta-dark:hover::after { background-image: var(--perf-navy); }

.stamp {
  display: inline-block; margin-left: 12px; vertical-align: middle;
  border: 2px solid currentColor; padding: 1px 8px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em;
  transform: rotate(-3deg);
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-head {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}
h1 {
  color: var(--coral);
  font-size: clamp(3.75rem, 9vw, 6rem);
  line-height: 0.92; letter-spacing: -0.01em;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.hero-logo { --logo-w: clamp(160px, 30vw, 400px); --logo-inset: calc(var(--logo-w) * 20 / 640); justify-self: end; margin-right: calc(var(--logo-inset) * -1); }
@media (max-width: 900px) { .hero-logo { justify-self: start; margin: 0 0 0 calc(var(--logo-inset) * -1); } } /* the mark's sprocket ring sits 20/640 inside its file; pull it out so the ring, not the empty file edge, lines up with the window and button */
.hero-logo img { display: block; width: var(--logo-w); height: auto; }

/* ---------- strip of frames ---------- */
.strip {
  position: relative;
  background: var(--coral) var(--grain-dark);
  color: var(--navy);
  padding: 44px 0 40px;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-navy) repeat-x 0 0 / 28px 12px;
}
.strip::before { top: 14px; }
.strip::after { bottom: 14px; }
.strip-title { padding: 0 var(--gutter); margin-bottom: 20px; font-size: 1.625rem; letter-spacing: 0.06em; color: inherit; }
.sub .strip-title { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; letter-spacing: -0.01em; }
.strip-note { padding: 0 var(--gutter); margin-top: 20px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px var(--gutter) 0; }
.frame {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--navy); color: var(--coral);
  padding: 20px;
}
.frame.is-flagged { grid-column: span 2; }
.frame h3 { font-size: 1.75rem; line-height: 1; letter-spacing: 0.03em; }
.frame .window { font-size: 1.25rem; max-width: none; flex: none; }
@media (min-width: 901px) { .strip .frame h3 { min-height: 2em; } .strip .frames { row-gap: 22px; } }
.flag {
  position: absolute; top: -8px; right: 18px; width: 54px; height: 44px;
  background: var(--tape) no-repeat 0 0 / 54px 44px;
  padding: 9px 0 0 8px; color: var(--navy);
  font-size: 0.75rem; font-weight: 800; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(2deg);
}

/* frame ruler: ticks and number printed at the head of each frame */
.frame .no {
  display: block; padding: 0 0 12px 2px;
  font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: 0.08em;
  background: repeating-linear-gradient(90deg, var(--coral) 0 2px, transparent 2px 12px) 0 100% / 100% 9px no-repeat;
  border-bottom: 1px solid var(--coral);
}
.frame .window { margin-top: 2px; }

/* ---------- who ---------- */
.who {
  position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  background: var(--stock);
}
.who::before, .who::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-coral) repeat-x 0 0 / 28px 12px;
}
.who::before { top: 12px; }
.who::after { bottom: 12px; }
.who h1, .who h2, .proof h1, .proof h2 { color: var(--coral); font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 0.95; }
.who .window { font-size: 1.375rem; max-width: 40ch; }

/* ---------- proof (empty frames) ---------- */
.proof { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); }
.proof h1, .proof h2 { padding: 0 var(--gutter); margin-bottom: 36px; }
.proof .frames { grid-template-columns: repeat(4, 1fr); position: relative; padding-block: 36px; background: var(--stock); }
.proof .frames::before, .proof .frames::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-coral) repeat-x 0 0 / 28px 12px;
}
.proof .frames::before { top: 12px; }
.proof .frames::after { bottom: 12px; }
.frame-empty {
  aspect-ratio: 4 / 3; justify-content: flex-end;
  background: var(--navy); border: 1px solid rgba(255, 107, 91, 0.5);
  overflow: hidden;
}
.frame-empty .no { margin-bottom: auto; }
.frame-empty .cross { position: absolute; inset: 10% 10% 30% 10%; background: var(--grease) no-repeat center / contain; }
.reserved { position: relative; font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.proof .strip-note { color: var(--coral); margin-top: 28px; }

.strip-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.strip-note a:hover { color: var(--cream); }
.problem .stamp { font-size: 0.875rem; letter-spacing: 0.14em; vertical-align: middle; }
.problem-lead { margin: 0 var(--gutter) 8px; font-size: 1.5rem; max-width: 36ch; }
.problem .frames { grid-template-columns: repeat(3, 1fr); }
.advisory-block { padding: clamp(56px, 8vw, 96px) 0; }
.advisory-close { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding: 0 var(--gutter); }
.advisory-close h2 { color: var(--coral); font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 0.95; }
.advisory-body { display: flex; flex-direction: column; gap: 20px; }

/* ---------- bull$h!t highway ---------- */
.highway { position: relative; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.highway::before, .highway::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 48px, transparent 48px 96px);
}
.highway::before { top: 28px; }
.highway::after { bottom: 28px; }
.sign {
  display: inline-block; max-width: 100%;
  background: var(--cream); color: var(--navy);
  padding: clamp(24px, 4vw, 44px) clamp(24px, 5vw, 64px);
  border-radius: 14px; outline: 4px solid var(--navy); outline-offset: -16px;
  font-size: clamp(2.75rem, 9vw, 6rem); line-height: 0.92; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.highway-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: 40px; }
.highway-body .window { font-size: 1.5rem; max-width: 40ch; }
.highway-rule { color: var(--coral); font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1; text-transform: uppercase; text-wrap: balance; }

/* ---------- call ---------- */
.call {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: end;
  padding: clamp(72px, 9vw, 112px) var(--gutter);
  position: relative;
  background: var(--coral) var(--grain-dark); color: var(--navy);
}
.call::before, .call::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf-navy) repeat-x 0 0 / 28px 12px;
}
.call::before { top: 14px; }
.call::after { bottom: 14px; }
.call h1 { color: var(--navy); font-size: clamp(3.75rem, 11vw, 6rem); line-height: 0.9; grid-row: span 2; align-self: end; }
.call .cta { margin-top: 20px; justify-self: start; }

/* ---------- one page per section ---------- */
main { flex: 1; display: flex; flex-direction: column; }
main.sub { padding-top: clamp(40px, 6vw, 72px); }
main > .who, main > .call { flex: 1; }
.sub > .proof:first-child, .sub > .advisory-block:first-child { padding-top: 0; }
.frame-link a { text-decoration: none; }
.frame-link a::after { content: ""; position: absolute; inset: 0; }
.frame-link { transition: background-color 0.2s var(--ease); }
.frame-link:hover, .frame-link:focus-within { background: var(--stock); }
.frame-link h3 { transition: color 0.2s var(--ease); }
.frame-link:hover h3, .frame-link:focus-within h3 { color: var(--cream); }
.contents .frames { grid-template-columns: repeat(3, 1fr); }
.contents { margin-top: 0; }
.pager {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 28px var(--gutter); border-top: 1px solid rgba(255, 107, 91, 0.5);
}
.pager a {
  color: var(--coral); text-decoration: none;
  font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: 0.06em; text-transform: uppercase;
}
.pager a:hover { color: var(--cream); }
.pager .next { margin-left: auto; text-align: right; }

/* ---------- footer ---------- */
.bin { padding: 28px var(--gutter); }
.legal { margin-top: 0; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244, 237, 224, 0.7); }

/* ---------- narrow screens: strips scrub, one frame size ---------- */
@media (max-width: 900px) {
  .rail-strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: 12px; }
  .rail-strip::-webkit-scrollbar { display: none; }
  .cell { scroll-snap-align: start; padding-inline: 14px; }
  .rail-book { margin-right: 12px; padding-inline: 14px; }

  .hero-head, .who, .call, .advisory-close, .highway-body { grid-template-columns: 1fr; }
  .call h1 { grid-row: auto; }

  .strip .frames, .proof .frames {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .strip .frames::-webkit-scrollbar, .proof .frames::-webkit-scrollbar { display: none; }
  .frames .frame { flex: 0 0 78%; scroll-snap-align: start; }
  .proof .frames .frame { flex-basis: 70%; }
  .strip .frames { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* rail: eight cells need tighter padding just above the mobile breakpoint */
@media (min-width: 901px) and (max-width: 1080px) {
  .cell { padding-inline: 13px; }
  .cell-brand { padding-inline: 16px; }
}

/* ---------- tools ---------- */
.tools .stamp { font-size: 0.875rem; letter-spacing: 0.14em; }
.tools .problem-lead { margin: 0 var(--gutter) 8px; font-size: 1.375rem; max-width: 40ch; }
.tools .frames { grid-template-columns: repeat(3, 1fr); }
.tools .frame .window { font-size: 1.125rem; }
.tools .frame h3 { min-height: 0; }
.tools .frame > .window:not(.pc) { min-height: calc(2 * 1.3em + 32px); }
.tools .pc b { display: block; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.tools .pc b:not(:first-child) { margin-top: 10px; }
.tools .pc ul { list-style: none; }
.tools .pc li { padding: 1px 0 1px 1.1em; position: relative; }
.tools .pc ul:first-of-type li::before { content: "+"; position: absolute; left: 0; font-weight: 800; }
.tools .pc ul:last-of-type li::before { content: "\2013"; position: absolute; left: 0; font-weight: 800; }
.tool-link { margin-top: auto; align-self: flex-start; font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.tool-link:hover { color: var(--cream); }
.tools .frame-empty { aspect-ratio: auto; min-height: 14rem; }
@media (max-width: 900px) { .tools .frames { grid-template-columns: none; } }

/* rail: with seven cells, let them share the strip so it runs level from the brand cell to the Book button */
@media (min-width: 901px) {
  .cell:not(.cell-brand) { flex: 1 1 auto; justify-content: center; }
}

/* ---------- tools: category label, logo marks, animated stack diagram ---------- */
.tools .cat { padding: 0 var(--gutter); margin: -4px 0 20px; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.stack .frames { grid-template-columns: repeat(4, 1fr); }
.mark { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 7px; background: var(--cream); border-radius: 2px; }
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.frame .head { display: flex; align-items: center; gap: 14px; }
.tools .frame .head h3 { min-height: 0; }

/* the flow diagram: a navy frame, coral wiring, cream tiles */
.stage { margin: 18px var(--gutter) 0; }
.stage svg { display: block; width: 100%; height: auto; max-width: 1100px; margin: 0 auto; }
.stage .m { display: none; }
.stage .d { --pd: 2.25s; }   /* when a webhook dot reaches the Activity DB: (path length mod 64) / (64 / 2.4) */
.stage .m { --pd: 2.325s; }
@media (max-width: 700px) { .stage .d { display: none; } .stage .m { display: block; } }
.stage text { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tile { fill: var(--cream); }
.tt, .ts { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; } /* tiles live in <defs>, outside .stage, so .stage text doesn't reach them */
.tt { fill: var(--navy); text-anchor: middle; font-size: 15px; }
.ts { fill: #B8443A; text-anchor: middle; font-size: 14px; letter-spacing: 0.14em; }
.tn { font-size: 26px; }
.chip { fill: var(--cream); stroke: var(--navy); stroke-width: 3; }
.lbl { fill: var(--coral); font-size: 15px; }
.lbl.mid { text-anchor: middle; }
.lbl.end { text-anchor: end; }
.base, .dots, .hook, .ping, .db-icon { fill: none; }
.base { stroke: rgba(255, 107, 91, 0.3); stroke-width: 3; stroke-linejoin: round; }
.dots { stroke: var(--coral); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 39.9; animation: run 1.8s linear infinite; }
.dots.rev { animation-direction: reverse; }
.hook { stroke: var(--coral); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0.1 63.9; animation: run64 2.4s linear infinite; }
.hook-base { stroke: var(--navy); stroke-width: 3; fill: none; }
.db-icon { stroke: var(--navy); stroke-width: 4; }
.ping { stroke: var(--coral); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; animation-delay: calc(var(--pd) - 2.4s); }
.ping.brain { animation-duration: 3.6s; animation-delay: 0s; }
@keyframes run { to { stroke-dashoffset: -40; } }
@keyframes run64 { to { stroke-dashoffset: -64; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(1.18); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dots, .hook, .ping { animation: none; } }

/* logos are links; hover or focus shows what the product is for */
.stage a { cursor: pointer; }
.stage a:hover, .stage a:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.stage path, .stage .ping { pointer-events: none; }
a.mark:hover, a.mark:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; background: var(--coral); }
.tip { position: absolute; z-index: 5; width: max-content; max-width: min(30ch, calc(100% - 16px)); padding: 12px 16px; font-size: 1.125rem; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.15s var(--ease); }
.tip.on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* fine print: small, right-aligned at the foot of the strip */
.fine { padding: 0 var(--gutter); margin-top: 14px; text-align: right; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
