:root {
  color-scheme: light;
  --background: #fbfaf7;
  --foreground: #1f2328;
  --muted-foreground: #4b5563;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.2);
  --panel: #ffffff;
  --surface-soft: #f6f5f1;
  --brand-primary: #2f7d57;
  --brand-primary-hover: #27684a;
  --brand-soft: #e9f5ee;
  --brand-deep: #243127;
  --warning-soft: #fff4e8;
  --warning-foreground: #9a5b14;
  --danger-soft: #fdeceb;
  --danger-foreground: #b5473d;
  --info-soft: #e9f3f6;
  --info-foreground: #155e75;
  --gold: #f1b84b;
  --coral: #e0705d;
  --shadow-sm: 0 1px 2px rgba(36, 49, 39, 0.05);
  --shadow-md:
    0 1px 2px rgba(36, 49, 39, 0.04),
    0 10px 26px rgba(36, 49, 39, 0.08);
  --shadow-xl:
    0 2px 6px rgba(36, 49, 39, 0.06),
    0 30px 70px rgba(36, 49, 39, 0.16);
  /* Elevated cards (hero core, hub) get a deeper, green-tinted lift so the
     "one calm system" reads as physically raised above the scattered inputs. */
  --shadow-float:
    0 1px 2px rgba(36, 49, 39, 0.06),
    0 12px 28px rgba(36, 49, 39, 0.12),
    0 44px 90px rgba(47, 125, 87, 0.16);
  /* One spring-family of easings so every motion on the page shares physics. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.5, 0.5, 1);
  --dur-fast: 160ms;
  --dur-mid: 320ms;
  --dur-slow: 760ms;
  /* Fine film grain — adds tactile warmth on the dark surfaces (it would only
     gray out the cream, so it's applied to the deep-green sections only). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  --max-width: 1180px;
  --font-editorial-stack:
    "Fraunces",
    "Iowan Old Style",
    "Palatino Linotype",
    Georgia,
    serif;
  --font-sans-stack:
    "Hanken Grotesk",
    "Avenir Next",
    "Segoe UI Variable",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-mono-stack:
    "JetBrains Mono",
    "SFMono-Regular",
    "IBM Plex Mono",
    Menlo,
    Monaco,
    monospace;
}

* {
  box-sizing: border-box;
}

/* Brand text selection — gold wash, never the default browser blue. */
::selection {
  background: rgba(241, 184, 75, 0.34);
  color: var(--brand-deep);
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans-stack);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 14%, rgba(241, 184, 75, 0.1), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(47, 125, 87, 0.08), transparent 34%),
    var(--background);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(36, 49, 39, 0.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  overflow: hidden;
  contain: paint;
  background: var(--brand-deep);
  color: #fbfaf7;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 80s linear infinite;
  /* Text dissolves at both edges instead of hard-cutting against the viewport. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

/* Let a reader pause the ticker to actually read it. */
.announcement:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.marquee-group span {
  position: relative;
  padding: 11px 28px;
}

.marquee-group span::after {
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(var(--max-width), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 15px 0;
}

.site-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: rgba(251, 250, 247, 0.74);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  content: "";
  transform: translateX(-50%);
}

.brand,
.primary-nav,
.nav-actions,
.hero-actions,
.join-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: transparent;
}

.brand-mark img,
.module-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark.mini {
  width: 30px;
  height: 30px;
}

.primary-nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
}

.primary-nav a {
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 14px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.primary-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

/* Scroll-spy: the link for the section you're in stays lit ("you are here"). */
.primary-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 87, 0.22);
}

.nav-actions {
  gap: 10px;
}

.text-link {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link:hover {
  color: var(--brand-primary-hover);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-family: var(--font-sans-stack);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 220ms var(--ease-out),
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Tactile press — the button gives under the click before it acts. */
.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

.button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Keyboard focus for all other interactive elements (a11y). */
.brand:focus-visible,
.primary-nav a:focus-visible,
.text-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* On the dark footer / dark CTA, use a light ring so it stays visible. */
.site-footer a:focus-visible,
.join-section .button:focus-visible {
  outline-color: rgba(251, 250, 247, 0.85);
}

/* Sections receive programmatic focus when reached via in-page links; they are
   not controls, so no focus outline is needed. */
main:focus,
main [tabindex="-1"]:focus,
.join-section:focus {
  outline: none;
}

.button-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(47, 125, 87, 0.24);
}

.button-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px rgba(47, 125, 87, 0.3);
}

.button-primary:not(.button-compact)::after {
  content: "→";
  margin-right: -2px;
  font-size: 15px;
  line-height: 1;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button-primary:not(.button-compact):hover::after {
  transform: translateX(4px);
}

.button-compact {
  min-height: 40px;
  padding-inline: 16px;
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--foreground);
}

.button-secondary:hover {
  border-color: rgba(47, 125, 87, 0.34);
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 49, 39, 0.1);
}

.hero {
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100svh - 110px);
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  align-items: center;
  gap: 48px;
  margin: 0 auto;
  padding: 28px 0 40px;
  scroll-margin-top: 92px;
}

.hero-copy {
  max-width: 680px;
}

.hero-wordmark {
  display: block;
  width: min(136px, 36vw);
  height: auto;
  margin: 0 0 14px -4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
  color: var(--brand-primary-hover);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(241, 184, 75, 0.2);
}

.hero .eyebrow span {
  animation: status-pop 2.8s ease-in-out infinite;
}

/* Section eyebrows drop the pill chrome so the hero's stays special. */
main section:not(.hero) .eyebrow {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

mark {
  position: relative;
  display: inline-block;
  background: transparent;
  color: inherit;
}

mark::after {
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.04em;
  z-index: -1;
  height: 0.22em;
  border-radius: 999px;
  background: rgba(241, 184, 75, 0.42);
  content: "";
  transform: rotate(-1.4deg);
  transform-origin: left center;
}

/* The gold highlight draws itself in, like a marker stroke, just after its
   line settles. JS-gated, so without motion the stroke is simply present. */
.js mark::after {
  transform: rotate(-1.4deg) scaleX(0);
  transition: transform 700ms var(--ease-out) 480ms;
}

.js .is-revealed mark::after {
  transform: rotate(-1.4deg) scaleX(1);
}

h1 {
  margin-bottom: 22px;
  font-family: var(--font-editorial-stack);
  font-size: clamp(52px, 4.7vw, 68px);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

h1 span {
  display: block;
}

/* Each authored headline line stays one line, so "restaurant admin." and its
   highlight never split. Phones fall back to natural wrapping. */
@media (min-width: 641px) {
  h1 .hl {
    white-space: nowrap;
  }
}

.hero-text {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-note {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted-foreground);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* A small live cue on the response-time promise — signals "a real person is
   here and will get back to you," lowering the cost of reaching out cold. */
.reply-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(47, 125, 87, 0.16);
  vertical-align: middle;
  animation: status-pop 2.8s ease-in-out infinite;
}

.chaos-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 600px;
  padding: 8px 0 24px;
}

.chaos-stage::after {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 87, 0.16), rgba(241, 184, 75, 0.06) 55%, transparent 72%);
  content: "";
  filter: blur(18px);
  transform: translate(-50%, -50%);
  animation: core-breathe 7.5s var(--ease-in-out) infinite;
}

.mess-card,
.remy-core,
.operator-vignette {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.operator-vignette {
  position: absolute;
  left: -14px;
  bottom: 2px;
  z-index: 6;
  width: 122px;
  min-height: 172px;
  border-color: rgba(36, 49, 39, 0.16);
  background: rgba(255, 252, 244, 0.96);
  padding: 7px 7px 42px;
  box-shadow: var(--shadow-xl);
  transform: rotate(-4deg);
}

/* Expression cross-fade — happy by default (no-JS / reduced-motion). */
.face-happy {
  opacity: 1;
}

.face-sad {
  opacity: 0;
}

.operator-frown {
  fill: none;
  stroke: var(--muted-foreground);
  stroke-linecap: round;
  stroke-width: 5;
}

.operator-brow {
  fill: none;
  stroke: var(--brand-deep);
  stroke-linecap: round;
  stroke-width: 4;
}

/* Two-column hero: the cards and Remy view sit right, leaving the chef a clear
   lane down the left edge instead of overlapping the stack. */
@media (min-width: 1121px) {
  .chaos-stage {
    align-items: flex-end;
  }

  .chaos-stage::after {
    left: 62%;
  }

  .flow-cue {
    margin-right: calc(min(392px, 100% - 140px) / 2 - 20px);
  }
}

/* Chef mood journey — on desktop/tablet the chef begins sad at the top of the stage
   and is carried down to a calm, happy state beside the Remy view as you scroll.
   JS drives the vertical travel + expression; this just sets the sad starting point. */
@media (min-width: 641px) {
  .js .operator-vignette {
    top: 0;
    bottom: auto;
  }

  .js .face-happy {
    opacity: 0;
  }

  .js .face-sad {
    opacity: 1;
  }
}

.calm-badge {
  transition:
    background 320ms ease,
    border-color 320ms ease;
}

.calm-status {
  transition: color 320ms ease;
}

.operator-vignette.chef-sad .calm-badge {
  border-color: rgba(181, 71, 61, 0.22);
  background: var(--danger-soft);
}

.operator-vignette.chef-sad .calm-status {
  color: var(--danger-foreground);
}

.operator-vignette::before,
.operator-vignette::after,
.mess-card::after {
  position: absolute;
  width: 48px;
  height: 15px;
  border: 1px solid rgba(154, 91, 20, 0.12);
  border-radius: 4px;
  background: rgba(255, 244, 216, 0.72);
  content: "";
  opacity: 0.92;
}

.operator-vignette::before {
  left: 16px;
  top: -8px;
  transform: rotate(-7deg);
}

.operator-vignette::after {
  right: 16px;
  top: -7px;
  transform: rotate(8deg);
}

.operator-drawing {
  width: 100%;
  height: auto;
  overflow: visible;
}

.operator-ground,
.operator-line,
.operator-arm,
.operator-hand,
.operator-sleeve,
.operator-apron-line,
.operator-apron-strap,
.operator-apron-tie,
.operator-eye,
.operator-hairline,
.operator-check,
.operator-note-line,
.operator-leg,
.operator-shoe,
.operator-thumb {
  fill: none;
  stroke: var(--brand-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-ground {
  stroke: rgba(36, 49, 39, 0.24);
  stroke-width: 4;
}

.operator-line {
  stroke-width: 6;
}

.operator-arm {
  stroke-width: 8;
}

.operator-hand {
  stroke-width: 6;
}

.operator-thumb {
  stroke-width: 4;
}

.operator-face {
  fill: #ffe2bd;
  stroke: var(--brand-deep);
  stroke-width: 6;
}

.operator-ear,
.operator-neck {
  fill: #ffe2bd;
  stroke: var(--brand-deep);
  stroke-linejoin: round;
  stroke-width: 5;
}

.operator-hair,
.operator-bun {
  fill: var(--brand-deep);
  stroke: var(--brand-deep);
  stroke-linejoin: round;
  stroke-width: 5;
}

.operator-hairline {
  stroke: rgba(255, 252, 244, 0.76);
  stroke-width: 4;
}

.operator-shirt {
  fill: var(--brand-soft);
  stroke: var(--brand-deep);
  stroke-linejoin: round;
  stroke-width: 6;
}

.operator-sleeve {
  stroke-width: 7;
}

.operator-apron {
  fill: #fff;
  stroke: var(--brand-deep);
  stroke-linejoin: round;
  stroke-width: 5;
}

.operator-apron-strap,
.operator-apron-tie {
  stroke-width: 4;
}

.operator-apron-line,
.operator-note-line {
  stroke: rgba(36, 49, 39, 0.46);
  stroke-width: 3;
}

.operator-apron-pocket {
  fill: rgba(233, 245, 238, 0.72);
  stroke: rgba(36, 49, 39, 0.38);
  stroke-linejoin: round;
  stroke-width: 3;
}

.operator-eye {
  stroke-width: 4;
}

.operator-cheek {
  fill: var(--coral);
  opacity: 0.2;
}

.operator-smile {
  fill: none;
  stroke: var(--brand-primary);
  stroke-linecap: round;
  stroke-width: 5;
}

.operator-tray {
  fill: #fff;
  stroke: var(--brand-deep);
  stroke-width: 5;
}

.operator-clipboard {
  fill: #fff8e9;
  stroke: var(--brand-deep);
  stroke-width: 5;
}

.operator-paper {
  fill: #fff;
  stroke: rgba(36, 49, 39, 0.18);
  stroke-width: 2;
}

.operator-hand-fill {
  fill: #ffe2bd;
  stroke: var(--brand-deep);
  stroke-width: 5;
}

.operator-check {
  stroke: var(--brand-primary);
  stroke-width: 4;
}

.operator-leg,
.operator-shoe {
  stroke-width: 6;
}

.operator-dot {
  fill: var(--coral);
}

.dot-two {
  fill: var(--gold);
}

.calm-badge {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 11px;
  border: 1px solid rgba(47, 125, 87, 0.18);
  border-radius: 8px;
  background: var(--brand-soft);
  padding: 9px 10px;
}

.calm-badge span {
  display: block;
  color: var(--brand-primary-hover);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calm-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1;
}

.source-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: min(392px, calc(100% - 140px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  animation: source-drift 7.5s ease-in-out infinite;
}

.mess-card {
  position: relative;
  min-height: 116px;
  padding: 15px;
  transform-origin: center;
}

.mess-card::after {
  right: 15px;
  top: -8px;
  transform: rotate(8deg);
}

.mess-card::before {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.48);
  content: "";
}

.mess-card strong {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.1;
}

.mess-card p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.file-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-mono-stack);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
}

.card-sheet {
  background: #fff;
  transform: rotate(-1.5deg);
}

.card-sheet .file-type {
  background: var(--brand-soft);
  color: var(--brand-primary-hover);
}

.card-invoice {
  background: #fff8e9;
  transform: rotate(1.5deg);
}

.card-invoice .file-type {
  background: var(--warning-soft);
  color: var(--warning-foreground);
}

.card-recipe {
  background: #fff6f4;
  transform: rotate(-1.5deg);
}

.card-recipe .file-type {
  background: var(--danger-soft);
  color: var(--danger-foreground);
}

.card-sales {
  background: #f8fcfd;
  transform: rotate(1.5deg);
}

.card-sales .file-type {
  background: var(--info-soft);
  color: var(--info-foreground);
}

.flow-cue {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fbfaf7;
  box-shadow: var(--shadow-md);
}

.flow-arrow {
  font-size: 19px;
  line-height: 1;
  animation: flow-bounce 2.4s ease-in-out infinite;
}

.remy-core {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: min(392px, calc(100% - 140px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-float);
}

.core-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 245, 241, 0.9);
  padding: 14px;
}

.core-header strong {
  font-size: 14px;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.core-grid div,
.signal-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.core-grid span,
.signal-row span {
  display: block;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
}

.core-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Words sit a touch smaller than the figures beside them. */
.core-grid strong.is-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.signal-row {
  margin: 0 14px 14px;
  background: var(--brand-soft);
}

.signal-row p {
  margin: 8px 0 0;
  color: var(--brand-primary-hover);
  font-size: 14px;
  font-weight: 600;
}

.module-proof {
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  grid-template-columns: minmax(130px, 1fr) 48px minmax(130px, 1fr) 48px minmax(130px, 1fr) 48px minmax(130px, 1fr) 48px minmax(130px, 1fr);
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 8px 0 88px;
}

.module-node {
  position: relative;
  display: grid;
  min-height: 90px;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.module-node:hover {
  border-color: rgba(47, 125, 87, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.module-node span {
  color: var(--brand-primary-hover);
  font-family: var(--font-mono-stack);
  font-size: 12px;
  font-weight: 700;
}

.module-node strong {
  font-family: var(--font-editorial-stack);
  font-size: 25px;
  line-height: 1;
}

.module-node-core {
  background: var(--brand-deep);
  color: #fff;
}

.module-node-core .module-logo {
  display: block;
  width: 34px;
  height: 34px;
}

.module-link {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 125, 87, 0.2), rgba(47, 125, 87, 0.72), rgba(47, 125, 87, 0.2));
  transform-origin: left center;
}

/* The connection draws itself in left-to-right when the row scrolls into view. */
.js .module-link {
  transform: scaleX(0);
  transition: transform 640ms var(--ease-out);
}

.js .module-link.is-revealed {
  transform: scaleX(1);
}

.module-link:nth-child(2) {
  transition-delay: 120ms;
}

.module-link:nth-child(4) {
  transition-delay: 220ms;
}

.module-link:nth-child(6) {
  transition-delay: 320ms;
}

.module-link:nth-child(8) {
  transition-delay: 420ms;
}

/* A signal dot relays from module to module toward "Ask Remy" — the product
   promise (scattered inputs → one answer) performed in motion. */
.module-link::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 10px 1px rgba(47, 125, 87, 0.55);
  content: "";
  opacity: 0;
}

.module-link.is-revealed::after {
  animation: link-signal 2.6s var(--ease-in-out) infinite;
}

.module-link:nth-child(2)::after {
  animation-delay: 0s;
}

.module-link:nth-child(4)::after {
  animation-delay: 0.55s;
}

.module-link:nth-child(6)::after {
  animation-delay: 1.1s;
}

.module-link:nth-child(8)::after {
  animation-delay: 1.65s;
}

/* The core node pulses as each relayed signal lands. */
.js .module-node-core.is-revealed {
  animation: core-receive 2.6s var(--ease-in-out) infinite;
}

.problem-band,
.connect-section,
.unified-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.problem-band {
  display: grid;
  justify-items: center;
  gap: 44px;
  padding: 104px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-copy h2,
.connect-copy h2,
.section-heading h2,
.ask-copy h2,
.unified-copy h2,
.join-copy h2 {
  margin-bottom: 0;
  font-family: var(--font-editorial-stack);
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.024em;
  line-height: 1.0;
  text-wrap: balance;
}

.problem-copy {
  max-width: 900px;
}

.problem-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
}

.problem-stack span {
  display: flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-weight: 600;
  padding: 0 18px;
  transform: rotate(-1deg);
}

.problem-stack span:nth-child(even) {
  background: var(--warning-soft);
  transform: rotate(1.2deg);
}

.problem-stack span:nth-child(3) {
  background: var(--brand-soft);
}

.problem-stack span:nth-child(4) {
  background: var(--danger-soft);
}

.connect-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 118px 0 108px;
}

.connect-copy p:last-child {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.55;
}

.connect-board {
  position: relative;
  min-height: 500px;
}

.connect-board::before {
  position: absolute;
  inset: 54px 76px;
  border: 1px dashed rgba(36, 49, 39, 0.22);
  border-radius: 50%;
  content: "";
}

.source-card,
.connect-hub {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.source-card {
  width: 190px;
  min-height: 132px;
  padding: 15px;
}

.source-card span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-primary-hover);
  font-family: var(--font-mono-stack);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.source-card strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.1;
}

.source-card p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.source-pos {
  left: 8px;
  top: 42px;
  transform: rotate(-4deg);
}

.source-invoices {
  right: 20px;
  top: 34px;
  background: #fff8e9;
  transform: rotate(4deg);
}

.source-invoices span {
  background: var(--warning-soft);
  color: var(--warning-foreground);
}

.source-stock {
  left: 34px;
  bottom: 40px;
  background: #f8fcfd;
  transform: rotate(3deg);
}

.source-stock span {
  background: var(--info-soft);
  color: var(--info-foreground);
}

.source-recipes {
  right: 0;
  bottom: 54px;
  background: #fff6f4;
  transform: rotate(-5deg);
}

.source-recipes span {
  background: var(--danger-soft);
  color: var(--danger-foreground);
}

.connect-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  overflow: visible;
  background: linear-gradient(90deg, transparent, rgba(47, 125, 87, 0.64), transparent);
  transform-origin: left center;
}

/* A packet of light travels each line from its source card into the Remy hub —
   the "import layer" doing its job, on a continuous, staggered loop. */
.connect-line::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 87, 0.95), rgba(47, 125, 87, 0) 70%);
  content: "";
  opacity: 0;
  animation: flow-pulse 3s var(--ease-in-out) infinite;
}

.connect-line-one::after {
  animation-delay: 0s;
}

.connect-line-two::after {
  animation-delay: 0.5s;
}

.connect-line-three::after {
  animation-delay: 1s;
}

.connect-line-four::after {
  animation-delay: 1.5s;
}

/* The hub brightens as packets land — a soft "received" pulse. */
.connect-hub {
  animation: hub-receive 3s var(--ease-in-out) infinite;
}

.connect-line-one {
  left: 176px;
  top: 178px;
  width: 190px;
  transform: rotate(18deg);
}

.connect-line-two {
  right: 178px;
  top: 174px;
  width: 178px;
  transform: rotate(-21deg);
}

.connect-line-three {
  left: 190px;
  bottom: 178px;
  width: 172px;
  transform: rotate(-20deg);
}

.connect-line-four {
  right: 170px;
  bottom: 182px;
  width: 190px;
  transform: rotate(18deg);
}

.connect-hub {
  left: 50%;
  top: 50%;
  display: grid;
  width: 260px;
  min-height: 168px;
  align-content: center;
  justify-items: center;
  padding: 22px;
  background: var(--brand-deep);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.connect-hub strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.connect-hub p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.system-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* One rail threads the three steps at badge height, echoing the module strip. */
.system-grid::before {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 125, 87, 0.2), rgba(47, 125, 87, 0.72), rgba(47, 125, 87, 0.2));
  content: "";
}

.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 52px;
  transition:
    box-shadow 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.system-card:hover {
  border-color: rgba(47, 125, 87, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Accent rule sits in the lower third and extends on hover — fills what used
   to be dead space with an intentional, interactive detail. */
.system-card::after {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-primary);
  content: "";
  transition: width 320ms var(--ease-out);
}

.system-card:hover::after {
  width: 54px;
}

/* The index is now a coloured badge — the old floating square and the tiny
   number, merged into one purposeful mark. */
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-primary-hover);
  font-family: var(--font-mono-stack);
  font-size: 14px;
  font-weight: 700;
}

.system-card:nth-child(2) .card-index {
  background: var(--warning-soft);
  color: var(--warning-foreground);
}

.system-card:nth-child(3) .card-index {
  background: var(--info-soft);
  color: var(--info-foreground);
}

.system-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.08;
}

.system-card p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.55;
}

/* Ask Remy — the assistant made concrete: a real question, a real answer. */
.ask-section {
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  padding: 24px 0 118px;
  scroll-margin-top: 92px;
}

.ask-copy p:not(.eyebrow) {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.ask-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ask-prompts li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-size: 13.5px;
  font-weight: 600;
  font-style: italic;
  padding: 9px 15px;
}

.ask-prompts li::before {
  margin-right: 7px;
  color: var(--brand-primary);
  content: "“";
  font-weight: 800;
}

.ask-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-float);
}

.ask-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 245, 241, 0.9);
  padding: 14px 16px;
}

.ask-card-head strong {
  font-size: 14px;
}

.ask-thread {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.ask-q {
  justify-self: end;
  max-width: 82%;
  margin: 0;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand-deep);
  color: #fbfaf7;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
}

.ask-a {
  max-width: 94%;
  border: 1px solid rgba(47, 125, 87, 0.18);
  border-radius: 14px 14px 14px 4px;
  background: var(--brand-soft);
  padding: 14px;
}

.ask-a-lead {
  margin: 0 0 11px;
  color: var(--brand-primary-hover);
  font-size: 13px;
  font-weight: 700;
}

.ask-a ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-a li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--foreground);
  font-size: 13.5px;
  line-height: 1.4;
}

.ask-a li strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.ask-tag {
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 999px;
  font-family: var(--font-mono-stack);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 7px;
}

.ask-tag-warn {
  background: var(--warning-soft);
  color: var(--warning-foreground);
}

.ask-tag-danger {
  background: var(--danger-soft);
  color: var(--danger-foreground);
}

.ask-tag-info {
  background: var(--info-soft);
  color: var(--info-foreground);
}

.ask-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 12px 14px 12px 16px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.ask-send {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Remy "responds": the question lands, then the answer and its findings tick
   in one by one. JS-gated, so without motion the full exchange is just there. */
.js .ask-card .ask-q,
.js .ask-card .ask-a {
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity 560ms var(--ease-out),
    translate 560ms var(--ease-out);
}

.js .ask-card .ask-a li {
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 460ms var(--ease-out),
    translate 460ms var(--ease-out);
}

.js .ask-card.is-revealed .ask-q,
.js .ask-card.is-revealed .ask-a,
.js .ask-card.is-revealed .ask-a li {
  opacity: 1;
  translate: 0 0;
}

.js .ask-card.is-revealed .ask-q {
  transition-delay: 200ms;
}

.js .ask-card.is-revealed .ask-a {
  transition-delay: 520ms;
}

.js .ask-card.is-revealed .ask-a li:nth-child(1) {
  transition-delay: 660ms;
}

.js .ask-card.is-revealed .ask-a li:nth-child(2) {
  transition-delay: 780ms;
}

.js .ask-card.is-revealed .ask-a li:nth-child(3) {
  transition-delay: 900ms;
}

.unified-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 44px;
  align-items: center;
  padding: 34px 0 136px;
}

.unified-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  outline: none;
}

.board-side {
  position: relative;
  min-height: 315px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.board-side > span {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.mini-chaos {
  display: grid;
  gap: 10px;
}

.mini-chaos i {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted-foreground);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  padding: 12px;
  transform: rotate(-2deg);
  transition:
    background 340ms var(--ease-out),
    color 340ms var(--ease-out),
    transform 460ms var(--ease-spring);
}

.mini-chaos i:nth-child(even) {
  transform: rotate(2deg);
}

.mini-chaos i:nth-child(2) {
  transition-delay: 50ms;
}

.mini-chaos i:nth-child(3) {
  transition-delay: 100ms;
}

.mini-chaos i:nth-child(4) {
  transition-delay: 150ms;
}

.unified-copy h2 {
  font-size: clamp(36px, 3.8vw, 50px);
}

.unified-board:hover .mini-chaos i,
.unified-board:focus-visible .mini-chaos i,
.unified-board.is-active .mini-chaos i {
  background: #fff;
  color: var(--brand-deep);
  transform: rotate(0deg) translateX(10px);
}

.unified-board:hover .board-calm,
.unified-board:focus-visible .board-calm,
.unified-board.is-active .board-calm {
  border-color: rgba(47, 125, 87, 0.36);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.unified-board:hover .board-arrow,
.unified-board:focus-visible .board-arrow,
.unified-board.is-active .board-arrow {
  background: var(--brand-primary);
}

.board-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--font-mono-stack);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: background 320ms var(--ease-out);
}

.board-hint {
  position: absolute;
  left: 18px;
  bottom: -32px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.board-calm {
  background: var(--brand-soft);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.board-calm strong {
  display: block;
  color: var(--brand-deep);
  font-family: var(--font-editorial-stack);
  font-size: 36px;
  line-height: 1;
}

.board-calm p,
.unified-copy p,
.join-copy p:last-child {
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.55;
}

.board-calm p {
  margin: 22px 0 0;
}

.unified-copy p:last-child {
  margin: 22px 0 0;
}

.join-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  background:
    var(--grain),
    linear-gradient(135deg, rgba(47, 125, 87, 0.16), transparent 36%),
    var(--brand-deep);
  color: #fff;
  padding: 76px max(24px, calc((100vw - var(--max-width)) / 2));
  scroll-margin-top: 92px;
}

.join-section::before {
  position: absolute;
  right: calc(max(24px, (100vw - var(--max-width)) / 2) - 160px);
  top: 50%;
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.join-section::after {
  position: absolute;
  right: calc(max(24px, (100vw - var(--max-width)) / 2) - 40px);
  top: 50%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 87, 0.28), transparent 70%);
  content: "";
  transform: translateY(-50%);
}

.join-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.join-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #d9efe2;
}

.join-copy p:last-child {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.join-actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  max-width: 520px;
}

.join-note {
  flex-basis: 100%;
  max-width: none;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
}

.join-section .button-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.join-section .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Stat band — the editorial numeric beat between Connect and What Remy does,
   pulled onto a deep-green panel so the long cream stretch gets one dark anchor.
   Cream mono numerals on green read like a ledger resolved into clean totals. */
.stat-band {
  position: relative;
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px auto;
  overflow: hidden;
  border-radius: 22px;
  background:
    var(--grain),
    radial-gradient(130% 175% at 50% -45%, rgba(47, 125, 87, 0.38), transparent 60%),
    var(--brand-deep);
  color: #fbfaf7;
  box-shadow: var(--shadow-xl);
}

.stat {
  position: relative;
  padding: 58px 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:first-child {
  border-left: none;
}

.stat strong {
  display: block;
  color: #fbfaf7;
  font-family: var(--font-editorial-stack);
  font-size: clamp(56px, 6.6vw, 90px);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.stat span {
  display: block;
  max-width: 34ch;
  margin-top: 20px;
  color: rgba(251, 250, 247, 0.8);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Footer — grounds the page on the brand's dark base. */
.site-footer {
  background:
    var(--grain),
    var(--brand-deep);
  color: rgba(251, 250, 247, 0.82);
}

.footer-top {
  display: grid;
  width: min(var(--max-width), calc(100% - 48px));
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 44px;
  margin: 0 auto;
  padding: 76px 0 52px;
}

.footer-brand .brand {
  margin-bottom: 20px;
  color: #fff;
}

.footer-brand .brand-mark {
  box-shadow: 0 0 0 1px rgba(251, 250, 247, 0.2);
}

.footer-brand p {
  max-width: 44ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-col h4 {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-col a {
  width: fit-content;
  color: rgba(251, 250, 247, 0.82);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  width: min(var(--max-width), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(251, 250, 247, 0.82);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Reveal choreography — hidden by default only when JS opts in (.js on <html>).
   Uses the `translate` property + opacity so it composes with elements that
   already use `transform` for rotation or centering. JS toggles .is-revealed:
   above-the-fold elements reveal on load, the rest as they scroll into view. */
.js .chaos-stage,
.js .module-node,
.js .problem-copy,
.js .problem-stack span,
.js .connect-copy,
.js .source-card,
.js .connect-hub,
.js .stat,
.js .section-heading,
.js .system-card,
.js .ask-copy,
.js .ask-card,
.js .unified-board,
.js .unified-copy,
.js .join-copy,
.js .join-actions,
.js .footer-brand,
.js .footer-col {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .is-revealed {
  opacity: 1 !important;
  translate: 0 0 !important;
}

/* ---- Hero entrance ---------------------------------------------------- */
/* The headline is the page's signature moment: each line is masked and rises
   into view, staggered, like the scattered work resolving into one clear line. */
h1 .hl {
  display: block;
  overflow: hidden;
  /* Room so descenders + the gold mark underline aren't clipped by the mask;
     negative margins cancel the layout impact so spacing is unchanged. */
  padding: 0.06em 0.05em 0.2em;
  margin: -0.06em -0.05em -0.2em;
}

/* The hero plays on load from CSS alone, so the headline and CTAs are never
   waiting on a script or a scroll event to become visible. */
.js .hero-copy > * {
  animation: hero-rise 760ms var(--ease-out) both;
}

.js .hero-copy > :nth-child(2) { animation-delay: 80ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 420ms; }
.js .hero-copy > :nth-child(5) { animation-delay: 500ms; }
.js .hero-copy > :nth-child(6) { animation-delay: 580ms; }

.js #hero-title {
  /* The lines carry the motion instead of the block. */
  animation: none;
}

.js #hero-title .hl > span {
  display: block;
  animation: hero-line 880ms var(--ease-out) both;
}

.js #hero-title .hl:nth-child(1) > span { animation-delay: 120ms; }
.js #hero-title .hl:nth-child(2) > span { animation-delay: 200ms; }
.js #hero-title .hl:nth-child(3) > span { animation-delay: 280ms; }
.js #hero-title .hl:nth-child(4) > span { animation-delay: 360ms; }

.js #hero-title mark::after {
  transform: rotate(-1.4deg) scaleX(1);
  transition: none;
  animation: mark-draw 700ms var(--ease-out) 900ms both;
}

/* Wordmark settles in with a gentle spring scale instead of a flat slide. */
.js .hero-wordmark {
  transform-origin: left center;
  animation: hero-mark 760ms var(--ease-spring) both;
}

@keyframes hero-rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes hero-line {
  from { translate: 0 120%; }
  to { translate: 0 0; }
}

@keyframes hero-mark {
  from { opacity: 0; scale: 0.9; }
  to { opacity: 1; scale: 1; }
}

@keyframes mark-draw {
  from { transform: rotate(-1.4deg) scaleX(0); }
  to { transform: rotate(-1.4deg) scaleX(1); }
}

/* Chaos stage assembles: the inputs and the Remy core blink into place in
   sequence — scattered pieces snapping into one system. The stage container is
   static; its children carry the entrance so nothing double-fades. */
.js .chaos-stage {
  opacity: 1;
  translate: 0;
}

.js .chaos-stage .mess-card,
.js .chaos-stage .flow-cue,
.js .chaos-stage .remy-core {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 620ms var(--ease-out),
    translate 620ms var(--ease-out);
}

/* The chef's vertical travel is JS-driven (the mood journey), so only fade it. */
.js .chaos-stage .operator-vignette {
  opacity: 0;
  transition: opacity 620ms var(--ease-out);
}

.js .chaos-stage.is-revealed .mess-card,
.js .chaos-stage.is-revealed .flow-cue,
.js .chaos-stage.is-revealed .remy-core {
  opacity: 1;
  translate: 0 0;
}

.js .chaos-stage.is-revealed .operator-vignette {
  opacity: 1;
}

.js .chaos-stage.is-revealed .card-sheet {
  transition-delay: 260ms;
}

.js .chaos-stage.is-revealed .card-invoice {
  transition-delay: 360ms;
}

.js .chaos-stage.is-revealed .card-recipe {
  transition-delay: 460ms;
}

.js .chaos-stage.is-revealed .card-sales {
  transition-delay: 560ms;
}

.js .chaos-stage.is-revealed .flow-cue {
  transition-delay: 680ms;
}

.js .chaos-stage.is-revealed .remy-core {
  transition-delay: 760ms;
}

.js .chaos-stage.is-revealed .operator-vignette {
  transition-delay: 200ms;
}

/* Gentle idle life in the hero — the source pile breathes, and the flow cue nudges
   downward toward the unified Remy view. */
@keyframes source-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes flow-bounce {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-16.6667%);
  }
}

@keyframes status-pop {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

/* Signal relay across the module-proof row. */
@keyframes link-signal {
  0% {
    left: 0;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes core-receive {
  0%,
  72% {
    box-shadow: 0 0 0 0 rgba(47, 125, 87, 0);
  }

  86% {
    box-shadow: 0 0 0 6px rgba(47, 125, 87, 0.16);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 125, 87, 0);
  }
}

/* Data packet travelling a connect-line into the hub. */
@keyframes flow-pulse {
  0% {
    left: 0;
    opacity: 0;
    scale: 0.5;
  }

  16% {
    opacity: 1;
    scale: 1;
  }

  82% {
    opacity: 1;
    scale: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
    scale: 0.5;
  }
}

@keyframes hub-receive {
  0%,
  58% {
    box-shadow: var(--shadow-float);
  }

  78% {
    box-shadow:
      var(--shadow-float),
      0 0 0 7px rgba(47, 125, 87, 0.12),
      0 0 44px rgba(47, 125, 87, 0.34);
  }

  100% {
    box-shadow: var(--shadow-float);
  }
}

/* Soft halo behind the Remy core slowly breathes — the calm system, alive. */
@keyframes core-breathe {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.14);
  }
}


@media (max-width: 1120px) {
  .hero,
  .problem-band,
  .connect-section,
  .ask-section,
  .unified-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 64px;
  }

  .hero {
    padding-bottom: 32px;
  }

  .chaos-stage {
    min-height: 640px;
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .system-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .system-grid::before {
    display: none;
  }

  .module-proof {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    padding-bottom: 86px;
  }

  .connect-board {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .module-link {
    display: none;
  }

  .system-card {
    min-height: 200px;
  }

  .join-section {
    grid-template-columns: 1fr;
  }

  .join-section::before,
  .join-section::after {
    opacity: 0.55;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 32px, var(--max-width));
  }

  .primary-nav {
    display: none;
  }

  .hero,
  .section,
  .module-proof,
  .problem-band,
  .connect-section,
  .stat-band,
  .ask-section,
  .unified-section,
  .footer-top,
  .footer-bottom {
    width: min(100% - 32px, var(--max-width));
  }

  h1 {
    font-size: 56px;
  }

  .problem-copy h2,
  .connect-copy h2,
  .section-heading h2,
  .unified-copy h2,
  .join-copy h2 {
    font-size: 42px;
  }

  .unified-board {
    grid-template-columns: 1fr;
  }

  /* The module strip becomes one swipeable row of chips instead of a tall stack. */
  .module-proof {
    display: flex;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px 64px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .module-proof::-webkit-scrollbar {
    display: none;
  }

  .module-node {
    flex: 0 0 auto;
    min-height: 0;
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    scroll-snap-align: start;
  }

  .module-node strong {
    font-size: 20px;
  }

  .module-node-core .module-logo {
    width: 24px;
    height: 24px;
  }

  .board-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .announcement {
    font-size: 12px;
  }

  .site-header {
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-wordmark {
    width: 112px;
    margin-bottom: 12px;
  }

  .text-link {
    display: none;
  }

  /* On phones the header keeps the new-visitor CTA; Log in sits right below in the hero. */
  .nav-actions .button-secondary {
    display: none;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    gap: 30px;
    padding: 36px 0 58px;
  }

  h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions .button,
  .join-actions .button {
    width: 100%;
  }

  .module-proof {
    padding-bottom: 48px;
  }

  .chaos-stage {
    min-height: auto;
    padding-bottom: 0;
  }

  .chaos-stage::after {
    display: none;
  }

  .source-grid {
    max-width: 100%;
    animation: none;
  }

  .remy-core {
    max-width: 100%;
  }

  .source-grid,
  .remy-core {
    max-width: 100%;
  }

  /* The chef becomes a compact horizontal status card under the Remy view. */
  .operator-vignette {
    position: relative;
    left: auto;
    bottom: auto;
    order: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(260px, 100%);
    min-height: auto;
    padding: 10px 14px 10px 10px;
    transform: rotate(-2deg);
  }

  .operator-drawing {
    flex: 0 0 72px;
    width: 72px;
  }

  .calm-badge {
    position: static;
    flex: 1;
  }

  .problem-band,
  .connect-section,
  .section {
    padding: 78px 0;
  }

  .connect-board {
    display: grid;
    min-height: auto;
    gap: 12px;
  }

  .connect-board::before,
  .connect-line {
    display: none;
  }

  .source-card,
  .connect-hub {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    transform: none;
    animation: none;
  }

  .connect-hub {
    order: -1;
    justify-items: start;
    text-align: left;
  }

  .unified-section {
    padding: 0 0 84px;
  }

  .problem-stack span,
  .mini-chaos i {
    transform: none;
  }

  .problem-band {
    justify-items: start;
    text-align: left;
  }

  .problem-stack {
    justify-content: flex-start;
  }

  .board-side {
    min-height: auto;
  }

  .board-calm strong {
    font-size: 31px;
  }

  .join-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .join-section::before,
  .join-section::after {
    display: none;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 32px 28px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:first-child {
    border-top: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
