/* palette: bg=#0A1422 fg=#ECE7DA accent=#4C7DFF */
/* fonts: display="Space Grotesk" body="IBM Plex Sans" mono="IBM Plex Mono" */

:root {
  --bg: #0A1422;          /* deep blueprint navy */
  --bg-alt: #0E1C2F;      /* alternating section navy */
  --bg-deep: #060D17;     /* near-black inverted band */
  --fg: #ECE7DA;          /* cream line-work / text */
  --fg-soft: #C7CCD6;     /* softened foreground */
  --muted: #74808F;       /* secondary text */
  --accent: #4C7DFF;      /* blueprint blue accent */
  --accent-deep: #345FD8; /* hover accent */
  --line: rgba(236, 231, 218, 0.14);
  --line-strong: rgba(236, 231, 218, 0.28);
  --border: rgba(236, 231, 218, 0.14);

  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --pad: clamp(20px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; }

/* ── Blueprint grid overlay (fixed) ───────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  opacity: 0.5;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
}

/* ── Layout primitives ────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; z-index: 1; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.sect-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Header ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 34, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,0.8);
  background: rgba(8, 16, 28, 0.9);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 var(--pad);
  max-width: 100%;
}
.nav { display: none; gap: clamp(18px, 2vw, 34px); }
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--accent); }

.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
}
.brandmark svg { width: 26px; height: 26px; display: block; }
.brandmark__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.header__cta { display: none; gap: 10px; justify-self: end; }
.btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.btn--solid { background: var(--accent); color: #06101e; border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.menu-toggle {
  justify-self: end;
  width: 42px; height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu ──────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-deep);
  padding: 96px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__meta { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,13,23,0.72) 0%, rgba(6,13,23,0.45) 35%, rgba(6,13,23,0.78) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.hero__eyebrow { margin-bottom: 22px; justify-content: center; }
.hero__wordmark {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 auto;
}
.hero__wordmark em { font-style: normal; color: var(--accent); }
.hero__sub {
  max-width: 540px;
  margin: 26px auto 0;
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.7;
}
.hero__anno {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  line-height: 1.7;
  z-index: 2;
}
.hero__anno--l { left: var(--pad); text-align: left; }
.hero__anno--r { right: var(--pad); text-align: right; }

.corner-labels {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.corner-labels a { transition: color .25s var(--ease); }
.corner-labels a:hover { color: var(--accent); }
.corner-labels .group { display: flex; gap: 14px; }

/* ── Manifesto / essay ────────────────────────────────── */
.manifesto { text-align: left; }
.manifesto__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.manifesto__statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 980px;
}
.manifesto__statement em { font-style: normal; color: var(--accent); }
.manifesto__body {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}
.manifesto__body p { color: var(--fg-soft); font-size: 18px; line-height: 1.78; }
.manifesto__body p:first-child { color: var(--fg); }

@media (min-width: 768px) {
  .manifesto__body { grid-template-columns: 1fr 1fr; }
}

/* ── Section heading block ────────────────────────────── */
.sect-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.sect-head__top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sect-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 14ch;
}
.sect-head h2 em { font-style: normal; color: var(--accent); }
.sect-head p { color: var(--muted); max-width: 46ch; font-size: 17px; }

/* ── Benefit / service feature block (mirrors reference) ─ */
.feature {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.feature__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  border: 1px solid var(--line);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__media .tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(6,13,23,0.7);
  color: var(--fg);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
}
.feature__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.feature__lead { color: var(--fg-soft); font-size: 18px; margin-bottom: 36px; max-width: 52ch; }
.feature__cols { display: grid; gap: 32px; }
.spec h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.spec ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.spec li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.55;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.spec li::before { content: "→"; color: var(--accent); }

@media (min-width: 860px) {
  .feature { grid-template-columns: 0.85fr 1.15fr; }
  .feature__cols { grid-template-columns: 1fr 1fr; }
}

/* ── Services / cards grid ────────────────────────────── */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .35s var(--ease);
}
.section--alt .card { background: var(--bg-alt); }
.card:hover { background: var(--bg-alt); }
.section--alt .card:hover { background: var(--bg); }
.card__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.14em; }
.card h3 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; }
.card p { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }
.card__meta { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Stats ────────────────────────────────────────────── */
.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.section--alt .stat { background: var(--bg-alt); }
.stat__num { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ── Pull quote (inverted) ────────────────────────────── */
.quote { text-align: center; }
.quote__mark { font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); line-height: 0.6; color: var(--accent); display: block; margin-bottom: 8px; }
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto;
}
.quote blockquote em { font-style: normal; color: var(--accent); }
.quote cite { display: block; margin-top: 32px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: -0.015em;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-no { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 26px;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 48px 28px 42px; color: var(--fg-soft); font-size: 16.5px; line-height: 1.75; max-width: 70ch; }

/* ── CTA ──────────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.0; letter-spacing: -0.03em; font-weight: 400; max-width: 16ch; margin: 0 auto; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: var(--fg-soft); max-width: 48ch; margin: 28px auto 0; font-size: 18px; }
.cta__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btn--lg { padding: 16px 32px; font-size: 12px; }

/* ── Contact form ─────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color .25s var(--ease);
}
.section--alt .field input, .section--alt .field textarea, .section--alt .field select { background: var(--bg); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 28px; }
.contact-info__item h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-info__item p, .contact-info__item a { color: var(--fg-soft); font-size: 16px; line-height: 1.6; }
.contact-info__item a:hover { color: var(--accent); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* ── Generic prose (legal) ────────────────────────────── */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; font-weight: 500; margin-bottom: 16px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin: 48px 0 16px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 17px; line-height: 1.8; margin-bottom: 16px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); }
.prose .lead { color: var(--fg); font-size: 19px; }
.page-head { padding-top: clamp(48px, 8vw, 90px); }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 100px) 0 36px; position: relative; z-index: 1; }
.footer__top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer__brand .brandmark { justify-self: start; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 34ch; font-size: 15px; }
.footer__cols { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: var(--fg-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 880px) { .footer__top { grid-template-columns: 1.4fr 1.6fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* ── Reveal animation ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
}

/* ── Cookie popup ─────────────────────────────────────── */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-alt); border: 1px solid var(--line-strong); padding: 32px 36px; max-width: 460px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.cookie-popup__card p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.65; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 22px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color .25s var(--ease), background .25s var(--ease); }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #06101e; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); color: #fff; }

/* ── Desktop nav reveal ───────────────────────────────── */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: flex; }
  .menu-toggle { display: none; }
  .hero__anno { display: block; }
}

/* ── Misc utilities ───────────────────────────────────── */
.divider-anno { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.divider-anno::before, .divider-anno::after { content: ""; height: 1px; background: var(--line); flex: 1; }
