/* Stimp Media — design system per DESIGN - Stimp Media Marketing.md
   Void canvas · Electric Iris · Saffron Spark · scale-not-weight hierarchy */

@font-face {
  font-family: 'InterVar';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #000000;
  --bone: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --iris: #8052ff;
  --saffron: #ffb829;
  --verdant: #15846e;

  --font: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 36px);
  --gap-section: clamp(56px, 7vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--iris); color: var(--bone); }

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

/* ---------- ambient particle field ---------- */
#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }
.nav { z-index: 10; }

/* ---------- type roles ---------- */
.display {
  font-size: clamp(52px, 9.2vw, 113px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.h-lg {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.h-md {
  font-size: clamp(30px, 3.9vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.h-2xs {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--saffron);
  margin-bottom: 24px;
}

.body { font-size: 18px; font-weight: 200; color: var(--silver); max-width: 520px; }
.body-lg { font-size: 18px; font-weight: 200; color: var(--bone); max-width: 500px; }
.narrow { max-width: 640px; }
.micro { font-size: 14px; font-weight: 200; color: var(--ash); max-width: 640px; }
.amber { color: var(--saffron); text-decoration: none; }
.amber:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  background: var(--void);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand-mark { width: 18px; height: 18px; }
.brand-word { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--bone); }

/* ---------- pill + ghost ---------- */
.pill {
  display: inline-block;
  background: var(--iris);
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 24px;
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1px); filter: brightness(1.12); }
.pill:active { transform: translateY(0); }

.ghost {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ghost:hover { color: var(--bone); }

/* ---------- hero (pinned morph track: brain -> globe over Ontario) ---------- */
.hero-track { height: 240vh; }
.hero-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 60px) var(--pad);
}

.hero-copy .display { margin-bottom: 30px; }
.hero-copy .body-lg { margin-bottom: 36px; }

.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-viz { position: relative; aspect-ratio: 1 / 1; max-height: min(78vh, 700px); }
.hero-viz img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: opacity, transform;
}
#viz-globe { opacity: 0; }
#sphere { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.viz-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  display: grid;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.viz-caption span { grid-area: 1 / 1; transition: opacity 0.6s ease; }
.cap-brain { color: var(--ash); opacity: 1; }
.cap-globe { color: var(--saffron); opacity: 0; }
.hero-viz.globe .cap-brain { opacity: 0; }
.hero-viz.globe .cap-globe { opacity: 1; }

/* hero load-in */
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.44s; }
.hero-viz { opacity: 0; animation: fade 1.4s ease 0.35s forwards; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) var(--gap-section);
}

.section-head { margin-bottom: clamp(28px, 3.5vw, 46px); }
.section-head .h-lg, .section-head .h-md { margin-bottom: 30px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split.late { align-items: start; }
.split.flip .split-copy { order: 2; }
.split.flip .split-viz { order: 1; }

.split-copy .h-md { margin-bottom: 26px; }
.split-copy .body { margin-bottom: 30px; }

.split-viz { position: relative; }
.section-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  will-change: transform;
}

/* ---------- founder card (Dala team-card style) ---------- */
.founder-card { display: flex; align-items: center; gap: 24px; max-width: 480px; margin: 0 auto; }
.founder-card img {
  width: 168px;
  height: 168px;
  flex: none;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.founder-card figcaption { display: grid; gap: 8px; }
.founder-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--iris);
}
.founder-name { font-size: 27px; font-weight: 400; letter-spacing: -0.02em; color: var(--bone); }
.founder-line { font-size: 14px; font-weight: 200; color: var(--ash); max-width: 360px; }

/* ---------- portfolio: floating labeled triangles ---------- */
.port-field {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 18px 0 6px;
}
.port-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver);
  animation: floaty 7s ease-in-out infinite;
}
.port-item svg { width: 22px; height: 22px; }
.port-item:nth-child(2) { animation-delay: -1.8s; transform: translateY(8px); }
.port-item:nth-child(3) { animation-delay: -3.2s; }
.port-item:nth-child(4) { animation-delay: -4.7s; transform: translateY(-6px); }
.port-item:nth-child(5) { animation-delay: -5.9s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* ---------- thesis / terms grid ---------- */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(30px, 4vw, 60px);
}
.thesis-item .h-2xs { margin-bottom: 12px; }

/* ---------- service lists ---------- */
.svc-list { list-style: none; }
.svc-list li {
  font-size: 15px;
  font-weight: 400;
  color: var(--silver);
  padding: 9px 0 9px 26px;
  position: relative;
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--iris);
}

/* ---------- sovereign SKUs ---------- */
.sku-list { list-style: none; display: grid; gap: 36px; }
.sku-list li { display: grid; gap: 8px; }
.sku-name {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.sku-name::before { content: '▲ '; color: var(--iris); font-size: 14px; vertical-align: 3px; }
.sku-desc { font-size: 16px; font-weight: 200; color: var(--silver); max-width: 460px; }

.vow-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 48px; margin-top: 48px; }
.vow-list li {
  font-size: 18px;
  font-weight: 400;
  color: var(--bone);
  padding-left: 26px;
  position: relative;
}
.vow-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--saffron);
}

#sovereign .micro { margin-top: 36px; }

/* ---------- evaluation funnel ---------- */
.eval-list { list-style: none; display: grid; gap: 6px; max-width: 900px; }

.eval-link {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 26px 0;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.eval-link:hover { transform: translateX(10px); }

.eval-num { font-size: 14px; font-weight: 600; color: var(--iris); letter-spacing: 0.035em; }
.eval-name {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: color 0.25s ease;
}
.eval-go {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--ash);
  transition: color 0.25s ease;
}
.eval-link:hover .eval-name { color: var(--saffron); }
.eval-link:hover .eval-go { color: var(--saffron); }

#evaluate .micro { margin-top: 30px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.foot-row .ghost { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; }
.foot-proof { font-size: 14px; font-weight: 200; color: var(--ash); max-width: 560px; margin-bottom: 18px; }
.foot-legal { font-size: 12px; font-weight: 200; color: var(--ash); }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
.thesis-grid .reveal:nth-child(2), .eval-list .reveal:nth-child(2) { transition-delay: 0.1s; }
.thesis-grid .reveal:nth-child(3), .eval-list .reveal:nth-child(3) { transition-delay: 0.2s; }
.thesis-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* anchor offset under sticky nav */
section[id] { scroll-margin-top: 84px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-track { height: 210vh; }
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-copy .display { font-size: clamp(44px, 11vw, 64px); }
  .hero-viz { max-height: none; max-width: 380px; margin: 0 auto; width: 72vw; }
  .split, .split.late { grid-template-columns: 1fr; }
  .split.flip .split-copy { order: 1; }
  .split.flip .split-viz { order: 2; }
  .mini-viz { max-width: 340px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .eval-link { grid-template-columns: 40px 1fr; }
  .eval-go { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { height: auto; }
  .hero-pin { position: static; min-height: 0; }
  .hero-copy > *, .hero-viz { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .eval-link, .viz-caption span { transition: none; }
  #sphere, #viz-globe { display: none; }
  .port-item { animation: none; }
  .section-art, .founder-card { transform: none !important; }
}
