/* palette: bg=#FFFFFF fg=#0E2338 accent=#0E9BE8 */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #FFFFFF;          /* dominant background from reference */
  --bg-alt: #F1F6FB;      /* alternating section background */
  --bg-deep: #0B1B2E;     /* dark inverted band (navy) */
  --fg: #0E2338;          /* primary text/foreground (navy) */
  --fg-soft: #2A3F58;     /* slightly lighter fg */
  --muted: #647A90;       /* secondary text */
  --accent: #0E9BE8;      /* brand accent (azure) from reference hero/CTA */
  --accent-deep: #0B77BC; /* darker accent for hover */
  --accent-soft: #E4F2FC; /* faint accent wash */
  --border: rgba(14, 35, 56, 0.12);
  --border-soft: rgba(14, 35, 56, 0.07);
  --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;
  --shadow-card: 0 4px 24px -4px rgba(14, 35, 56, 0.08);
  --shadow-hover: 0 16px 44px -10px rgba(11, 119, 188, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  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; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
section { position: relative; }
.section { padding: clamp(72px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

.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;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.lead {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 620px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px rgba(14, 155, 232, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--bg-deep); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.28); color: #fff; }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-2px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.textlink::after { content: "\2192"; transition: transform .3s var(--ease); }
.textlink:hover { gap: 12px; }
.textlink:hover::after { transform: translateX(2px); }

/* ---------- 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 .3s, border-color .3s;
}
.header[data-scrolled="true"] { box-shadow: 0 1px 0 rgba(14,35,56,0.06), 0 10px 30px -18px rgba(14,35,56,0.25); border-color: var(--border-soft); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--fg); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #4fc3f7);
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px -6px rgba(14,155,232,0.7);
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
}
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: color .25s;
  position: relative;
}
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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); }

.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,17,30,0.92) 0%, rgba(9,27,46,0.82) 42%, rgba(11,60,110,0.55) 100%);
}
.hero__grid { position: absolute; inset: 0; z-index: 1; opacity: 0.25;
  background-image: linear-gradient(rgba(120,200,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(120,200,255,0.14) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 78%); }
.hero__inner { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero .eyebrow { color: #6fd0ff; }
.hero .eyebrow::before { background: #6fd0ff; }
.hero h1 {
  color: #fff;
  font-size: clamp(3.1rem, 9vw, 7rem);
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { color: rgba(226, 238, 250, 0.82); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; line-height: 1.7; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 66px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.14); }
.hero__meta div span { display: block; }
.hero__meta .n { font-family: var(--serif); font-size: 2rem; color: #fff; letter-spacing: -0.02em; }
.hero__meta .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(226,238,250,0.6); margin-top: 6px; }

/* ---------- section heading block ---------- */
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -0.025em; margin-bottom: 22px; }
.head p { color: var(--muted); font-size: 1.08rem; line-height: 1.72; }

/* ---------- chapter / services grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 34px 30px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(14,155,232,0.35); }
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 20px; }
.card h3 { font-size: 1.42rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.68; margin-bottom: 20px; }
.card ul { list-style: none; padding: 0; margin: 0 0 4px; }
.card li { font-size: 0.92rem; color: var(--fg-soft); padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--border-soft); }
.card li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.card li:first-child { border-top: 0; }

/* ---------- manifesto (dark band) ---------- */
.manifesto { background: var(--bg-deep); color: #fff; text-align: center; overflow: hidden; }
.manifesto::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(14,155,232,0.28), transparent 60%);
}
.manifesto .container { position: relative; z-index: 1; }
.manifesto .quote-mark { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 0.5; color: var(--accent); opacity: 0.5; }
.manifesto p.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 20px auto 0;
}
.manifesto p.statement em { font-style: normal; color: var(--accent); }
.manifesto .attrib { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(226,238,250,0.6); margin-top: 40px; }

/* ---------- stats ---------- */
.stats { background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 840px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4rem); letter-spacing: -0.03em; color: var(--fg); }
.stat .n span { color: var(--accent); }
.stat .l { color: var(--muted); font-size: 0.92rem; margin-top: 8px; max-width: 22ch; }

/* ---------- approach / chapters (numbered rows) ---------- */
.steps { border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 38px 0; border-bottom: 1px solid var(--border); transition: background .3s; }
@media (min-width: 820px) { .step { grid-template-columns: 130px 1fr 1.3fr; gap: 40px; align-items: baseline; } }
.step__num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }
.step h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.step p { color: var(--muted); line-height: 1.72; }

/* ---------- feature / case (split image) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 68px; } .split--rev .split__media { order: 2; } }
.split__media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__body h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 22px; }
.split__body p { color: var(--fg-soft); margin-bottom: 18px; line-height: 1.75; }
.split__list { list-style: none; padding: 0; margin: 26px 0 32px; }
.split__list li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--border-soft); color: var(--fg-soft); font-size: 0.98rem; }
.split__list li::before { content: "\2713"; position: absolute; left: 0; top: 10px; color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative; font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 1.7rem; color: var(--accent); font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 44px 28px 0; line-height: 1.74; max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta { background: var(--bg-deep); color: #fff; overflow: hidden; }
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 120%, rgba(14,155,232,0.35), transparent 55%); }
.cta .container { position: relative; z-index: 1; text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 24px; letter-spacing: -0.03em; font-weight: 400; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: rgba(226,238,250,0.82); max-width: 560px; margin: 0 auto 38px; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 52px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.info-block { margin-bottom: 30px; }
.info-block .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.info-block .v { color: var(--fg-soft); line-height: 1.7; }
.info-block a.v:hover { color: var(--accent); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--fg);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,155,232,0.14); }
.field--row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); color: rgba(226,238,250,0.72); padding: 80px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer__blurb { max-width: 34ch; font-size: 0.95rem; line-height: 1.7; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(226,238,250,0.5); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 0.95rem; transition: color .25s; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 60px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: rgba(226,238,250,0.5); }
.footer__bottom .mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ---------- legal / article pages ---------- */
.page-head { padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 6vw, 72px); background: var(--bg-alt); border-bottom: 1px solid var(--border-soft); }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.03em; font-weight: 400; margin-bottom: 16px; }
.page-head p { color: var(--muted); max-width: 620px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); line-height: 1.78; font-size: 1.02rem; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }

/* ---------- thanks page ---------- */
.thanks { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.thanks__mark { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 32px; font-size: 34px; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; font-weight: 400; letter-spacing: -0.03em; }
.thanks p { color: var(--muted); max-width: 480px; margin: 0 auto 36px; font-size: 1.1rem; }

/* ---------- 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; }
  html { scroll-behavior: auto; }
}

/* ---------- 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(6,17,30,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: 30px 32px; max-width: 470px; border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(6,17,30,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.cookie-popup__card p { color: var(--muted); font-size: 0.9rem; line-height: 1.62; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 22px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: transform .25s, background .25s, color .25s; }
.cookie-popup__actions button:hover { transform: translateY(-1px); }
.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); }

/* utility */
.center { text-align: center; }
.mt-cta { margin-top: 44px; }
