/* palette: bg=#0B0D10 fg=#F3F4F2 accent=#F5C518 */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #0B0D10;        /* near-black cool background from reference hero */
  --bg-alt: #12151B;    /* dark alternating panel */
  --bg-elev: #171B22;   /* elevated card surface */
  --fg: #F3F4F2;        /* primary off-white text */
  --fg-soft: #CBD0D7;   /* softer foreground */
  --muted: #838B96;     /* secondary / caption text */
  --accent: #F5C518;    /* golden-yellow accent (hero display) */
  --accent-deep: #D9A800;
  --blue: #2C6BF2;      /* electric blue band from reference form section */
  --blue-deep: #1A50D6;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, 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);
  --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: 500; margin: 0; }
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;
  letter-spacing: 0.16em;
  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--blue { color: var(--blue); }
.eyebrow--blue::before { background: var(--blue); }
.eyebrow--dark { color: rgba(0,0,0,0.6); }
.eyebrow--dark::before { background: rgba(0,0,0,0.4); }

section { padding: clamp(80px, 12vw, 160px) 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header__inner { padding: 18px 32px; } }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent);
  color: #0B0D10;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.nav { display: none; gap: 34px; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { font-size: 14px; color: var(--fg-soft); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav__cta {
  border: 1px solid var(--border-strong);
  padding: 9px 20px; border-radius: 9999px;
  font-size: 13px; color: var(--fg);
  transition: background 0.25s var(--ease), border-color 0.25s;
}
.nav__cta:hover { background: var(--accent); color: #0B0D10; border-color: var(--accent); }

.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 0.3s var(--ease), opacity 0.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: 0; z-index: 99;
  background: var(--bg);
  padding: 96px 28px 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif); font-size: 30px; letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.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) forwards;
  filter: brightness(0.55) contrast(1.05);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.35) 40%, rgba(11,13,16,0.95) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede {
  margin-top: 30px;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.7;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 9999px;
  font-size: 15px; font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #0B0D10; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--dark { background: #0B0D10; color: var(--fg); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.section-head p { margin-top: 24px; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--bg-alt); text-align: center; }
.manifesto__statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  font-weight: 400;
}
.manifesto__statement em { font-style: normal; color: var(--accent); }
.manifesto__meta { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Quote / inverted ---------- */
.quote-band { background: var(--accent); color: #0B0D10; }
.quote-band .mark { font-family: var(--serif); font-size: 6rem; line-height: 0.6; display: block; margin-bottom: 10px; }
.quote-band blockquote {
  margin: 0; max-width: 22ch;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1.14; letter-spacing: -0.02em;
}
.quote-band cite { display: block; margin-top: 34px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.35);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 50px -12px rgba(0,0,0,0.55); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.55rem; letter-spacing: -0.01em; margin: 18px 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.card__list { list-style: none; margin: 20px 0 0; padding: 0; }
.card__list li { font-size: 14px; color: var(--fg-soft); padding: 8px 0 8px 20px; position: relative; border-top: 1px solid var(--border); }
.card__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 28px; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; }
.stat__num span { color: var(--accent); }
.stat__label { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Essay / manifesto long-form ---------- */
.essay { }
.essay__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .essay__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.essay__body p { margin-bottom: 26px; font-size: 18px; line-height: 1.78; color: var(--fg-soft); }
.essay__body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 4.4rem; line-height: 0.8;
  float: left; margin: 6px 14px 0 0; color: var(--accent); font-weight: 500;
}
.essay__aside { position: sticky; top: 120px; align-self: start; }
.essay__aside .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border); padding: 16px 0; display: flex; justify-content: space-between; gap: 20px; }
.essay__aside .k b { color: var(--fg); font-weight: 500; text-align: right; }

/* ---------- Process / numbered list ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--border); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.step h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
.step p { margin-top: 12px; color: var(--muted); font-size: 16.5px; max-width: 60ch; }

/* ---------- Team / principles (text cards) ---------- */
.person { border-top: 1px solid var(--border); padding: 28px 0; display: flex; gap: 20px; align-items: flex-start; }
.avatar--mono {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 19px; color: #0B0D10;
}
.person__body h3 { font-size: 1.25rem; }
.person__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 4px 0 10px; }
.person__body p { color: var(--muted); font-size: 15px; }

/* ---------- Blue CTA / form band ---------- */
.cta-band {
  background: radial-gradient(120% 140% at 20% 0%, #3A78FF 0%, var(--blue) 45%, var(--blue-deep) 100%);
  color: #fff;
}
.cta-band .container { position: relative; }
.form-card {
  background: rgba(6, 12, 34, 0.4);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px);
  max-width: 640px; margin: 0 auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.form-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; text-align: center; }
.form-card > p { text-align: center; color: rgba(255,255,255,0.82); margin: 14px auto 34px; max-width: 44ch; font-size: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; color: #fff; font: inherit; font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.45); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.form-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 16px; }
.form-note a { text-decoration: underline; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split--rev .split__media { order: -1; }
@media (min-width: 900px) { .split--rev .split__media { order: 1; } }
.split__media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; }
.split p { margin-top: 22px; color: var(--fg-soft); font-size: 17.5px; }
.split .arrow-link { margin-top: 28px; }

/* ---------- FAQ ---------- */
.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; gap: 24px; align-items: center; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
.faq__q .sign { color: var(--accent); font-family: var(--mono); font-size: 22px; transition: transform 0.3s var(--ease); flex: 0 0 auto; }
.faq__item[data-open="true"] .sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 0 28px; color: var(--muted); font-size: 16.5px; max-width: 68ch; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { border-top: 1px solid var(--border); padding-top: 22px; }
.contact-item .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.contact-item p { margin-top: 12px; font-size: 16px; color: var(--fg-soft); line-height: 1.6; }

/* ---------- Legal ---------- */
.legal { padding-top: 140px; }
.legal__wrap { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 16px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 16px; }
.legal ul { padding-left: 22px; }

/* ---------- Thanks ---------- */
.thanks { min-height: 82vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.thanks h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.03em; line-height: 0.98; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { margin: 26px auto 34px; max-width: 46ch; color: var(--fg-soft); font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: clamp(64px, 8vw, 100px) 0 40px; }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand .brand { font-size: 24px; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; color: var(--fg-soft); font-size: 15px; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer__bottom p, .footer__bottom a { font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--fg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.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 { animation: none; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(0,0,0,0.4); -webkit-backdrop-filter: blur(4px); 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-elev); border: 1px solid var(--border); padding: 32px 36px; max-width: 480px; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.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.4rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.cookie-popup__card p a { color: var(--fg-soft); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border-strong); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background 0.2s, color 0.2s; }
.cookie-popup__actions button:hover { background: rgba(255,255,255,0.06); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #0B0D10; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

@media (min-width: 900px) {
  .cookie-popup { align-items: flex-end; justify-content: flex-start; }
}
