/* palette: bg=#FFFFFF fg=#101839 accent=#2536A6 */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #FFFFFF;
  --bg-alt: #EEF1FA;
  --bg-deep: #101839;      /* dark navy band */
  --bg-deep-2: #0B1230;
  --fg: #101839;
  --fg-soft: #2A3461;
  --muted: #6B7494;
  --muted-light: #9AA1BD;
  --accent: #2536A6;
  --accent-deep: #19256E;
  --accent-soft: #C9D0EE;
  --line: rgba(16, 24, 57, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

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

  --container: 1240px;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  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 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
@media (min-width: 768px) { :root { --pad: 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-block;
}
.eyebrow--light { color: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: transform .4s var(--ease), opacity .4s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--light { background: #fff; border-color: #fff; color: var(--bg-deep); }
.btn--outline-light { background: transparent; border-color: var(--line-light); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--bg-deep); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--line);
  border-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__mark {
  width: 30px;
  height: 30px;
  position: relative;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, var(--accent) 46%, var(--accent) 54%, transparent 54%);
}
.nav { display: none; gap: 36px; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: color .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.header__cta { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(37,54,166,0.35), transparent 60%),
    linear-gradient(180deg, rgba(11,18,48,0.5), rgba(11,18,48,0.9));
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0; width: 100%; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 28px;
}
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero__lead {
  max-width: 56ch;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 2;
  display: none;
}
.hero__meta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}
.hero__meta-item { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.hero__meta-item strong { display: block; font-family: var(--serif); font-size: 28px; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }
@media (min-width: 768px) { .hero__meta { display: block; } }

/* ---------- Section base ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep .eyebrow { color: var(--accent-soft); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-head p { margin-top: 22px; color: var(--muted); font-size: 1.05rem; }
.section--deep .section-head p { color: rgba(255,255,255,0.72); }

.split-head {
  display: grid;
  gap: 32px;
  margin-bottom: 64px;
}
@media (min-width: 900px) {
  .split-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--bg);
  padding: 42px 34px;
  transition: background .35s var(--ease);
}
.svc:hover { background: var(--bg-alt); }
.svc__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.svc h3 { font-size: 1.5rem; margin: 24px 0 14px; font-weight: 500; }
.svc p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.svc__tag { margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .quote-mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.manifesto p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.manifesto cite {
  display: block;
  margin-top: 40px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* ---------- Case studies / editorial ---------- */
.case-list { display: grid; gap: 1px; background: var(--line); }
.case {
  background: var(--bg);
  display: grid;
  gap: 24px;
  padding: 40px 0;
  align-items: center;
}
@media (min-width: 900px) {
  .case { grid-template-columns: 90px 1.4fr 1fr 150px; padding: 36px 0; }
}
.case__index { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.case__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; }
.case__title span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.case__desc { color: var(--muted); font-size: 0.96rem; }
.case__link { justify-self: start; }
@media (min-width: 900px) { .case__link { justify-self: end; } }

/* feature card with image */
.feature-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.fcard {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 4px 24px -4px rgba(16,24,57,0.08);
}
.fcard:hover { transform: translateY(-6px); box-shadow: 0 18px 48px -12px rgba(16,24,57,0.2); }
.fcard__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-deep); }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fcard:hover .fcard__img img { transform: scale(1.05); }
.fcard__body { padding: 30px 30px 36px; }
.fcard__body .eyebrow { margin-bottom: 12px; }
.fcard h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 12px; }
.fcard p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-deep); padding: 44px 28px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 10px; display: block; }

/* ---------- Process / steps ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.step {
  display: grid;
  gap: 16px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .step { grid-template-columns: 110px 280px 1fr; align-items: baseline; } }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: 1.5rem; font-weight: 500; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: left;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq__q .plus { flex: none; position: relative; width: 18px; height: 18px; transition: transform .35s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--accent); }
.faq__q .plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .plus::after { left: 8px; top: 0; width: 2px; height: 18px; transition: opacity .3s; }
.faq__item[data-open="true"] .plus { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.faq__a p { padding: 0 0 30px; color: var(--muted); font-size: 1rem; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; max-width: 16ch; margin: 0 auto 26px; }
.cta p { color: rgba(255,255,255,0.72); max-width: 50ch; margin: 0 auto 38px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.contact-info dd { margin: 6px 0 0; font-size: 1.1rem; }
.contact-info dd:first-of-type { margin-top: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-deep); color: #fff; padding: 150px 0 90px; position: relative; overflow: hidden; }
.page-hero .hero__grid { opacity: 0.3; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -0.03em; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--accent-soft); }
.page-hero p { margin-top: 24px; color: rgba(255,255,255,0.74); max-width: 56ch; font-size: 1.08rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 16px; font-weight: 500; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; font-weight: 500; }
.prose p { color: var(--fg-soft); margin-bottom: 16px; }
.prose ul { color: var(--fg-soft); padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep-2); color: rgba(255,255,255,0.7); padding: 80px 0 36px; }
.footer__top { display: grid; gap: 48px; margin-bottom: 60px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand .brand { color: #fff; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 20px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 0.95rem; transition: color .25s; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.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__bg img { animation: none; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(11,18,48,0.45); 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); padding: 32px 36px; max-width: 480px; border-radius: 4px; box-shadow: 0 24px 60px -12px rgba(0,0,0,0.35); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--line); cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: background .25s, color .25s; }
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }

/* spacing helpers */
.mt-cta { margin-top: 48px; }
.center { text-align: center; }
