/* palette: bg=#120A24 fg=#F3ECFF accent=#E8B84B */
/* fonts: display="Syne" body="Inter" mono="Space Mono" */

:root {
  --bg: #120A24;        /* deep cosmic violet */
  --bg-alt: #1B0F38;    /* alternating section band */
  --bg-panel: #22143F;  /* raised panel */
  --fg: #F3ECFF;        /* primary text */
  --fg-soft: #D4C7EE;   /* softened text */
  --muted: #9A88BE;     /* secondary text */
  --accent: #E8B84B;    /* gold */
  --accent-deep: #C7942A; /* darker gold for hover */
  --accent-2: #B98BEF;  /* violet glow */
  --border: rgba(243, 236, 255, 0.12);
  --border-strong: rgba(243, 236, 255, 0.22);
  --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);
  --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;
  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 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }

/* cosmic star texture layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(243,236,255,0.45), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(185,139,239,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(232,184,75,0.35), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(243,236,255,0.35), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(243,236,255,0.3), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.container { width: 100%; 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;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section { padding: clamp(72px, 12vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--panel { background: var(--bg-panel); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--gold { background: var(--accent); color: #1A0F00; box-shadow: 0 8px 30px -10px rgba(232,184,75,0.6); }
.btn--gold:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 10, 36, 0.82);
  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);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-deep) 70%);
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(232,184,75,0.4), 0 0 22px -4px rgba(232,184,75,0.7);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 8px 4px;
  border: 1.5px solid rgba(26,15,0,0.55); border-radius: 50%;
  transform: rotate(24deg);
}
.nav { display: none; }
.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) {
  .nav { display: flex; gap: 34px; }
  .header__cta { display: inline-flex; }
}

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--fg); display: block; transition: transform .3s 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); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 74px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; opacity: 0.32; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 20% 20%, rgba(185,139,239,0.28), transparent 60%),
    linear-gradient(180deg, rgba(18,10,36,0.7) 0%, rgba(18,10,36,0.92) 70%, var(--bg) 100%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__inner { max-width: 920px; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 26px 0 30px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--fg-soft); max-width: 620px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--border); }
.hero__meta div span { display: block; }
.hero__meta .n { font-family: var(--serif); font-size: 2rem; color: var(--fg); }
.hero__meta .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- section head ---------- */
.sec-head { max-width: 780px; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 20px 0 22px; font-weight: 500; }
.sec-head p { color: var(--fg-soft); font-size: 1.08rem; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- logos strip ---------- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.logos__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 26px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 56px; align-items: center; }
.logos__row span { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--muted); opacity: 0.75; letter-spacing: -0.01em; transition: opacity .3s, color .3s; }
.logos__row span:hover { opacity: 1; color: var(--fg-soft); }

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

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }
.card:hover::before { opacity: 1; }
.card__idx { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.5rem; font-weight: 600; margin: 18px 0 12px; }
.card p { color: var(--fg-soft); font-size: 0.98rem; line-height: 1.7; }
.card__list { list-style: none; padding: 0; margin: 20px 0 0; }
.card__list li { font-size: 0.9rem; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.card__list li::before { content: "→"; color: var(--accent); }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .quote-mark { font-family: var(--serif); font-size: 8rem; line-height: 0.5; color: var(--accent); opacity: 0.5; display: block; height: 60px; }
.manifesto__stmt {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  letter-spacing: -0.02em; line-height: 1.18;
  max-width: 960px; margin: 0 auto;
}
.manifesto__stmt em { font-style: normal; color: var(--accent); }
.manifesto__sig { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- editorial two-col (approach / result) ---------- */
.editorial { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .editorial { grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; } }
.editorial__sticky { position: relative; }
@media (min-width: 900px) { .editorial__sticky { position: sticky; top: 110px; } }
.editorial__blocks { display: flex; flex-direction: column; gap: 46px; }
.editorial__block h3 { font-size: 1.55rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
.editorial__block h3 .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.editorial__block p { color: var(--fg-soft); font-size: 1.05rem; line-height: 1.78; }
.editorial__media { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- case studies (magazine cards) ---------- */
.cases { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  border-radius: 20px; overflow: hidden; background: var(--bg-panel);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -28px rgba(0,0,0,0.75); }
.case__img { aspect-ratio: 16/10; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__img img { transform: scale(1.06); }
.case__body { padding: 28px 30px 34px; }
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.case__body h3 { font-size: 1.6rem; font-weight: 600; margin: 14px 0 12px; }
.case__body p { color: var(--fg-soft); font-size: 0.98rem; margin-bottom: 20px; }

/* first case featured wide */
.case--wide { grid-column: 1 / -1; }
@media (min-width: 800px) { .case--wide { flex-direction: row; align-items: stretch; } .case--wide .case__img { flex: 1.1; aspect-ratio: auto; } .case--wide .case__body { flex: 1; align-self: center; } }

/* ---------- stats band ---------- */
.stats { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--accent); letter-spacing: -0.03em; }
.stat .l { color: var(--fg-soft); font-size: 0.95rem; margin-top: 8px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.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; align-items: center; gap: 20px; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; }
.faq__q .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--accent); transition: transform .35s var(--ease); }
.faq__q .plus::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.faq__q .plus::after { left: 12px; top: 3px; bottom: 3px; width: 2px; }
.faq__item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a p { color: var(--fg-soft); padding: 0 0 28px; font-size: 1.02rem; line-height: 1.75; max-width: 680px; }

/* ---------- cta band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(232,184,75,0.14), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 500; max-width: 900px; margin: 0 auto 26px; }
.cta-band p { color: var(--fg-soft); max-width: 560px; margin: 0 auto 40px; font-size: 1.1rem; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.contact-info h3 { font-size: 1.3rem; margin: 32px 0 8px; font-weight: 600; }
.contact-info p { color: var(--fg-soft); font-size: 1.02rem; }
.contact-info a { color: var(--accent); }
.contact-info__block { padding: 22px 0; border-top: 1px solid var(--border); }
.contact-info__block .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; color: var(--fg); font: inherit; font-size: 0.98rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,184,75,0.18); }
.field textarea { resize: vertical; min-height: 140px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.form__consent a { color: var(--accent); }
.form button[type="submit"] { align-self: flex-start; margin-top: 6px; }

/* ---------- footer ---------- */
.footer { background: #0C0619; border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 320px; margin-top: 18px; }
.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: 0.95rem; transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer__bottom p { color: var(--muted); font-size: 0.82rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal a { color: var(--muted); font-size: 0.82rem; transition: color .3s; }
.footer__legal a:hover { color: var(--fg-soft); }

/* ---------- legal / article pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(120px, 16vw, 180px) 0 clamp(72px, 12vw, 120px); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 500; margin-bottom: 18px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 46px; }
.legal h2 { font-size: 1.5rem; font-weight: 600; margin: 44px 0 16px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.8; margin-bottom: 16px; }
.legal ul { padding-left: 22px; }

/* ---------- thanks page ---------- */
.thanks { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks__badge { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 30px; background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-deep)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px -8px rgba(232,184,75,0.6); }
.thanks__badge svg { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 500; margin-bottom: 20px; }
.thanks p { color: var(--fg-soft); font-size: 1.1rem; margin-bottom: 34px; }

/* ---------- 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; }

/* ---------- 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.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-panel); padding: 30px 32px; max-width: 460px; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 70px -20px rgba(0,0,0,0.8); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.cookie-popup__card p { color: var(--fg-soft); font-size: 0.9rem; line-height: 1.65; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 12px 22px; border: 1px solid var(--border-strong); border-radius: 9999px; font-size: 13px; font-weight: 600; transition: all .3s; }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1A0F00; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* utility */
.mt-lg { margin-top: 44px; }
.center { text-align: center; }
