/* ============================================================
   AAA COLLABORATORS — Design System  (Warm & friendly rework)
   "A welcoming studio for builders" — soft shapes, warm color
   ============================================================ */

:root {
  /* — Surface (cool porcelain + navy ink) — */
  --cream:     #e8edf4;   /* page board — cool porcelain (token name kept) */
  --paper:     #f3f6fb;   /* raised cards */
  --paper-2:   #ffffff;   /* lightest / white */
  --bone:      var(--cream); /* legacy alias */
  --navy:      #1e3963;   /* structural dark blue — the brand anchor */
  --navy-700:  #142a4a;   /* deeper navy for richer fills */
  --ink:       var(--navy);   /* primary text / dark surfaces */
  --ink-soft:  color-mix(in oklab, var(--navy), var(--cream) 42%);  /* secondary text — slate */
  --ink-faint: color-mix(in oklab, var(--navy), var(--cream) 62%);  /* tertiary / captions */

  /* — Accents (teal + gold; deep/tint derived). Gold surfaces use navy text. — */
  --sage:      #14998b;   /* team / growth — sea teal (token name kept) */
  --sage-deep: color-mix(in oklab, var(--sage), var(--navy) 44%);
  --sage-tint: color-mix(in oklab, var(--sage), var(--paper) 80%);
  --amber:     #e8b04a;   /* momentum / CTA — gold (locked) */
  --amber-deep:color-mix(in oklab, var(--amber), var(--navy) 48%);
  --amber-tint:color-mix(in oklab, var(--amber), var(--paper) 76%);
  --on-amber:  var(--navy); /* readable text on gold surfaces */
  --honey:     #f4c061;   /* light gold highlight on navy */
  --clay:      #e0613f;   /* coral-red alarm accent */

  /* — Lines (navy-tinted, low-contrast) — */
  --line:      rgba(30,57,99,0.14);
  --line-soft: rgba(30,57,99,0.08);
  --line-firm: rgba(30,57,99,0.26);

  /* — Type — */
  --display: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --sans:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --label:   "Hanken Grotesk", system-ui, sans-serif;  /* warm label stack (was mono) */
  --mono:    var(--label);  /* legacy alias — de-teched */

  /* — Radii (soft) — */
  --r-card: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --r-pill: 999px;

  /* — Shadows (diffuse, navy-tinted) — */
  --shadow-soft: 0 12px 30px -16px rgba(20,38,68,0.40);
  --shadow-lift: 0 22px 48px -20px rgba(20,38,68,0.44);
  --shadow-sm:   0 6px 16px -10px rgba(20,38,68,0.38);

  /* — Motion — */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* — Layout — */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--navy); color: #fff; }

/* warm soft color wash instead of a blueprint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 38% at 82% 6%, color-mix(in oklab, var(--amber), transparent 80%), transparent 70%),
    radial-gradient(44% 40% at 8% 22%, color-mix(in oklab, var(--sage), transparent 82%), transparent 70%),
    radial-gradient(50% 44% at 60% 100%, color-mix(in oklab, var(--honey), transparent 86%), transparent 72%);
  opacity: .9;
  transition: opacity .3s;
}
body.no-grid::before { opacity: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { position: relative; z-index: 1; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.eyebrow.sage .dot { background: var(--sage); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.0; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.display-xl { font-size: clamp(46px, 8vw, 102px); line-height: .95; letter-spacing: -.03em; }
.display-l  { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.0; letter-spacing: -.025em; }
.display-m  { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.02em; }
.display-s  { font-size: clamp(21px, 2vw, 27px); line-height: 1.1; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-soft); font-weight: 420; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
em.mark { font-style: normal; color: var(--sage-deep); }
em.hot { font-style: normal; color: var(--amber-deep); }

/* ---------- Buttons (rounded, soft) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 650; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
  position: relative; white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper-2); box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line-firm); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-sm { padding: 11px 19px; font-size: 14.5px; }

/* ---------- Role chip / badge (legacy .chip) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 13px; font-weight: 700;
  letter-spacing: .01em; padding: 8px 14px 8px 11px;
  border: 1.5px solid var(--line-firm); border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink);
  white-space: nowrap; line-height: 1;
  transition: background .18s, color .18s, transform .18s var(--ease), border-color .18s, box-shadow .2s;
}
.chip .glyph { flex: 0 0 auto; }
.chip.is-on   { background: var(--sage); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.chip.is-gap  { background: transparent; border-style: dashed; color: var(--amber-deep); border-color: var(--amber); }
.chip.is-pick { cursor: pointer; }
.chip.is-pick:hover { transform: translateY(-2px); }

/* ---------- Card / panel (soft) ---------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.panel.soft { border-color: var(--line-soft); background: var(--paper); box-shadow: var(--shadow-sm); }
/* registration ticks retired for warmth — kept as no-ops */
.tick { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Section header block ---------- */
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.sec-num { font-family: var(--label); font-size: 13px; color: var(--ink-faint); font-weight: 700; letter-spacing: .06em; }

/* ---------- Marquee ---------- */
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee { overflow: hidden; }
.marquee__track { display: inline-flex; gap: 14px; white-space: nowrap; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrapflex { flex-wrap: wrap; }
.gap-s { gap: 10px; } .gap-m { gap: 18px; } .gap-l { gap: 32px; }
.grid { display: grid; }
