/* ============================================================
   nity — Swiss typography, cinematic warmth
   type: Bricolage Grotesque (display+body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #F7F3EC;
  --paper-70: rgba(247, 243, 236, 0.86);
  --ink: #16130E;
  --ink-60: rgba(22, 19, 14, 0.6);
  --ink-40: rgba(22, 19, 14, 0.4);
  --hairline: rgba(22, 19, 14, 0.16);
  --hairline-light: rgba(247, 243, 236, 0.28);
  /* brand accent — SINGLE SOURCE OF TRUTH for the blue: change it here only.
     (was IKB #002FA7 — trying a brighter electric blue) */
  --ikb: #1F18C0;
  --ikb-b: #5B54EA; /* lighter variant for small text / hovers on near-black */
  --davai-red: #F5301F;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(96px, 14vh, 180px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { display: block; max-width: 100%; }

a { color: inherit; }

sup { font-size: 0.6em; }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- utility bar ---------- */
.utility {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: normal;
}
.utility span:nth-child(3) { text-align: right; }
.utility-lang a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.utility-lang a:hover { opacity: 1; }
.utility-lang a[aria-current] { opacity: 1; }
.utility-lang i { font-style: normal; margin: 0 7px; opacity: 0.4; }

/* ---------- sticky nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--gutter);
  background: var(--paper-70);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.on { transform: translateY(0); }

.nav-logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s;
}
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(0.98); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-ink:hover { background: var(--ikb); }
.pill-paper { background: var(--paper); color: var(--ink); }
.pill-paper:hover { background: var(--ikb); color: var(--paper); }
.nav-cta { padding: 11px 20px; font-size: 14px; }

.nav-lang {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.nav-lang a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.nav-lang a:hover { opacity: 1; }
.nav-lang a[aria-current] { opacity: 1; }
.nav-lang i { font-style: normal; margin: 0 6px; opacity: 0.35; }

/* svg arrows — consistent on every platform (no emoji fallback) */
.arr {
  width: 0.85em;
  height: 0.85em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.arr-sm {
  width: 0.7em;
  height: 0.7em;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 5px;
  stroke-width: 2.4;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(130% 110% at 50% 115%, #161247 0%, #100C26 45%, #0C0A1D 100%);
}

/* abstract warm gradient field (OpenAI-style blurred blobs, nity palette) */
.hero-abstract {
  position: absolute;
  inset: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(60px, 7vw, 110px));
  will-change: transform;
}
.blob-a {
  width: 76vw; height: 76vw;
  left: 36vw; bottom: -32vw;
  background: radial-gradient(circle at 50% 40%, rgba(31, 24, 192, 0.95), rgba(31, 24, 192, 0) 65%);
  animation: drift-a 44s ease-in-out infinite alternate;
}
.blob-b {
  width: 56vw; height: 56vw;
  right: -14vw; top: -14vh;
  background: radial-gradient(circle, rgba(91, 84, 234, 0.5), rgba(91, 84, 234, 0) 62%);
  animation: drift-b 56s ease-in-out infinite alternate;
}
.blob-c {
  width: 42vw; height: 42vw;
  left: 46vw; top: 30vh;
  background: radial-gradient(circle, rgba(150, 145, 245, 0.32), rgba(150, 145, 245, 0) 58%);
  animation: drift-c 66s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vw, -7vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-7vw, 9vh) scale(0.92); } }
@keyframes drift-c { to { transform: translate(6vw, 6vh) scale(1.16); } }

/* constellation layer — dots link up around the cursor: reaching everyone */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  animation: fade-soft 1.6s ease 0.8s forwards;
}

.hero-wordmark {
  position: absolute;
  top: clamp(28px, 5.5vh, 72px);
  left: calc(var(--gutter) - 0.06em);
  font-size: clamp(110px, 21vw, 380px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--paper);
  text-shadow: 0 2px 60px rgba(22, 19, 14, 0.25);
}

.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--gutter) clamp(32px, 6vh, 64px);
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero-sub {
  max-width: 46ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  opacity: 0.88;
}
.hero-cta { flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  top: 46vh;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  transform: rotate(90deg);
  transform-origin: right center;
}
.hero-scroll-line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--paper);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; transform-origin: left; }
  50% { transform: scaleX(1); opacity: 1; transform-origin: left; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: var(--section-gap) var(--gutter);
  max-width: 1680px;
  margin: 0 auto;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
}
.eyebrow-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.eyebrow-light { color: rgba(247,243,236,0.75); }
.eyebrow-rule-light { background: var(--hairline-light); }

.statement {
  font-size: clamp(38px, 5.4vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 18ch;
}
.statement em {
  font-style: normal;
  color: var(--ikb);
}
.statement-wide { max-width: 26ch; }
.statement-light { color: var(--paper); max-width: none; }
.statement-light em { color: var(--ikb); }

/* ---------- mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 120px);
  margin-top: clamp(48px, 7vh, 96px);
}
.mission-body {
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.5;
  font-weight: 400;
  max-width: 56ch;
}
.colophon {
  align-self: end;
  border-top: 1px solid var(--hairline);
}
.colophon div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.colophon dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.colophon dd { font-weight: 600; font-size: 17px; }

/* ============================================================
   PEOPLE — pure typographic index
   ============================================================ */
.people-index {
  margin-top: clamp(48px, 7vh, 96px);
}

.people-rows {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.people-row {
  display: grid;
  grid-template-columns: 3.2ch minmax(0, 1fr) minmax(0, 34ch);
  gap: clamp(16px, 2.4vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3.4vh, 38px) 0;
  border-bottom: 1px solid var(--hairline);
}
.people-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-40);
  transition: color 0.3s;
}
.people-word {
  font-size: clamp(34px, 5.6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  transition: color 0.35s;
}
.people-line {
  font-size: 15.5px;
  color: rgba(22, 19, 14, 0.62);
  transition: color 0.3s;
}
.people-row:hover .people-word,
.people-row:hover .people-num { color: var(--ikb); }
.people-copy { display: contents; }

/* animals — set apart from the human list, gently */
.people-also { margin-top: clamp(40px, 6vh, 72px); }
.people-also-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ikb);
  margin-bottom: 10px;
}
.people-row-plus {
  border-top: 1px solid var(--ink);
}
.people-row-plus .people-num {
  font-size: 16px;
  color: var(--ikb);
}

/* rows stagger in */
.people-index .people-row {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.people-index.in .people-row { opacity: 1; transform: none; }
.people-index.in .people-row:nth-child(2) { transition-delay: 0.08s; }
.people-index.in .people-row:nth-child(3) { transition-delay: 0.16s; }
.people-index.in .people-row:nth-child(4) { transition-delay: 0.24s; }
.people-index.in .people-row:nth-child(5) { transition-delay: 0.32s; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project {
  margin-top: clamp(72px, 11vh, 140px);
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(36px, 5vh, 64px);
}
.project-index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--ink-60);
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-soon { color: var(--ink-40); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-live {
  background: #2E9E44;
  box-shadow: 0 0 0 0 rgba(46,158,68, 0.5);
  animation: live-pulse 2.4s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,158,68, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(46,158,68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46,158,68, 0); }
}
/* in-development status — hollow, calm, no pulse */
.dot-soon {
  background: transparent;
  border: 1.5px solid var(--ink-40);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: center;
}
/* the browser mockups want more room than a phone does */
#locals .project-grid,
#guard .project-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.project-grid-flip .project-info { order: 2; }
.project-grid-flip .project-visual { order: 1; }

.project-name {
  font-size: clamp(64px, 8.5vw, 150px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 22px;
}
#davai .project-name { color: var(--davai-red); }
#locals .project-name { color: var(--ink); }
#guard .project-name { color: var(--ikb); }

.project-claim {
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: 18px;
}
.project-body {
  font-size: 17.5px;
  max-width: 52ch;
  color: rgba(22,19,14,0.78);
  margin-bottom: clamp(32px, 4vh, 48px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(32px, 4vh, 48px);
}
.stat {
  padding: 18px 20px 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.stat dd {
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.stat dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.stats-footnote {
  margin-top: clamp(48px, 7vh, 80px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
  max-width: 60ch;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.project-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- browser mockup (locals runs on the web) ---------- */
.browser {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #E8E3DA;
  border: 1px solid rgba(22, 19, 14, 0.12);
  box-shadow:
    0 60px 120px -40px rgba(22, 19, 14, 0.4),
    0 24px 48px -24px rgba(22, 19, 14, 0.25);
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.browser:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(22, 19, 14, 0.1);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(22, 19, 14, 0.18);
}
.browser-url {
  flex: 1;
  max-width: 220px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.9);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink-40);
}
.browser img { width: 100%; height: auto; display: block; }

/* ---------- guard mock (built, no screenshot yet) ---------- */
.guard-screen {
  background: var(--paper);
  padding: clamp(20px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guard-q {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.guard-msg {
  background: #ECE7DD;
  border-radius: 12px;
  border-top-left-radius: 3px;
  padding: 14px 16px;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45;
  color: rgba(22, 19, 14, 0.82);
  max-width: 88%;
}
.guard-verdict {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: rgba(31, 24, 192, 0.06);
  border: 1px solid rgba(31, 24, 192, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 2px;
}
.guard-flag {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ikb);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.guard-verdict-title {
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: -0.01em;
  color: var(--ikb);
  margin-bottom: 3px;
}
.guard-verdict-body {
  font-size: clamp(12px, 1vw, 13.5px);
  line-height: 1.45;
  color: rgba(22, 19, 14, 0.7);
}

/* ---------- phone mockups ---------- */
.project-visual { justify-self: center; }
.project-visual-wide { justify-self: stretch; width: 100%; }

.phone {
  position: relative;
  width: clamp(250px, 22vw, 310px);
  aspect-ratio: 390 / 800;
  border-radius: 46px;
  background: var(--ink);
  padding: 10px;
  box-shadow:
    0 60px 120px -30px rgba(22,19,14,0.45),
    0 24px 48px -18px rgba(22,19,14,0.3);
  transform: rotate(-2deg);
}
#davai .phone { transform: rotate(2deg); }
.phone > img,
.davai-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 2;
}
.visual-caption {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- davai screen mock ---------- */
.davai-screen {
  background: #FFF6F0;
  display: flex;
  flex-direction: column;
  padding: 54px 18px 26px;
  overflow: hidden;
}
.davai-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.davai-appicon {
  width: 34px; height: 34px;
  border-radius: 9px;
}
.davai-day {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22,19,14,0.5);
}
.davai-card {
  flex: 1;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(22,19,14,0.08);
  box-shadow: 0 18px 40px -18px rgba(245,48,31,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.davai-word {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.davai-trans {
  font-size: 19px;
  font-weight: 500;
  color: var(--davai-red);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}
.davai-card.flipped .davai-trans { opacity: 1; transform: translateY(0); }
.davai-card.flipped .davai-hint { opacity: 0; }
.davai-hint { transition: opacity 0.3s; }
.davai-hint {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22,19,14,0.35);
}
.davai-rate {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.davai-rate span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 0;
  border-radius: 999px;
  border: 1px solid rgba(22,19,14,0.14);
  color: rgba(22,19,14,0.55);
}
.davai-rate .on {
  background: var(--davai-red);
  border-color: var(--davai-red);
  color: #fff;
}
.davai-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.davai-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(22,19,14,0.15);
}
.davai-dots i.on { background: var(--davai-red); }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 7vh, 96px);
}
/* two founders — a balanced pair, not oversized */
.team-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 96px);
  max-width: 940px;
}
.team-grid-2 .founder-photo { aspect-ratio: 3 / 4; }
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(31,24,192,0.42), transparent 60%),
    linear-gradient(160deg, #181536 0%, #0C0A1D 70%);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.founder-photo::after {
  content: attr(data-initial);
  position: absolute;
  right: 4%;
  bottom: -8%;
  font-size: clamp(180px, 22vw, 380px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(247,243,236,0.1);
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* keep the face high in the 4:5 crop */
  z-index: 1;                     /* sit above the ghost initial */
  filter: grayscale(1) contrast(1.02);
}
.founder-meta { padding-top: 22px; }
.founder-meta h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.founder-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ikb);
  margin: 8px 0 12px;
}
.founder-line {
  font-size: 16.5px;
  color: rgba(22,19,14,0.72);
  max-width: 44ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.faq-grid .statement { position: sticky; top: 110px; }

.faq-list { border-top: 1px solid var(--ink); }
.faq-list details {
  border-bottom: 1px solid var(--hairline);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--ikb); }

.faq-x {
  position: relative;
  flex-shrink: 0;
  width: 16px; height: 16px;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-x::after { transform: rotate(90deg); }
details[open] .faq-x::after { transform: rotate(0deg); }
details[open] .faq-x::before { transform: rotate(180deg); }

.faq-list p {
  padding: 0 0 26px;
  max-width: 62ch;
  color: rgba(22,19,14,0.75);
  font-size: 16.5px;
}
.faq-list a { color: var(--ikb); }

/* ============================================================
   SUPPORT
   ============================================================ */
.support {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: #0B0A0E;
}
.support-inner {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 8vh, 100px);
}
.support-card {
  display: block;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--hairline-light);
  border-radius: 6px;
  text-decoration: none;
  background: rgba(22,19,14,0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.support-card:hover {
  background: rgba(247,243,236,0.1);
  border-color: rgba(247,243,236,0.5);
  transform: translateY(-4px);
}
.support-card h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.support-card p {
  color: rgba(247,243,236,0.82);
  max-width: 40ch;
  margin-bottom: 30px;
  font-size: 16.5px;
}
.support-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(247,243,236,0.4);
  padding-bottom: 4px;
  transition: gap 0.25s, border-color 0.25s;
}
.support-card:hover .support-card-cta { gap: 16px; border-color: var(--paper); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0B0A0E; /* flat near-black, seamless with the Get involved block above */
  color: var(--paper);
  padding: clamp(48px, 8vh, 96px) var(--gutter) 40px;
  overflow: hidden;
}
.footer-wordmark {
  font-size: clamp(120px, 24vw, 460px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.78;
  color: var(--ikb);
  margin: 0 0 clamp(48px, 8vh, 110px) -0.05em;
  user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline-light);
  max-width: 1100px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.45);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span {
  text-decoration: none;
  font-size: 16px;
  color: rgba(247,243,236,0.85);
}
.footer-col a:hover { color: var(--ikb-b); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 7vh, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(247,243,236,0.4);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- line-mask reveal for display type ---------- */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln-i { display: block; transform: translateY(115%); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.reveal-lines { opacity: 1; transform: none; }
.reveal-lines.in .ln-i { transform: translateY(0); }
.reveal-lines .ln:nth-child(2) .ln-i { transition-delay: 0.1s; }
.reveal-lines .ln:nth-child(3) .ln-i { transition-delay: 0.2s; }

/* ---------- hairline draw-in ---------- */
.eyebrow-rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.reveal.in .eyebrow-rule { transform: scaleX(1); }

.project { position: relative; border-top: 0; }
.project::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.project.in::before { transform: scaleX(1); }

.faq-list { position: relative; border-top: 0; }
.faq-list::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-list.in::before { transform: scaleX(1); }

/* ---------- colophon rows stagger ---------- */
.colophon div {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.colophon.in div { opacity: 1; transform: none; }
.colophon.in div:nth-child(2) { transition-delay: 0.09s; }
.colophon.in div:nth-child(3) { transition-delay: 0.18s; }
.colophon.in div:nth-child(4) { transition-delay: 0.27s; }

/* ---------- hero entrance (on load) ---------- */
@keyframes rise-line { to { transform: translateY(0); } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-soft { from { opacity: 0; } to { opacity: 1; } }

.hero .ln-i {
  transform: translateY(115%);
  animation: rise-line 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
.hero .ln:nth-child(2) .ln-i { animation-delay: 0.67s; }
.hero-wordmark {
  opacity: 0;
  animation: fade-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-sub { opacity: 0; animation: fade-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards; }
.hero-cta { opacity: 0; animation: fade-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards; }
.utility { animation: fade-soft 1.2s ease 0.4s backwards; }
.hero-scroll { animation: fade-soft 1.2s ease 1.4s backwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: 1fr; }
  .colophon { max-width: 480px; }
  .project-grid { grid-template-columns: 1fr; gap: 56px; }
  #locals .project-grid,
  #guard .project-grid { grid-template-columns: 1fr; }
  .project-grid-flip .project-info { order: 1; }
  .project-grid-flip .project-visual { order: 2; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .statement { position: static; }
  .team-grid { grid-template-columns: 1fr; max-width: 560px; }
  .people-row { grid-template-columns: 3.2ch minmax(0, 1fr); row-gap: 10px; }
  .people-line { grid-column: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .utility span:nth-child(3) { display: none; }
  .nav-links { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-scroll { display: none; }
  .hero-wordmark { font-size: clamp(96px, 26vw, 200px); }
  .team-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat dd { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .people-word { font-size: clamp(30px, 8.4vw, 54px); }
  .phone { transform: rotate(0); }
  #davai .phone { transform: rotate(0); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
  .hero-scroll-line { animation: none; }
  .davai-trans { opacity: 1; transform: none; transition: none; }
  .ln-i, .hero .ln-i { transform: none; transition: none; animation: none; }
  .hero-wordmark, .hero-sub, .hero-cta, .utility, .hero-scroll { opacity: 1; animation: none; }
  .eyebrow-rule, .project::before, .faq-list::before { transform: scaleX(1); transition: none; }
  .colophon div, .people-index .people-row { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   HERO VARIANTS — one of several headers is picked at random
   on every load (js/heroes.js). ?hero=<name> forces a variant.
   ============================================================ */
.hero-stage { position: absolute; inset: 0; cursor: pointer; touch-action: manipulation; }
.hero { touch-action: manipulation; } /* no double-tap zoom on the interactive headers */
.hero-wordmark { pointer-events: none; }

/* hover affordance — the art gently lifts/grows so it reads as clickable.
   We scale the CONTAINERS the per-variant JS doesn't transform, so it never
   fights the running animation. */
.hv-goo, .hv-heart-zone, .hv-svg-wrap svg {
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Affordance = a gentle lift only. No glow/drop-shadow: on an <svg> the
   shadow falls on the viewport rectangle, reading as an unwanted backing. */
.hero-stage:hover .hv-goo,
.hero-stage:hover .hv-heart-zone,
.hero-stage:hover .hv-svg-wrap svg { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .hv-goo, .hv-heart-zone, .hv-svg-wrap svg { transition: none; }
}

/* the hero is a click surface — rapid clicks must never select its text */
.hero, .hero * { -webkit-user-select: none; user-select: none; }
.hero { -webkit-tap-highlight-color: transparent; }
.hero-stage:focus { outline: none; }
.hero-stage:focus-visible { outline: 2px solid var(--ikb-b); outline-offset: -6px; }

/* hide the constellation/gradient layers unless their variant runs */
.hero:not(.hero--net) .hero-net { display: none; }
.hero:not(.hero--net) .hero-abstract { display: none; }

/* ---------- light (paper) hero theme ---------- */
.hero.hero-light { background: var(--paper); color: var(--ink); }
.hero.hero-light .hero-wordmark { color: var(--ink); text-shadow: none; }
.hero.hero-light .hero-sub { color: rgba(22, 19, 14, 0.75); opacity: 1; }
.hero.hero-light .hero-cta { background: var(--ink); color: var(--paper); }
.hero.hero-light .hero-cta:hover { background: var(--ikb); color: var(--paper); }
.hero.hero-light .hero-scroll { color: var(--ink); opacity: 0.55; }
.hero.hero-light .hero-scroll-line { background: var(--ink); }
body.body-hero-light .utility { color: var(--ink); }
body.body-hero-light .utility-lang a { color: var(--ink); }

/* smooth theme flips (heart inversion) */
.hero, .hero .hero-wordmark, .hero .hero-title, .hero .hero-sub, .hero .hero-scroll {
  transition: background 0.6s ease 0.1s, color 0.6s ease 0.1s;
}
.hero .hero-cta { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.5s ease 0.1s, color 0.5s ease 0.1s; }
.utility { transition: color 0.6s ease 0.1s; }

/* ---------- shared variant svg sizing ---------- */
.hv-svg-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 16vh;
}
.hv-svg-wrap svg { height: auto; display: block; overflow: visible; }

/* ---------- circles (goo) ---------- */
.hv-goo { position: absolute; inset: 0; filter: url(#hv-goo-f); }
.hv-blob { position: absolute; top: 0; left: 0; border-radius: 50%; background: var(--ink); will-change: transform, width, height; }

/* ---------- heart ---------- */
.hv-heart-zone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 10vh; }
.hv-heart { width: min(26vw, 30vh); will-change: transform; transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: 50% 55%; }
.hv-heart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hv-heart path { fill: var(--ink); }
/* on the dark side of the loop the heart is paper */
.hero--heart.hero-inverted .hv-heart path { fill: var(--paper); }

/* Difference blending keeps the copy readable while the heart passes
   underneath it — no dead state where text and heart are the same colour. */
.hero--heart .hero-wordmark,
.hero--heart .hero-title,
.hero--heart .hero-sub,
.hero--heart .hero-scroll,
body.body-hero-heart .utility {
  color: #fff !important;
  mix-blend-mode: difference;
  transition: none;
}
.hero--heart .hero-sub { opacity: 0.82; }
body.body-hero-heart .utility-lang a { color: #fff; }
.hero--heart .hero-scroll-line { background: #fff; }
/* hard cut while the heart covers the screen — no transition may show through */
.hero.no-anim, .hero.no-anim *, body.no-anim .utility { transition: none !important; }
.hero--heart.hero-inverted { background: var(--ink); }
.hero--heart.hero-inverted .hero-wordmark { color: var(--paper); }
.hero--heart.hero-inverted .hero-title { color: var(--paper); }
.hero--heart.hero-inverted .hero-sub { color: rgba(247,243,236,0.78); }
.hero--heart.hero-inverted .hero-cta { background: var(--paper); color: var(--ink); }
.hero--heart.hero-inverted .hero-cta:hover { background: var(--ikb-b); color: var(--paper); }
.hero--heart.hero-inverted .hero-scroll { color: var(--paper); }
.hero--heart.hero-inverted .hero-scroll-line { background: var(--paper); }
body.body-hero-inverted .utility, body.body-hero-inverted .utility-lang a { color: var(--paper); }
.hv-beat { display: block; animation: hv-beat 1.7s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes hv-beat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.04); }
  18% { transform: scale(0.99); }
  26% { transform: scale(1.06); }
  40% { transform: scale(1); }
}

/* ---------- illusion shapes ---------- */
.hv-orbit { fill: var(--ink); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1); opacity: 0.92; }
.hv-core { fill: var(--ikb); }
.hv-ring { fill: none; stroke: var(--ikb); stroke-width: 2; opacity: 0; transform-origin: center; transform-box: fill-box; }
.hv-measure { stroke: var(--ikb); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0; transition: opacity 0.5s 0.35s; }
.hv-on .hv-orbit { opacity: 0.07; }
.hv-on .hv-ring { animation: hv-ring 1s cubic-bezier(0.22,1,0.36,1) forwards; }
.hv-on .hv-measure { opacity: 0.9; }
@keyframes hv-ring {
  from { opacity: 0; transform: scale(1.7); }
  60% { opacity: 1; }
  to { opacity: 0.9; transform: scale(1.28); }
}

.hv-tile { fill: var(--ink); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1); }
.hv-mortar { stroke: #8C8880; stroke-width: 4; transition: stroke 0.6s, opacity 0.6s; }
.hv-ruler { stroke: var(--ikb); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0; transition: opacity 0.5s 0.3s; }
.hv-tick { stroke: var(--ikb); stroke-width: 2; opacity: 0; transition: opacity 0.5s 0.45s; }
.hv-on .hv-tile { opacity: 0.08; }
.hv-on .hv-mortar { stroke: var(--ikb); opacity: 0.9; }
.hv-on .hv-ruler { opacity: 0.9; }
.hv-on .hv-tick { opacity: 1; }

.hv-pac { fill: var(--ink); transition: transform 0.9s cubic-bezier(0.22,1,0.36,1); transform-box: fill-box; transform-origin: center; }
.hv-phantom { fill: none; stroke: var(--ikb); stroke-width: 2; stroke-dasharray: 5 7; opacity: 0; transition: opacity 0.6s 0.4s; }
.hv-on .hv-pac { transform: rotate(180deg); }
.hv-on .hv-phantom { opacity: 0.9; }

.hv-ray { stroke: var(--ink); stroke-width: 1.5; opacity: 0.45; transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1); }
.hv-hbar { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; transition: stroke 0.6s; }
.hv-guide { stroke: var(--ikb); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0; transition: opacity 0.5s 0.3s; }
.hv-on .hv-ray { opacity: 0.06; }
.hv-on .hv-hbar { stroke: var(--ikb); }
.hv-on .hv-guide { opacity: 0.9; }

/* ebbinghaus & kanizsa: js pins the wrap to the gap; the svg (meet) fits
   inside it, so it never overlaps the wordmark or the copy on any screen */
.hero--ebbinghaus .hv-svg-wrap,
.hero--kanizsa .hv-svg-wrap {
  inset: auto 0 auto 0;
  padding: 0 clamp(24px, 13vw, 240px);
  align-items: stretch;
  justify-content: center;
}
.hero--ebbinghaus .hv-svg-wrap svg,
.hero--kanizsa .hv-svg-wrap svg { width: 100%; height: 100%; }

/* café wall runs edge to edge as a band across the middle of the hero */
/* js sets top/height so the band exactly fills the gap between the
   wordmark and the copy; the svg slices rows to match */
.hero--cafewall .hv-svg-wrap {
  inset: auto 0 auto 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.hero--cafewall .hv-svg-wrap svg { width: 100vw; height: 100%; }
/* the band swallows the scroll cue — drop it on this variant */
.hero--cafewall .hero-scroll { display: none; }

/* hering paints across the whole hero; js sizes the bars to the gap */
.hero--hering .hv-svg-wrap { inset: 0; padding: 0; }
.hero--hering .hv-svg-wrap svg { width: 100%; height: 100%; }

@media (max-width: 720px) {
  .hero--ebbinghaus .hv-svg-wrap,
  .hero--kanizsa .hv-svg-wrap { padding: 0 clamp(16px, 6vw, 40px); }
  .hv-heart-zone { padding-bottom: 26vh; }
  .hv-heart { width: min(44vw, 26vh); }
}

@media (prefers-reduced-motion: reduce) {
  .hv-beat { animation: none; }
  .hv-heart { transition: none; }
  .hv-on .hv-ring { animation: none; opacity: 0.9; transform: scale(1.28); }
}
