/* QubeStream site styles. Mobile-first. The QubeStream design system ("four inks on paper"):
   Daylight (a calm near-white with a trace of Qube Navy) by default, navy "theme-band" sections,
   white "theme-light" sections. Always Daylight, whatever the visitor's system theme (Glen 2026-11-02). Flat inks only:
   no gradients, no glass, no glows, no blur. Hard offset shadows, square corners. */

/* Design system faces (SIL Open Font License), latin subset, self-hosted.
   Poster: Archivo Expanded. Display: Big Shoulders Display. Text: Archivo. Teletype: IBM Plex Mono. */
@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/ArchivoExpanded-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/BigShouldersDisplay-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Archivo-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}

/* Paper (design system v2, 2026-11-18): the warm paper and ink of the pitch decks, so the site,
   the decks and the one-pagers read as one family. White cards sit on paper; chalk sections give rhythm. */
:root {
  --accent: #BD3827;
  --accent-hover: #A8311F;
  --accent-tint: #FAE8E1;
  --on-accent: #FFFFFF;
  --link: #254E76;
  --focus: #254E76;
  --brand-maroon: #002A5B;
  --brand: #002A5B;
  --brand-hover: #001F45;
  --on-brand: #F3ECDF;
  --signal: #002A5B;
  --highlight: #DC9010;
  --ochre-soft: #F6DFAE;
  --text: #1C1815;
  --text-muted: #5B5048;
  --bg: #FBF8F2;
  --bg-alt: #F3ECDF;
  --surface: #FFFFFF;
  --border: #E2D8C8;
  --line-strong: #1C1815;
  --input-border: #1C1815;
  --danger: #5E0304;
  --shadow-ink: #1C1815;
  --shadow: 6px 6px 0 var(--shadow-ink);
  --shadow-sm: 3px 3px 0 var(--shadow-ink);
  --shadow-soft: 8px 8px 0 #E2D8C8;
  --shadow-accent: 8px 8px 0 #BD3827;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-poster: "Archivo Expanded", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 0px;
  --radius-sm: 2px;
  --container: 1180px;
  --gutter: 16px;
  --section-pad: 80px;
  --header-h: 68px;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  color-scheme: light;
}

/* White sections. */
.theme-light {
  --accent: #BD3827;
  --accent-hover: #A8311F;
  --accent-tint: #FAE8E1;
  --on-accent: #FFFFFF;
  --link: #254E76;
  --focus: #254E76;
  --brand-maroon: #002A5B;
  --text: #1C1815;
  --text-muted: #5B5048;
  --bg: #FFFFFF;
  --bg-alt: #F3ECDF;
  --surface: #FBF8F2;
  --border: #E2D8C8;
  --input-border: #1C1815;
  --danger: #5E0304;
  background: var(--bg);
  color: var(--text);
}

/* Chalk sections: the deck's warm ground. */
.theme-chalk {
  --bg: #F3ECDF;
  --bg-alt: #EDE3D2;
  --surface: #FFFFFF;
  --border: #D9CDB8;
  background: var(--bg);
  color: var(--text);
}

/* Navy bands: full-bleed Qube Navy sections; ochre takes the accent so it still reads. */
.theme-band {
  --accent: #E9A93A;
  --accent-hover: #EDBE62;
  --accent-tint: #18406F;
  --on-accent: #11151C;
  --link: #F3ECDF;
  --focus: #E9A93A;
  --brand-maroon: #F3ECDF;
  --signal: #E9A93A;
  --text: #F3ECDF;
  --text-muted: #C3CDDA;
  --bg: #002A5B;
  --bg-alt: #002A5B;
  --surface: #0E3A70;
  --border: #3D6CA3;
  --line-strong: #F3ECDF;
  --input-border: #9DB8DE;
  --danger: #F4A79E;
  --shadow-ink: #000E22;
  background: var(--bg);
  color: var(--text);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-pad: 112px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-variant-ligatures: no-common-ligatures;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

/* Headlines: Big Shoulders Display 800, as on the decks. Archivo Expanded is kept for big numbers. */
h1 {
  font-size: clamp(3.25rem, 1.6rem + 6.4vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.005em;
}

/* Titles: Big Shoulders Display, tall and condensed. */
h2 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  font-family: var(--font);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

/* Text links stay underlined in link colour; on hover the line turns vermilion at 2px. */
a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* The skip link focuses <main>; no ring around the whole page area. */
main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.12s var(--ease-standard), box-shadow 0.12s var(--ease-standard);
}

/* The one money action per view: vermilion with a hard print shadow that presses in. */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow-ink);
}

/* Quiet: a 2px outline. */
.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Logo: navy Q and soot word on light grounds, all chalk reversed in Blackout (the small cut, under 150px). */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 26px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.no-js .nav-toggle {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

/* Menu links: a 3px vermilion underline sweeps in on hover and stays on the current page. */
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-standard);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

/* Navy secondary: the page's own vermilion button stays the one money action in view. */
.site-nav .nav-cta {
  display: flex;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.site-nav .nav-cta:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--on-brand);
}

/* Mobile: the nav is a drop-down panel once JS is running. */
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.js .site-nav.is-open {
  display: block;
}

.no-js .header-inner {
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.no-js .site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

/* Without JS the wrapped mobile header is tall, so let it scroll away. */
@media (max-width: 767px) {
  .no-js .site-header {
    position: relative;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .site-nav,
  .js .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul,
  .no-js .site-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .site-nav a {
    padding: 10px 0;
  }
  .site-nav a:not(.nav-cta)::after {
    left: 0;
    right: 0;
    bottom: 4px;
  }
  .site-nav .nav-cta {
    margin-top: 0;
    padding: 8px 16px;
  }
  .no-js .header-inner {
    flex-wrap: nowrap;
    padding-bottom: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: end;
    gap: 48px;
    margin-bottom: 64px;
  }
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.1875rem;
}

.section-head .section-lede {
  margin-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 32px 0 64px;
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  max-width: 11ch;
}

.hero-sub {
  max-width: 60ch;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  flex: 1 1 auto;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Live agent (hero) ---------- */

/* The agent card is a stage: flat Qube Navy in both themes, chalk type. Voice and chat share one scheme:
   ochre for everything the visitor does (the talk orb, their own lines, Send), navy for the agent. */
.agent {
  --stage: #002A5B;
  --stage-2: #0E3A70;
  --stage-text: #F3ECDF;
  --stage-muted: #C3CDDA;
  --stage-line: #3D6CA3;
  --stage-ochre: #E9A93A;
  --stage-orb: #E9A93A;
  --stage-orb-ink: #002A5B;
  --level: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 620px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--stage);
  color: var(--stage-text);
  box-shadow: 6px 6px 0 var(--shadow-ink);
  overflow: hidden;
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stage-line);
}

.agent-title {
  margin: 0;
  color: var(--stage-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-state {
  margin-left: auto;
  color: var(--stage-muted);
  font-size: 0.8125rem;
}

.agent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8CC29C;
  flex: none;
}

.agent-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 20px 14px;
}

.agent-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--stage-orb-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.agent-orb:focus-visible {
  outline: 2px solid var(--stage-ochre);
  outline-offset: 6px;
  border-radius: 50%;
}

.orb-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--stage-orb);
  box-shadow: 0 0 0 calc(10px * var(--level)) var(--stage-line);
  transform: scale(calc(1 + 0.12 * var(--level)));
  transition: transform 0.08s linear, box-shadow 0.08s linear;
}

.orb-core .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--stage-ochre);
  animation: orb-breathe 3.6s ease-in-out infinite;
}

.orb-ring-2 {
  inset: -14px;
  border-color: var(--stage-line);
  animation-delay: 1.2s;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}

.agent[data-state="connecting"] .orb-ring,
.agent[data-state="thinking"] .orb-ring {
  border-style: dashed;
  animation: orb-spin 2.4s linear infinite;
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

.agent[data-state="listening"] .orb-core .icon,
.agent[data-state="speaking"] .orb-core .icon,
.agent[data-state="connecting"] .orb-core .icon {
  opacity: 0.35;
}

.agent-orb-label {
  margin: 0;
  min-height: 1.5em;
  color: var(--stage-muted);
  font-size: 0.875rem;
}

.agent-log {
  flex: 1 1 auto;
  min-height: 120px;
  margin: 0;
  padding: 8px 20px 12px;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-line) transparent;
}

.agent-line {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-line;
}

.agent-line-agent {
  align-self: flex-start;
  background: var(--stage-2);
}

.agent-line-user {
  align-self: flex-end;
  background: var(--stage-ochre);
  color: #11151C;
}

.agent-line-user.is-live {
  opacity: 0.7;
}

.agent-line-note {
  align-self: center;
  max-width: 100%;
  padding: 2px 0;
  color: var(--stage-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.agent-line.is-typing::after {
  content: "...";
  display: inline-block;
  letter-spacing: 2px;
  animation: typing 1.2s steps(4, end) infinite;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
}

@keyframes typing {
  to { width: 1.4em; }
}

.agent-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--stage-line);
}

.agent-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #9DB8DE;
  border-radius: var(--radius-sm);
  background: var(--stage-2);
  color: var(--stage-text);
  font: inherit;
  font-size: 1rem;
}

.agent-form input::placeholder {
  color: var(--stage-muted);
}

.agent-form input:focus-visible {
  outline: 2px solid var(--stage-ochre);
  outline-offset: 1px;
}

.agent-form .btn-primary {
  background: var(--stage-ochre);
  border-color: var(--stage-ochre);
  color: #11151C;
  box-shadow: 3px 3px 0 #000E22;
}

.agent-form .btn-primary:hover {
  background: #EDBE62;
  border-color: #EDBE62;
}

.agent-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Mid-conversation the orb shrinks so the transcript has room. */
.agent.is-active .agent-stage {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px 8px;
}

.agent.is-active .agent-orb {
  width: 76px;
  height: 76px;
}

.agent.is-active .orb-core {
  width: 56px;
  height: 56px;
}

.agent.is-active .orb-core .icon {
  width: 24px;
  height: 24px;
}

.agent.is-active .orb-ring-2 {
  inset: -8px;
}

/* Floating shortcut back to the agent, once the hero is off screen. */
.agent-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.agent-dock[hidden] {
  display: none;
}

/* Booking calendar, opened by the agent. */
.booking {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.booking::backdrop {
  background: rgba(11, 14, 19, 0.72);
}

.booking[open] {
  display: flex;
  flex-direction: column;
}

.booking-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 0;
}

.booking-head h2 {
  margin: 0;
  font-size: 1.375rem;
}

.booking-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.booking-close:hover {
  background: var(--bg-alt);
}

.booking-sub {
  margin: 4px 20px 12px;
  color: var(--text-muted);
}

.booking iframe {
  width: 100%;
  height: min(620px, calc(100vh - 200px));
  border: 0;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.booking-alt {
  margin: 0;
  padding: 12px 20px 16px;
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 80px 0 88px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }
  .hero-actions .btn {
    flex: 0 0 auto;
  }
  .agent {
    min-height: 560px;
  }
}

/* ---------- Human / Agent view switch (hero) ---------- */

.view-switch {
  display: none;
  gap: 4px;
  margin: 0 0 40px;
  padding: 4px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.js .view-switch {
  display: inline-flex;
}

.view-btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.view-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.view-btn[data-view="agent"][aria-pressed="true"] {
  background: var(--signal);
  color: var(--bg);
}

.agent-view {
  display: grid;
  gap: 40px;
  align-items: start;
}

.agent-view[hidden],
.hero-inner[hidden] {
  display: none;
}

.agent-view .eyebrow {
  color: var(--signal);
}

.agent-view h2 {
  max-width: 12ch;
}

.agent-view-copy p {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.agent-view-copy a {
  color: var(--signal);
  font-weight: 600;
}

.agent-view-file {
  margin: 0;
  max-height: 560px;
  overflow: auto;
  padding: 28px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: #11151C;
  color: #F1E9DA;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (min-width: 960px) {
  .agent-view {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
  }
}

/* ---------- Services (numbered list) ---------- */

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line-strong);
}

.card.service {
  display: grid;
  gap: 10px 48px;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
}

.service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.875rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.service p {
  margin: 0;
  color: var(--text-muted);
}

.service-num {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .card.service {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    padding: 40px 0;
  }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .card-grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .card-grid-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card-grid-4 .card {
    padding: 24px;
  }
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card:not(.service) {
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.card p {
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon,
.round-icon {
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-tint);
  color: var(--link);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
}

.card-icon .icon {
  width: 28px;
  height: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.chip {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.card .chip {
  color: var(--text);
}

.work-note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-note {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

/* ---------- Steps (how it works) ---------- */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  padding-top: 24px;
  border-top: 3px solid var(--border);
}

.step:first-child {
  border-top-color: var(--accent);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Pledge ---------- */

.pledge-inner {
  max-width: 880px;
}

.pledge-inner h2 {
  max-width: 18ch;
  margin-bottom: 28px;
}

.pledge-text {
  margin: 0 0 28px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.65;
}

.pledge-sign {
  margin: 0;
  padding-left: 27px;
  color: var(--text-muted);
  font-weight: 600;
}

.pledge-more {
  margin: 24px 0 0;
  padding-left: 27px;
  font-weight: 600;
}

.pledge-more a::after {
  content: " \2192";
}

.prose .pledge-sign {
  margin-top: 40px;
  padding-left: 0;
}

/* ---------- About ---------- */

.about-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 360px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
}

.about-inner h2 {
  max-width: 16ch;
}

.about-bio {
  color: var(--text-muted);
}

.about-points {
  display: grid;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.round-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.round-icon .icon {
  width: 22px;
  height: 22px;
}

.about-points .round-icon {
  width: 32px;
  height: 32px;
}

.about-points .round-icon .icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 64px;
  }
  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Contact ---------- */

.section-contact {
  background: var(--bg);
}

/* Phones: heading, form, then details. Desktop: heading and details left, form right. */
.contact-inner {
  display: grid;
  gap: 32px;
  grid-template-areas:
    "intro"
    "form"
    "details";
}

.contact-intro {
  grid-area: intro;
}

.contact-form-card {
  grid-area: form;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-details {
  grid-area: details;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro form"
      "details form";
    align-items: start;
    gap: 32px 64px;
  }
}

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.9375rem;
}

.field-error:empty {
  display: none;
}

/* Bot check slot: out of the grid (no extra gap) until it has to show a checkbox. */
.form-check {
  position: absolute;
}

.form-check.is-shown {
  position: static;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
}

@media (max-width: 599px) {
  .contact-form .btn {
    justify-self: stretch;
  }
}

.form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list a {
  display: inline-block;
  padding: 10px 0;
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--text-muted);
}

.location .icon {
  width: 20px;
  height: 20px;
  color: var(--link);
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page {
  padding: 48px 0 64px;
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.875rem;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
}

.updated {
  color: var(--text-muted);
}

/* ---------- Blog ---------- */

.post-list {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.prose .post-list {
  padding-left: 0;
}

.post-card {
  margin: 0;
  padding: 28px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-card h2 {
  margin: 8px 0 12px;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus-visible {
  color: var(--accent);
}

.post-card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.post-meta {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post .post-meta {
  margin-bottom: 32px;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 72px 0;
  text-align: center;
}

.notfound-code {
  margin-bottom: 8px;
  color: var(--link);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notfound .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Holding page (public until the new site is approved) ---------- */

.holding {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.holding-main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding: 64px 0 96px;
}

.holding-main h1 {
  max-width: 12ch;
}

.holding-lede {
  max-width: 54ch;
  margin-bottom: 32px;
}

.holding-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.holding-contact a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.holding-contact a:hover {
  color: var(--text);
}

.holding .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

/* ---------- Work (featured app and build process) ---------- */

.section-work {
  background: var(--bg-alt);
}

.work-feature {
  margin-bottom: 56px;
  padding: 32px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.work-feature h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.work-feature p {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.work-feature .eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.work-tags li {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .work-feature {
    padding: 48px;
  }
}

/* =====================================================================
   Homepage v2 (2026-11-18): outcome-first, illustrated like the decks.
   ===================================================================== */

.section-head .eyebrow {
  margin-bottom: 14px;
}

/* Hero */
.hero {
  padding: 40px 0 88px;
}

.hero h1 {
  max-width: none;
  margin-bottom: 24px;
}

.h1-line {
  display: block;
}

/* "Booked." carries an ochre marker stroke, drawn in on load. */
.h1-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.h1-mark::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.3em;
  background: var(--ochre-soft);
  z-index: -1;
  transform-origin: left;
  animation: mark-in 0.7s 0.5s var(--ease-standard) both;
}

@keyframes mark-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.js .h1-line {
  animation: line-in 0.6s var(--ease-standard) both;
}

.js .h1-line:nth-child(2) { animation-delay: 0.12s; }
.js .h1-line:nth-child(3) { animation-delay: 0.24s; }

@keyframes line-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-try {
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--text);
  font-weight: 600;
}

.hero-try-arrow {
  flex: none;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-4px);
}

.hero-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
}

/* Agent card prompts: one tap asks the front desk. */
.agent-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}

.agent-prompts[hidden] {
  display: none;
}

.agent-prompts button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--stage-line, #3D6CA3);
  border-radius: 2px;
  background: transparent;
  color: var(--stage-text, #F3ECDF);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agent-prompts button:hover {
  border-color: #E9A93A;
  background: #0E3A70;
}

.agent-prompts button:focus-visible {
  outline-color: #E9A93A;
}

/* ---------- Storyboard ---------- */

.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 36px;
}

.story-mode {
  display: inline-flex;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.story-mode-btn,
.story-chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.story-mode-btn[aria-pressed="true"] {
  background: var(--line-strong);
  color: var(--bg);
}

.story-mode-btn[data-mode-btn="with"][aria-pressed="true"] {
  background: var(--brand);
  color: #F3ECDF;
}

.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  font-weight: 500;
  font-size: 0.9375rem;
}

.story-chip:hover {
  border-color: var(--line-strong);
}

.story-chip[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: var(--ochre-soft);
  font-weight: 700;
}

.story {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: story;
}

@media (min-width: 640px) {
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .story { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .story-step + .story-step::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--line-strong);
  }
  .story-step + .story-step::after {
    content: "";
    position: absolute;
    left: -18px;
    top: calc(50% - 5px);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
    transform: rotate(45deg);
  }
}

.story-step {
  position: relative;
  text-align: center;
  transition: opacity 0.45s var(--ease-standard), transform 0.45s var(--ease-standard);
}

.js [data-story].is-ready .story-step:not(.is-on) {
  opacity: 0.18;
  transform: translateY(10px);
}

.story-time {
  margin: 0 0 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.story-step:last-child .story-time {
  color: var(--accent);
}

.story-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 0.6vw, 2.125rem);
  white-space: nowrap;
  font-weight: 800;
  line-height: 1;
}

.phone {
  display: flex;
  flex-direction: column;
  height: 380px;
  max-width: 260px;
  margin: 0 auto;
  border: 9px solid #1C1815;
  border-radius: 34px;
  background: #FBF8F2;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: left;
}

.story-step:last-child .phone {
  box-shadow: 8px 8px 0 var(--accent);
}

.phone-bar {
  padding: 22px 16px 12px;
  background: #EDE3D2;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.story-step[data-step="3"] .phone-bar {
  background: var(--brand);
  color: #F3ECDF;
}

.phone-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
}

.story-step[data-step="3"] .phone-screen {
  justify-content: flex-end;
  padding-bottom: 22px;
}

.bubble {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.35;
}

.bubble-me {
  align-self: flex-end;
  max-width: 88%;
  background: #254E76;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.bubble-desk {
  align-self: flex-start;
  max-width: 92%;
  border: 1.5px solid #1C1815;
  background: #FFFFFF;
  border-bottom-left-radius: 4px;
}

.pick {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid #1C1815;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.pick-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.pick-name {
  font-size: 1rem;
}

.pick-star {
  color: #B06F00;
  font-weight: 700;
}

.pick-miss {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
}

.booked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--accent);
  background: #FFFFFF;
  box-shadow: 4px 4px 0 #1C1815;
}

.booked-check {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
}

.booked-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 13px;
  border-right: 3px solid #FFFFFF;
  border-bottom: 3px solid #FFFFFF;
  transform: rotate(45deg);
}

.booked-label {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booked strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.2;
}

/* Today: grey phone, a voicemail, and a booking that goes somewhere else. */
[data-mode="today"] .story-step[data-step="3"] .phone-bar {
  background: #5B5048;
}

[data-mode="today"] .bubble-me[data-slot="q2"] {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  align-self: center;
}

[data-mode="today"] .bubble-desk {
  border-style: dashed;
  color: var(--text-muted);
  font-style: italic;
}

[data-mode="today"] .booked {
  border-color: #8A7F75;
  box-shadow: 4px 4px 0 #D9CDB8;
}

[data-mode="today"] .booked-check {
  background: #8A7F75;
}

[data-mode="today"] .booked-check::after,
[data-mode="today"] .booked-check::before {
  content: "";
  left: 14px;
  top: 7px;
  width: 3px;
  height: 16px;
  border: 0;
  background: #FFFFFF;
  transform: rotate(45deg);
}

[data-mode="today"] .booked-check::before {
  position: absolute;
  transform: rotate(-45deg);
}

[data-mode="today"] .booked-label {
  color: var(--text-muted);
}

[data-mode="today"] .story-step:last-child .phone {
  box-shadow: var(--shadow-soft);
}

[data-mode="today"] .story-step:last-child .story-time {
  color: var(--text-muted);
}

.story-result {
  margin: 44px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.js [data-story].is-done .story-result,
.no-js .story-result {
  opacity: 1;
}

.story-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Outcomes ---------- */

.outcomes {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.outcome {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.outcome-num {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.outcome h3 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 0.95;
}

.outcome p {
  margin: 0 0 18px;
}

.outcome .outcome-how {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.outcome-how span {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outcome-booked {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.outcome-booked .outcome-num {
  color: var(--accent);
}

.beyond {
  display: grid;
  gap: 20px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 2px solid var(--line-strong);
}

@media (min-width: 900px) {
  .beyond { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}

.beyond-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.beyond-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .beyond-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

.beyond-list h4 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.beyond-list p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.work-grid .work-feature {
  margin: 0;
}

.work-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--shadow-ink);
}

.work-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- Steps v2: a numbered line across ---------- */

.steps .step-num {
  font-family: var(--font-display);
}

.steps .step-num {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.steps .step:first-child .step-num {
  color: var(--accent);
}

.steps .step h3 {
  font-size: 1.25rem;
}

.about-inner h2 {
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
}

/* Phones swipe sideways on small screens instead of stacking four tall phones. */
@media (max-width: 639px) {
  .story {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 18px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .story::-webkit-scrollbar { display: none; }
  .story-step { scroll-snap-align: center; }
  .story-result { margin-top: 24px; }
}
