/* ==========================================================================
   Trellus — landing page stylesheet
   Brand: Carbon ground, Directoire Blue + Simply Green, Spectral + Inter.
   Two-color split wordmark (tre + us blue, ll green). Editorial, squared (4px).
   Color discipline (Vol. 3 §8.2): tangerine = alert only; green = sparse
   genuine positives; blue = data/links; steady is neutral, not green.
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */

:root {
  /* Carbon ground (brand) + derived neutrals (Vol. 1 §8.1) */
  --carbon:         #0c1119;   /* page ground (blue-black) */
  --carbon-soft:    #191c24;   /* alternating section bg (neutral-850) */
  --carbon-card:    #19222f;   /* card bg (blue-grey, de-greened) */
  --carbon-raised:  #39424d;   /* card chrome / raised (neutral-600) */
  --carbon-deep:    #0a0e18;   /* footer (blue-black) */
  --carbon-border:  #2f3742;   /* borders (neutral-700) */

  /* Brand hues */
  --directoire:        #0061a3;   /* primary — exact brand */
  --directoire-bright: #4c95cf;   /* legible blue accent on dark */
  --simply:            #009b74;   /* accent — exact brand */
  --simply-bright:     #2fbf98;   /* legible green accent on dark */
  --tangerine:         #dd4124;   /* alert / urgent ONLY */
  --tangerine-bright:  #ef7a62;

  /* Neutrals (brand) */
  --wispy:          #f0efee;   /* light text / inverted bg */
  --microchip:      #babcc0;   /* muted text */
  --neutral-400:    #868c93;   /* faint */
  --neutral-faint:  #5f676b;

  /* Semantic text */
  --ink:            var(--wispy);
  --ink-muted:      #c8cbc6;
  --ink-soft:       var(--microchip);
  --ink-faint:      var(--neutral-400);

  --link:           var(--directoire-bright);
  --link-hover:     #74b2e2;

  /* Tints */
  --blue-tint:      rgba(0, 97, 163, 0.16);
  --green-tint:     rgba(0, 155, 116, 0.16);
  --tangerine-tint: rgba(221, 65, 36, 0.16);
  --grey-tint:      rgba(186, 188, 192, 0.12);

  --line:           rgba(240, 239, 238, 0.08);
  --line-strong:    rgba(240, 239, 238, 0.14);
  --line-soft:      rgba(240, 239, 238, 0.04);

  --success:        var(--directoire-bright);
  --warn:           var(--tangerine-bright);
  --error:          var(--tangerine);

  /* Inverted (Wispy) panel */
  --wispy-ink:      var(--carbon);

  /* Type — Spectral display + Inter body (Vol. 1 §8.3) */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Spectral", ui-serif, Georgia, "Iowan Old Style", Baskerville, "Times New Roman", serif;

  /* Type scale (Vol. 1 §8.4): display-64 / display-46 / heading-26 / body-17 / label-11 */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;   /* body-17 */
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);   /* heading-26 */
  --fs-2xl: clamp(1.625rem, 1.4rem + 1vw, 2.125rem);
  --fs-3xl: clamp(2rem, 1.6rem + 2vw, 2.875rem);        /* display-46 */
  --fs-display: clamp(2.5rem, 1.95rem + 3vw, 4rem);     /* display-64 */
  --fs-label: 0.6875rem;                                /* label-11 */

  /* Space scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* Geometry — editorial, squared (brand uses 4px) */
  --radius-sm: 3px;
  --radius:    4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.20);
  --shadow:     0 4px 6px -2px rgba(0, 0, 0, 0.25), 0 14px 28px -10px rgba(0, 0, 0, 0.50);
  --shadow-lg:  0 14px 28px -12px rgba(0, 0, 0, 0.40), 0 32px 64px -24px rgba(0, 0, 0, 0.65);
  --glow-blue:  0 0 0 1px rgba(0, 97, 163, 0.45), 0 10px 36px -14px rgba(0, 97, 163, 0.55);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: #0a0e18;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button { font: inherit; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color 120ms var(--ease);
}
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--directoire-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(40, 112, 188, 0.32);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  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;
  top: -40px;
  left: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--wispy);
  color: var(--carbon);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: var(--sp-4); }

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

/* ---- Global animated backdrop -------------------------------------------- */
/* One fixed blue/green mesh behind everything — sections are transparent, so
   the page reads as a single continuous scroll (no per-section banding). */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(125% 90% at 50% -8%, #16243f 0%, #0b1020 46%, #07080d 100%);
}
.bg-mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.bg-mesh__blob--1 {
  width: 60vw; height: 60vw; top: -20%; left: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 97, 163, 0.42), rgba(0, 97, 163, 0) 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.bg-mesh__blob--2 {
  width: 52vw; height: 52vw; top: -10%; right: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(40, 112, 188, 0.36), rgba(40, 112, 188, 0) 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.bg-mesh__blob--3 {
  width: 50vw; height: 50vw; bottom: -18%; left: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 92, 156, 0.32), rgba(0, 92, 156, 0) 70%);
  animation: drift3 28s ease-in-out infinite alternate;
}
.bg-mesh__blob--4 {
  width: 46vw; height: 46vw; bottom: -16%; right: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 97, 163, 0.32), rgba(0, 97, 163, 0) 70%);
  animation: drift4 34s ease-in-out infinite alternate;
}
.bg-mesh__blob--5 {
  width: 42vw; height: 42vw; top: 36%; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(40, 112, 188, 0.18), rgba(0, 97, 163, 0.10) 55%, transparent 75%);
  animation: drift5 38s ease-in-out infinite alternate;
}
.bg-mesh__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: screen;
}

@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(7vw,4vh,0) scale(1.08); } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1.05); } 100% { transform: translate3d(-6vw,6vh,0) scale(1); } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(5vw,-5vh,0) scale(1.1); } }
@keyframes drift4 { 0% { transform: translate3d(0,0,0) scale(1.02); } 100% { transform: translate3d(-4vw,-3vh,0) scale(1); } }
@keyframes drift5 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(-3vw,3vh,0) scale(1.07); } }

/* ---- Wordmark ------------------------------------------------------------- */

.wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: 1.5rem;
  display: inline-block;
  white-space: nowrap;
}
.wordmark__b { color: var(--directoire); }
.wordmark__g { color: var(--simply); }
/* Trellus wordmark — single SVG asset (/assets/trellus-wordmark.svg): green "t",
   off-white "rellus". Sized off the inherited .wordmark font-size. */
.wordmark .tw,
.tw {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: -0.2em;
}

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

.btn {
  --btn-bg: var(--directoire);
  --btn-fg: #fff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8125rem 1.375rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 140ms var(--ease), box-shadow 220ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--directoire);
  --btn-fg: #fff;
}
.btn--primary:hover {
  --btn-bg: #0a72bb;
  box-shadow: var(--glow-blue);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: rgba(240, 239, 238, 0.04);
  --btn-border: var(--directoire-bright);
  color: var(--ink);
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-xs);
}

.btn__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: none;
  animation: spin 800ms linear infinite;
}
.btn[data-loading="true"] .btn__label { opacity: 0.55; }
.btn[data-loading="true"] .btn__spinner { display: inline-block; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 25, 22, 0.78);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--carbon-border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
}
.brand .wordmark { font-size: 1.9rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav__link {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.site-nav__link:hover { color: var(--ink); }

.site-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.site-nav__toggle-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: var(--carbon-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  padding: var(--sp-3) var(--sp-2);
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__link:last-of-type { border-bottom: none; }
.mobile-nav__cta { margin-top: var(--sp-3); width: 100%; padding: 1rem; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-nav__toggle { display: flex; }
}

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

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
  background: transparent;
}

.hero__inner { position: relative; text-align: center; max-width: 900px; }

.hero__eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--microchip);
  margin: 0 0 var(--sp-5);
}

/* Hero brand lockup — the wordmark IS the identity, so it leads big */
.hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--sp-8);
}
.hero__wordmark { font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 0.9; }
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--microchip);
}

.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 var(--sp-6);
}
.hero__heading-accent {
  background: linear-gradient(100deg, var(--directoire-bright) 0%, var(--simply-bright) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  font-style: italic;
  font-weight: 500;
}

.hero__subhead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 660px;
  margin: 0 auto var(--sp-6);
}
.hero__subhead-em {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink);
}

/* Competitive line (Vol. 3 §6.5) — secondary, below the hero */
.hero__compare {
  max-width: 600px;
  margin: 0 auto var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.hero__compare strong { color: var(--ink); font-weight: 600; }

.hero__proof {
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ---- Lead form ----------------------------------------------------------- */

.lead-form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--carbon-card);
  border: 1px solid var(--carbon-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  transition: border-color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.lead-form:focus-within {
  border-color: var(--directoire-bright);
  box-shadow: 0 0 0 4px var(--blue-tint), var(--shadow);
}
.lead-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.lead-form__input::placeholder { color: var(--ink-faint); }
.lead-form__submit { flex-shrink: 0; }

.lead-form__status {
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  margin: 0;
  font-size: var(--fs-sm);
  text-align: center;
  color: var(--ink-muted);
  min-height: 1.4em;
}
.lead-form__status[data-state="success"] { color: var(--success); }
.lead-form__status[data-state="error"]   { color: var(--tangerine-bright); }

@media (max-width: 520px) {
  .lead-form { flex-direction: column; border-radius: var(--radius-lg); padding: var(--sp-3); }
  .lead-form__input { width: 100%; text-align: center; padding: var(--sp-3); }
  .lead-form__submit { width: 100%; padding: 1rem; }
}

/* ---- Section headers ----------------------------------------------------- */

.section-header { text-align: center; max-width: 740px; margin: 0 auto var(--sp-16); }
.section-header__eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--directoire-bright);
  margin: 0 0 var(--sp-4);
}
.section-header__heading {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.section-header__subhead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ---- Moments ------------------------------------------------------------- */

.magic-moments { padding: clamp(5rem, 10vw, 8rem) 0; background: transparent; position: relative; }

.moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.moment:last-of-type { border-bottom: none; }
.moment--reverse .moment__copy { order: 2; }
.moment--reverse .moment__visual { order: 1; }

.moment__number {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--directoire-bright);
  margin: 0 0 var(--sp-4);
}
.moment__heading {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.moment__lede {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-6);
  max-width: 30rem;
}
.moment__points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.moment__points li {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink-muted);
  padding-left: var(--sp-5);
  position: relative;
}
.moment__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--directoire-bright);
}
.moment__point-key { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .moment { grid-template-columns: 1fr; gap: var(--sp-10); }
  .moment--reverse .moment__copy { order: 1; }
  .moment--reverse .moment__visual { order: 2; }
}

/* ---- Mock UI cards ------------------------------------------------------- */

.mock {
  background: var(--carbon-card);
  border: 1px solid var(--carbon-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 97, 163, 0.34), rgba(40, 112, 188, 0.20) 60%, transparent);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--carbon-raised);
  border-bottom: 1px solid var(--carbon-border);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neutral-faint); }
.mock__title {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: var(--sp-3);
}
.mock__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }

.mock__group-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: var(--sp-1) 0 calc(var(--sp-1) * -1);
}

.mock__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
/* Avatars stay within blue/neutral — tangerine is reserved for alerts,
   green is reserved for genuine positives (Vol. 3 §8.2 rules 1 & 3). */
.mock__avatar--a { background: linear-gradient(135deg, #0061a3, #4c95cf); }
.mock__avatar--b { background: linear-gradient(135deg, #1f6f9c, #4c95cf); }
.mock__avatar--c { background: linear-gradient(135deg, #0061a3, #39424d); }
.mock__avatar--d { background: linear-gradient(135deg, #39424d, #5f676b); }
.mock__avatar--e { background: linear-gradient(135deg, #3b6f8f, #5fa0c4); }
.mock__avatar--f { background: linear-gradient(135deg, #868c93, #babcc0); color: var(--carbon); }

/* Intelligence mock — Follow Up signals + family survival sparkline.
   Only "Act now" is loud (tangerine); "This week" is a tangerine dot on
   neutral; "On track" is neutral (steady is not green). */
.mock__signal {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(240, 239, 238, 0.02);
}
.mock__signal--act    { background: var(--tangerine-tint); border-color: rgba(221, 65, 36, 0.32); }
.mock__signal--week   { background: rgba(240, 239, 238, 0.02); border-color: var(--line); }
.mock__signal--steady { background: rgba(240, 239, 238, 0.02); border-color: var(--line); }
.mock__signal-meta { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.mock__signal-name {
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink);
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
}
.mock__signal-note { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 2px; }
.mock__chip {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--microchip); background: var(--grey-tint);
  padding: 0.1rem 0.4rem; border-radius: var(--radius-sm);
}
.mock__badge {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-sm);
  white-space: nowrap; flex-shrink: 0;
}
.mock__badge--act  { background: var(--tangerine); color: #fff; }
.mock__badge--week {
  background: var(--grey-tint); color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.mock__badge--week::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tangerine); flex-shrink: 0;   /* "on the radar" dot */
}
.mock__badge--steady { background: var(--grey-tint); color: var(--microchip); }

.mock__sparkline {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-top: var(--sp-1);
  padding: var(--sp-3);
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mock__sparkline-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
.mock__sparkline-label { font-size: var(--fs-xs); color: var(--ink-soft); }
.mock__sparkline-stat { font-size: var(--fs-sm); font-weight: 600; color: var(--directoire-bright); font-variant-numeric: tabular-nums; }
.mock__sparkline-foot { font-size: var(--fs-label); color: var(--ink-faint); }
.mock__sparkline svg { display: block; }
.mock__spark-band { fill: rgba(221, 65, 36, 0.10); }   /* the drop-off window — bad data */
.mock__spark-area { fill: rgba(0, 97, 163, 0.12); opacity: 0; animation: fadeIn 900ms ease 1400ms forwards; }
.mock__spark-line {
  fill: none; stroke: var(--directoire-bright); stroke-width: 2;   /* data = blue */
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: drawLine 1800ms var(--ease) 600ms forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn   { to { opacity: 1; } }

/* Scheduler mock — gap-fill drawer */
.mock__drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-3); padding-bottom: var(--sp-1);
}
.mock__drawer-room { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.mock__drawer-sub { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 2px; }
.mock__crit {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; background: var(--tangerine);
  padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.mock__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr) auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink);
  border: 1px solid transparent;
}
.mock__row--rank-1 { background: var(--blue-tint); border-color: rgba(0, 97, 163, 0.30); }
.mock__row--rank-2, .mock__row--rank-3 { background: rgba(240, 239, 238, 0.02); border-color: var(--line); }
.mock__row--muted { opacity: 0.5; }
.mock__person { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.mock__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__tier {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.1rem 0.4rem; border-radius: var(--radius-sm); flex-shrink: 0;
}
/* "Proven" = a genuine, earned positive (served there, shows up) — the one
   sparse green in this card; Primary = brand/data blue; Stated = neutral. */
.mock__tier--primary { background: var(--blue-tint); color: #6aa9d9; }
.mock__tier--proven  { background: var(--green-tint); color: var(--simply-bright); }
.mock__tier--stated  { background: var(--grey-tint); color: var(--microchip); }
.mock__subbadge {
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.1rem 0.35rem; border-radius: var(--radius-sm);
  background: var(--grey-tint); color: var(--ink-faint); flex-shrink: 0;
}
.mock__match { display: flex; align-items: center; }
.mock__bar {
  flex: 1; height: 6px;
  background: var(--carbon); border: 1px solid var(--line);
  border-radius: var(--radius-pill); overflow: hidden; min-width: 48px;
}
.mock__bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--directoire-bright);   /* score = data = blue */
  border-radius: var(--radius-pill);
  animation: fillBar 1300ms var(--ease) 500ms forwards;
}
@keyframes fillBar { to { width: var(--pct); } }
.mock__assign {
  font-size: var(--fs-xs); font-weight: 600; color: var(--directoire-bright);
  white-space: nowrap; padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.mock__assign--off { color: var(--ink-faint); border-color: transparent; }
.mock__more { font-size: var(--fs-xs); color: var(--ink-soft); padding: var(--sp-1) var(--sp-2); }

.mock__action { display: flex; justify-content: flex-end; margin-top: var(--sp-2); }
.mock__button {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: var(--fs-xs); font-weight: 600;
  color: #fff; background: var(--directoire);
  border-radius: var(--radius-sm);
}
.mock__button--ghost { color: var(--ink-muted); background: transparent; border: 1px solid var(--line-strong); }

/* Appreciation mock — letter card with a soft green inflection (a genuine
   celebration is one of green's sanctioned homes). */
.mock--appreciation .mock__body {
  background: linear-gradient(180deg, var(--carbon-card) 0%, rgba(0, 155, 116, 0.07) 260%);
}
.mock__letter {
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  padding: var(--sp-2) var(--sp-1);
}
.mock__letter p { margin: 0 0 var(--sp-3); }
.mock__letter p:last-child { margin: 0; }
.mock__sign-off { margin-top: var(--sp-4) !important; font-style: italic; color: var(--ink-muted); }
.mock__letter-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---- Real product screenshots (framed like the mocks) -------------------- */
.shot {
  margin: 0;
  position: relative;
  border: 1px solid var(--carbon-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--carbon-card);
}
.shot::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 97, 163, 0.34), rgba(40, 112, 188, 0.20) 60%, transparent);
  z-index: -1; filter: blur(20px); opacity: 0.5;
}
.shot__img { display: block; width: 100%; height: auto; }

/* ---- Why Trellus — two kinds of hard (Vol. 3 §4.2) ----------------------- */

.moral { padding: clamp(5rem, 10vw, 8rem) 0; background: transparent; position: relative; }
.moral__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 760px) { .moral__cols { grid-template-columns: 1fr; } }
.moral__col {
  background: var(--carbon-card);
  border: 1px solid var(--carbon-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.moral__col--ops { border-color: rgba(0, 97, 163, 0.40); box-shadow: var(--glow-blue); }
.moral__kind {
  font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 500;
  color: var(--ink); margin: 0 0 var(--sp-3);
}
.moral__desc { color: var(--ink-muted); line-height: 1.55; margin: 0 0 var(--sp-5); }
.moral__tag {
  margin: 0; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--microchip);
}
.moral__tag--ops { color: var(--directoire-bright); }
.moral__principle {
  max-width: 620px; margin: var(--sp-12) auto 0; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-xl);
  line-height: 1.4; color: var(--ink);
}

/* For-your-executive-pastor aside (Vol. 3 §5.1) — efficiency angle, no fabricated numbers */
.moral__xp {
  max-width: 620px; margin: var(--sp-10) auto 0;
  padding-top: var(--sp-8); border-top: 1px solid var(--line);
  text-align: center;
}
.moral__xp-label {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--directoire-bright);
}
.moral__xp-line { margin: 0; font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-muted); }
.moral__xp-line strong { color: var(--ink); font-weight: 600; }

/* ---- Closer -------------------------------------------------------------- */

.closer {
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  background: transparent;
  position: relative;
}
.closer__inner { max-width: 640px; margin: 0 auto; position: relative; }
.closer__heading {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
}
.closer__subhead { font-size: var(--fs-lg); color: var(--ink-muted); margin: 0 0 var(--sp-8); }

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

.site-footer {
  padding: var(--sp-16) 0 var(--sp-8);
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-12);
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); } }

.brand--footer .wordmark { font-size: 1.5rem; }
.site-footer__byline { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--ink); }
.site-footer__pco { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--ink-faint); }

.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 520px) { .site-footer__nav { grid-template-columns: 1fr 1fr; } }
.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 var(--sp-4);
}
.site-footer__col a { display: block; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.site-footer__col a:hover { color: var(--ink); }

.site-footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.site-footer__base p { margin: 0; }

/* ---- Reveal-on-scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
