:root {
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --muted: #6b6b6b;
  --line: #e6e4dc;
  --invert-ink: #fafaf7;
  --invert-paper: #0a0a0a;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 12vw, 160px);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* —— logo mark —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.mark polygon { fill: currentColor; }
.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

/* —— nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}
.nav nav a {
  color: var(--muted);
  transition: color .15s ease;
}
.nav nav a:hover { color: var(--ink); }
.nav .pill {
  color: var(--invert-ink);
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav .pill:hover { background: #2a2a2a; }

@media (max-width: 720px) {
  .nav nav a:not(.pill) { display: none; }
}

/* —— layout helpers —— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 840px;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.kicker.light { color: rgba(250,250,247,.55); }

/* —— hero —— */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
  position: relative;
  isolation: isolate;
}

/* neon-pink Z rain */
.rain {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.rain span {
  position: absolute;
  top: -60px;
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23ff2bd1'><polygon points='22,8 50,8 40,29'/><polygon points='30,92 70,8 62,8 22,92'/><polygon points='78,8 38,92 30,92 70,8'/><polygon points='50,92 78,92 60,71'/></g></svg>") no-repeat center / contain;
  filter: drop-shadow(0 0 4px rgba(255,43,209,.55));
  animation: z-rain linear infinite;
}
.rain span:nth-child(1)  { left:  3%; width: 22px; height: 22px; opacity: .35; animation-duration:  9.0s; animation-delay: -1.2s; }
.rain span:nth-child(2)  { left: 10%; width: 30px; height: 30px; opacity: .55; animation-duration:  7.0s; animation-delay: -3.5s; }
.rain span:nth-child(3)  { left: 17%; width: 18px; height: 18px; opacity: .35; animation-duration: 11.0s; animation-delay: -0.4s; }
.rain span:nth-child(4)  { left: 24%; width: 26px; height: 26px; opacity: .50; animation-duration:  8.0s; animation-delay: -5.0s; }
.rain span:nth-child(5)  { left: 31%; width: 20px; height: 20px; opacity: .60; animation-duration: 10.0s; animation-delay: -2.0s; }
.rain span:nth-child(6)  { left: 39%; width: 32px; height: 32px; opacity: .50; animation-duration:  6.5s; animation-delay: -4.2s; }
.rain span:nth-child(7)  { left: 47%; width: 24px; height: 24px; opacity: .40; animation-duration:  9.5s; animation-delay: -1.8s; }
.rain span:nth-child(8)  { left: 55%; width: 18px; height: 18px; opacity: .55; animation-duration:  7.8s; animation-delay: -3.1s; }
.rain span:nth-child(9)  { left: 62%; width: 28px; height: 28px; opacity: .35; animation-duration: 10.5s; animation-delay: -0.7s; }
.rain span:nth-child(10) { left: 69%; width: 22px; height: 22px; opacity: .50; animation-duration:  8.4s; animation-delay: -4.6s; }
.rain span:nth-child(11) { left: 76%; width: 32px; height: 32px; opacity: .45; animation-duration:  7.2s; animation-delay: -2.4s; }
.rain span:nth-child(12) { left: 83%; width: 18px; height: 18px; opacity: .60; animation-duration: 11.5s; animation-delay: -5.5s; }
.rain span:nth-child(13) { left: 90%; width: 26px; height: 26px; opacity: .35; animation-duration:  9.2s; animation-delay: -1.4s; }
.rain span:nth-child(14) { left: 14%; width: 16px; height: 16px; opacity: .35; animation-duration: 12.0s; animation-delay: -6.3s; }
.rain span:nth-child(15) { left: 51%; width: 16px; height: 16px; opacity: .35; animation-duration: 10.8s; animation-delay: -3.7s; }
@keyframes z-rain {
  to { transform: translateY(140vh); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
h1 em {
  font-style: normal;
  font-weight: 600;
  position: relative;
  display: inline-block;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.18em;
  background: var(--ink);
  opacity: 0.08;
  z-index: -1;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
}
.lead.light { color: rgba(250,250,247,.7); }
.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary {
  background: var(--ink);
  color: var(--invert-ink);
}
.btn.primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* —— figures (numbers row) —— */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 32px) 0;
}
.figures > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.figures > div:last-child { border-right: 0; }
.figures b {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.figures span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures > div:nth-child(2n) { border-right: 0; }
  .figures > div:nth-child(-n+2) {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
  }
}

/* —— services —— */
.services { padding: var(--pad-y) 0; }
.services h2,
.person h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.grid-3 {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-3 li {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
}
.grid-3 .num {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-weight: 500;
}
.grid-3 h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.grid-3 p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* —— claim (dark) —— */
.claim {
  background: var(--invert-paper);
  color: var(--invert-ink);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.claim::before {
  /* echo logo geometry: a giant faint Z mark in corner */
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 360px;
  height: 360px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23fafaf7' opacity='0.04'><polygon points='22,8 50,8 40,29'/><polygon points='30,92 70,8 62,8 22,92'/><polygon points='78,8 38,92 30,92 70,8'/><polygon points='50,92 78,92 60,71'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.claim h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 24px;
  display: flex;
  flex-direction: column;
}
.claim h2 .muted { color: rgba(250,250,247,.42); }
.modules {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  max-width: 720px;
}
.modules li {
  border: 1px solid rgba(250,250,247,.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(250,250,247,.85);
}

/* —— person —— */
.person { padding: var(--pad-y) 0; }
.person-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}
.portrait figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.person-text { display: flex; flex-direction: column; gap: 18px; }
.person-text p { color: var(--muted); }
.person-text .lead { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) {
  .person-body { grid-template-columns: 1fr; }
  .portrait { max-width: 520px; }
}

/* —— contact —— */
.contact {
  background: var(--invert-paper);
  color: var(--invert-ink);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 360px;
  height: 360px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23fafaf7' opacity='0.04'><polygon points='22,8 50,8 40,29'/><polygon points='30,92 70,8 62,8 22,92'/><polygon points='78,8 38,92 30,92 70,8'/><polygon points='50,92 78,92 60,71'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.contact h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 18px;
  max-width: 18ch;
}
.contact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250,250,247,.15);
  border: 1px solid rgba(250,250,247,.15);
}
.contact-card {
  background: var(--invert-paper);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  transition: background .2s ease;
}
a.contact-card:hover { background: #161616; }
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,.5);
}
.contact-value {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* —— neon-pink Z hover glow on dark blocks —— */
.claim::after,
.contact::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 360px;
  height: 360px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23ff2bd1'><polygon points='22,8 50,8 40,29'/><polygon points='30,92 70,8 62,8 22,92'/><polygon points='78,8 38,92 30,92 70,8'/><polygon points='50,92 78,92 60,71'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px #ff2bd1) drop-shadow(0 0 18px #ff2bd1) drop-shadow(0 0 36px #ff2bd1);
  transition: opacity .45s ease;
}
.claim:hover::after,
.contact:hover::after {
  opacity: 1;
  transition: opacity .8s ease .55s;
}

/* —— footer —— */
.foot {
  padding: 48px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.brand.small .mark { width: 22px; height: 22px; }
.brand.small .wordmark { font-size: 0.95rem; }
.legal { flex: 1 1 280px; min-width: 240px; }
.foot-links {
  list-style: none;
  display: flex;
  gap: 22px;
}
.foot-links a:hover { color: var(--ink); }

/* —— legal pages —— */
.legal-page {
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 12vw, 140px);
  max-width: 760px;
}
.legal-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.legal-head h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 32px;
  color: var(--ink);
}
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  color: var(--ink);
}
.legal-body p { color: var(--muted); }
.legal-body ul { padding-left: 1.2em; color: var(--muted); }
.legal-body li { margin-bottom: 4px; }
.legal-body a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.legal-body a:hover { text-decoration-color: var(--ink); }
.legal-body dl {
  display: grid;
  grid-template-columns: minmax(160px, max-content) 1fr;
  column-gap: 28px;
  row-gap: 10px;
  margin: 8px 0 12px;
}
.legal-body dt {
  font-weight: 500;
  color: var(--ink);
}
.legal-body dd {
  color: var(--muted);
  margin: 0;
}
.legal-body .source {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .legal-body dl { grid-template-columns: 1fr; row-gap: 2px; }
  .legal-body dd { margin-bottom: 10px; }
}

/* —— motion safety —— */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .rain { display: none; }
}
