/* palette: bg=#FFFFFF fg=#14121F accent=#6A40EE */
/* fonts: display="Sora" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F3F9;
  --fg: #14121F;
  --fg-soft: #2C2940;
  --muted: #6C687F;
  --accent: #6A40EE;
  --accent-deep: #4E27C2;
  --teal: #1FC9A0;
  --border: rgba(20, 18, 31, 0.12);
  --border-soft: rgba(20, 18, 31, 0.07);
  --serif: 'Sora', 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);
  --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;
  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: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; 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; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }

.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: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--teal); }
.section--dark .eyebrow::before { background: var(--teal); }

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 60ch;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(106,64,238,0.55); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); transform: translateY(-2px); }
.section--dark .btn--ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.section--dark .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(0,0,0,0.4); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.arrow-link:hover { gap: 14px; }
.section--dark .arrow-link { color: var(--teal); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,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-soft), 0 8px 30px -18px rgba(20,18,31,0.25);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand__mark::after {
  content: ""; width: 11px; height: 11px;
  border: 2px solid #fff; border-radius: 50%;
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.nav { display: none; align-items: center; gap: 34px; }
.nav a { font-size: 14.5px; color: var(--fg-soft); transition: color .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.header .btn { padding: 11px 22px; font-size: 14px; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__phone { display: inline; }
}

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-bottom: clamp(60px, 9vw, 120px);
  padding-top: 120px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,9,24,0.55) 0%, rgba(11,9,24,0.35) 40%, rgba(11,9,24,0.82) 100%);
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 1; }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero .eyebrow::before { background: var(--teal); }
.hero h1 {
  font-size: clamp(3.1rem, 9vw, 7.2rem);
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 16ch;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__sub { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: rgba(255,255,255,0.86); max-width: 44ch; margin-bottom: 36px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; bottom: 26px; right: 24px; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }

/* ---------- Page header (interior pages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 180px) 0 clamp(48px, 7vw, 90px); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.03em; max-width: 18ch; margin-bottom: 24px; }
.page-hero .lead { font-size: clamp(1.1rem, 2.3vw, 1.35rem); }

/* ---------- Capabilities ---------- */
.cap-head { max-width: 30ch; }
.cap-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.025em; margin-bottom: 18px; }
.cap-head h2 em { font-style: normal; color: var(--accent); }
.cap-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-top: clamp(48px, 7vw, 80px);
}
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 34px 30px;
  background: var(--bg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cap-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px -20px rgba(20,18,31,0.22); border-color: var(--border); }
.cap-card__icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 24px; }
.cap-card h3 { font-size: 1.32rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.cap-card p { color: var(--muted); font-size: 16px; }

/* ---------- Case study grid ---------- */
.cases-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.cases-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; }
.cases-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--fg); color: #fff;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px rgba(20,18,31,0.4); }
.case-card--tall { min-height: 420px; }
.case-card__img { position: absolute; inset: 0; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.06); }
.case-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,26,0.05) 30%, rgba(12,10,26,0.88) 100%); }
.case-card--violet { background: var(--accent); }
.case-card--violet .case-card__img { display: none; }
.case-card__body { position: relative; z-index: 1; padding: 30px; }
.case-card__tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.8); margin-bottom: 12px; display: block; }
.case-card h3 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.case-card p { font-size: 15px; color: rgba(255,255,255,0.82); }

/* ---------- Manifesto / dark band ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto__quote em { font-style: normal; color: var(--teal); }
.manifesto__mark { font-family: var(--serif); font-size: 5rem; line-height: 0; color: var(--teal); display: block; margin-bottom: 30px; height: 40px; }
.manifesto__by { margin-top: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.section:not(.section--dark) .stat { border-top-color: var(--border); }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; color: var(--teal); }
.section:not(.section--dark) .stat__num { color: var(--accent); }
.stat__label { font-size: 14.5px; color: var(--muted); margin-top: 8px; max-width: 22ch; }
.section--dark .stat__label { color: rgba(255,255,255,0.62); }

/* ---------- Services list ---------- */
.svc-row {
  display: grid; gap: 20px; grid-template-columns: 1fr;
  padding: clamp(34px, 5vw, 52px) 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 860px) { .svc-row { grid-template-columns: 0.5fr 1fr 0.7fr; gap: 40px; } }
.svc-row__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.svc-row h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.svc-row p { color: var(--muted); font-size: 16px; }
.svc-row ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.svc-row li { font-size: 14.5px; color: var(--fg-soft); padding-left: 22px; position: relative; }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: clamp(40px,6vw,64px); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 22px; border-top: 2px solid var(--accent); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.step h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Principles / team monograms ---------- */
.principles { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { border: 1px solid var(--border-soft); border-radius: 18px; padding: 32px; background: var(--bg); }
.principle h3 { font-size: 1.3rem; margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 16px; }

.team-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: clamp(40px,6vw,60px); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member { border: 1px solid var(--border-soft); border-radius: 18px; padding: 30px; background: var(--bg); }
.avatar { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 21px; color: #fff; letter-spacing: -0.02em; margin-bottom: 20px; }
.member h3 { font-size: 1.18rem; margin-bottom: 4px; }
.member__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.member p { font-size: 14.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote-card { border: 1px solid var(--border-soft); border-radius: 18px; padding: 36px; background: var(--bg); }
.quote-card blockquote { margin: 0 0 22px; font-family: var(--serif); font-weight: 300; font-size: 1.32rem; line-height: 1.45; letter-spacing: -0.015em; }
.quote-card cite { font-style: normal; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.quote-card cite b { color: var(--fg); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border); padding: 28px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 14px; letter-spacing: -0.015em; }
.faq__item p { color: var(--muted); font-size: 16px; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto 22px; font-weight: 300; }
.cta-band h2 em { font-style: normal; color: var(--teal); }
.cta-band .lead { margin: 0 auto 36px; text-align: center; color: rgba(255,255,255,0.78); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 0.85fr; gap: 72px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(106,64,238,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-block h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.info-block p, .info-block a { font-size: 16px; color: var(--fg-soft); line-height: 1.7; }
.info-block a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 16px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thanks ---------- */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 100px 20px; }
.thanks__inner { max-width: 600px; }
.thanks__check { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 32px; color: #fff; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 20px; letter-spacing: -0.03em; }
.thanks p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: rgba(255,255,255,0.7); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer__tag { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 30ch; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px; font-weight: 400; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col p { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color .25s; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
@media (min-width: 720px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- 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; transition: 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);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 36px;max-width:480px;border-radius:16px;box-shadow:0 30px 80px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family:var(--mono);font-size:10.5px;letter-spacing:0.14em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-size:1.4rem;margin-bottom:12px; }
.cookie-popup__card p { font-size:14.5px;color:var(--muted);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 26px;border:1px solid var(--border);cursor:pointer;font-size:14px;border-radius:9999px;font-weight:500;transition:transform .3s var(--ease),background .3s; }
.cookie-popup__actions button:hover { transform:translateY(-2px); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#fff;border-color:var(--accent); }
