/* palette: bg=#0C0817 fg=#F5EEDC accent=#E7B24C */
/* fonts: display="Syne" body="Inter" mono="Space Mono" */

:root {
  --bg: #0C0817;          /* deep violet-black — dominant background (from reference dark) */
  --bg-alt: #150E28;      /* richer deep violet — alternating sections */
  --bg-deep: #08050F;     /* near-black for footer / bands */
  --fg: #F5EEDC;          /* warm ivory — primary text */
  --fg-soft: #D9D0BE;     /* slightly softer ivory */
  --muted: #9A8FB0;       /* muted lavender-grey — secondary text */
  --accent: #E7B24C;      /* gold accent (reference hero warmth) */
  --accent-deep: #C99433; /* darker gold for hover */
  --violet: #7C4DBE;      /* cosmic violet secondary */
  --violet-soft: #A784E0;
  --border: rgba(245, 238, 220, 0.14);
  --border-strong: rgba(245, 238, 220, 0.26);
  --card: #12102063;
  --serif: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', 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);
  font-size: 17px;
  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 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* cosmic starfield hint layered on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(231, 178, 76, 0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(167, 132, 224, 0.45), transparent),
    radial-gradient(1.4px 1.4px at 40% 80%, rgba(245, 238, 220, 0.35), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(231, 178, 76, 0.4), transparent),
    radial-gradient(1px 1px at 12% 72%, rgba(245, 238, 220, 0.3), transparent);
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- 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; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

h2.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-weight: 400;
}
.section-lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  max-width: 620px;
}
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn--primary { background: var(--accent); color: #1A1206; font-weight: 700; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.arrow-link .a { transition: transform 0.35s var(--ease); color: var(--accent); }
.arrow-link:hover { color: var(--accent); gap: 14px; }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 8, 23, 0.6);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(12, 8, 23, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.nav { display: none; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--fg); }
.header__cta { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); margin: 0 auto; transition: transform 0.35s var(--ease), opacity 0.35s 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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-deep);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Vertical side tab (reference detail) ---------- */
.side-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 80;
  writing-mode: vertical-rl;
  background: var(--fg);
  color: var(--bg-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 18px 9px;
  border-radius: 6px 0 0 6px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.side-tab:hover { background: var(--accent); }
@media (max-width: 767px) { .side-tab { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 23, 0.55) 0%, rgba(12, 8, 23, 0.15) 35%, rgba(12, 8, 23, 0.85) 100%),
    radial-gradient(120% 90% at 15% 100%, rgba(124, 77, 190, 0.35), transparent 60%);
}
.hero__inner { position: relative; width: 100%; }
.hero__eyebrow { color: var(--accent); }
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 15ch;
  text-transform: lowercase;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead {
  margin-top: 28px;
  max-width: 540px;
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__scroll {
  position: absolute;
  bottom: clamp(48px, 8vw, 96px);
  right: 0;
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
  gap: 10px;
}
@media (min-width: 1024px) { .hero__scroll { display: inline-flex; } }

/* ---------- Manifesto + gallery ---------- */
.manifesto { text-align: center; }
.manifesto__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 0 auto;
}
.manifesto__statement em { font-style: normal; color: var(--accent); }
.manifesto__sub {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}
.manifesto__sub .tag { color: var(--violet-soft); font-family: var(--mono); font-size: 0.9em; }

.gallery {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery__item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 5, 15, 0.75));
}
.gallery__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .gallery__item:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .gallery__item:nth-child(2) { margin-top: 34px; }
  .gallery__item:nth-child(4) { margin-top: 34px; }
}

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

.card {
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(124, 77, 190, 0.08), rgba(18, 16, 32, 0.35));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.55); }
.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card__icon { width: 40px; height: 40px; margin: 0 0 22px; color: var(--accent); }
.card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin: 16px 0 12px; line-height: 1.1; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 5px 11px;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 80px) 0;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; max-width: 22ch; }

/* ---------- Library / featured cards ---------- */
.lib-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(18, 16, 32, 0.4);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.lib-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.lib-card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.lib-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.lib-card:hover .lib-card__media img { transform: scale(1.06); }
.lib-card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.lib-card__meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lib-card__meta .dot { color: var(--muted); }
.lib-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; margin-bottom: 12px; }
.lib-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; margin-bottom: 22px; }
.lib-card .arrow-link { margin-top: auto; }

/* ---------- Inverted quote band ---------- */
.quote-band {
  background: var(--fg);
  color: var(--bg-deep);
  text-align: center;
}
.quote-band .mark {
  font-family: var(--serif);
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 0.6;
  color: var(--accent);
  display: block;
  height: 0.55em;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.quote-band blockquote em { font-style: normal; color: var(--violet); }
.quote-band cite { display: block; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #5A5266; font-style: normal; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 900px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  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 .ico { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.4s var(--ease); color: var(--accent); }
.faq summary .ico::before, .faq summary .ico::after { content: ""; position: absolute; background: currentColor; }
.faq summary .ico::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq summary .ico::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); transition: opacity 0.4s var(--ease); }
.faq details[open] summary .ico::after { opacity: 0; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq__answer { padding: 0 4px 24px; color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(124, 77, 190, 0.28), transparent 60%);
  pointer-events: none;
}
.cta-band__inner { position: relative; }
.cta-band h2 { font-size: clamp(2.3rem, 6vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.03; max-width: 16ch; margin: 0 auto; }
.cta-band h2 em { font-style: normal; color: var(--accent); }
.cta-band p { margin: 24px auto 0; max-width: 520px; color: var(--muted); }
.cta-band .hero__actions { justify-content: center; margin-top: 38px; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(8, 5, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6A6278; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(8, 5, 15, 0.9); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form__note { font-size: 0.82rem; color: var(--muted); }

.info-block { display: grid; gap: 28px; }
.info-item { border-top: 1px solid var(--border); padding-top: 20px; }
.info-item .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.info-item .v { color: var(--fg-soft); line-height: 1.6; }
.info-item .v a:hover { color: var(--accent); }

/* ---------- About: values / timeline ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split--media img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.prose p { color: var(--fg-soft); margin-bottom: 20px; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }

.principles { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 0 56px; } }
.principle { border-top: 1px solid var(--border); padding: 28px 0; display: flex; gap: 20px; }
.principle .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; padding-top: 6px; flex: none; }
.principle h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }

/* team text cards (no faces) */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px; background: rgba(18, 16, 32, 0.4); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.team-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.avatar { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #1A1206; margin-bottom: 22px; }
.avatar--mono { background: var(--accent); }
.team-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.team-card .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.team-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 34ch; font-size: 0.96rem; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: var(--fg-soft); font-size: 0.95rem; padding: 6px 0; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; align-items: center; } }
.footer__bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.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.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-alt); border: 1px solid var(--border); padding: 32px 36px; max-width: 480px; border-radius: 14px; box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.cookie-popup__card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border-strong); cursor: pointer; font-size: 13px; border-radius: 9999px; font-family: var(--mono); letter-spacing: 0.08em; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cookie-popup__actions button:first-child:hover { border-color: var(--fg-soft); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1A1206; border-color: var(--accent); font-weight: 700; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* ---------- Legal pages ---------- */
.page-hero { padding: clamp(120px, 16vw, 190px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -0.03em; font-weight: 300; line-height: 1; }
.page-hero p { margin-top: 20px; color: var(--muted); max-width: 620px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); line-height: 1.8; margin-bottom: 16px; }
.legal ul { list-style: none; padding-left: 0; }
.legal li { position: relative; padding-left: 26px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* thank-you page */
.thanks { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 620px; margin: 0 auto; }
.thanks__badge { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 32px; color: var(--accent); }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.03em; font-weight: 300; line-height: 1.02; }
.thanks p { margin: 22px auto 0; color: var(--muted); max-width: 460px; }
.thanks .hero__actions { justify-content: center; margin-top: 36px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
