/* palette: bg=#F1F2FF fg=#0E1030 accent=#1E22DB */
/* fonts: display="Space Grotesk" body="Inter" mono="Space Mono" */

:root {
  --bg: #F1F2FF;        /* soft periwinkle sky-white — dominant background */
  --bg-alt: #1E22DB;    /* electric ultramarine blue band */
  --bg-deep: #0E1030;   /* deep ink night blue */
  --fg: #0E1030;        /* primary ink */
  --fg-soft: #2A2C55;   /* softened ink */
  --muted: #6C6FA6;     /* periwinkle muted */
  --muted-on-blue: #B9BBF3; /* muted text over the blue band */
  --accent: #1E22DB;    /* electric blue accent */
  --accent-deep: #1417A6;
  --accent-glow: #4E52FF;
  --border: rgba(14, 16, 48, 0.12);
  --border-on-blue: rgba(255, 255, 255, 0.18);
  --card: #FFFFFF;
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space 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);
  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 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.on-blue .eyebrow { color: var(--muted-on-blue); }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 242, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border), 0 8px 30px -18px rgba(14,16,48,0.4);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 768px) { .header__inner { padding: 0 32px; height: 76px; } }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 9px;
}
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: none; align-items: center; gap: 36px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
  color: var(--fg-soft); transition: color .2s var(--ease);
}
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 9999px;
  background: var(--accent); color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 12px 28px -10px rgba(30,34,219,0.6); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--bg); color: var(--accent-deep); box-shadow: 0 12px 28px -10px rgba(0,0,0,0.35); }
.header .btn { display: none; }
@media (min-width: 900px) { .header .btn { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 8px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 24px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.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: 0; z-index: 99; background: var(--accent);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 40px; gap: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 12vw; font-weight: 500; letter-spacing: -0.03em;
  padding: 6px 0; border-bottom: 1px solid var(--border-on-blue);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; background:#fff; color: var(--accent); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; color: var(--fg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(241,242,255,0.35) 0%, rgba(241,242,255,0.1) 40%, rgba(30,34,219,0.28) 100%);
}
.hero__watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 700; font-size: 34vw; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.28); z-index: 1; line-height: 1; pointer-events: none; user-select: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px 6vh; }
@media (min-width: 768px) { .hero__inner { padding: 0 32px 7vh; } }
.hero__marquee {
  overflow: hidden; white-space: nowrap; margin-bottom: 3vh;
  border-top: 1px solid rgba(14,16,48,0.18); border-bottom: 1px solid rgba(14,16,48,0.18);
  padding: 14px 0;
}
.hero__marquee-track { display: inline-block; animation: marquee 26s linear infinite; }
.hero__marquee-track span {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 9rem); letter-spacing: -0.03em; color: var(--fg);
  padding: 0 2.5rem; display: inline-block;
}
.hero__marquee-track .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px 48px; align-items: flex-start; justify-content: space-between; }
.hero__lead { max-width: 480px; font-size: 17px; color: var(--fg-soft); }
.hero__lead em { color: var(--accent); font-style: normal; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid rgba(14,16,48,0.22); border-radius: 9999px; color: var(--fg-soft);
  background: rgba(255,255,255,0.35);
}

/* ---------------- Sections ---------------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--blue { background: var(--bg-alt); color: #fff; }
.section--deep { background: var(--bg-deep); color: #fff; }
.on-blue .btn--ghost, .section--blue .btn--ghost, .section--deep .btn--ghost { border-color: var(--border-on-blue); color:#fff; }
.on-blue .btn--ghost:hover { background:#fff; color: var(--accent); }

.section__head { max-width: 780px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; }
.section__head p { margin-top: 24px; color: var(--muted); font-size: 18px; max-width: 620px; }
.section--blue .section__head p, .section--deep .section__head p { color: var(--muted-on-blue); }

/* Feature list (mirrors reference blue band) */
.features { display: grid; gap: 0; }
.feature {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--border-on-blue);
}
.feature:last-child { border-bottom: 1px solid var(--border-on-blue); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 56px minmax(0, 1fr) 220px; gap: 40px; }
}
.feature__step {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-on-blue); display: flex; align-items: center; gap: 12px;
}
.feature__num {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-on-blue);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.feature__body h3 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
.feature__body p { margin-top: 16px; color: var(--muted-on-blue); font-size: 16px; max-width: 520px; }
.feature__img { border-radius: 14px; overflow: hidden; aspect-ratio: 5/4; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.06); }

/* Manifesto */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.16; letter-spacing: -0.025em;
  max-width: 940px; margin: 0 auto;
}
.manifesto__quote em { color: var(--accent-glow); font-style: normal; }
.manifesto__mark {
  font-family: var(--serif); font-size: 8rem; line-height: 0.4; color: var(--accent-glow);
  display: block; margin-bottom: 10px; height: 60px;
}
.manifesto__sig { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-blue); }

/* Cards grid (services / journal) */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border-radius: 18px; padding: 34px 30px 30px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -4px rgba(14,16,48,0.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px -8px rgba(14,16,48,0.16); }
.card__idx { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.card h3 { font-size: 1.6rem; margin-top: 18px; letter-spacing: -0.02em; }
.card p { margin-top: 14px; color: var(--muted); font-size: 16px; flex: 1; }
.card__link { margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.card__link .arrow { transition: transform .3s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(5px); }

/* Journal / article cards with image */
.article { border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: 0 4px 24px -4px rgba(14,16,48,0.08); transition: transform .4s var(--ease), box-shadow .4s var(--ease); display:flex; flex-direction:column; height:100%; }
.article:hover { transform: translateY(-6px); box-shadow: 0 12px 40px -8px rgba(14,16,48,0.16); }
.article__img { aspect-ratio: 16/10; overflow: hidden; }
.article__img img { width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease); }
.article:hover .article__img img { transform: scale(1.06); }
.article__body { padding: 26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.article__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.article__body h3 { font-size: 1.4rem; margin-top: 12px; }
.article__body p { color: var(--muted); font-size: 15px; margin-top: 12px; flex:1; }
.article__meta { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
.stat__label { margin-top: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-on-blue); }

/* Split (about / values) */
.split { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.split__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.split__media img { width:100%; height:100%; object-fit: cover; }
.split h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.split p { margin-top: 22px; color: var(--muted); }
.split .section--blue & p { color: var(--muted-on-blue); }

/* Value list */
.vlist { list-style: none; margin: 34px 0 0; padding: 0; }
.vlist li { padding: 22px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.vlist li:last-child { border-bottom: 1px solid var(--border); }
.vlist .vlist__n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.vlist h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.vlist p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Team (monogram, no faces) */
.team { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (min-width: 820px) { .team { grid-template-columns: repeat(4,1fr); } }
.member { border: 1px solid var(--border); border-radius: 16px; padding: 26px; background: var(--card); }
.avatar { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.member h4 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-top: 20px; }
.member .role { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 4px; }
.member p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* FAQ */
.faq { max-width: 860px; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.faq__q .ico { font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq__item[data-open="true"] .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 0 26px; color: var(--muted); font-size: 16px; max-width: 680px; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6.5vw, 5.2rem); letter-spacing: -0.03em; }
.cta h2 em { color: var(--accent-glow); font-style: normal; }
.cta p { margin: 24px auto 0; max-width: 540px; color: var(--muted-on-blue); }
.cta__actions { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 52px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.info-block { margin-bottom: 30px; }
.info-block .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.info-block .v { margin-top: 8px; font-size: 17px; color: var(--fg-soft); }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 15px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--fg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,34,219,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
form .btn { justify-content: center; padding: 15px 28px; }

/* Legal pages */
.legal { padding: clamp(60px, 10vw, 120px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 12px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 44px; }
.legal h2 { font-size: 1.6rem; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.8; }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }

/* Thanks */
.thanks { min-height: 82vh; display: flex; align-items: center; text-align: center; }
.thanks h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
.thanks p { margin: 24px auto 34px; max-width: 520px; color: var(--muted); }

/* Footer */
.footer { background: var(--bg-deep); color: #fff; padding: clamp(64px, 9vw, 120px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.footer__brand { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; display:inline-flex; align-items:center; gap:10px; }
.footer__brand .brand__dot { background: var(--accent-glow); }
.footer__tag { margin-top: 20px; color: var(--muted-on-blue); max-width: 320px; font-size: 15px; }
.footer__col h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-on-blue); margin: 0 0 18px; font-weight: 400; }
.footer__col a { display: block; padding: 6px 0; color: #E4E4FA; font-size: 15px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent-glow); }
.footer__bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--border-on-blue); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer__bottom p, .footer__bottom a { font-family: var(--mono); font-size: 12px; color: var(--muted-on-blue); }

/* 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; }
  .hero__bg img, .hero__marquee-track { 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(14,16,48,0.4);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 34px;max-width:460px;border-radius:20px;box-shadow:0 24px 60px -12px rgba(14,16,48,0.5); }
.cookie-popup__label { font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:0.14em;color:var(--accent); }
.cookie-popup__card h3 { font-size:1.5rem;margin:12px 0 10px; }
.cookie-popup__card p { color:var(--muted);font-size:14px;line-height:1.65; }
.cookie-popup__card a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:12px 22px;border-radius:9999px;font-family:var(--mono);font-size:13px;transition:transform .25s var(--ease); }
.cookie-popup__actions button:first-child { border:1px solid var(--border);color:var(--fg-soft); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#fff; flex:1; }
.cookie-popup__actions button:hover { transform: translateY(-2px); }
