/* palette: bg=#0E0618 fg=#F4EEFF accent=#F2B705 */
/* fonts: display="Syne" body="Inter" mono="Space Mono" */

:root {
  --bg: #0E0618;          /* cosmic violet-black — dominant background */
  --bg-alt: #170A29;      /* alternating section panel */
  --bg-field: #3A18A6;    /* saturated hero field (clone of reference solid color, shifted violet) */
  --bg-field-deep: #250C6E;
  --fg: #F4EEFF;          /* primary text */
  --fg-soft: #D8C9F2;     /* slightly softer fg */
  --muted: #9A86C4;       /* secondary text */
  --accent: #F2B705;      /* cosmic gold accent */
  --accent-deep: #C99400; /* darker gold for hover */
  --line: rgba(244, 238, 255, 0.14);
  --line-strong: rgba(244, 238, 255, 0.28);
  --border: rgba(244, 238, 255, 0.14);
  --serif: 'Syne', ui-sans-serif, 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;
  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; }
::selection { background: var(--accent); color: #1A0B2E; }

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

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--field { background: var(--bg-field); color: #FFFFFF; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  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--field .eyebrow { color: #F2B705; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
p { margin: 0 0 1.2em; }

.h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; color: var(--fg-soft); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  border-radius: 9999px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), opacity .3s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #1A0B2E; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light { background: #FFFFFF; color: #1A0B2E; }
.btn--light:hover { transform: translateY(-2px); opacity: .9; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--accent);
  transition: gap .3s var(--ease);
}
.arrow-link:hover { gap: 14px; }
.arrow-link::after { content: "→"; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 6, 24, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 40px -18px rgba(0,0,0,0.7);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 38px; align-items: center; }
  .nav a { font-size: 14px; color: var(--fg-soft); transition: color .3s; position: relative; }
  .nav a:hover { color: var(--fg); }
  .nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background:var(--accent); transition:width .3s var(--ease); }
  .nav a:hover::after { width:100%; }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 24px; height: 2px; background: var(--fg); transition: transform .35s var(--ease), opacity .3s; }
.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: 76px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; }

/* ---------- hero (full-bleed solid field clone) ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% -10%, rgba(242,183,5,0.18), transparent 55%),
    radial-gradient(90% 90% at 15% 110%, var(--bg-field-deep), transparent 60%),
    var(--bg-field);
  color: #FFFFFF;
  padding: 120px 0 60px;
}
.hero__stars {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 85% 20%, #fff, transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 10% 70%, #fff, transparent);
  animation: heroZoom 8s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #F2B705; display: block; margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.94;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__foot {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: clamp(40px, 8vw, 90px);
  max-width: 620px;
}
.hero__caption { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 1024px) {
  .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; }
  .hero__caption { max-width: 40ch; }
}

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 36px 28px; }
.section--field .stat { background: var(--bg-field); }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 12px; }
.section--field .stat__label { color: rgba(255,255,255,.75); }

/* ---------- section head ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }
.sec-head .h2 { margin-bottom: 24px; }

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

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 34px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.card__no { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.55rem; font-weight: 600; margin: 20px 0 14px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.16;
  max-width: 18ch;
  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; color: var(--line-strong); display: block; height: 0.4em; }

/* ---------- work / cases ---------- */
.case {
  position: relative; overflow: hidden; border-radius: 8px;
  display: block; isolation: isolate;
}
.case__media { aspect-ratio: 4/3; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__media img { transform: scale(1.06); }
.case__body { padding: 26px 4px 4px; }
.case__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case h3 { font-size: 1.5rem; font-weight: 600; margin: 12px 0 8px; }
.case p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- approach list ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.step h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.step p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (min-width: 768px) { .step { grid-template-columns: 120px 1fr; gap: 40px; } }

/* ---------- team (monogram, no faces) ---------- */
.team { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 34px 30px; }
.section--alt .member { background: var(--bg); }
.avatar {
  width: 68px; height: 68px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: #1A0B2E;
  margin-bottom: 24px;
}
.member h3 { font-size: 1.3rem; font-weight: 600; }
.member__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 16px; }
.member p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- testimonials ---------- */
.quote-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 40px 36px; }
.section--alt .quote-card { background: var(--bg); }
.quote-card p { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; color: var(--fg); }
.quote-card footer { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-card .avatar { width: 46px; height: 46px; font-size: 16px; margin: 0; border-radius: 50%; }
.quote-card cite { font-style: normal; }
.quote-card cite b { display: block; font-weight: 600; font-size: 15px; }
.quote-card cite span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.6rem; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 30px; max-width: 68ch; margin: 0; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 26px; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: var(--fg-soft); max-width: 52ch; margin: 0 auto 38px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.info-block { margin-bottom: 34px; }
.info-block .eyebrow { margin-bottom: 12px; }
.info-block p { color: var(--fg-soft); margin: 0; }
.info-block a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 13px; letter-spacing: 0.02em; color: var(--fg-soft); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg); font-family: var(--sans); font-size: 16px;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.field textarea { resize: vertical; min-height: 140px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); }

/* ---------- legal / prose ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 500; margin-bottom: 20px; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 17px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose__updated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.page-hero { padding: clamp(120px, 16vw, 180px) 0 clamp(50px, 8vw, 80px); }

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

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

/* ---------- cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(0,0,0,0.45); 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); border: 1px solid var(--line); padding: 32px 36px; max-width: 480px; border-radius: 8px; box-shadow: 0 30px 80px -30px 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: 14px; }
.cookie-popup__card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--line-strong); border-radius: 9999px; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1A0B2E; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* ---------- utilities ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.text-max { max-width: 760px; }
.mt-s { margin-top: 40px; }
