/* ============================================================
   Pulse and Purpose — "Dark Pulse"
   One family (Bricolage Grotesque), one committed accent (coral),
   ink + paper structure. No gradients, no glass, no eyebrows.
   ============================================================ */

:root {
  /* Surfaces */
  --ink:        oklch(0.165 0.022 274);   /* deep near-black, faint indigo */
  --ink-2:      oklch(0.205 0.026 274);   /* raised ink */
  --paper:      oklch(0.987 0.002 250);   /* clean off-white, NOT cream */
  --paper-2:    oklch(0.965 0.004 255);   /* subtle raised paper */

  /* Brand */
  --coral:      oklch(0.705 0.182 35);    /* Pulse — on dark */
  --coral-ink:  oklch(0.555 0.165 33);    /* Pulse — text on light (>=4.5:1) */
  --indigo:     oklch(0.505 0.155 274);   /* Purpose — text on light */
  --indigo-lt:  oklch(0.760 0.115 268);   /* Purpose — on dark */

  /* Text on paper */
  --ink-text:   oklch(0.235 0.020 274);
  --ink-muted:  oklch(0.475 0.018 268);   /* >=4.5:1 on paper */

  /* Text on ink */
  --on-ink:     oklch(0.965 0.004 250);
  --on-ink-mut: oklch(0.740 0.016 262);   /* >=4.5:1 on ink */

  /* Lines */
  --line:       color-mix(in oklab, var(--ink) 12%, transparent);
  --line-dark:  color-mix(in oklab, white 14%, transparent);

  /* Type */
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Fluid type scale (~1.28 ratio) */
  --t-display: clamp(3rem, 1.9rem + 5.4vw, 5.75rem);
  --t-h2:      clamp(2rem, 1.45rem + 2.6vw, 3.25rem);
  --t-h3:      clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --t-lead:    clamp(1.1rem, 1.02rem + 0.45vw, 1.34rem);
  --t-body:    1.0625rem;
  --t-small:   0.84rem;

  /* Space */
  --gutter:    clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  --section-y: clamp(5rem, 3.2rem + 7vw, 9rem);
  --maxw:      1160px;
  --header-h:  68px;

  /* Radius — restrained */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo-ish */
  --dur: 420ms;

  /* z-index scale */
  --z-bg: 0;
  --z-base: 1;
  --z-header: 50;

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
ul { margin: 0; }

::selection {
  background: color-mix(in oklab, var(--coral) 32%, transparent);
  color: var(--ink-text);
}

:focus-visible {
  outline: 2.5px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───── Headings ───── */

h1, .hero-title {
  font-size: var(--t-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.05;
  text-wrap: balance;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.lead em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-text);
}

/* Accent words — solid color only, never gradient-clip */
.accent-pulse      { color: var(--coral); }
.accent-purpose    { color: var(--indigo-lt); }
.accent-pulse-ink  { color: var(--coral-ink); }

/* ───── Header ───── */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 16px var(--gutter);
  color: var(--on-ink); /* light over the dark hero; legal pages override below */
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--coral) 22%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--coral) 55%, transparent);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--coral);
  animation: beat 2.4s var(--ease-out) infinite;
}

@keyframes beat {
  0%, 70%, 100% { transform: scale(1); opacity: 1; }
  35% { transform: scale(0.62); opacity: 0.75; }
}

.logo-amp { opacity: 0.5; font-weight: 500; margin: 0 1px; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: currentColor;
  opacity: 0.82;
  transition: opacity 160ms var(--ease-out);
}
nav a:hover { opacity: 1; }

.nav-cta {
  opacity: 1;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--on-ink);
  color: var(--ink) !important;
  font-weight: 600;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); }

/* ───── Buttons ───── */

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.button svg { width: 16px; height: 16px; }

.button-coral {
  background: var(--coral);
  color: oklch(0.2 0.04 32);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--coral) 80%, transparent);
}
.button-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -14px color-mix(in oklab, var(--coral) 85%, transparent);
}

.button-quiet {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--on-ink);
}
.button-quiet:hover {
  border-color: color-mix(in oklab, white 38%, transparent);
  transform: translateY(-2px);
}

.button-lg { padding: 16px 26px; font-size: 1.06rem; }

/* ───── Dark panels (hero + cta) ───── */

.panel-dark {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}

/* ───── Hero ───── */

.hero {
  padding-top: var(--header-h);
  overflow: hidden;
}

.pulse-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hero-inner {
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
}

.hero-title {
  max-width: 16ch;
}

.hero-copy {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  max-width: 54ch;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--on-ink-mut);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 4.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line-dark);
  max-width: 760px;
}

.hero-def dd {
  margin-top: 8px;
  color: var(--on-ink-mut);
  font-size: 0.99rem;
  line-height: 1.5;
  max-width: 34ch;
}

.def-key {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.def-key-pulse   { color: var(--coral); }
.def-key-purpose { color: var(--indigo-lt); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  font-size: var(--t-small);
  color: var(--on-ink-mut);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: oklch(0.78 0.16 150);
  box-shadow: 0 0 0 4px color-mix(in oklab, oklch(0.78 0.16 150) 22%, transparent);
}

/* ───── Sections ───── */

.section { padding-block: var(--section-y); }
.section-work { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 18px; }

/* ───── Pillars (typographic split, no cards) ───── */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.pillar { position: relative; padding-left: clamp(1.25rem, 2vw, 1.75rem); }
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--coral-ink);
}
.pillar:nth-child(2)::before { background: var(--indigo); }

.pillar-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.pillar-name-pulse   { color: var(--coral-ink); }
.pillar-name-purpose { color: var(--indigo); }

.pillar h3 { margin-bottom: 14px; }
.pillar-body { color: var(--ink-muted); max-width: 46ch; }

/* ───── Work list (editorial rows, not identical cards) ───── */

.work-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.work-row h3 { letter-spacing: -0.02em; }
.work-row > p { color: var(--ink-muted); max-width: 44ch; }

.work-row-feature {
  position: relative;
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--coral) 7%, transparent),
      transparent 60%);
  border-radius: var(--r-md);
  padding-inline: clamp(1.25rem, 2.5vw, 2rem);
  margin-inline: clamp(-1.25rem, -2.5vw, -2rem);
}
.work-row-feature h3 { color: var(--coral-ink); }

.work-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.98rem;
  color: var(--ink-muted);
}
.work-points li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.work-points li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 1px;
  border-radius: var(--r-pill);
  background: var(--coral-ink);
  transform: translateY(2px);
}

/* ───── CTA ───── */

.cta { padding-block: clamp(4.5rem, 8vw, 7rem); }
.cta-inner { max-width: 780px; }
.cta h2 { max-width: 22ch; }
.lead-on-dark { color: var(--on-ink-mut); margin-top: 20px; max-width: 56ch; }
.cta .button { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ───── Footer ───── */

footer { background: var(--paper); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: clamp(2.5rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-text);
  font-weight: 600;
}
.footer-meta { display: grid; gap: 7px; max-width: 560px; text-align: right; margin-left: auto; }
.footer-meta p { margin: 0; }
.footer-legal { color: var(--ink-muted); font-size: 0.8rem; line-height: 1.55; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; margin-bottom: 2px; }
.footer-links a { font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 160ms; }
.footer-links a:hover { border-bottom-color: currentColor; }

/* ───── Legal pages (inherit tokens; no side-stripe) ───── */

.legal-page {
  max-width: 720px;
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) var(--gutter) clamp(5rem, 9vw, 7rem);
}
.legal-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--coral-ink);
}
.legal-page .eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--coral-ink);
}
.legal-page h1 {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.legal-meta {
  color: var(--ink-muted);
  font-size: var(--t-small);
  margin: 0 0 36px;
}
.legal-intro { font-size: 1.12rem; line-height: 1.7; color: var(--ink-text); margin-bottom: 22px; }
.legal-page h2 {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.018em;
  line-height: 1.25; margin: 46px 0 14px;
}
.legal-page h3 { font-size: 1.06rem; font-weight: 600; margin: 26px 0 8px; }
.legal-page p { color: var(--ink-text); line-height: 1.7; margin: 0 0 16px; max-width: 68ch; }
.legal-page ul { color: var(--ink-text); line-height: 1.7; margin: 0 0 18px; padding-left: 22px; max-width: 68ch; }
.legal-page li { margin-bottom: 8px; }
.legal-page li::marker { color: var(--coral-ink); }
.legal-page strong { font-weight: 700; color: var(--ink-text); }
.legal-page a {
  color: var(--indigo);
  border-bottom: 1px solid color-mix(in oklab, var(--indigo) 35%, transparent);
  transition: border-color 160ms, color 160ms;
}
.legal-page a:hover { color: var(--coral-ink); border-bottom-color: var(--coral-ink); }

/* TL;DR — full bordered box, not a side-stripe */
.legal-tldr-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 30px 0 38px;
}
.legal-tldr-label {
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--coral-ink);
  margin: 0 0 12px;
}
.legal-tldr-box ul { color: var(--ink-text); margin: 0; padding-left: 20px; }
.legal-tldr-box li { margin-bottom: 5px; }
.legal-tldr-box a { color: var(--coral-ink); border: 0; font-weight: 600; }

.legal-tldr {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-text);
  font-size: 0.96rem;
  margin: 18px 0 22px;
  padding: 14px 18px;
}
.legal-tldr strong { color: var(--coral-ink); }

.legal-outro { color: var(--ink-muted); font-size: 0.98rem; margin-top: 40px; }
.legal-back { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 26px; }
.legal-back a { color: var(--ink-muted); font-weight: 600; border: 0; }
.legal-back a:hover { color: var(--coral-ink); }

/* Legal pages have a light background, so the header reads dark */
body:has(.legal-page) .site-header { color: var(--ink-text); }
body:has(.legal-page) .nav-cta { background: var(--ink); color: var(--paper) !important; }

/* ───── Responsive ───── */

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 2.25rem; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .work-row > p { max-width: 60ch; }
  .footer-meta { text-align: left; margin-left: 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero-defs { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-header { gap: 8px; padding-block: 13px; }
  .logo { font-size: 0.9rem; gap: 7px; white-space: nowrap; }
  .logo-mark { width: 17px; height: 17px; }
  nav { gap: 9px; }
  nav a { font-size: 0.78rem; white-space: nowrap; }
  .nav-cta { padding: 7px 11px; }
}

@media (max-width: 400px) {
  /* drop the longest section link at the very narrowest; keep Mission + the primary CTA */
  nav a[href="#work"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
