/* palette: bg=#1620DB fg=#F2F3FF accent=#7C9BFF */
/* fonts: display="Space Grotesk" body="Space Grotesk" mono="JetBrains Mono" */

:root {
  --bg: #1620DB;          /* electric cobalt — dominant hero background */
  --bg-alt: #0A0E33;      /* deep navy — dark bands, header, footer */
  --bg-deep: #060926;     /* near-black navy */
  --fg: #F2F3FF;          /* near white primary text */
  --fg-soft: #CFD4FF;     /* slightly softer white */
  --muted: #8B93D9;       /* secondary blue-grey text */
  --accent: #7C9BFF;      /* luminous sky blue — chrome accent */
  --accent-deep: #4D6BFF; /* deeper accent for hover */
  --line: rgba(242, 243, 255, 0.16);
  --line-strong: rgba(242, 243, 255, 0.32);
  --border: rgba(242, 243, 255, 0.16);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

*, *::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-weight: 700; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  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.18em;
  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;
}

.mono { font-family: var(--mono); }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 51, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  background: rgba(6, 9, 38, 0.9);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand span { color: var(--accent); }
.nav { display: none; gap: 34px; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--fg); }

.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 8px 18px !important;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--bg-alt); }
.nav__cta::after { display: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.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: 64px 0 0 0;
  z-index: 99;
  background: var(--bg-deep);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 0 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,9,38,0.35), rgba(22,32,219,0) 30%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero__top {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  padding-top: 20px;
}
@media (min-width: 900px) {
  .hero__top { grid-template-columns: 1fr 1fr; align-items: start; }
}
.hero__eyebrow p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
}
.hero__intro {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--fg-soft);
  max-width: 42ch;
  justify-self: end;
}
.hero__intro b { color: var(--accent); font-weight: 500; }

.hero__blob {
  position: absolute;
  z-index: 1;
  top: 16%;
  right: 4%;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  filter: drop-shadow(0 40px 80px rgba(6,9,38,0.6));
  animation: heroFloat 9s ease-in-out infinite;
  opacity: 0.95;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__blob img { width: 100%; height: 100%; object-fit: contain; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

.hero__title-wrap { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 10.5vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 15ch;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__cta-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero__readout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__readout span { white-space: nowrap; }
.hero__readout .dot { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--fg);
  color: var(--bg-alt);
  border-color: var(--fg);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(242,243,255,0.06); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

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

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--dark { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 0.9fr 1.1fr; align-items: end; gap: 48px; }
}
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h2 em { font-style: normal; color: var(--accent); }
.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-soft);
  max-width: 56ch;
}
.lead-mono {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.6;
  color: var(--accent);
  display: block;
  height: 0.4em;
  opacity: 0.5;
}
.manifesto p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.manifesto p em { font-style: normal; color: var(--accent); }
.manifesto__by {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 40px;
}

/* ---------- SERVICES GRID ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--bg-alt);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.section--dark .svc { background: var(--bg); }
.svc:hover { background: var(--bg-deep); }
.section--dark .svc:hover { background: var(--bg-alt); }
.svc__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.svc h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.15;
}
.svc p { font-size: 15.5px; line-height: 1.7; color: var(--fg-soft); }
.svc ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc ul li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.svc ul li::before { content: "+"; color: var(--accent); }

/* ---------- WORK / CASE STUDIES ---------- */
.work-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
.work-card { display: block; }
.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(1.1) contrast(1.02);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(6,9,38,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--fg);
}
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  gap: 16px;
}
.work-card__meta h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.work-card__meta span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.work-card p { margin-top: 10px; color: var(--fg-soft); font-size: 15.5px; line-height: 1.7; }

/* ---------- STATS ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 44px 28px; }
.section--dark .stat { background: var(--bg-alt); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num em { font-style: normal; color: var(--accent); font-size: 0.5em; }
.stat__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- APPROACH / STEPS ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  gap: 12px 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .step { grid-template-columns: 80px 0.9fr 1.4fr; align-items: start; }
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.step p { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }

/* ---------- TEAM (text / monogram) ---------- */
.team-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--bg-alt); padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.section--dark .member { background: var(--bg); }
.avatar {
  width: 60px; height: 60px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bg-deep);
}
.member h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.member__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: -8px; }
.member p { font-size: 14.5px; line-height: 1.7; color: var(--fg-soft); }

/* ---------- TESTIMONIALS ---------- */
.quotes { display: grid; gap: 32px; }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  border: 1px solid var(--line);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-alt);
}
.section--dark .quote { background: var(--bg); }
.quote p { font-family: var(--serif); font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; font-weight: 400; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote footer .avatar { width: 44px; height: 44px; font-size: 16px; }
.quote__who strong { display: block; font-weight: 500; font-size: 15px; }
.quote__who span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq__q .sign { font-family: var(--mono); color: var(--accent); font-size: 22px; transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq__item[data-open="true"] .sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq__a p { padding: 0 0 30px; color: var(--fg-soft); font-size: 16px; line-height: 1.75; max-width: 68ch; }

/* ---------- CTA BAND ---------- */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 16ch;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: var(--fg-soft); font-size: 18px; max-width: 52ch; }

/* ---------- FORM ---------- */
.form-wrap { display: grid; gap: 48px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: rgba(242,243,255,0.04);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(124,155,255,0.06);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.7; }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block { border-top: 1px solid var(--line); padding-top: 22px; }
.contact-block__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact-block p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--fg-soft); }
.contact-block a:hover { color: var(--fg); }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--bg-deep); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee__track span::after { content: "◇"; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-deep); padding: 80px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer__brand { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; line-height: 0.95; }
.footer__brand span { color: var(--accent); }
.footer__tag { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 18px; max-width: 40ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: var(--fg-soft); padding: 6px 0; line-height: 1.6; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer__bottom a:hover { color: var(--fg); }

/* ---------- LEGAL / ARTICLE ---------- */
.legal { padding: clamp(56px, 10vw, 120px) 0; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.legal__updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 16px; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.01em; margin: 48px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.8; color: var(--fg-soft); }
.legal p { margin-bottom: 16px; }
.legal ul { padding-left: 20px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 8vw, 90px); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000 30%, transparent 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 24px;
  max-width: 16ch;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero__lead { font-size: 19px; line-height: 1.7; color: var(--fg-soft); max-width: 56ch; margin-top: 28px; }

.thanks {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 80px 20px;
}
.thanks h1 { font-family: var(--serif); font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.95; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { color: var(--fg-soft); font-size: 18px; max-width: 48ch; }

/* ---------- 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); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__blob, .marquee__track { animation: none; }
}

/* ---------- COOKIE POPUP ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(6,9,38,0.55); 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: 6px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cookie-popup__card h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 12px 0 10px; }
.cookie-popup__card p { font-size: 14px; line-height: 1.65; color: var(--fg-soft); }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 10px 24px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 13px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: rgba(242,243,255,0.06); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg-alt); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- MISC ---------- */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 40px;
}
.section-label span:last-child { color: var(--accent); }
