/* ==========================================================================
   Brainstorm Africa — styles.css
   ========================================================================== */

@font-face {
  font-family: "Helvetica Now Display";
  src: url("../assets/fonts/HelveticaNowDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../assets/fonts/HelveticaNowDisplay-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../assets/fonts/HelveticaNowDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../assets/fonts/HelveticaNowDisplay-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ---------------------------------------------------------------------- */
/* Variables */
/* ---------------------------------------------------------------------- */
:root {
  --blue: #00A8FE;
  --lime: #CAFF00;
  --black: #000000;
  --charcoal: #111111;
  --offwhite: #F5F5F5;
  --body-on-light: #1A1A1A;
  --white: #FFFFFF;
  --muted: #888888;

  --nav-height: clamp(64px, 8vw, 88px);
  --section-pad-y: clamp(48px, 8vw, 120px);
  --section-pad-x: clamp(28px, 6vw, 104px);
  --max-width: 1240px;
}

/* ---------------------------------------------------------------------- */
/* Reset */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Helvetica Now Display", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.5;
  color: var(--body-on-light);
  background: var(--offwhite);
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

section[id] {
  scroll-margin-top: var(--nav-height);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.eyebrow {
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.section-heading {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--body-on-light);
  max-width: 42rem;
}

.section-heading-dark { color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Buttons */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(14px, 1vw, 16px);
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* ---------------------------------------------------------------------- */
/* Fade-rise (IntersectionObserver driven) */
/* ---------------------------------------------------------------------- */
.fade-rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-rise.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children within a common parent by nth-of-type via inline delay set in JS is avoided;
   use CSS transition-delay classes applied by JS instead */
.fade-rise[data-delay="1"] { transition-delay: 0.08s; }
.fade-rise[data-delay="2"] { transition-delay: 0.16s; }
.fade-rise[data-delay="3"] { transition-delay: 0.24s; }
.fade-rise[data-delay="4"] { transition-delay: 0.32s; }
.fade-rise[data-delay="5"] { transition-delay: 0.4s; }
.fade-rise[data-delay="6"] { transition-delay: 0.48s; }
.fade-rise[data-delay="7"] { transition-delay: 0.56s; }

/* ---------------------------------------------------------------------- */
/* 0. NAV */
/* ---------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--black);
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: clamp(30px, 3vw, 38px);
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Mobile full-screen menu */
/* ---------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 40px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-close {
  position: absolute;
  top: clamp(16px, 4vw, 28px);
  right: clamp(20px, 5vw, 40px);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 5vw, 32px);
}
.mobile-menu-links a {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -0.01em;
}
.mobile-menu-links a:hover { color: var(--blue); }

/* ---------------------------------------------------------------------- */
/* 1. HERO */
/* ---------------------------------------------------------------------- */
.hero {
  background: var(--black);
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--section-pad-x);
  position: relative;
}

/* Hero illustration layer ("Quiet Spark"):
   drifting blue glow + spinning lime spark + looping scribble underline */
.hero-glow {
  position: absolute;
  width: 55vw;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 254, 0.22), rgba(0, 168, 254, 0) 65%);
  top: -12%;
  right: -8%;
  pointer-events: none;
  animation: hero-glow-drift 12s ease-in-out infinite alternate;
}
@keyframes hero-glow-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, 40px); }
}

.hero-spark {
  position: absolute;
  top: calc(var(--section-pad-x) - 30px);
  left: calc(var(--section-pad-x) + 170px);
  width: clamp(18px, 2vw, 26px);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  animation: hero-spark-pop 0.45s cubic-bezier(0.3, 1.6, 0.4, 1) 1.1s forwards;
}
.hero-spark path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.hero-spark-spin {
  animation: hero-spark-spin 14s linear 1.6s infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes hero-spark-pop {
  to { opacity: 1; transform: scale(1); }
}
@keyframes hero-spark-spin {
  to { transform: rotate(360deg); }
}

.underline-scribble {
  position: relative;
}
.underline-scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.underline-scribble svg path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
/* draws in, holds about 2 seconds, fades, then redraws on a loop */
.hero-headline.animate .underline-scribble svg path {
  animation: scribble-loop 3s ease-in-out 1s infinite;
}
@keyframes scribble-loop {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  30%  { stroke-dashoffset: 0; opacity: 1; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  96%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
.hero-lime-rule {
  width: 48px;
  height: 3px;
  background: var(--lime);
  margin-bottom: 20px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}
.hero-lime-rule.in-view { opacity: 1; transform: scaleX(1); }

.hero-eyebrow {
  opacity: 0;
  transition: opacity 0.6s ease-out 0.2s;
}
.hero-eyebrow.in-view { opacity: 1; }

.hero-headline {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  max-width: 20ch;
}
.hero-line { display: block; }
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.word-blue { color: var(--blue); }
.word-lime { color: var(--lime); }

.hero-headline.animate .word {
  transform: translateY(0);
  opacity: 1;
}

.hero-sub {
  color: var(--offwhite);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 0 32px 0;
  opacity: 0;
  transition: opacity 0.6s ease-out 0.4s;
}
.hero-sub.in-view { opacity: 1; }

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.6s ease-out 0.55s;
}
.hero-buttons.in-view { opacity: 1; }

/* ---------------------------------------------------------------------- */
/* 2. MANIFESTO + STATS */
/* ---------------------------------------------------------------------- */
.manifesto { background: var(--offwhite); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.manifesto-statement {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--body-on-light);
  margin: 0 0 24px 0;
}
.manifesto-cta {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--blue);
}
.manifesto-stats {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.stat-number {
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--body-on-light);
  margin: 0 0 8px 0;
}
.stat-label {
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- */
/* 3. CLIENT MARQUEE */
/* ---------------------------------------------------------------------- */
.marquee-section {
  background: var(--black);
  padding: clamp(40px, 6vw, 64px) 0;
}
.marquee-label {
  text-align: center;
  margin: 0 0 24px 0;
}
.marquee {
  overflow: hidden;
  width: 100%;
  display: flex;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee-scroll 120s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--white);
  padding: 0 16px;
}
.marquee-sep {
  color: var(--muted);
  font-size: 20px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------------------------------------------------------------------- */
/* 4. SERVICES / ACCORDION */
/* ---------------------------------------------------------------------- */
.services { background: var(--offwhite); }

.accordion {
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid #ddd;
}
.accordion-row {
  border-bottom: 1px solid #ddd;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px) 0;
  background: transparent;
  border: none;
  text-align: left;
}
.accordion-number {
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--blue);
  flex-shrink: 0;
  width: 2.5em;
}
.accordion-title {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  color: var(--body-on-light);
  flex: 1;
}
.accordion-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.accordion-toggle::before,
.accordion-toggle::after {
  content: "";
  position: absolute;
  background: var(--body-on-light);
  top: 50%;
  left: 50%;
  transition: transform 0.3s ease;
}
.accordion-toggle::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.accordion-toggle::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.accordion-trigger[aria-expanded="true"] .accordion-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 0 clamp(20px, 3vw, 32px) 0;
}
.accordion-desc {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-on-light);
  max-width: 42rem;
  margin: 0 0 16px 0;
}
.accordion-pipeline {
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.8;
  color: var(--body-on-light);
  margin: 0 0 20px 0;
}
.pipe-arrow {
  color: var(--blue);
  padding: 0 6px;
  font-weight: 700;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.tag-list li {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* 5. PROCESS */
/* ---------------------------------------------------------------------- */
.process { background: var(--black); }
.process-steps {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
}
.process-number {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--lime);
  margin-bottom: 12px;
}
.process-title {
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--white);
  margin-bottom: 12px;
}
.process-desc {
  font-weight: 300;
  font-size: 15px;
  color: var(--offwhite);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* 6. CASE STUDIES */
/* ---------------------------------------------------------------------- */
.case-studies { background: var(--offwhite); }
.case-stack {
  display: flex;
  flex-direction: column;
}
.case-card {
  position: sticky;
  top: var(--nav-height);
  background: var(--charcoal);
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.case-card-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.case-card-text { color: var(--white); }
.tag-row {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.case-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
}
.case-line {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--offwhite);
  margin-bottom: 20px;
  max-width: 32rem;
}
.case-outcome {
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--blue);
}
.case-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}
.case-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-image-wrap:hover .case-image-main {
  transform: scale(1.04);
}
.case-image-secondary {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--charcoal);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.case-image-wrap:hover .case-image-secondary {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* 7. TESTIMONIAL */
/* ---------------------------------------------------------------------- */
.testimonial { background: var(--black); }
.testimonial-drift {
  will-change: transform;
  transition: opacity 0.4s ease;
}
.testimonial-quote {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  color: var(--white);
  max-width: 48rem;
  margin-bottom: 32px;
}
.quote-mark {
  color: var(--lime);
  margin-right: 4px;
}
.testimonial-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}
.testimonial-role { margin: 0; }

/* ---------------------------------------------------------------------- */
/* 8. ABOUT + TEAM */
/* ---------------------------------------------------------------------- */
.about { background: var(--offwhite); }
.about-paragraph {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  max-width: 44rem;
  margin: 20px 0 clamp(40px, 6vw, 64px) 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.team-photo-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}
.team-card:hover .team-photo {
  filter: grayscale(0%);
}
.team-name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}
.team-role { margin: 0; }
.about-footnote {
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  margin-top: clamp(32px, 5vw, 48px);
}

/* ---------------------------------------------------------------------- */
/* 9. CONTACT */
/* ---------------------------------------------------------------------- */
.contact { background: var(--black); }
.contact-heading {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-bottom: 20px;
}
.contact-line {
  color: var(--offwhite);
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.contact-form {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form[hidden] { display: none; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--charcoal);
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 168, 254, 0.3);
}
.form-row textarea { resize: vertical; }
.contact-submit {
  align-self: flex-start;
  margin-top: 8px;
  border: none;
}
.contact-submit.is-sent {
  background: var(--lime);
  color: var(--black);
  animation: sent-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sent-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 10;
  animation: confetti-burst 0.9s ease-out forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-submit.is-sent { animation: none; }
  .confetti-piece { display: none; }
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-confirmation {
  max-width: 42rem;
  background: var(--charcoal);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.contact-confirmation p {
  color: var(--white);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.contact-confirmation a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* 10. FOOTER */
/* ---------------------------------------------------------------------- */
.footer {
  background: var(--black);
  border-top: 1px solid #333;
}
.footer-inner { padding: clamp(40px, 6vw, 64px) var(--section-pad-x); }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid #333;
}
.footer-logo img {
  height: clamp(28px, 3vw, 34px);
  width: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 32px);
}
.footer-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-email {
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.footer-location,
.footer-copyright {
  color: var(--muted);
  font-weight: 300;
  font-size: 14px;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Responsive */
/* ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .case-card-inner { grid-template-columns: 1fr; }
  .case-card-media { order: -1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------- */
/* 8b. FAQ (added after About, before Contact) */
/* ---------------------------------------------------------------------- */
.faq { background: var(--offwhite); }

/* FAQ rows reuse the services accordion; questions are longer than service
   titles, so scale the row type down slightly */
.faq .accordion-title {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
}
.faq .accordion-trigger {
  padding: clamp(18px, 2.5vw, 26px) 0;
}
.faq .accordion-desc {
  margin: 0 0 14px 0;
}
.faq .accordion-desc:last-child {
  margin-bottom: 0;
}
.faq .accordion-desc a {
  color: var(--blue);
  font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Reduced motion */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-rise,
  .hero-lime-rule,
  .hero-eyebrow,
  .hero-sub,
  .hero-buttons,
  .word {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track { animation: none !important; }
  .testimonial-drift { transform: none !important; }
  .case-image-secondary { opacity: 1 !important; transform: none !important; }
  .hero-glow { animation: none !important; }
  .hero-spark { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-spark-spin { animation: none !important; }
  .underline-scribble svg path { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}
