/* ============================================================
   Telos One — design system, ported to plain CSS for the
   static blastoff microsites. Tokens are lifted verbatim from
   the Tailwind-4 source (tokens.css); component utilities are
   translated from @apply to real declarations.
   Default = light "FT warm paper". Dark via [data-theme="dark"].
   ============================================================ */

:root {
  /* Backgrounds — warm paper with white surfaces */
  --color-bg-primary: #FFF1E5;
  --color-bg-secondary: #FFF8F4;
  --color-bg-tertiary: #FFF1E5;
  --color-bg-elevated: #FFFFFF;
  --color-bg-muted: #FFF8F4;

  /* Text */
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-text-light: #7A7A7A;
  --color-text-inverted: #FFFFFF;

  /* Brand — Primary (Telos green) */
  --color-primary: #294A47;
  --color-primary-light: #3A5F5B;
  --color-primary-dark: #1E3634;
  --color-primary-contrast: #2D5C5C;

  /* Brand — Accent (coral) */
  --color-accent: #E17668;
  --color-accent-hover: #C95F52;
  --color-accent-light: #F5ADA4;

  /* Borders */
  --color-border: #E6D5C3;
  --color-border-light: #F0E6DA;
  --color-border-dark: #D4C4B0;

  /* Cards & surfaces */
  --color-card-bg: #FFFFFF;
  --color-card-border: #E6D5C3;
  --color-card-hover-bg: #FFF8F4;

  /* Header / footer */
  --color-header-bg: #ffffff;
  --color-footer-bg: #FFF1E5;

  /* Code */
  --color-code-bg: #F2DFCE;
  --color-code-text: #294A47;

  /* Component-specific */
  --color-stat-text: #294A47;
  --color-eyebrow: #E17668;
  --color-link: #294A47;
  --color-link-hover: #E17668;

  /* Icon colours */
  --icon-coral: #C95F52;
  --icon-coral-bg: rgba(225, 118, 104, 0.15);
  --icon-coral-border: rgba(225, 118, 104, 0.25);
  --icon-green: #294A47;
  --icon-green-bg: rgba(41, 74, 71, 0.12);
  --icon-green-border: rgba(41, 74, 71, 0.25);

  /* Surfaces — layered depth */
  --surface-0: #FFF1E5;
  --surface-1: #FFFFFF;
  --surface-2: #FFF8F4;
  --surface-3: #FFF1E5;
  --border-0: 1px solid rgba(0, 0, 0, 0.06);
  --border-1: 1px solid rgba(0, 0, 0, 0.08);
  --border-2: 1px solid rgba(41, 74, 71, 0.35);
  --radius-card: 14px;
  --glow-a: radial-gradient(circle at 50% 0%, rgba(41, 74, 71, 0.04) 0%, transparent 70%);
  --glow-b: radial-gradient(circle at 50% 100%, rgba(41, 74, 71, 0.03) 0%, transparent 60%);
  --lift-1: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --lift-2: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);

  --shadow-glow: 0 0 30px rgba(41, 74, 71, 0.1);
  --shadow-glass: 0 8px 32px rgb(0 0 0 / 0.08);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --text-xs: 0.75rem;  --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem;  --text-2xl: 1.5rem;  --text-3xl: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem;    --text-6xl: 3.75rem;
  --font-normal: 400; --font-medium: 500; --font-semibold: 600; --font-bold: 700;
  --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625;
  --tracking-tight: -0.025em; --tracking-wide: 0.025em; --tracking-wider: 0.05em; --tracking-widest: 0.1em;

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

  /* Radius */
  --radius-sm: 0.25rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
  --radius-2xl: 1.5rem; --radius-full: 9999px;

  /* Motion */
  --motion-ui: 140ms; --motion-press: 90ms; --motion-panel: 220ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-exit: cubic-bezier(0.3, 0, 0.2, 1);

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --z-sticky: 1020;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] {
  --color-bg-primary: #050505;
  --color-bg-secondary: #0A0A0A;
  --color-bg-tertiary: #111111;
  --color-bg-elevated: #1A2B28;
  --color-bg-muted: #0A0A0A;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255,255,255,0.6);
  --color-text-light: rgba(255,255,255,0.4);
  --color-primary: #4A807A;
  --color-primary-light: #5A9690;
  --color-primary-dark: #294A47;
  --color-accent: #E17668;
  --color-accent-hover: #C95F52;
  --color-border: rgba(255,255,255,0.08);
  --color-border-light: rgba(255,255,255,0.05);
  --color-border-dark: rgba(255,255,255,0.12);
  --color-card-bg: rgba(255,255,255,0.03);
  --color-card-border: rgba(255,255,255,0.08);
  --color-card-hover-bg: rgba(255,255,255,0.06);
  --color-header-bg: #050505;
  --color-footer-bg: #050505;
  --color-stat-text: #2D5C5C;
  --color-link: #EFEEE7;
  --color-link-hover: #E17668;
  --surface-0: #050505; --surface-1: #111111; --surface-2: #1A2B28; --surface-3: #243633;
  --border-0: 1px solid hsla(175,45%,65%,0.06);
  --border-1: 1px solid hsla(175,40%,70%,0.10);
  --border-2: 1px solid hsla(175,50%,75%,0.18);
  --glow-a: radial-gradient(circle at 50% 0%, hsla(8,65%,65%,0.08) 0%, transparent 70%);
  --glow-b: radial-gradient(circle at 50% 100%, hsla(8,65%,65%,0.06) 0%, transparent 60%);
  --lift-1: 0 2px 8px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --lift-2: 0 4px 16px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(41,74,71,0.2);
  color-scheme: dark;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; scroll-padding-top: 84px; }
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-feature-settings: 'rlig' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: var(--leading-normal);
  overflow-x: clip; max-width: 100vw; position: relative;
}
a { color: var(--color-link); text-decoration: none; transition: color var(--motion-ui) var(--ease-standard); }
a:hover { color: var(--color-link-hover); }
::selection { background: var(--color-primary); color: var(--color-text-inverted); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 { font-weight: var(--font-semibold); color: var(--color-text); }
h1 { font-size: var(--text-6xl); font-weight: 700; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-xl); line-height: var(--leading-snug); }
@media (max-width: 767px) {
  h1 { font-size: var(--text-4xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
  h2 { font-size: var(--text-3xl); line-height: 1.15; letter-spacing: -0.02em; }
  h3 { font-size: var(--text-xl); line-height: 1.2; }
}

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

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-padding); }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.section { position: relative; width: 100%; padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }

/* ===== TYPE COMPONENTS ===== */
.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-widest); color: var(--color-primary); font-weight: 500; }
.section-title { font-size: 2.25rem; font-weight: 600; color: var(--color-text); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width:640px){ .section-title{ font-size: 2.75rem; } }
@media (min-width:768px){ .section-title{ font-size: 3rem; } }
@media (min-width:1024px){ .section-title{ font-size: 3.75rem; } }
@media (min-width:1280px){ .section-title{ font-size: 4.5rem; } }
.section-description { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
@media (min-width:768px){ .section-description{ font-size: var(--text-base); } }
@media (min-width:1024px){ .section-description{ font-size: var(--text-lg); } }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ===== BUTTONS — outlined, mono, glow on hover ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.5;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; cursor: pointer; text-decoration: none;
  transition: all var(--motion-ui) var(--ease-standard); }
@media (min-width: 768px){ .btn { padding: 0.875rem 1.75rem; font-size: 0.875rem; } }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-primary:hover { background: rgba(225,118,104,0.08); color: var(--color-accent); box-shadow: 0 0 24px rgba(225,118,104,0.2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: none; }
:root:not([data-theme="dark"]) .btn-primary { color: var(--color-primary); border-color: var(--color-primary); }
:root:not([data-theme="dark"]) .btn-primary:hover { background: rgba(41,74,71,0.08); box-shadow: 0 0 24px rgba(41,74,71,0.18); color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border-dark); }
.btn-secondary:hover { border-color: var(--color-primary-light); color: var(--color-primary-light); transform: translateY(-1px); }
.btn-ghost { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--color-text-muted); background: transparent; border: none; padding: 0.5rem 0; cursor: pointer; transition: color var(--motion-ui) var(--ease-standard); }
.btn-ghost:hover { color: var(--color-accent); }
.btn-ghost::after { content: '\2192'; margin-left: 0.25rem; transition: transform var(--motion-ui) var(--ease-standard); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ===== CARDS / SURFACES ===== */
.site-card { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color 0.2s ease, box-shadow var(--motion-ui) var(--ease-standard), transform var(--motion-ui) var(--ease-standard); }
[data-theme="dark"] .site-card { background: var(--surface-1); }
.site-card:hover { border-color: var(--color-accent); }
.site-card--accent { border-top: 2px solid var(--color-accent); border-top-left-radius: 2px; border-top-right-radius: 2px; }
.site-card--accent-green { border-top: 2px solid var(--color-primary); border-top-left-radius: 2px; border-top-right-radius: 2px; }

.surface { position: relative; background: var(--surface-0); border: var(--border-0); border-radius: 14px;
  transition: border-color var(--motion-ui) var(--ease-standard), box-shadow var(--motion-ui) var(--ease-standard), transform var(--motion-ui) var(--ease-standard); }
.surface--base { background: var(--surface-1); border: var(--border-0); }
.surface--raised { background: var(--surface-2); border: var(--border-1); box-shadow: var(--lift-1); }
.surface--interactive { background: var(--surface-1); border: var(--border-0); cursor: pointer; }
.surface--interactive:hover { border-color: hsla(8,65%,65%,0.35); box-shadow: 0 0 24px hsla(8,65%,65%,0.15), var(--lift-1); transform: translateY(-2px); }
.surface--lift { transition: transform var(--motion-ui) var(--ease-standard), box-shadow var(--motion-ui) var(--ease-standard); }
.surface--lift:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.surface--accent-top { border-top: 2px solid var(--color-accent); border-top-left-radius: 2px; border-top-right-radius: 2px; }
.surface--gradient-edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, hsla(8,65%,65%,0.35), hsla(8,65%,65%,0.25), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0; transition: opacity var(--motion-ui) var(--ease-standard); }
.surface--gradient-edge:hover::before { opacity: 1; }
.surface--padding-md { padding: var(--space-6); }
.surface--padding-lg { padding: var(--space-8); }

.stat-value { color: var(--color-stat-text); font-family: var(--font-mono); }
.stat-label { color: var(--color-text-muted); }

/* ===== HERO GLOW ===== */
.hero-glow { position: relative; }
.hero-glow::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: min(800px, 100vw); height: 600px; background: radial-gradient(ellipse at center, hsla(8,65%,65%,0.12) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-glow > * { position: relative; z-index: 1; }

/* ===== ATMOSPHERE / SECTION TREATMENTS ===== */
.section-atmo { position: relative; isolation: isolate; }
.section-atmo-layer { position: absolute; inset: 0; width: 100vw; left: 50%; transform: translateX(-50%); pointer-events: none; z-index: 0; overflow: hidden; }
.section-atmo .section-atmo-layer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 50%;
  background: radial-gradient(ellipse 100% 50% at 50% 0%, hsla(175,45%,65%,0.06) 0%, hsla(175,45%,45%,0.03) 30%, transparent 60%); z-index: 0; }
[data-theme="dark"] .section-atmo .section-atmo-layer::before { background: radial-gradient(ellipse 100% 50% at 50% 0%, hsla(175,45%,65%,0.08) 0%, hsla(175,45%,45%,0.04) 30%, transparent 60%); }
.section-atmo .section-atmo-layer::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 1px;
  background: linear-gradient(to right, transparent 0%, hsla(175,45%,65%,0.10) 20%, hsla(175,45%,65%,0.10) 80%, transparent 100%); z-index: 0; }
.section-atmo--coral .section-atmo-layer::before { background: radial-gradient(ellipse 100% 50% at 50% 0%, hsla(8,65%,65%,0.05) 0%, hsla(8,65%,65%,0.025) 30%, transparent 60%); }
.section-atmo--hero .section-atmo-layer::before { background: radial-gradient(circle at 50% 0%, rgba(225,118,104,0.10) 0%, rgba(106,176,168,0.05) 40%, transparent 70%); height: 80%; }
.section-atmo > * { position: relative; z-index: 1; }

/* Atmosphere primitives */
.bg-atmosphere { position: relative;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(41,74,71,0.05) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(225,118,104,0.03) 0%, transparent 50%),
              radial-gradient(ellipse 70% 50% at 80% 60%, rgba(58,95,91,0.03) 0%, transparent 50%),
              var(--color-bg-primary); }
.bg-grid { position: relative;
  background-image: linear-gradient(var(--color-border-light) 1px, transparent 1px), linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center center; }
.bg-grid::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 0%, var(--color-bg-primary) 100%); pointer-events: none; z-index: 0; }
.bg-noise::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"); }

/* reveal (progressive enhancement) */
html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard); will-change: opacity, transform; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
html.js-reveal .reveal[data-reveal="left"] { transform: translateX(-26px); }
html.js-reveal .reveal[data-reveal="right"] { transform: translateX(26px); }
html.js-reveal .reveal[data-reveal="scale"] { transform: scale(0.96); }
html.js-reveal .reveal.in[data-reveal] { transform: none; }
[data-delay="1"] { transition-delay: .08s; } [data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; } [data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; } [data-delay="6"] { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { html.js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   SHARED SITE CHROME — header, footer, theme toggle, mobile nav.
   Canonical across every page so the microsite feels like one
   continuous product. Markup contract documented inline.
   ============================================================ */

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--color-header-bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--color-text); display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.logo:hover { color: var(--color-text); }
.logo .mark { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); flex: 0 0 auto; }
.logo img { height: 24px; width: auto; display: block; }
[data-theme="dark"] .logo-light { display: none; }
:root:not([data-theme="dark"]) .logo-dark { display: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; color: var(--color-text-muted); position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--color-accent); transition: right var(--motion-panel) var(--ease-standard); }
.nav a:not(.btn):hover { color: var(--color-text); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { right: 0; }
.nav a.is-current { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.theme-toggle { width: 34px; height: 34px; border-radius: var(--radius-full); border: 1px solid var(--color-border-dark); background: transparent; color: var(--color-text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--motion-ui) var(--ease-standard); flex: 0 0 auto; }
.theme-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .theme-toggle .moon, :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
.nav-toggle { display: none; width: 38px; height: 34px; border-radius: var(--radius-md); border: 1px solid var(--color-border-dark); background: transparent; color: var(--color-text); cursor: pointer; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle .bars i { display: block; width: 15px; height: 1.5px; background: currentColor; transition: var(--motion-panel) var(--ease-standard); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--color-header-bg) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border); padding: 0.5rem var(--container-padding) 1rem;
    transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform var(--motion-panel) var(--ease-standard), opacity var(--motion-panel) var(--ease-standard); }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; }
  .nav a:not(.btn)::after { display: none; }
  /* keep the header CTA on one line in the crowded mobile bar */
  .header-actions { gap: 0.5rem; }
  .header-actions .btn-sm { white-space: nowrap; padding: 0.5rem 0.72rem; font-size: 0.7rem; }
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-footer-bg); padding-block: 3.5rem 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { font-weight: 700; color: var(--color-text); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; }
.foot-logo .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.foot-logo img { height: 22px; width: auto; display: block; }
.foot-tagline { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.55; max-width: 34ch; }
.foot-social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.foot-social a { width: 34px; height: 34px; border-radius: var(--radius-full); border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all var(--motion-ui) var(--ease-standard); }
.foot-social a:hover { color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); }
.foot-social svg { width: 16px; height: 16px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-light); font-weight: 500; margin-bottom: 0.875rem; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-col li a { font-size: 0.9375rem; color: var(--color-text-muted); }
.foot-col li a:hover { color: var(--color-accent); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-light); }
.foot-bottom a { color: var(--color-text-light); } .foot-bottom a:hover { color: var(--color-accent); }

/* ---- Reusable interaction utilities ---- */
/* Coral spotlight that follows the cursor (add class .spot + the element gets --mx/--my from experience.js) */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.3s var(--ease-standard); pointer-events: none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), hsla(8,65%,65%,0.14), transparent 60%); }
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
/* Eyebrow reads coral on dark, green on light (brand convention) */
[data-theme="dark"] .eyebrow { color: var(--color-primary-light); }
/* Section number chip */
.kicker { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent); }

/* ============================================================
   COHESIVE EXPERIENCE LAYER
   Cross-page view transitions + persistent chrome + a shared
   entrance choreography, so the seven pages read as one
   continuous interactive product rather than separate reloads.
   Progressive enhancement: unsupported browsers just navigate.
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .26s var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-in .40s var(--ease-standard) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.995); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(16px) scale(0.995); } }

/* chrome persists across navigations (header/footer don't cross-fade — they morph) */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* consistent first-load hero entrance (skip elements already handled by .reveal) */
html.js-reveal .hero-inner:not(.reveal),
html.js-reveal .hero .hero-left:not(.reveal),
html.js-reveal .hero .hero-meta:not(.reveal) { animation: heroIn .8s var(--ease-standard) both; }
html.js-reveal .hero .rocket-wrap:not(.reveal),
html.js-reveal .hero .hero-aside:not(.reveal),
html.js-reveal .hero .term:not(.reveal) { animation: heroIn .9s var(--ease-standard) .12s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html.js-reveal .hero-inner:not(.reveal), html.js-reveal .hero .hero-left:not(.reveal),
  html.js-reveal .hero .hero-meta:not(.reveal), html.js-reveal .hero .rocket-wrap:not(.reveal),
  html.js-reveal .hero .hero-aside:not(.reveal), html.js-reveal .hero .term:not(.reveal) { animation: none; }
}

/* ============================================================
   EXPERIENCE ENGINE — shared styles for the cinematic layer
   (custom cursor, in-hero WebGL stage). Used by every page that
   loads assets/experience.js.
   ============================================================ */
html.lx-cursor-on, html.lx-cursor-on a, html.lx-cursor-on button { cursor: none; }
.lx-cursor-dot { position: fixed; top: -4px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent, #E17668); z-index: 10001; pointer-events: none; will-change: transform; }
/* the ring is a difference-blend disc: over interactive text it expands into
   a masking window that inverts the colours beneath it (spec §5.4) */
.lx-cursor-ring { position: fixed; top: -9px; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; mix-blend-mode: difference; z-index: 10000; pointer-events: none; will-change: transform, width, height; transition: width .3s var(--ease-standard), height .3s var(--ease-standard), top .3s var(--ease-standard), left .3s var(--ease-standard); }
.lx-cursor-ring.is-hover { width: 76px; height: 76px; top: -38px; left: -38px; }

/* living shader inside a hero section (content pages). The shader paints
   its own dark field, so it only runs on the dark theme; light theme keeps
   the static bloom. */
.lx-stage-hero { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
:root[data-theme="light"] .lx-stage-hero, [data-theme="light"] .lx-stage-hero { display: none; }
/* the stage must stay absolutely positioned even where page CSS lifts all
   hero children into flow with `.hero > * { position: relative; z-index: 1 }` */
.hero > .lx-stage-hero, section > .lx-stage-hero, .stage > .lx-stage-hero { position: absolute; inset: 0; z-index: 0; }

/* context-aware cursor: drag affordance over inertial surfaces (spec §5.4) */
.lx-cursor-ring.is-drag { width: 56px; height: 56px; top: -28px; left: -28px; }
.lx-cursor-ring.is-drag::after { content: '\2194'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--font-sans); color: #fff; }

/* ============================================================
   COMPACT CINEMATIC OPENER — service pages inherit the hub's
   entrance grammar (pinned ~175vh, kinetic hero, scroll cue),
   then release into normal document flow for the educate/prove
   content. Applied by adding .act.act--open-lite to the hero
   and wrapping its content in .stage.
   ============================================================ */
/* min-height (not height): if the hero content is taller than the scroll
   window the act grows to contain it instead of bleeding over what follows */
html.js-reveal .act--open-lite { min-height: 145vh !important; }
.act--open-lite { position: relative; display: block !important; min-height: 0 !important; padding: 0 !important; --p: 0; }
.act--open-lite > .stage { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(76px, 10vh, 120px) var(--gutter, var(--container-padding)) clamp(40px, 7vh, 80px); }
.act--open-lite > .stage > *:not(.lx-stage-hero):not(.hero-grid):not(.open-cue) {
  transform: translateY(calc(var(--p) * -6vh));
  /* fade eases, never fully empties — no blank gap before the next section */
  opacity: calc(1 - max(0, (var(--p) - 0.55)) * 1.5);
}
/* The shader canvas must paint UNDER the hero content. The legacy pages'
   `.hero > *` elevation stopped matching once content moved into .stage,
   and iOS Safari (per spec paint order) draws a positioned z-0 canvas over
   in-flow statics — blanking the whole hero. Isolating the stage and
   sinking the canvas keeps every child, static or positioned, above it. */
.act--open-lite > .stage { isolation: isolate; }
.act--open-lite .lx-stage-hero { z-index: -1; }
.open-cue { position: absolute; left: 50%; bottom: 4vh; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-light);
  opacity: calc(1 - var(--p) * 4); pointer-events: none; }
.open-cue::after { content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--color-accent), transparent); animation: lxCueDrop 1.6s var(--ease-standard) infinite; }
@keyframes lxCueDrop { from { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } to { transform: scaleY(1); opacity: 0; } }
/* mobile: heroes stack far taller than the viewport, so pinning would
   bleed them over the next section — fall back to normal flow */
@media (max-width: 767px) {
  html.js-reveal .act--open-lite { height: auto; min-height: 0 !important; }
  .act--open-lite > .stage { padding-top: clamp(60px, 8vh, 84px); }
  .act--open-lite > .stage { position: relative; min-height: 100dvh; overflow: visible; justify-content: flex-start; }
  .act--open-lite > .stage > *:not(.lx-stage-hero):not(.hero-grid):not(.open-cue) { transform: none; opacity: 1; }
  .open-cue { display: none; }
}
html.lx-reduce .act--open-lite { height: auto !important; }
html.lx-reduce .act--open-lite > .stage { position: relative; min-height: 0; }
html.lx-reduce .open-cue, html:not(.js-reveal) .open-cue { display: none; }

/* hero CTA row (shared) */
.hero-actions { margin: 1.6rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
/* legacy heroes space children with flex gap already — drop the extra margin */
.hero-left > .hero-actions { margin: 0.2rem 0 0; }

/* ============================================================
   MOTION VOCABULARY — one physics identity site-wide.
   CSS:   --ease-standard (workhorse) / --ease-exit / --motion-ui
   GSAP:  'lx' (= --ease-standard) / 'lxExit' / 'lxSnap' (deck settle)
          power4.out reserved for the single hero entrance per page
   Svelte springs: stiffness 0.1 / damping 0.25 (Blueprint A)
   ============================================================ */

/* ============================================================
   VIEW TRANSITIONS (ClientRouter) — the site is one continuous
   surface: the root crossfades on the brand curve, and a clicked
   deck panel morphs into the service page's hero.
   ============================================================ */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: var(--ease-standard);
}
/* morphing panels travel on the same curve, slightly longer for the ride */
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease-standard); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-image-pair(*),
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
