/* ============================================================
   SchoolforAI — editorial paper + ink + terra design system
   ============================================================ */

:root {
  /* Paper / ink */
  --paper: #f3ece0;        /* warm cream */
  --paper-2: #ece4d4;      /* slightly deeper */
  --paper-3: #dccfb8;      /* a soft tone for blocks */
  --paper-tint: #f8f3ea;   /* near-white card surface */

  --ink: #0e0a06;          /* warm black */
  --ink-2: #2a241d;        /* secondary */
  --ink-3: #6b6356;        /* tertiary text */
  --ink-4: #a39989;        /* faint */

  /* Brand accent — from logo */
  --terra: #c74c2c;
  --terra-deep: #8e351e;
  --terra-soft: #e8704a;
  --terra-tint: #f1a581;
  --terra-wash: #f6dcc8;

  /* Lines & rules */
  --rule: rgba(14, 10, 6, 0.10);
  --rule-strong: rgba(14, 10, 6, 0.22);
  --rule-faint: rgba(14, 10, 6, 0.05);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1240px;
  --max-wide: 1360px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }

::selection { background: var(--terra); color: var(--paper); }

/* ============================================================
   PAPER BACKDROP — subtle, intentional
   ============================================================ */
.paper-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(199, 76, 44, 0.10), transparent 60%),
    radial-gradient(900px 800px at 110% 8%, rgba(199, 76, 44, 0.06), transparent 60%),
    var(--paper);
}
.paper-bg::after {
  /* very faint dot grid */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 10, 6, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 1400px 900px at 50% 30%, black 0%, transparent 75%);
  opacity: 0.55;
}

.app-shell { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-serif { font-family: var(--font-serif); font-style: italic; }
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--terra); }
.eyebrow .rule { display: inline-block; width: 22px; height: 1px; background: var(--ink-3); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 40px;
}
.section-wide { max-width: var(--max-wide); }
.section-tight { padding: 80px 40px; }
.rule { height: 1px; background: var(--rule); border: none; margin: 0; }
.rule-strong { background: var(--rule-strong); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(243, 236, 224, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(243, 236, 224, 0.92);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 24px rgba(14, 10, 6, 0.06);
  padding: 12px 40px;
}
.nav-logo {
  display: flex; align-items: center;
  height: 28px;
}
.nav-logo img { height: 100%; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 13.5px; color: var(--ink-2);
  font-weight: 450;
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--terra);
  transition: right 0.25s cubic-bezier(.4,0,.2,1);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-links a:not(.nav-cta):hover { color: var(--terra); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(199, 76, 44, 0.30);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), background 0.22s, color 0.22s, box-shadow 0.22s, border-color 0.22s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(14, 10, 6, 0.18);
}
.btn-primary:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 76, 44, 0.32);
}
.btn-terra {
  background: var(--terra);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(199, 76, 44, 0.22);
}
.btn-terra:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 76, 44, 0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(14, 10, 6, 0.04);
  transform: translateY(-1px);
}
.btn-arrow svg { transition: transform 0.22s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px 40px 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin-top: 30px;
}
.hero h1 .ln { display: block; }
.hero h1 .ln-2 { padding-left: 0.06em; }
.hero h1 .terra { color: var(--terra); }
.hero-sub {
  margin-top: 32px;
  max-width: 480px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-foot {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-foot .item .k {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 500;
}
.hero-foot .item .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ============================================================
   3D SCENE (light theme)
   ============================================================ */
.scene-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}
.scene-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1);
}
.scene-3d * { transform-style: preserve-3d; }

/* Iso floor — paper plate */
.iso-floor {
  position: absolute;
  left: 50%; top: 58%;
  width: 460px; height: 460px;
  margin-left: -230px; margin-top: -230px;
  transform: rotateX(64deg) rotateZ(-32deg);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(199, 76, 44, 0.20), rgba(199, 76, 44, 0.04) 50%, transparent 75%);
}
.iso-floor::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 10, 6, 0.10) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(14, 10, 6, 0.10) 1px, transparent 1px) 0 0 / 36px 36px;
  mask-image: radial-gradient(circle, black 0%, black 45%, transparent 75%);
  border-radius: 50%;
}
.iso-floor::after {
  content: '';
  position: absolute; inset: 25%;
  background: radial-gradient(circle, rgba(199, 76, 44, 0.35), transparent 65%);
  border-radius: 50%;
  filter: blur(8px);
}

/* CSS cube — refined for light theme */
.cube {
  position: absolute;
  transform-style: preserve-3d;
}
.cube .face {
  position: absolute; inset: 0;
  border: 1px solid rgba(14, 10, 6, 0.10);
}
.cube .face.top    { background: linear-gradient(135deg, var(--c-top, #ffffff), var(--c-top-2, #f1a581)); }
.cube .face.front  { background: linear-gradient(170deg, var(--c-front, #e8704a), var(--c-front-2, #c74c2c)); }
.cube .face.side   { background: linear-gradient(170deg, var(--c-side, #8e351e), var(--c-side-2, #5c2210)); }
.cube .face.back   { background: linear-gradient(170deg, var(--c-side-2, #5c2210), var(--c-side, #8e351e)); }
.cube .face.bottom { background: var(--c-side-2, #4a1c0c); }

/* Sphere primitive (light theme — soft shadow) */
.sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, var(--s-1, #ffeae0), var(--s-2, #c74c2c) 65%, #5c2210);
  box-shadow:
    0 20px 40px -8px rgba(199, 76, 44, 0.35),
    inset -10px -14px 30px rgba(0,0,0,0.20);
}
.sphere.cream { --s-1: #ffffff; --s-2: #d8c9b0; box-shadow: 0 20px 40px -8px rgba(14,10,6,0.18), inset -10px -14px 30px rgba(0,0,0,0.10); }
.sphere.ink   { --s-1: #5c544b; --s-2: #0e0a06; box-shadow: 0 20px 40px -8px rgba(14,10,6,0.45), inset -10px -14px 30px rgba(0,0,0,0.5); }

/* Floating chip — paper card style */
.float-chip {
  position: absolute;
  padding: 9px 13px;
  background: var(--paper-tint);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(14, 10, 6, 0.20);
}
.float-chip .led {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--terra);
}

/* Animations */
@keyframes float-y {
  0%, 100% { transform: var(--base-t, none); }
  50%      { transform: var(--float-t, none); }
}

/* ============================================================
   SECTION INTRO PATTERN — eyebrow + label + headline + lede
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lede { margin: 0; }

/* ============================================================
   MISSION
   ============================================================ */
.mission-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.mission-pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pillar {
  position: relative;
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 240px;
  transition: background 0.25s;
  cursor: default;
}
.pillar:hover { background: rgba(255, 255, 255, 0.55); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.16em;
  display: flex; align-items: center; gap: 10px;
}
.pillar-num .terra-dot { width: 6px; height: 6px; background: var(--terra); border-radius: 50%; display: inline-block; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 24px; margin: 14px 0 10px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 38ch; }
.pillar-glyph {
  position: absolute; top: 28px; right: 28px;
  width: 52px; height: 52px;
}

/* ============================================================
   BRANDS — the centerpiece
   ============================================================ */
.brands-wrap {
  display: grid;
  grid-template-columns: var(--brand-grid, 1fr 1fr);
  gap: 24px;
}
.brand-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 44px;
  min-height: 600px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.brand-card .brand-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.brand-card .brand-inner {
  position: relative; z-index: 2;
  transform: translateZ(30px);
  display: flex; flex-direction: column; height: 100%;
}
.brand-card.aitinkr {
  background: linear-gradient(165deg, #fff8ee 0%, #f1d9bf 100%);
  border: 1px solid rgba(199, 76, 44, 0.18);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(199, 76, 44, 0.25);
}
.brand-card.cedlearn {
  background: linear-gradient(165deg, #1a140d 0%, #0a0604 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--paper);
  box-shadow: 0 30px 80px -30px rgba(14, 10, 6, 0.5);
}
.brand-card.cedlearn .brand-tag { color: var(--paper-3); }
.brand-card.cedlearn .brand-lede { color: rgba(243, 236, 224, 0.78); }

.brand-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-tag .pip {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--terra);
}
.brand-card .brand-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 22px 0 14px;
  font-weight: 500;
}
.brand-card .brand-title .terra { color: var(--terra); }
.brand-card .brand-lede {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 380px;
  color: var(--ink-2);
}
.brand-scene {
  flex: 1;
  position: relative;
  min-height: 240px;
  margin: 0 -8px 24px;
  border-radius: 18px;
  overflow: hidden;
}
.brand-card.aitinkr .brand-scene {
  background: radial-gradient(circle at 50% 80%, rgba(199, 76, 44, 0.10), transparent 60%);
}
.brand-card.cedlearn .brand-scene {
  background: radial-gradient(circle at 50% 80%, rgba(199, 76, 44, 0.18), transparent 60%);
}
.brand-card .brand-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.brand-card .meta-chip {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
}
.brand-card.aitinkr .meta-chip { border: 1px solid rgba(14, 10, 6, 0.18); color: var(--ink-2); }
.brand-card.cedlearn .meta-chip { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--paper-3); }

.brand-card .brand-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  align-self: flex-start;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.brand-card.aitinkr .brand-cta {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 4px 16px rgba(14, 10, 6, 0.20);
}
.brand-card.aitinkr .brand-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 10, 6, 0.28);
}
.brand-card.cedlearn .brand-cta {
  background: var(--terra); color: var(--paper);
  box-shadow: 0 4px 16px rgba(199, 76, 44, 0.30);
}
.brand-card.cedlearn .brand-cta:hover {
  background: var(--terra-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(199, 76, 44, 0.38);
}
.brand-card.featured { transform: scale(1.01); }

.tilt { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ============================================================
   WHY AI MATTERS
   ============================================================ */
.why-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.why-card {
  position: relative;
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 280px;
  transition: background 0.25s;
}
.why-card:hover { background: rgba(255, 255, 255, 0.5); }
.why-card .big {
  font-family: var(--font-display);
  font-size: clamp(56px, 5.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--terra);
  margin-bottom: 18px;
  font-feature-settings: 'ss01';
}
.why-card .why-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}
.why-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 32ch; }

/* Emerging tech rail */
.emerging-rail {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 56px;
}
.tech-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-tint);
  font-size: 13.5px;
  color: var(--ink);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.tech-chip:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(199, 76, 44, 0.25);
  box-shadow: 0 8px 24px rgba(14, 10, 6, 0.09);
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.aud-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.aud-card {
  position: relative;
  padding: 36px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.25s, box-shadow 0.25s;
  cursor: default;
}
.aud-card:hover {
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}
.aud-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.aud-card .glyph-3d { width: 54px; height: 54px; perspective: 800px; flex-shrink: 0; }
.aud-card h3 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 6px; letter-spacing: -0.015em; font-weight: 500; }
.aud-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 32ch; }
.aud-card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--terra); text-transform: uppercase; }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-num .terra { color: var(--terra); }
.stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; }
.stat-desc { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; max-width: 28ch; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card {
  padding: 36px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  cursor: default;
}
.t-card:hover {
  box-shadow: 0 16px 48px -16px rgba(14, 10, 6, 0.14);
  transform: translateY(-3px);
  border-color: rgba(199, 76, 44, 0.20);
}
.t-stars {
  display: flex; gap: 3px;
  color: var(--terra);
  font-size: 14px;
  line-height: 1;
}
.t-quotemark {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 0;
  color: var(--terra);
  margin: 0;
  height: 24px;
  opacity: 0.7;
}
.t-quote { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--ink); line-height: 1.45; margin: 0; flex: 1; letter-spacing: -0.01em; text-wrap: pretty; }
.t-who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule); }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500; font-size: 16px;
  flex-shrink: 0;
}
.t-name { font-size: 14px; font-weight: 500; }
.t-role { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
  background: var(--paper-2);
}
.partners .head {
  text-align: center;
  padding: 0 40px 28px;
}
.marquee-track {
  position: relative;
  overflow: hidden;
}
.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.marquee-track::before {
  left: 0;
  background: linear-gradient(to right, var(--paper-2), transparent);
}
.marquee-track::after {
  right: 0;
  background: linear-gradient(to left, var(--paper-2), transparent);
}
.marquee {
  display: flex;
  gap: 72px;
  animation: marq 48s linear infinite;
  width: max-content;
}
.marquee .logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.2s;
}
.marquee .logo:hover { color: var(--terra); }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  margin: 80px auto;
  max-width: var(--max);
  padding: 80px 64px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 6% -20%, rgba(199, 76, 44, 0.36), transparent 58%),
    radial-gradient(600px 400px at 110% 120%, rgba(199, 76, 44, 0.22), transparent 58%);
}
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.025;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 60px); margin: 0; letter-spacing: -0.03em; line-height: 0.98; font-weight: 500; text-wrap: balance; }
.cta-banner h2 .terra { color: var(--terra-soft); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.cta-banner p { color: rgba(243, 236, 224, 0.75); margin: 24px 0 0; max-width: 480px; font-size: 17px; line-height: 1.6; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-primary { background: var(--terra); color: var(--paper); box-shadow: 0 4px 20px rgba(199, 76, 44, 0.45); }
.cta-banner .btn-primary:hover { background: var(--paper); color: var(--ink); box-shadow: 0 8px 28px rgba(243, 236, 224, 0.25); }
.cta-banner .btn-ghost { border-color: rgba(243, 236, 224, 0.28); color: var(--paper); }
.cta-banner .btn-ghost:hover { border-color: var(--paper); background: rgba(243, 236, 224, 0.08); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 100px 40px 120px;
  border-top: 1px solid var(--rule);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-head .display-2 { margin-top: 22px; }
.contact-info {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.contact-info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.contact-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-row .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding-top: 4px;
}
.contact-info-row .v {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
}
.contact-info-row .v small {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
.contact-cities {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.contact-cities .city {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
}

/* Form */
.contact-form {
  position: relative;
  padding: 40px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px -40px rgba(14, 10, 6, 0.15);
}
.contact-form-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 8px;
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.contact-form-sub {
  font-size: 14px; color: var(--ink-3);
  margin: 6px 0 28px;
}
.contact-form-meter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--terra);
  text-transform: uppercase;
  background: var(--terra-wash);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field-grid.full { grid-template-columns: 1fr; }

.field {
  position: relative;
  display: flex; flex-direction: column;
}
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field label .req { color: var(--terra); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  width: 100%;
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terra);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(199, 76, 44, 0.10);
}
.field textarea { min-height: 100px; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b6356' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

/* Segmented "I'm a..." */
.segment {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.segment button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
}
.segment button:hover { color: var(--ink); }
.segment button.on { background: var(--ink); color: var(--paper); }

.field-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-3); line-height: 1.5;
  margin: 8px 0 24px;
}
.field-consent input { width: 16px; height: 16px; accent-color: var(--terra); margin-top: 2px; flex-shrink: 0; }

.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.form-actions .note { font-size: 12px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Success state */
.form-success {
  text-align: center;
  padding: 30px 10px 20px;
}
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 8px;
}
.form-success p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding: 90px 40px 36px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px;
  padding-bottom: 56px;
}
.foot-logo { height: 32px; width: auto; margin-bottom: 20px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--terra); margin: 0 0 18px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.foot-grid li a { transition: color 0.2s; }
.foot-grid li a:hover { color: var(--terra); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px; color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   ASIDE MARKERS (editorial annotations)
   ============================================================ */
.aside-mark {
  position: absolute;
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 200px;
}
.aside-mark::before {
  content: '';
  width: 22px; height: 1px; background: var(--terra);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============================================================
   MOTION LAYER (GSAP) — masks, words, progress, magnetic
   Content stays fully visible without JS; GSAP hides + reveals.
   ============================================================ */
/* Masked hero line reveal — padding absorbs ascenders/descenders */
.mask-line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.06em 0.14em 0;
  margin: -0.1em -0.06em -0.14em 0;
}

/* Word-split wrappers (injected by animations.js) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.1em 0.05em 0.14em 0;
  margin: -0.1em -0.05em -0.14em 0;
}
.wi { display: inline-block; will-change: transform; }

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

/* Magnetic buttons — GSAP owns transform, so keep it out of transitions */
.magnetic {
  transition-property: background, color, box-shadow, border-color;
  will-change: transform;
}

/* Pause the partner marquee while inspecting it */
.marquee-track:hover .marquee { animation-play-state: paused; }

/* ============================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation-play-state: paused; }
  @keyframes float-y { 0%, 100% { transform: var(--base-t, none); } }
  .btn, .brand-card, .t-card, .tech-chip, .pillar, .why-card, .aud-card {
    transition: none;
  }
}

/* ============================================================
   STATS — enhanced
   ============================================================ */
.stats-row {
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}
.stat {
  position: relative;
  transition: background 0.25s;
}
.stat:hover { background: rgba(255,255,255,0.45); }

/* ============================================================
   HERO FOOT — enhanced
   ============================================================ */
.hero-foot .item {
  padding-right: 16px;
}
.hero-foot .item .k {
  line-height: 1;
  margin-bottom: 6px;
}

/* ============================================================
   CONTACT — enhanced
   ============================================================ */
.contact-info-row .v a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.contact-info-row .v a:hover {
  color: var(--terra);
  text-decoration-color: var(--terra);
}

/* ============================================================
   FOOTER — enhanced
   ============================================================ */
.foot-grid li a {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.foot-grid li a:hover {
  color: var(--terra);
  text-decoration-color: rgba(199, 76, 44, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .mission-pillars { grid-template-columns: 1fr; }
  .brands-wrap { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .why-cards { grid-template-columns: 1fr 1fr; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-banner-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .field-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 640px) {
  .section, .hero, .footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 130px; }
  .why-cards { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav { padding: 14px 20px; }
  .nav-logo { height: 22px; }
  .brand-card { padding: 32px 24px; }
  .contact { padding: 80px 24px; }
  .contact-form { padding: 28px 22px; }
  .contact-info-row { grid-template-columns: 1fr; gap: 4px; }
}
