/* =========================================================
   BHA — Brian Heineberg & Associates
   Modern light redesign · 2026
   Palette pulled from the logo's deep indigo cube mark
   ========================================================= */

:root {
  /* surfaces */
  --bg-0: #f7f5ef;          /* warm cream — primary canvas */
  --bg-1: #ffffff;          /* pure white panels */
  --bg-2: #efece2;          /* deeper cream */
  --bg-ink: #14143c;        /* deep indigo-navy for inverted sections */
  --bg-indigo: #2a2a8c;     /* logo indigo */

  /* lines */
  --line: rgba(20, 20, 60, 0.09);
  --line-strong: rgba(20, 20, 60, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.12);

  /* type */
  --ink-0: #0e0e2b;         /* near-black indigo for headings */
  --ink-1: #3a3a55;         /* body */
  --ink-2: #6b6b85;         /* muted */
  --ink-3: #a4a3b6;         /* very muted */

  /* brand */
  --indigo: #2a2a8c;        /* the logo */
  --indigo-deep: #1a1a6a;
  --indigo-soft: #5d5acd;
  --indigo-glow: #8e8aff;
  --accent: #2a2a8c;
  --warm: #d6843a;          /* warm sand for occasional contrast */

  /* easing + layout */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-sans);
  background: var(--bg-0);
  color: var(--ink-0);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: var(--indigo); color: #fff; }

/* ------- Type ------- */
.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--indigo);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink-0);
}

h1 { font-size: clamp(48px, 8.5vw, 132px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(24px, 2.6vw, 40px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); letter-spacing: -0.01em; }

p { color: var(--ink-1); font-size: clamp(15px, 1vw, 17px); max-width: 65ch; }
p.lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-1); line-height: 1.5; max-width: 50ch; }

em, .italic { font-style: italic; color: var(--indigo); font-family: var(--f-display); font-weight: 400; }

/* Inverted (dark) section overrides */
.inverted, .inverted * { color: #f4f3ff; }
.inverted { background: var(--bg-ink); }
.inverted .eyebrow { color: var(--indigo-glow); }
.inverted .eyebrow::before { background: var(--indigo-glow); }
.inverted h1, .inverted h2, .inverted h3, .inverted h4 { color: #ffffff; }
.inverted p { color: rgba(244, 243, 255, 0.78); }
.inverted em { color: var(--indigo-glow); }

/* ------- Layout ------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
section + section { border-top: 1px solid var(--line); }
section.inverted + section,
section + section.inverted { border-top: 0; }

/* ------- Navigation ------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(247, 245, 239, 0);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  padding: 14px var(--gutter);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink-0);
}
.nav__brand .mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: block;
}
.nav__brand small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 5px;
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
  font-weight: 500;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--indigo);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink-0); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__cta {
  padding: 11px 20px;
  background: var(--ink-0);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}
.nav__cta:hover {
  background: var(--indigo);
}
.nav__cta::after { display: none !important; }

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: var(--ink-0);
  transition: all 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  padding: 100px var(--gutter) var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  display: none;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav__panel { display: flex; }
  .nav__panel.open { transform: translateY(0); }
  .nav__panel a {
    font-family: var(--f-display);
    font-size: 36px;
    color: var(--ink-0);
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--ink-0);
  color: #ffffff;
  border: 1px solid var(--ink-0);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: pointer;
  border-radius: 999px;
  font-weight: 500;
}
.btn:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn .arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 26px; }

.btn.ghost {
  background: transparent;
  color: var(--ink-0);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  background: var(--ink-0);
  color: #fff;
  border-color: var(--ink-0);
}

.inverted .btn { background: #fff; color: var(--ink-0); border-color: #fff; }
.inverted .btn:hover { background: var(--indigo-glow); border-color: var(--indigo-glow); color: var(--ink-0); }
.inverted .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.inverted .btn.ghost:hover { background: #fff; color: var(--ink-0); border-color: #fff; }

/* ------- Hero ------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vw, 120px);
  padding-top: 140px;
  overflow: hidden;
  background: var(--bg-0);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}
.hero__hint {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 56px);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  z-index: 3;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__hint::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--indigo);
}
@media (max-width: 900px) {
  .hero__hint { display: none; }
}
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(42,42,140,0.10), transparent 55%),
    linear-gradient(180deg, rgba(247,245,239,0.5) 0%, rgba(247,245,239,0.0) 30%, rgba(247,245,239,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(56px, 10vw, 156px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 300;
  max-width: 14ch;
  margin: 32px 0;
  color: var(--ink-0);
}
.hero__title em { color: var(--indigo); font-style: italic; font-weight: 400; }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: 48px;
}
.hero__meta p { max-width: 38ch; color: var(--ink-1); }
.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.hero__scroll .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--indigo), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* page hero (non-home) */
.page-hero {
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(42,42,140,0.08), transparent 55%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__cube {
  position: absolute;
  top: 100px;
  right: clamp(-100px, -4vw, -40px);
  width: clamp(280px, 38vw, 480px);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
  animation: floatCube 14s ease-in-out infinite;
}
.page-hero__cube svg { width: 100%; height: auto; display: block; }
@keyframes floatCube {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -18px) rotate(-3deg); }
}
@media (max-width: 700px) {
  .page-hero__cube { opacity: 0.06; right: -120px; top: 140px; }
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  max-width: 14ch;
  margin: 28px 0 24px;
}
.page-hero p { font-size: clamp(17px, 1.3vw, 21px); max-width: 56ch; color: var(--ink-1); }
.page-hero__index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 60px;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------- Reveal animation ------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ------- Section header ------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head p { max-width: 50ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ------- Services grid (home) ------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.service {
  background: var(--bg-1);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  transition: background 0.5s var(--ease);
}
.service:hover { background: var(--bg-2); }
.service__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--indigo);
  font-weight: 500;
}
.service__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.6vw, 40px);
  margin: 18px 0 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink-0);
}
.service__desc { font-size: 15px; line-height: 1.6; }
.service__icon {
  position: absolute;
  top: clamp(32px, 4vw, 56px);
  right: clamp(32px, 4vw, 56px);
  width: 28px; height: 28px;
  color: var(--ink-3);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover .service__icon { color: var(--indigo); transform: translate(4px, -4px); }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
}

/* ------- Stats / numbers strip ------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg-0);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px);
  text-align: left;
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-0);
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 300;
}
.stat__num .unit {
  font-size: 0.4em;
  color: var(--indigo);
  letter-spacing: 0;
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 18px;
  font-weight: 500;
}
.inverted .stat { background: transparent; }
.inverted .stat__num { color: #fff; }
.inverted .stat__num .unit { color: var(--indigo-glow); }
.inverted .stat__label { color: rgba(255,255,255,0.55); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------- Projects grid ------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.project-card {
  position: relative;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 1px 0 rgba(20,20,60,0.05);
}
.project-card.span-7 { grid-column: span 7; aspect-ratio: 16 / 11; }
.project-card.span-5 { grid-column: span 5; }
.project-card.span-6 { grid-column: span 6; }
.project-card.span-4 { grid-column: span 4; }
.project-card.span-12 { grid-column: span 12; aspect-ratio: 16 / 7; }
.project-card:hover { box-shadow: 0 20px 60px -20px rgba(42,42,140,0.45); transform: translateY(-4px); }
.project-card:hover .project-card__media { transform: scale(1.05); }
.project-card:hover .project-card__overlay { background: linear-gradient(180deg, rgba(20,20,60,0.1) 0%, rgba(20,20,60,0.85) 100%); }

.project-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20,20,60,0.78) 100%);
  transition: background 0.5s var(--ease);
}
.project-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.5vw, 36px);
  z-index: 2;
}
.project-card__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--indigo-glow);
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 500;
}
.project-card__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 400;
}
.project-card__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .projects-grid { gap: 16px; }
  .project-card.span-7, .project-card.span-5,
  .project-card.span-6, .project-card.span-4 { grid-column: span 12; aspect-ratio: 4 / 3; }
}

/* ------- Two-col content (about, approach) ------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.split p + p { margin-top: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ------- Principals (about) ------- */
.principals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.principal {
  background: var(--bg-1);
  padding: clamp(36px, 4vw, 56px);
  transition: background 0.5s var(--ease);
}
.principal:hover { background: var(--bg-2); }
.principal__initials {
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--indigo);
  margin-bottom: 28px;
  opacity: 0.95;
  font-weight: 300;
}
.principal__name {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  font-weight: 400;
}
.principal__creds {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.7;
  font-weight: 500;
}
@media (max-width: 820px) { .principals { grid-template-columns: 1fr; } }

/* ------- Approach steps ------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.step:hover { background: rgba(42,42,140,0.025); }
.step__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--indigo);
  padding-top: 12px;
  font-weight: 500;
}
.step__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-0);
  font-weight: 300;
}
.step__desc { font-size: 15px; line-height: 1.65; }
@media (max-width: 820px) {
  .step { grid-template-columns: 60px 1fr; }
  .step__desc { grid-column: 2; }
}

/* ------- Clients / compliance bar ------- */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.logo {
  background: var(--bg-1);
  padding: 32px 24px;
  display: grid; place-items: center;
  min-height: 110px;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  text-align: center;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
  font-weight: 400;
}
.logo:hover { color: var(--indigo); background: var(--bg-2); }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ------- CTA band ------- */
.cta-band {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--bg-ink);
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(141,138,255,0.25), transparent 70%),
    radial-gradient(ellipse at 30% 100%, rgba(42,42,140,0.4), transparent 60%);
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band .eyebrow { color: var(--indigo-glow); }
.cta-band .eyebrow::before { background: var(--indigo-glow); }
.cta-band h2 {
  font-size: clamp(40px, 6vw, 88px);
  max-width: 18ch;
  margin: 24px auto 36px;
  color: #fff;
}
.cta-band h2 em { color: var(--indigo-glow); font-style: italic; }
.cta-band p { margin: 0 auto 36px; color: rgba(255,255,255,0.78); }
.cta-band .btn { background: #fff; color: var(--ink-0); border-color: #fff; }
.cta-band .btn:hover { background: var(--indigo-glow); border-color: var(--indigo-glow); color: var(--ink-0); }

/* ------- Form ------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field { position: relative; }
.field.full { grid-column: span 2; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 0 14px;
  font: 16px var(--f-sans);
  color: var(--ink-0);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field label {
  position: absolute;
  top: 18px; left: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
  pointer-events: none;
  font-weight: 500;
}
.field input:focus,
.field textarea:focus { border-color: var(--indigo); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px; font-size: 10px; color: var(--indigo);
}
.field input::placeholder,
.field textarea::placeholder { color: transparent; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
}

/* ------- Contact info ------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  gap: 28px;
  background: var(--bg-1);
  border-radius: 8px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-item .label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-2);
  font-weight: 500;
}
.contact-item .value {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink-0);
  line-height: 1.3;
  font-weight: 400;
}
.contact-item a.value:hover { color: var(--indigo); }

/* ------- Footer ------- */
.footer {
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  position: relative;
  background: var(--bg-2);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer__col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  color: var(--ink-1);
  margin: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--indigo); }
.footer__brand {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* ------- Filter pills (projects) ------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 60px;
}
.filter {
  padding: 10px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}
.filter:hover { color: var(--ink-0); border-color: var(--indigo); }
.filter.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ------- Marquee ------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg-1);
}
.marquee__track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink-2);
  font-weight: 300;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 80px; }
.marquee__track .dot {
  width: 6px; height: 6px;
  background: var(--indigo);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------- Compliance bar (creds pills) ------- */
.creds {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cred {
  padding: 8px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}

/* ------- Map placeholder ------- */
.map {
  height: 360px;
  background:
    linear-gradient(135deg, rgba(42,42,140,0.06), rgba(42,42,140,0.0)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(20,20,60,0.04) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(20,20,60,0.04) 39px 40px),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.map::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--indigo);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(42,42,140,0.2), 0 0 0 24px rgba(42,42,140,0.08);
  animation: pulse 2.4s var(--ease) infinite;
}
.map::after {
  content: "Sandown, Sandton · 4 Stan Road";
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: var(--bg-1);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(42,42,140,0.2), 0 0 0 24px rgba(42,42,140,0.08); }
  50% { box-shadow: 0 0 0 18px rgba(42,42,140,0.1), 0 0 0 40px rgba(42,42,140,0.04); }
}

/* ------- Utility ------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 60px 0;
}

/* =========================================================
   PROJECT DETAIL PAGE
   ========================================================= */
.proj-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.proj-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: saturate(0.9) contrast(1.05);
}
.proj-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,60,0.35) 0%, rgba(20,20,60,0.0) 30%, rgba(20,20,60,0.85) 100%),
    linear-gradient(90deg, rgba(20,20,60,0.55) 0%, rgba(20,20,60,0) 60%);
  z-index: -1;
}
.proj-hero__inner { position: relative; z-index: 1; color: #fff; width: 100%; }
.proj-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 24px;
}
.proj-hero__crumb a:hover { color: #fff; }
.proj-hero__crumb .sep { color: var(--indigo-glow); }
.proj-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 28px;
  font-weight: 300;
}
.proj-hero h1 em { color: var(--indigo-glow); font-style: italic; font-weight: 400; }
.proj-hero__lead {
  font-size: clamp(17px, 1.4vw, 22px);
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  line-height: 1.45;
  margin-bottom: 32px;
}
.proj-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 4vw, 60px);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
  margin-top: 12px;
}
.proj-hero__meta .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.proj-hero__meta .v {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.5vw, 24px);
  color: #fff;
  margin-top: 6px;
  font-weight: 400;
}
@media (max-width: 760px) {
  .proj-hero__meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Big stat band */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.proj-stats .stat__num { font-size: clamp(48px, 6vw, 86px); }
.proj-stats .accent .stat__num { color: var(--indigo); }
@media (max-width: 760px) { .proj-stats { grid-template-columns: repeat(2, 1fr); } }

/* Two-column brief/context */
.proj-brief {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 820px) { .proj-brief { grid-template-columns: 1fr; } }

/* Scope chips */
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.scope-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}
.scope-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--indigo);
  border-radius: 50%;
}

/* Outcome cards */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.outcome {
  background: var(--bg-1);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
}
.outcome__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--indigo);
  font-weight: 500;
  margin-bottom: 24px;
  display: block;
}
.outcome__metric {
  font-family: var(--f-display);
  font-size: clamp(38px, 4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--ink-0);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 300;
}
.outcome__metric .unit { color: var(--indigo); font-size: 0.5em; }
.outcome__title {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
  margin-bottom: 10px;
  font-weight: 400;
}
.outcome__desc {
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.55;
}
@media (max-width: 820px) { .outcomes { grid-template-columns: 1fr; } }

/* Timeline / milestones */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 160px 32px 1fr 1.4fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.timeline__item:first-child { padding-top: 0; }
.timeline__item:last-child { border-bottom: 0; }
.timeline__date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--indigo);
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 4px;
}
.timeline__dot {
  position: relative;
  width: 14px; height: 14px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--indigo);
  flex-shrink: 0;
  z-index: 1;
}
.timeline__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 1px;
  height: 200px;
  background: var(--line);
  transform: translateX(-50%);
}
.timeline__item:last-child .timeline__dot::before { display: none; }
.timeline__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink-0);
  line-height: 1.15;
  font-weight: 400;
}
.timeline__desc {
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .timeline__dot { display: none; }
}

/* Quote pull */
.proj-quote {
  background: var(--bg-ink);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.proj-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(141,138,255,0.2), transparent 60%);
}
.proj-quote__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.proj-quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 32px;
}
.proj-quote__attr {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--indigo-glow);
  font-weight: 500;
}

/* Gallery */
.proj-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(380px, 50vw, 640px);
}
.proj-gallery__img {
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  filter: saturate(0.92);
}
.proj-gallery__img.big { grid-row: span 2; }
@media (max-width: 760px) {
  .proj-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .proj-gallery__img.big { grid-column: span 2; grid-row: span 1; }
}

/* Team strip */
.proj-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proj-team__role {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.proj-team__role .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}
.proj-team__role .v {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--ink-0);
  font-weight: 400;
}
@media (max-width: 760px) { .proj-team { grid-template-columns: repeat(2, 1fr); } }

/* Next project nav */
.proj-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.proj-next a {
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: block;
  transition: background 0.4s var(--ease);
}
.proj-next a:hover { background: var(--bg-2); }
.proj-next a + a { border-left: 1px solid var(--line); }
.proj-next .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--indigo);
  text-transform: uppercase;
  font-weight: 500;
}
.proj-next .v {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 36px);
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-top: 14px;
  line-height: 1.1;
  font-weight: 300;
}
@media (max-width: 700px) {
  .proj-next { grid-template-columns: 1fr; }
  .proj-next a + a { border-left: 0; border-top: 1px solid var(--line); }
}

/* =========================================================
   PROJECT ENQUIRY WIZARD
   ========================================================= */
.wizard {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.wizard__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.wizard__progress::-webkit-scrollbar { display: none; }

.wizard__step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
  font-weight: 500;
}
.wizard__step-pill .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  transition: all 0.4s var(--ease);
}
.wizard__step-pill.done {
  color: var(--ink-1);
  border-color: var(--line-strong);
}
.wizard__step-pill.done .num {
  background: var(--indigo);
  color: #fff;
}
.wizard__step-pill.active {
  color: var(--ink-0);
  border-color: var(--indigo);
  background: rgba(42,42,140,0.04);
}
.wizard__step-pill.active .num {
  background: var(--ink-0);
  color: #fff;
}

.wizard__steps {
  position: relative;
}
.wizard__step {
  display: none;
  animation: stepIn 0.5s var(--ease);
}
.wizard__step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

.wizard__step-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.wizard__step-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: 14px;
  font-weight: 300;
  max-width: 18ch;
}
.wizard__step-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 52ch;
}

.wiz-q {
  margin-bottom: 36px;
}
.wiz-q__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
  display: block;
  font-weight: 500;
}
.wiz-q__hint {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: -8px;
  margin-bottom: 14px;
}

.wiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.wiz-options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wiz-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wiz-options.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .wiz-options.cols-3, .wiz-options.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.wiz-opt {
  position: relative;
  padding: 16px 18px;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink-1);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}
.wiz-opt:hover {
  border-color: var(--indigo);
  background: var(--bg-1);
  color: var(--ink-0);
}
.wiz-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wiz-opt__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  position: relative;
}
.wiz-opt.check .wiz-opt__dot {
  border-radius: 4px;
}
.wiz-opt input:checked + .wiz-opt__dot {
  background: var(--indigo);
  border-color: var(--indigo);
}
.wiz-opt input:checked + .wiz-opt__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.wiz-opt.check input:checked + .wiz-opt__dot::after {
  inset: 2px 3px;
  background: transparent;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.wiz-opt:has(input:checked) {
  border-color: var(--indigo);
  background: rgba(42,42,140,0.05);
  color: var(--ink-0);
}
.wiz-opt__label { flex: 1; min-width: 0; line-height: 1.3; }
.wiz-opt__meta {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}

.wiz-input,
.wiz-textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  font: 15px var(--f-sans);
  color: var(--ink-0);
  outline: none;
  transition: all 0.2s var(--ease);
  font-weight: 400;
}
.wiz-input:focus,
.wiz-textarea:focus {
  border-color: var(--indigo);
  background: var(--bg-1);
  box-shadow: 0 0 0 4px rgba(42,42,140,0.08);
}
.wiz-textarea { resize: vertical; min-height: 120px; }
.wiz-input::placeholder,
.wiz-textarea::placeholder { color: var(--ink-3); }

.wiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .wiz-grid-2 { grid-template-columns: 1fr; } }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.wiz-counter {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.wiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-weight: 500;
  border: 1px solid transparent;
}
.wiz-btn--back {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.wiz-btn--back:hover { color: var(--ink-0); border-color: var(--ink-0); }
.wiz-btn--next {
  background: var(--ink-0);
  color: #fff;
  border-color: var(--ink-0);
}
.wiz-btn--next:hover { background: var(--indigo); border-color: var(--indigo); }
.wiz-btn--next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wiz-btn--next:disabled:hover { background: var(--ink-0); border-color: var(--ink-0); }
.wiz-btn .arrow {
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
}
.wiz-btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.wiz-btn--back .arrow { transform: scaleX(-1); }

/* Review screen */
.wiz-review {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.wiz-review__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.wiz-review__item .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 3px;
  font-weight: 500;
}
.wiz-review__item .v {
  font-size: 15px;
  color: var(--ink-0);
  font-weight: 400;
}
.wiz-review__item .v.muted { color: var(--ink-3); font-style: italic; }
@media (max-width: 600px) {
  .wiz-review__item { grid-template-columns: 1fr; gap: 6px; }
}

/* Submitted state */
.wiz-success {
  text-align: center;
  padding: 40px 0;
}
.wiz-success__check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--indigo);
  display: grid; place-items: center;
  margin: 0 auto 28px;
  position: relative;
}
.wiz-success__check::after {
  content: "";
  width: 28px; height: 14px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(2px, -4px);
}
.wiz-success h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 14px;
  color: var(--ink-0);
}
.wiz-success p {
  margin: 0 auto;
  max-width: 48ch;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
