/* palette: bg=#FFFFFF fg=#0B0B16 accent=#1A17E6 */
/* fonts: display="Space Grotesk" body="Inter" mono="Space Mono" */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F2F2F6;
  --bg-deep: #0B0B16;
  --fg: #0B0B16;
  --fg-soft: #2B2B3A;
  --muted: #6A6A7A;
  --accent: #1A17E6;
  --accent-deep: #110FAD;
  --accent-pale: #CFCDFF;
  --accent-soft: #EBEBFD;
  --border: rgba(11, 11, 22, 0.12);
  --border-soft: rgba(11, 11, 22, 0.08);
  --border-light: rgba(255, 255, 255, 0.18);
  --display: 'Space Grotesk', 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;
  --shadow-card: 0 4px 24px -4px rgba(11, 11, 22, 0.08);
  --shadow-card-hover: 0 18px 48px -12px rgba(26, 23, 230, 0.22);
}

*, *::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;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }

main { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--light { color: var(--accent-pale); }

.h-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 54ch;
}
em.accent, .accent-word { color: var(--accent); font-style: normal; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(11, 11, 22, 0.06), 0 8px 30px -18px rgba(11, 11, 22, 0.25);
  border-bottom-color: var(--border-soft);
}
.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; color: var(--accent); flex: none; }
.brand__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.nav { display: none; gap: 36px; }
.nav a {
  font-size: 15px;
  color: var(--fg-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s 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); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 14px 30px -12px rgba(26, 23, 230, 0.5); }
.btn--sm { padding: 10px 20px; font-size: 14px; display: none; }
@media (min-width: 960px) { .btn--sm { display: inline-flex; } }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-pale); color: var(--accent-deep); box-shadow: none; }
.btn--block { width: 100%; justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.arrow-link:hover { gap: 12px; }
.arrow-link:hover svg { transform: translateX(3px); }

/* Menu toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.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: 960px) { .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 95;
  background: var(--bg);
  padding: 40px 24px;
  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 nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--display);
  font-size: 1.7rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
}
.mobile-menu nav a.btn {
  border: 0;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 15px;
  color: #fff;
}

/* ---------- Chevron mark ---------- */
.chevmark { color: var(--accent); flex: none; }
.chevmark path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  animation: heroZoom 9s var(--ease) forwards;
}
.hero__bg svg { width: 120%; height: 120%; position: absolute; top: -10%; left: -10%; color: rgba(255,255,255,0.1); }
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.035em;
  font-weight: 300;
  line-height: 0.98;
  max-width: 16ch;
  margin: 0 0 36px;
}
.hero h1 em { color: var(--accent-pale); font-style: normal; }
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin: 0 0 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__rule {
  margin-top: clamp(56px, 8vw, 96px);
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.hero__meta div span { display: block; }
.hero__meta .num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__meta .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}
@media (min-width: 680px) { .hero__meta { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .chev-row { display: flex; justify-content: center; margin-bottom: 40px; }
.manifesto .chevmark { width: 56px; height: 56px; }
.manifesto p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  color: var(--fg);
}
.manifesto p em { color: var(--accent); font-style: normal; }

/* Section head */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 20px;
}
.section-head h2 em { color: var(--accent); font-style: normal; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Services grid ---------- */
.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--bg);
  padding: clamp(30px, 4vw, 48px);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc:hover { background: var(--bg-alt); }
.svc .chevmark { width: 40px; height: 40px; margin-bottom: 26px; }
.svc__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.svc h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.svc ul { list-style: none; margin: 20px 0 0; padding: 0; }
.svc ul li {
  font-size: 0.92rem;
  color: var(--fg-soft);
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid var(--border-soft);
}
.svc ul li:first-child { border-top: 0; }
.svc ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Dark / stats band ---------- */
.band-dark {
  background: var(--bg-deep);
  color: #fff;
}
.band-dark .eyebrow { color: var(--accent-pale); }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-deep); padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 34px); }
.stat .num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .num em { color: var(--accent-pale); font-style: normal; }
.stat .lbl {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.5;
}
.band-dark .section-head h2 { color: #fff; }
.band-dark .section-head p { color: rgba(255,255,255,0.65); }

/* ---------- Work / case cards ---------- */
.grid-work { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 820px) { .grid-work { grid-template-columns: repeat(2, 1fr); } }
.work-card { display: block; }
.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border-radius: 6px;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,230,0) 55%, rgba(11,11,22,0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card:hover .work-card__media::after { opacity: 1; }
.work-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.work-card__body { padding: 24px 2px 0; }
.work-card h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; transition: color 0.3s var(--ease); }
.work-card:hover h3 { color: var(--accent); }
.work-card p { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.work-card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr; gap: 0; }
.process__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.process__item:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 820px) { .process__item { grid-template-columns: 90px 1fr 1.3fr; gap: 40px; } }
.process__num { font-family: var(--mono); color: var(--accent); font-size: 14px; letter-spacing: 0.1em; }
.process__item h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.01em; }
.process__item p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Testimonials ---------- */
.grid-quotes { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .grid-quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.quote__mark {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
  height: 32px;
  margin-bottom: 18px;
}
.quote p { font-size: 1.08rem; line-height: 1.65; color: var(--fg-soft); flex: 1; }
.quote__who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  flex: none;
}
.quote__who .name { font-weight: 600; font-size: 0.98rem; }
.quote__who .role { color: var(--muted); font-size: 0.85rem; }

/* ---------- 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%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq__q .ico {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
  transition: transform 0.35s var(--ease);
}
.faq__q .ico::before, .faq__q .ico::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq__q .ico::before { width: 2px; height: 16px; }
.faq__q .ico::after { width: 16px; height: 2px; }
.faq__item[data-open="true"] .ico { transform: rotate(135deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.faq__item[data-open="true"] .faq__a { max-height: 420px; opacity: 1; }
.faq__a p { color: var(--muted); padding: 0 40px 30px 0; font-size: 1.04rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band__bg { position: absolute; inset: 0; opacity: 0.12; pointer-events: none; }
.cta-band__bg svg { width: 100%; height: 100%; color: #fff; }
.cta-band .inner { position: relative; z-index: 2; }
.cta-band h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 24px;
  line-height: 1.02;
}
.cta-band p { color: rgba(255,255,255,0.85); max-width: 46ch; margin: 0 auto 40px; font-size: 1.1rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Split / about intro ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split--rev > *:first-child { order: 0; }
@media (min-width: 900px) { .split--rev > *:first-child { order: 2; } }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.split h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 400; margin-bottom: 24px; letter-spacing: -0.02em; }
.split h2 em { color: var(--accent); font-style: normal; }

/* value list */
.values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 2px; }
.values li { padding: 22px 0; border-top: 1px solid var(--border); }
.values li:last-child { border-bottom: 1px solid var(--border); }
.values h4 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.values h4 .chevmark { width: 22px; height: 22px; }
.values p { color: var(--muted); font-size: 1rem; margin: 0; }

/* page hero (interior) */
.page-hero {
  background: var(--accent);
  color: #fff;
  padding: clamp(130px, 18vw, 200px) 0 clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; opacity: 0.12; }
.page-hero__bg svg { width: 100%; height: 100%; color: #fff; }
.page-hero .inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
}
.page-hero h1 em { color: var(--accent-pale); font-style: normal; }
.page-hero p { color: rgba(255,255,255,0.86); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 26px; }
.breadcrumb a { color: var(--accent-pale); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.info-block { margin-bottom: 36px; }
.info-block .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; }
.info-block .val { font-size: 1.15rem; color: var(--fg); line-height: 1.5; }
.info-block a.val { transition: color 0.25s var(--ease); }
.info-block a.val:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.form .field { display: grid; gap: 8px; }
.form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); }
.form input, .form textarea, .form select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.form .consent a { color: var(--accent); text-decoration: underline; }

.panel {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: clamp(30px, 4vw, 48px);
}

/* ---------- Thanks page ---------- */
.thanks {
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.thanks .chevmark { width: 60px; height: 60px; margin: 0 auto 32px; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 20px; }
.thanks h1 em { color: var(--accent); font-style: normal; }
.thanks p { color: var(--muted); max-width: 48ch; margin: 0 auto 36px; font-size: 1.1rem; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin: 48px 0 16px; letter-spacing: -0.015em; }
.legal h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1.02rem; }
.legal ul { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.72);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}
.footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__mark { color: var(--accent-pale); }
.footer__brand p { margin-top: 20px; color: rgba(255,255,255,0.55); font-size: 0.98rem; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a, .footer__col span { color: rgba(255,255,255,0.72); font-size: 0.96rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 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(11, 11, 22, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 10px;
  box-shadow: 0 30px 70px -20px rgba(11,11,22,0.5);
  transform: translateY(12px);
  transition: transform 0.4s var(--ease);
}
.cookie-popup[data-open="true"] .cookie-popup__card { transform: none; }
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin: 0; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-popup__actions button {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cookie-popup__actions button:first-child:hover { border-color: var(--fg); }
.cookie-popup__actions button:last-child {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--muted); }
.mt-xl { margin-top: clamp(40px, 6vw, 72px); }
