/* ============================================================
   MANDEL DRAFT 3 — shared design system
   Hub + 4 audience pages, audience-first information architecture.
   ============================================================ */

:root {
  --purple: #4f3edc;
  --purple-2: #6c5cff;
  --purple-hi: #8a7bff;
  --purple-wash: #b8a9ff;
  --purple-50: #f1edff;
  --purple-100: #ddd5ff;
  --purple-200: #c5b9ff;
  --purple-deep: #1a1149;
  --purple-deeper: #0c072e;

  --ink: #0f0a2c;
  --ink-2: #1a1149;
  --ink-body: #3a2f67;
  --ink-mute: #6b628e;
  --ink-soft: #8d83b3;

  --paper: #ffffff;
  --paper-warm: #fbfaff;
  --paper-edge: #ece7ff;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 24px;
  --radius-sm: 16px;

  --shadow-sm: 0 4px 12px -4px rgba(26, 17, 73, 0.15);
  --shadow: 0 24px 60px -20px rgba(26, 17, 73, 0.22);
  --shadow-lg: 0 40px 100px -30px rgba(26, 17, 73, 0.3);

  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--purple); color: #fff; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 32px;
  padding: 10px 12px 10px 22px;
  width: calc(100% - 40px);
  max-width: var(--max);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px -12px rgba(26, 17, 73, 0.18);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
}
.brand-eye {
  display: inline-block;
  width: 30px; height: 30px;
  background-color: var(--purple);
  -webkit-mask: url("/draft-5/assets/mandel-eye.png") center / contain no-repeat;
          mask: url("/draft-5/assets/mandel-eye.png") center / contain no-repeat;
}
.nav__links {
  display: flex; gap: 28px; margin-left: auto; margin-right: auto;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-body);
}
.nav__links a { position: relative; padding: 6px 2px; transition: color 0.2s; }
.nav__links a:hover { color: var(--purple); }
.nav__links a.is-active { color: var(--purple); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; font-size: 13px; }
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  margin-left: auto;
  margin-right: 2px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
}
.nav__toggle:hover { background: rgba(108, 92, 255, 0.08); }
.nav__toggle svg { display: block; pointer-events: none; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 20px;
  font-size: 14px;
}
.btn--lg { padding: 15px 24px; font-size: 15px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6c5cff 0%, #4f3edc 55%, #2a1b85 100%);
  box-shadow: 0 12px 28px -10px rgba(79, 62, 220, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -12px rgba(79, 62, 220, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--white {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.25);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 20px 38px -12px rgba(0, 0, 0, 0.32); }
.btn--ghost {
  color: var(--ink);
  background: var(--paper-warm);
  border-color: var(--paper-edge);
}
.btn--ghost:hover { background: #fff; border-color: var(--purple-200); }
.btn--outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.65); }

/* ============================================================
   Typography
   ============================================================ */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.label--light { color: rgba(255, 255, 255, 0.7); }
.label--purple { color: var(--purple); }

.display {
  font-family: var(--sans);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 26px;
  color: var(--ink);
}
.display--light { color: #fff; }
.display--thin {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(48px, 7vw, 96px);
}
.h2 {
  font-family: var(--sans);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--ink);
}
.h3 {
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2; letter-spacing: -0.015em; font-weight: 700;
  margin: 0 0 14px; color: var(--ink);
}
.h4 {
  font-family: var(--sans);
  font-size: 18px; line-height: 1.3; letter-spacing: -0.01em;
  font-weight: 700; margin: 0 0 10px; color: var(--ink);
}
.purple { color: var(--purple); }

.sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 54ch;
  margin: 0 0 32px;
  font-weight: 400;
}
.lede--light { color: rgba(255, 255, 255, 0.82); }

/* ============================================================
   Layout primitives
   ============================================================ */
main { position: relative; }
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 56px;
}
.section--tight { padding: clamp(48px, 6vw, 80px) 56px; }
.section--dark { background: linear-gradient(160deg, #3a27b0 0%, #2a1b85 50%, #1a1149 100%); color: #fff; max-width: 100%; }
.section--dark .h2, .section--dark .h3, .section--dark .h4 { color: #fff; }
.section--dark .sub, .section--dark .lede { color: rgba(255, 255, 255, 0.82); }
.section--soft { background: var(--paper-warm); border-top: 1px solid var(--paper-edge); border-bottom: 1px solid var(--paper-edge); max-width: 100%; }
.section--soft > .section__inner { max-width: var(--max); margin: 0 auto; }

.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .sub { margin-left: auto; margin-right: auto; }

.section__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.section__grid--flip .section__visual { order: -1; }

@media (max-width: 960px) {
  .section { padding-left: 28px; padding-right: 28px; }
  .section__grid { grid-template-columns: 1fr; gap: 44px; }
  .section__grid--flip .section__visual { order: 0; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 56px 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero--dark {
  background: linear-gradient(135deg, #5e49e8 0%, #4f3edc 30%, #3a27b0 58%, #2a1b85 100%);
  color: #fff;
}
.hero--dark .hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(138, 123, 255, 0.55), transparent 55%),
    radial-gradient(900px 600px at 90% 100%, rgba(42, 27, 133, 0.6), transparent 60%);
}
.hero--light {
  background: linear-gradient(180deg, #fbfaff 0%, #fff 80%);
  border-bottom: 1px solid var(--paper-edge);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero__atmos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 2;
}
.hero__crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero--light .hero__crumbs { color: var(--ink-mute); }
.hero__crumbs a { color: inherit; }
.hero__crumbs a:hover { color: #fff; }
.hero--light .hero__crumbs a:hover { color: var(--purple); }
.hero__crumbs i { margin: 0 8px; opacity: 0.6; }

/* Hero concentric rings, anchored right */
.hero__rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__rings svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.05) 32%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.92) 64%, #000 74%);
          mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.05) 32%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.92) 64%, #000 74%);
}
.hero__rings circle { fill: none; stroke: #ffffff; stroke-width: 22; opacity: 0.85; }
@media (max-width: 760px) {
  .hero__rings svg { opacity: 0.45; }
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-200);
  box-shadow: var(--shadow);
}
.card__kind {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--purple-50);
  color: var(--purple);
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* ============================================================
   Backed-by row (used in hero and footer)
   ============================================================ */
.backed {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
}
.backed__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.backed--ink .backed__label { color: var(--ink-mute); }
.backed__logos { display: flex; align-items: center; gap: 28px; }
.backed__logos picture { display: contents; }
.backed__logos img { height: 32px; width: auto; opacity: 0.92; }
.backed__logos .backed__logo--uw { height: 56px; }
.backed__logos .backed__logo--velocity { height: 28px; }
.backed__logos--invert img { filter: brightness(0) invert(1); }
.backed__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.25); }
.backed--ink .backed__sep { background: var(--paper-edge); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--paper-edge);
  background: var(--paper);
  padding: 52px 56px;
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.18em;
}
.footer__brand .brand-eye { width: 28px; height: 28px; }
.footer__brand-tag {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-body);
  max-width: 36ch;
  line-height: 1.55;
}
.footer__col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a {
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--purple); }
.footer__base {
  max-width: var(--max); margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--paper-edge);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
@media (max-width: 900px) {
  .footer { padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand-block { grid-column: 1 / -1; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .nav { gap: 12px; padding: 10px 12px 10px 18px; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 74px; left: 14px; right: 14px;
    gap: 4px;
    padding: 18px 22px 22px;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--paper-edge);
    border-radius: 22px;
    box-shadow: 0 28px 72px -20px rgba(26, 17, 73, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav__links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--paper-edge);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  body.has-open-nav { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Suppress in-draft STUB markers in the published site
   ============================================================ */
.poli-stub, .team-stub, .wf-stub { display: none !important; }

/* Hide entire team-grid until Connor provides real bios + headshots.
   Section heading + intro paragraph stand on their own. */
.team-grid { display: none !important; }

/* ============================================================
   UW horizontal brand mark (shield + wordmark stacked right)
   ============================================================ */
.uw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
  line-height: 1;
}
.uw-brand img {
  height: 48px;
  width: auto;
  display: block;
}
.uw-brand__wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.08;
  color: var(--ink);
  text-align: left;
}
.uw-brand__wordmark span { display: block; }
