/* palette: bg=#0B0B12 fg=#F3F2F7 accent=#8B87F5 */
/* fonts: display="Playfair Display" body="Inter" mono="Space Grotesk" */

:root {
  --bg: #0B0B12;
  --bg-alt: #12121C;
  --bg-card: #14141F;
  --fg: #F3F2F7;
  --fg-soft: #C9C8D4;
  --muted: #86859A;
  --accent: #8B87F5;
  --accent-deep: #6C67E8;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Grotesk', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*, *::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; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
section { padding: clamp(80px, 12vw, 160px) 0; }

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

.lede { color: var(--fg-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
  background: rgba(11, 11, 18, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(11, 11, 18, 0.9);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; }
.brand__mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  transform: rotate(0deg);
}
.nav { display: none; gap: 34px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color .25s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--fg); }
.nav a.is-current { color: var(--fg); }
.nav__cta {
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--fg);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 900px) { .nav { display: flex; } .menu-toggle { display: none; } }

.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .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: 72px 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg-soft);
}
.mobile-menu a:hover { color: var(--accent); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  animation: heroZoom 9s var(--ease) both;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139,135,245,0.12), transparent 55%),
    linear-gradient(180deg, rgba(11,11,18,0.55) 0%, rgba(11,11,18,0.82) 45%, var(--bg) 100%);
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 34px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: 720px;
  line-height: 1.25;
}
.hero__sub em { font-style: italic; color: var(--accent); }
.hero__text { max-width: 560px; margin: 0 auto 40px; color: var(--fg-soft); font-size: 1.05rem; }
.hero__cue { margin-top: 8px; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--fg-soft); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 500;
  transition: gap .25s var(--ease);
}
.arrow-link:hover { gap: 14px; }
.arrow-link::after { content: "→"; }

/* ---------- section head ---------- */
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.section-head p { color: var(--fg-soft); margin: 0; font-size: 1.1rem; }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 34px 30px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,135,245,0.35);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7);
}
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 22px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

/* ---------- work / cases ---------- */
.work { display: grid; gap: 24px; }
@media (min-width: 860px) { .work { grid-template-columns: repeat(2, 1fr); } }
.work__item { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-soft); background: var(--bg-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.work__item:hover { transform: translateY(-5px); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8); }
.work__media { aspect-ratio: 16 / 10; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work__item:hover .work__media img { transform: scale(1.05); }
.work__body { padding: 28px 30px 34px; }
.work__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.work__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 12px 0 10px; letter-spacing: -0.01em; }
.work__body p { margin: 0 0 18px; color: var(--muted); }

/* ---------- process ---------- */
.steps { display: grid; gap: 0; max-width: 820px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--border-soft); }
.step:last-child { border-bottom: 1px solid var(--border-soft); }
.step__n { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- manifesto (inverted light band) ---------- */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  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.02em;
  max-width: 900px;
  margin: 0 auto;
}
.manifesto__quote em { font-style: italic; color: var(--accent-deep); }
.manifesto__mark { font-family: var(--serif); font-size: 6rem; line-height: 0.5; color: var(--accent-deep); display: block; margin-bottom: 10px; }
.manifesto__by { margin-top: 34px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(11,11,18,0.55); }

/* ---------- stats ---------- */
.stats { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat__n em { font-style: normal; color: var(--accent); }
.stat__l { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* ---------- CTA / form ---------- */
.cta { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.cta__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 20px; }
.cta__info p { color: var(--fg-soft); margin: 0 0 26px; }
.cta__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cta__contact li { display: grid; gap: 3px; }
.cta__contact span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cta__contact a, .cta__contact strong { font-weight: 400; color: var(--fg); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form button[type="submit"] { justify-self: start; margin-top: 6px; }
.form__note { font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border-soft); }
.footer__top { display: grid; gap: 40px; margin-bottom: 56px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand { font-size: 1.6rem; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 320px; font-size: 0.95rem; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { color: var(--fg-soft); font-size: 0.95rem; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 0.85rem; }

/* ---------- legal pages ---------- */
.legal { padding-top: 60px; }
.legal__wrap { max-width: 780px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.legal .legal__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 48px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.01em; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1rem; line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }

/* thanks */
.thanks { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.02em; margin: 0 0 20px; }
.thanks p { color: var(--fg-soft); margin: 0 0 34px; 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 { 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: center; padding: 24px; background: rgba(0,0,0,0.5); 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-card); 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.8); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0 0 12px; }
.cookie-popup__card p { color: var(--fg-soft); font-size: 0.92rem; line-height: 1.7; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); border-radius: 9999px; cursor: pointer; font-size: 14px; transition: background .25s var(--ease), border-color .25s var(--ease); }
.cookie-popup__actions button:first-child:hover { border-color: var(--fg-soft); }
.cookie-popup__actions button:last-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }
