/* palette: bg=#0B0C10 fg=#F2F2F5 accent=#7E83FF */
/* fonts: display="Space Grotesk" body="Inter" mono="Space Mono" */

:root {
  --bg: #0B0C10;
  --bg-alt: #131520;
  --bg-soft: #1A1C28;
  --fg: #F2F2F5;
  --fg-soft: #CCCDD7;
  --muted: #888A99;
  --accent: #7E83FF;
  --accent-deep: #565CE0;
  --accent-teal: #57D6C4;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --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);
  --container: 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;
  -moz-osx-font-smoothing: grayscale;
  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; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); 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.18em;
  color: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), opacity .4s var(--ease);
}
.btn--primary { background: var(--accent); color: #0B0C10; }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-deep); color: var(--fg); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.link-arrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header[data-scrolled="true"] {
  border-color: var(--border-soft);
  box-shadow: 0 8px 40px -16px rgba(0,0,0,0.6);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; letter-spacing: -0.02em; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; gap: 36px; align-items: center; }
  .nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-soft); transition: color .3s var(--ease); }
  .nav a:hover { color: var(--accent); }
}
.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform .35s 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: 76px 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 20px 80px;
}
.hero__orb {
  position: absolute; top: 50%; left: 50%;
  width: min(120vw, 900px); height: min(120vw, 900px);
  transform: translate(-50%, -50%) scale(1.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(87, 214, 196, 0.55), transparent 45%),
    radial-gradient(circle at 70% 68%, rgba(126, 131, 255, 0.65), transparent 50%),
    radial-gradient(circle at 50% 50%, #1b1f3a, #0a0b10 72%);
  filter: blur(8px);
  animation: heroZoom 8s var(--ease) forwards;
}
.hero__orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 120px 40px rgba(11,12,16,0.6);
}
@keyframes heroZoom { from { transform: translate(-50%,-50%) scale(1.18); } to { transform: translate(-50%,-50%) scale(1); } }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(11,12,16,0.85) 85%); }
.hero__content { position: relative; z-index: 2; max-width: 920px; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.04em; font-weight: 300; line-height: 0.96;
  margin: 24px 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin: 32px auto 0; max-width: 560px;
  font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--fg-soft); line-height: 1.7;
}
.hero__actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--bg-alt); text-align: center; }
.manifesto__quote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 980px; margin: 0 auto;
}
.manifesto__quote em { font-style: normal; color: var(--accent); }
.manifesto__mark { font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); line-height: 0.5; color: var(--accent); display: block; margin-bottom: 8px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; margin-top: 18px; font-weight: 300; }
.section-head p { margin-top: 24px; color: var(--fg-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; }

/* ---------- Services / system grid ---------- */
.grid { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--bg); padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; min-height: 320px;
  transition: background .5s var(--ease);
}
.tile:hover { background: var(--bg-soft); }
.tile__motif { width: 64px; height: 64px; margin-bottom: 28px; }
.tile__num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }
.tile h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 14px 0 14px; font-weight: 400; }
.tile p { color: var(--fg-soft); font-size: 1rem; flex: 1; }
.tile .link-arrow { margin-top: 24px; }

/* ---------- Stats band ---------- */
.stats { background: var(--accent); color: #0B0C10; }
.stats__grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 14px; opacity: 0.7; }

/* ---------- Split / feature ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order: -1; } }
.split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 300; line-height: 1.05; }
.split p { margin-top: 22px; color: var(--fg-soft); }
.feature-list { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; }
.feature-list li { list-style: none; padding: 18px 0; border-top: 1px solid var(--border-soft); display: flex; gap: 16px; align-items: baseline; }
.feature-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.feature-list .fl-key { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; flex: 0 0 28px; }
.feature-list .fl-txt { color: var(--fg-soft); font-size: 0.98rem; }
ul.feature-list { padding: 0; margin: 32px 0 0; }

/* ---------- Work / case cards ---------- */
.work-grid { display: grid; gap: 2px; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { position: relative; overflow: hidden; background: var(--bg-alt); }
.work-card__img { aspect-ratio: 16 / 11; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: grayscale(0.2) brightness(0.85); }
.work-card:hover .work-card__img img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.work-card__body { padding: 28px clamp(24px,3vw,36px) 36px; }
.work-card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.work-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; margin: 12px 0; }
.work-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Process / numbered list ---------- */
.process { display: grid; gap: 1px; background: var(--border-soft); border-block: 1px solid var(--border-soft); }
.process__row {
  background: var(--bg); padding: clamp(28px, 4vw, 44px) 4px;
  display: grid; gap: 16px; align-items: start;
}
@media (min-width: 768px) { .process__row { grid-template-columns: 100px 1fr 1.4fr; gap: 32px; } }
.process__num { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--accent); }
.process__row h3 { font-size: 1.4rem; font-weight: 400; }
.process__row p { color: var(--fg-soft); }

/* ---------- Pull dark/quote band ---------- */
.band { background: var(--fg); color: var(--bg); }
.band .eyebrow { color: var(--accent-deep); }
.band h2 { color: var(--bg); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border-soft); padding: 28px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border-soft); }
.faq__item h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; margin-bottom: 14px; }
.faq__item p { color: var(--fg-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--bg-alt); }
.cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1.02; max-width: 880px; margin: 18px auto 0; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta__actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info dl { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.contact-info dd { margin: 8px 0 0; font-size: 1.1rem; color: var(--fg); }
.contact-info dd span { display: block; color: var(--fg-soft); font-size: 0.95rem; }
form .field { margin-bottom: 22px; }
form label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
form input, form textarea, form select {
  width: 100%; padding: 15px 16px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 4px; color: var(--fg);
  font-family: var(--sans); font-size: 1rem; transition: border-color .3s var(--ease);
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--accent); }
form textarea { resize: vertical; min-height: 140px; }
form .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(120px, 16vw, 180px); }
.legal__body { max-width: 800px; margin: 0 auto; }
.legal__body h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; margin-bottom: 16px; }
.legal__body h2 { font-size: 1.5rem; font-weight: 400; margin: 48px 0 16px; }
.legal__body p, .legal__body li { color: var(--fg-soft); margin-bottom: 14px; font-size: 1rem; }
.legal__body ul { padding-left: 22px; }
.legal__updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 40px; }

/* ---------- Thanks ---------- */
.thanks { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 300; }
.thanks p { margin-top: 24px; color: var(--fg-soft); font-size: 1.1rem; }
.thanks .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border-soft); padding: clamp(64px, 8vw, 100px) 0 40px; }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; }
.footer__tag { margin-top: 20px; color: var(--muted); max-width: 320px; font-size: 0.98rem; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 400; margin-bottom: 20px; }
.footer__col a { display: block; padding: 7px 0; color: var(--fg-soft); transition: color .3s var(--ease); font-size: 0.98rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer__bottom p, .footer__bottom a { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 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.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-alt);padding:32px 36px;max-width:480px;border-radius:8px;border:1px solid var(--border); }
.cookie-popup__label { font-family:var(--mono);font-size:10px;letter-spacing:0.16em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-size:1.3rem;font-weight:400;margin-bottom:12px; }
.cookie-popup__card p { color:var(--fg-soft);font-size:0.92rem;line-height:1.65; }
.cookie-popup__card p a { color:var(--accent); text-decoration: underline; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border);cursor:pointer;font-size:12px;font-family:var(--mono);letter-spacing:0.08em;text-transform:uppercase;border-radius:9999px;transition:transform .3s var(--ease); }
.cookie-popup__actions button:hover { transform: translateY(-2px); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#0B0C10;border-color:var(--accent); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.page-hero__orb { position:absolute; top:-30%; right:-10%; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle at 40% 40%, rgba(126,131,255,0.4), transparent 60%), radial-gradient(circle at 70% 70%, rgba(87,214,196,0.3), transparent 55%); filter: blur(30px); pointer-events:none; }
.page-hero__inner { position: relative; z-index: 2; max-width: 880px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 0.98; margin-top: 20px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { margin-top: 28px; color: var(--fg-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 600px; }

@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; transform: translate(-50%,-50%) scale(1); }
  .reveal { transition: none; opacity: 1; transform: none; }
}
