/* palette: bg=#0A1B30 fg=#EAF3FC accent=#2E90E0 */
/* fonts: display="Space Grotesk" body="IBM Plex Sans" mono="IBM Plex Mono" */

:root {
  --bg: #0A1B30;          /* deep navy background from reference lower sections */
  --bg-alt: #0E2440;      /* alternating navy section */
  --bg-deep: #06111F;     /* darkest band */
  --sky-1: #5A9FD4;       /* hero sky gradient top */
  --sky-2: #9AC6E8;       /* hero sky gradient mid */
  --sky-3: #DCEBF7;       /* hero sky near horizon */
  --fg: #EAF3FC;          /* primary near-white text */
  --fg-soft: #C4D6EA;     /* slightly softer */
  --muted: #7E9BBB;       /* secondary text */
  --accent: #2E90E0;      /* blueprint accent blue (reference CTA) */
  --accent-deep: #1C6FB8; /* darker for hover */
  --line: rgba(180, 208, 236, 0.16);   /* blueprint line-work */
  --line-soft: rgba(180, 208, 236, 0.08);
  --border: rgba(180, 208, 236, 0.16);
  --card: rgba(255, 255, 255, 0.03);
  --serif: '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);
  --maxw: 1240px;
}

*, *::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; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }

/* ---------- Blueprint grid backdrop ---------- */
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 55%, transparent 100%);
  z-index: 0;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-top: 22px;
}
.section-head p { color: var(--fg-soft); font-size: 1.0625rem; margin-top: 22px; max-width: 620px; }
em { font-style: normal; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 27, 48, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(6, 17, 31, 0.86);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (min-width: 768px) { .header__inner { padding: 16px 32px; } }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__mark {
  width: 26px; height: 26px; position: relative; flex: none;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
}
.brand__mark span { background: var(--accent); border-radius: 1px; }
.brand__mark span:nth-child(2) { background: var(--sky-2); }
.brand__mark span:nth-child(3) { background: var(--sky-2); }
.nav { display: none; align-items: center; gap: 30px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 13px; color: var(--fg-soft); letter-spacing: 0.01em;
  transition: color 0.2s var(--ease); position: relative;
}
.nav a:hover { color: var(--fg); }
.nav a.is-current { color: var(--fg); }
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--accent); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; margin: -8px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.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 {
  position: fixed; inset: 0; z-index: 99; background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 58%, #F4F9FD 74%, var(--bg) 100%);
  padding: 120px 20px 60px;
}
.hero__clouds {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 78% 22%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(ellipse 34% 26% at 18% 34%, rgba(255,255,255,0.7), transparent 62%),
    radial-gradient(ellipse 50% 30% at 62% 60%, rgba(255,255,255,0.6), transparent 65%);
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; max-width: 960px; }
.hero .eyebrow { color: #1C4E80; }
.hero .eyebrow::before { background: #1C4E80; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.03em; line-height: 0.96; font-weight: 300;
  color: #0C2C4C; margin: 26px 0 0;
}
.hero h1 em { color: #1C6FB8; }
.hero__sub {
  margin: 30px auto 0; max-width: 540px; color: #22486E; font-size: 1.125rem; line-height: 1.6;
}
.hero__mark {
  margin: 46px auto 0; width: 128px; height: 128px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  opacity: 0.95;
}
.hero__mark span { border-radius: 3px; }
.hero__mark span:nth-child(1) { background: #1C6FB8; }
.hero__mark span:nth-child(2) { background: #4A93D4; }
.hero__mark span:nth-child(3) { background: #4A93D4; }
.hero__mark span:nth-child(4) { background: #1C6FB8; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); }

/* ---------- Tagline band ---------- */
.band {
  background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0;
}
.band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; justify-content: space-between; }
.band__lead { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; max-width: 720px; }
.band__lead em { color: var(--accent); }
.band__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; max-width: 260px; }

/* ---------- Manifesto / essay ---------- */
.essay { background: var(--bg); }
.essay__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .essay__grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.essay__aside { position: relative; }
.essay__aside .eyebrow { margin-bottom: 22px; }
.essay__aside p { color: var(--muted); font-family: var(--mono); font-size: 12.5px; line-height: 1.9; }
.essay__body p { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.6; letter-spacing: -0.01em; color: var(--fg); margin: 0 0 30px; }
.essay__body p:last-child { margin-bottom: 0; }
.essay__body p.small { font-size: 1.0625rem; line-height: 1.8; color: var(--fg-soft); letter-spacing: 0; }
.essay__body strong { color: var(--fg); font-weight: 600; }

/* ---------- Accordion capabilities (reference middle) ---------- */
.showcase { background: var(--bg-alt); border-top: 1px solid var(--line); }
.showcase__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .showcase__grid { grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: stretch; } }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.acc-item[data-open="true"] { border-color: var(--accent); background: rgba(46,144,224,0.06); }
.acc-head { width: 100%; text-align: left; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-head span.t { font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em; }
.acc-head .plus { position: relative; width: 16px; height: 16px; flex: none; }
.acc-head .plus::before, .acc-head .plus::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.3s var(--ease); }
.acc-head .plus::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.acc-head .plus::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.acc-item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-item[data-open="true"] .acc-body { max-height: 260px; }
.acc-body p { margin: 0; padding: 0 22px 22px; color: var(--fg-soft); font-size: 0.98rem; line-height: 1.7; }
.acc-body .tag { display: inline-block; margin: 0 22px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.showcase__media { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__media .float-btn { position: absolute; right: 20px; bottom: 20px; }
.showcase__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,17,31,0.55)); }

/* ---------- Services / cards grid (component gallery vibe) ---------- */
.services { background: var(--bg); }
.svc-topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.svc-topbar h3 { font-size: 1.2rem; }
.svc-topbar span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 40px -12px rgba(0,0,0,0.5); }
.card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__num { position: absolute; top: 12px; left: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg); background: rgba(6,17,31,0.7); padding: 4px 9px; border-radius: 4px; }
.card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h4 { font-size: 1.3rem; letter-spacing: -0.01em; }
.card__body p { color: var(--fg-soft); font-size: 0.97rem; line-height: 1.68; margin: 12px 0 20px; flex: 1; }
.card__body .arrow-link { margin-top: auto; }

/* ---------- Pull quote (inverted) ---------- */
.quote { background: var(--fg); color: var(--bg-deep); text-align: center; }
.quote .container { position: relative; }
.quote__mark { font-family: var(--serif); font-size: clamp(6rem, 16vw, 12rem); line-height: 0.6; color: var(--accent); opacity: 0.85; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.16; max-width: 960px; margin: 10px auto 0; font-weight: 400; }
.quote blockquote em { color: var(--accent-deep); }
.quote cite { display: block; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #4A6684; font-style: normal; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.stat .n em { color: var(--accent); }
.stat .l { margin-top: 14px; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 0.7fr 1.3fr; gap: 64px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 26px 0; display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.faq-q span.t { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.3; }
.faq-q .plus { position: relative; width: 15px; height: 15px; flex: none; margin-top: 8px; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.3s var(--ease); }
.faq-q .plus::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.faq-q .plus::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.faq-item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item[data-open="true"] .faq-a { max-height: 320px; }
.faq-a p { margin: 0; padding: 0 0 28px; color: var(--fg-soft); font-size: 1.02rem; line-height: 1.75; max-width: 640px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(160deg, var(--bg-alt), var(--bg-deep)); position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.cta h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); letter-spacing: -0.03em; line-height: 1.02; font-weight: 300; }
.cta h2 em { color: var(--accent); }
.cta p { color: var(--fg-soft); font-size: 1.08rem; margin: 24px auto 38px; max-width: 540px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; color: var(--fg); font-family: var(--sans); font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(46,144,224,0.05); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 12.5px; color: var(--muted); }
.form__note a { color: var(--accent); }

/* ---------- Contact info ---------- */
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.info-block { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 30px; }
.info-block .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.info-block .v { margin-top: 10px; font-size: 1.05rem; color: var(--fg); line-height: 1.6; }
.info-block .v span { display: block; color: var(--muted); font-size: 0.95rem; }

/* ---------- Team / principles (text-only, no faces) ---------- */
.people-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
.person { border: 1px solid var(--border); border-radius: 12px; padding: 26px; background: var(--card); transition: border-color 0.3s var(--ease); }
.person:hover { border-color: var(--accent); }
.avatar { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem; color: #fff; letter-spacing: 0.02em; }
.person h4 { font-size: 1.2rem; margin-top: 20px; letter-spacing: -0.01em; }
.person .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; margin-top: 6px; }
.person p { color: var(--fg-soft); font-size: 0.95rem; line-height: 1.65; margin: 14px 0 0; }

/* ---------- Value / process list ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; gap: 10px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .step { grid-template-columns: 120px 1fr; } }
.step .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.step h4 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; }
.step p { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.72; margin: 12px 0 0; max-width: 640px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -0.03em; line-height: 0.98; font-weight: 300; max-width: 12ch; }
.page-hero h1 em { color: var(--accent); }
.page-hero p { color: var(--fg-soft); font-size: 1.125rem; max-width: 560px; margin-top: 28px; line-height: 1.7; }

/* ---------- Legal ---------- */
.legal { padding: clamp(120px, 16vw, 190px) 0 clamp(60px, 10vw, 120px); }
.legal__wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.03em; font-weight: 300; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: 0.05em; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.78; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 90px) 0 40px; position: relative; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.footer__brand .brand { font-size: 1.5rem; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 320px; line-height: 1.7; }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 400; }
.footer__col a { display: block; color: var(--fg-soft); font-size: 0.95rem; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer__bottom p, .footer__bottom a { font-size: 12.5px; color: var(--muted); }
.footer__bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: var(--fg); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(3,10,20,0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-alt); border: 1px solid var(--border); padding: 30px 32px; max-width: 480px; border-radius: 12px; box-shadow: 0 24px 70px -20px rgba(0,0,0,0.7); }
.cookie-popup__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cookie-popup__card h3 { font-size: 1.4rem; margin: 12px 0 12px; letter-spacing: -0.01em; }
.cookie-popup__card p { color: var(--fg-soft); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.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-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
