/* ===========================================================================
   THE INSIGHT SHOP — 2026 REBUILD
   Premium scroll-animated CX consulting site
   =========================================================================== */

/* -------- Design tokens -------- */
:root {
  --navy: #1E3A5F;
  --navy-deep: #152B47;
  --navy-darker: #0F1E33;
  --orange: #E87B2E;
  --orange-hover: #D46A1F;
  --teal: #1ABC9C;
  --pine: #4A7C4E;
  --off-white: #F5F5F2;
  --mist: #E8ECF2;
  --gray-soft: #D9D9D9;
  --gray-line: rgba(15, 30, 51, 0.12);
  --ink: #0F1E33;
  --ink-soft: #4A5468;

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-body: 1.125rem;       /* 18px */
  --fs-lead: 1.375rem;       /* 22px */
  --fs-h3: 1.75rem;          /* 28px */
  --fs-h2: 3rem;             /* 48px */
  --fs-h1: 4.5rem;           /* 72px */

  --ls-eyebrow: 0.14em;
  --ls-display: -0.02em;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 4px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --shadow-card: 0 1px 2px rgba(15, 30, 51, 0.06), 0 8px 24px rgba(15, 30, 51, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(15, 30, 51, 0.08), 0 16px 40px rgba(15, 30, 51, 0.14);
}

/* -------- Reset + base -------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* NOTE: no scroll-behavior: smooth — would interfere with frame-accurate
     scroll mapping for the hero scroll-driven video. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--off-white);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  margin: 0 0 0.5em 0;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 6vw, var(--fs-h1)); }
h2 { font-size: clamp(2rem, 4.5vw, var(--fs-h2)); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p { margin: 0 0 1em 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

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

section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

section.dark {
  background: var(--navy);
  color: var(--off-white);
}
section.dark .lead { color: rgba(245, 245, 242, 0.78); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--off-white); }

section.deeper { background: var(--navy-deep); color: var(--off-white); }
section.mist { background: var(--mist); }

/* About Us body paragraphs — spacing + measure */
.about-copy .lead { max-width: 62ch; margin-bottom: 1.25rem; }
.about-copy p:not(.lead) {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft, #3a4a5d);
  margin-bottom: 1.25rem;
}
.about-copy p:last-child { margin-bottom: 0; }

/* -------- Eyebrow labels -------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--orange);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 2.5rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--orange);
}
section.dark .eyebrow { color: var(--orange); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  position: relative;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--orange);
  color: var(--off-white);
  border: 1px solid var(--orange);
  box-shadow: 0 4px 14px rgba(232, 123, 46, 0.35);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 123, 46, 0.5);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover {
  background: var(--orange);
  color: var(--off-white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 123, 46, 0.3);
}

.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* -------- Nav -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(15, 30, 51, 0.08);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(245, 245, 242, 0.98);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(15, 30, 51, 0.05), 0 8px 24px rgba(15, 30, 51, 0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--off-white);
}
.nav-brand img {
  height: 60px;
  width: auto;
  display: block;
  transition: filter 0.3s var(--ease);
}
.nav-brand-text {
  display: inline;
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
}
@media (max-width: 900px) {
  .nav-brand-text { display: none; }
}
@media (max-width: 600px) {
  .nav-brand img { height: 44px; }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
}

.nav-toggle { display: none; }

/* -------- Hero (scroll-driven pinned) -------- */
/* The .hero-wrap is 200vh tall. The <header class="hero"> inside is
   sticky at top — staying pinned for 100vh of scroll while the canvas
   inside plays through the video frames. Then normal flow resumes. */
.hero-wrap {
  position: relative;
  height: 200vh;
  background: var(--navy-deep);
}
@media (max-width: 768px) {
  .hero-wrap { height: 150vh; }
}
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy-deep);
  color: var(--off-white);
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

/* Full-bleed canvas behind hero content */
.hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  background: var(--navy-deep); /* shown while frames preload */
}
.hero-canvas-bg.ready { opacity: 1; }

/* Legibility gradient — strong on the left (where text lives), fades to the right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Horizontal: opaque navy wall on the left, hard fade through the text region, clear on the right */
    linear-gradient(100deg,
      rgba(15, 30, 51, 0.97) 0%,
      rgba(15, 30, 51, 0.95) 28%,
      rgba(21, 43, 71, 0.82) 42%,
      rgba(21, 43, 71, 0.45) 58%,
      rgba(21, 43, 71, 0.12) 78%,
      transparent 100%
    ),
    /* Vertical: subtle top and bottom darkening for depth */
    linear-gradient(180deg,
      rgba(15, 30, 51, 0.55) 0%,
      rgba(15, 30, 51, 0.2) 20%,
      transparent 45%,
      transparent 70%,
      rgba(15, 30, 51, 0.7) 100%
    );
}

/* Thin loader bar at the very top of the hero while frames preload */
.hero-loader {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 5;
  background: rgba(245, 245, 242, 0.08);
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}
.hero-loader.hidden { opacity: 0; }
.hero-loader-bar {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(232, 123, 46, 0.6);
  transition: width 0.2s ease-out;
}

.hero-inner {
  display: block;
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--off-white);
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 .word { display: inline-block; white-space: nowrap; will-change: transform, opacity; }
.hero h1 .char { display: inline-block; will-change: transform, opacity; }

/* Prevent hero flash: hide text until GSAP has run (fallback shows after 2s via JS) */
html.pre-animate .hero h1,
html.pre-animate .hero-sub,
html.pre-animate .hero-actions,
html.pre-animate .hero-asset { opacity: 0; }
.hero h1 .accent {
  font-style: italic;
  color: var(--orange);
  padding-right: 0.18em; /* compensate for italic descender overshoot next to following word */
}

.hero-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: rgba(245, 245, 242, 0.95);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 24px rgba(15, 30, 51, 0.85);
}
.hero h1 { text-shadow: 0 2px 30px rgba(15, 30, 51, 0.6); }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(15, 30, 51, 0.8); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-signoff {
  margin-top: 2.5rem;
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  color: var(--orange);
  letter-spacing: 0.005em;
}
html.pre-animate .hero-signoff { opacity: 0; }

/* .hero-asset and related placeholder styles removed —
   canvas is now the full hero background (.hero-canvas-bg above). */

/* Floating badge */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 245, 242, 0.6);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.hero-scroll-hint .line {
  width: 1px;
  height: 40px;
  background: currentColor;
  animation: scroll-pulse 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -------- Challenge section -------- */
.challenge {
  background: var(--off-white);
}
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
/* 5-across variant for the About "Why clients choose us" section */
.challenge-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .challenge-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .challenge-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .challenge-grid.cols-5 { grid-template-columns: 1fr; }
}
.challenge-card {
  background: white;
  border: 1px solid var(--gray-line);
  border-left: 3px solid var(--navy);
  padding: 1.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-left-color 0.4s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}
.challenge-card.in-view { opacity: 1; transform: translateY(0); }
.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--orange);
}
.challenge-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.cost-strip {
  margin-top: 5rem;
  padding: 3rem;
  background: var(--navy);
  color: var(--off-white);
  border-radius: var(--radius-lg);
}
.cost-strip h3 {
  color: var(--off-white);
  margin-bottom: 2rem;
  font-size: 2rem;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem 2rem;
}
.cost-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(245, 245, 242, 0.12);
}
.cost-row .wrong {
  color: var(--off-white);
  font-weight: 500;
}
.cost-row .cost {
  color: var(--orange);
  font-size: 0.9375rem;
}

/* -------- Proof bar (logo marquee) -------- */
.proof-bar {
  background: var(--off-white);
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.proof-label {
  text-align: center;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  flex-shrink: 0;
  animation: marquee 55s linear infinite;
  padding-right: 4rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-chip {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.logo-chip:hover { color: var(--orange); border-color: var(--orange); }

/* -------- Services (arrow-nav carousel) -------- */
.services {
  background: var(--off-white);
  overflow: hidden;
}
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}
.services-intro h2 { margin-bottom: 0; }

.services-carousel {
  position: relative;
  padding: 0 var(--gutter);
}
.services-track-wrap {
  overflow: hidden;
  position: relative;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 2rem;
  mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
}
.services-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.6s var(--ease);
}

.services-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}
.services-arrow {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: var(--off-white);
  color: var(--navy);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.services-arrow:hover:not(:disabled) {
  background: var(--navy);
  color: var(--off-white);
  transform: translateY(-2px);
}
.services-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.services-progress {
  flex: 1;
  height: 2px;
  background: var(--gray-line);
  position: relative;
  margin: 0 1.5rem;
  max-width: 400px;
}
.services-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--orange);
  width: 14.28%;
  transition: width 0.5s var(--ease), transform 0.5s var(--ease);
}
.services-counter {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-soft);
  min-width: 3rem;
  text-align: right;
}
.services-counter strong { color: var(--navy); font-weight: 600; }

.service-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 320px;
  min-height: 460px;
  background: white;
  border: 1px solid var(--gray-line);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .service-card { flex: 0 0 calc((100% - 1.5rem) / 2); min-width: 300px; }
}
@media (max-width: 768px) {
  .service-card { flex: 0 0 88%; min-width: 0; }
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 95, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--orange);
}
.service-card:hover::before { opacity: 1; }

.service-card .service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gray-soft);
  font-weight: 500;
}
.service-card h3 {
  font-size: 1.625rem;
  margin: 1.5rem 0 1rem;
  color: var(--navy);
}
.service-card .desc { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 1.5rem; }
.service-card .walk-away {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--mist);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--navy);
  align-items: start;
}
.service-card .walk-away-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.75rem;
}
.service-card .service-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
}
.service-card .service-link::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-link::after { transform: translateX(4px); }

.new-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--teal);
  color: white;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  font-weight: 600;
}

/* -------- Journey Method -------- */
.method {
  background: var(--navy);
  color: var(--off-white);
  overflow: hidden;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
.method-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 123, 46, 0.5) 20%, rgba(232, 123, 46, 0.5) 80%, transparent 100%);
  z-index: 0;
}
.method-step {
  text-align: left;
  position: relative;
  padding-top: 0;
  z-index: 1;
}
.method-step .num {
  display: inline-grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.method-step h3 { color: var(--off-white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.method-step p { color: rgba(245, 245, 242, 0.7); font-size: 0.9375rem; }

/* -------- AI section -------- */
.ai-section {
  background: var(--off-white);
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}
.ai-text .lead { margin-bottom: 2rem; }
.ai-points {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ai;
}
.ai-points li {
  counter-increment: ai;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--gray-line);
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}
.ai-points li::before {
  content: counter(ai, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 500;
}
.ai-points li:last-child { border-bottom: 1px solid var(--gray-line); }

.ai-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--off-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.ai-callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 188, 156, 0.2), transparent 60%);
}
.ai-callout-label {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--teal);
  margin-bottom: 1rem;
  position: relative;
}
.ai-callout blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0;
  color: var(--off-white);
  position: relative;
}

/* -------- Stats strip -------- */
.stats {
  background: var(--navy-deep);
  color: var(--off-white);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}
.stat-num, .stat-plus {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: rgba(245, 245, 242, 0.65);
}

/* -------- Case studies -------- */
.work {
  background: var(--off-white);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.case-card {
  background: white;
  border: 1px solid var(--gray-line);
  padding: 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.case-card .case-industry {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--orange);
  margin-bottom: 1rem;
}
.case-card h3 {
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.case-card p { color: var(--ink-soft); font-size: 0.9375rem; flex: 1; }
.case-card .outcome {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-line);
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 500;
}
.case-card .case-service {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  border-radius: 2px;
  align-self: flex-start;
}

/* -------- Team -------- */
.team { background: var(--mist); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--off-white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-line);
  text-align: left;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
}
.team-card.kate::before { background: var(--navy); }
.team-card.alex::before { background: var(--gray-soft); }
.team-card.sota::before { background: var(--orange); }

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--off-white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 3px var(--mist), 0 6px 18px rgba(15, 30, 51, 0.12);
}
.team-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card.sota .team-avatar img { object-position: 50% 65%; }
.team-card.alex .team-avatar { background: var(--gray-soft); color: var(--navy); }
.team-card.sota .team-avatar { background: var(--orange); }

.team-card h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--orange);
  margin-bottom: 1rem;
}
.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.team-card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--gray-line);
  display: flex;
  gap: 0.5rem;
}
.team-card li::before {
  content: '—';
  color: var(--orange);
  flex-shrink: 0;
}

.team-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: var(--fs-lead);
  font-family: var(--font-display);
  color: var(--navy);
  font-style: italic;
}

/* -------- Testimonial -------- */
.testimonial {
  background: var(--navy);
  color: var(--off-white);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 5%;
  font-family: var(--font-display);
  font-size: 30rem;
  line-height: 1;
  color: rgba(232, 123, 46, 0.08);
  font-weight: 500;
}
.testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: var(--off-white);
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: rgba(245, 245, 242, 0.7);
  letter-spacing: 0.02em;
}
.testimonial cite strong {
  color: var(--orange);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Single-quote carousel */
.quote-carousel {
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.quote-slides {
  display: grid;
  position: relative;
}
.quote-slide {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
  pointer-events: none;
}
.quote-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0s;
  pointer-events: auto;
}
.quote-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: var(--off-white);
  font-style: normal;
}
.quote-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9375rem;
  color: rgba(245, 245, 242, 0.7);
  letter-spacing: 0.02em;
}
.quote-slide figcaption strong {
  color: var(--orange);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}
.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.quote-arrow {
  background: transparent;
  border: 1px solid rgba(245, 245, 242, 0.3);
  color: rgba(245, 245, 242, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.quote-arrow:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.05);
}
.quote-arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.quote-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.quote-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(245, 245, 242, 0.25);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.quote-dot:hover { background: rgba(245, 245, 242, 0.5); }
.quote-dot.is-active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .quote-controls { gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-slide { transition: none; }
}

/* -------- Podcast + newsletter -------- */
.content-hub { background: var(--off-white); }
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.hub-card {
  background: white;
  border: 1px solid var(--gray-line);
  padding: 3rem 2.5rem;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.hub-card.podcast { background: var(--navy); color: var(--off-white); border: none; }
.hub-card.podcast h3 { color: var(--off-white); }
.hub-card h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.hub-card p { color: var(--ink-soft); }
.hub-card.podcast p { color: rgba(245, 245, 242, 0.75); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-line);
  background: var(--off-white);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.newsletter-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.newsletter-form button {
  padding: 0.9rem 1.5rem;
  background: var(--navy);
  color: var(--off-white);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.3s var(--ease);
}
.newsletter-form button:hover { background: var(--orange); }

/* -------- Final CTA -------- */
.final-cta {
  background: var(--navy-deep);
  color: var(--off-white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(232, 123, 46, 0.08), transparent 60%);
}
.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--off-white);
  margin-bottom: 1rem;
  position: relative;
}
.final-cta .lead {
  color: rgba(245, 245, 242, 0.78);
  margin: 0 auto 3rem;
  position: relative;
}
.final-cta .contact-direct {
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: rgba(245, 245, 242, 0.65);
  position: relative;
}
.final-cta .contact-direct a {
  color: var(--orange);
  margin: 0 0.5rem;
}
.final-cta .contact-direct a:hover { text-decoration: underline; }

/* -------- Footer -------- */
.footer {
  background: var(--navy-darker);
  color: rgba(245, 245, 242, 0.6);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--off-white);
  margin-bottom: 1.25rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 0.375rem 0; }
.footer a:hover { color: var(--orange); }
.footer-brand {
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------- Reveal classes (GSAP fallbacks) -------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* -------- Page header (for interior pages) -------- */
.page-header {
  background: var(--navy-deep);
  color: var(--off-white);
  padding: 12rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(232, 123, 46, 0.12), transparent 60%);
}
.page-header h1 {
  color: var(--off-white);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  position: relative;
}
.page-header .lead { color: rgba(245, 245, 242, 0.78); position: relative; }

/* -------- Services page specific -------- */
.service-detail {
  padding: 6rem 0;
  border-bottom: 1px solid var(--gray-line);
}
.service-detail:nth-child(even) { background: var(--mist); }
.service-detail .service-num-lg {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.25;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.service-detail h2 { color: var(--navy); margin-bottom: 1rem; }
.service-detail .italic-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.service-detail h4 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--orange);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.service-detail ol {
  padding-left: 1.5rem;
  margin: 0 0 2rem;
  color: var(--ink-soft);
}
.service-detail ol li { margin-bottom: 0.75rem; padding-left: 0.5rem; }
.service-detail ol li::marker { color: var(--orange); font-weight: 500; }

.benefit-box {
  padding: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--gray-line);
  border-left: 3px solid var(--teal);
  margin-bottom: 1rem;
}
.benefit-box.roi { border-left-color: var(--orange); }
.benefit-box-label {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.benefit-box.roi .benefit-box-label { color: var(--orange); }
.benefit-box p { margin: 0; color: var(--ink); font-size: 0.9375rem; }

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .hero-inner, .ai-grid, .services-intro { grid-template-columns: 1fr; gap: 3rem; }
  .hero-asset { order: -1; min-height: 320px; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-steps::before { display: none; }
  .work-grid, .team-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: block;
    color: var(--navy);
    font-size: 1.5rem;
    padding: 0.5rem;
  }
  .nav.open {
    background: var(--navy-deep);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.open .nav-brand-text { color: var(--off-white); }
  .nav.open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    z-index: 99;
  }
  .nav.open .nav-links a { color: var(--off-white); }
  .nav.open .nav-links a::after { background: var(--orange); }
  .nav.open .nav-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    color: var(--off-white);
  }
  .hero { padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2.75rem; }
  .work-grid, .team-grid, .stats-grid, .challenge-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { flex: 0 0 300px; min-height: 420px; padding: 2rem 1.5rem; }
  .testimonial { padding: 5rem 0; }
  .final-cta { padding: 5rem 0; }
}

/* -------- Accessibility -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen reader only */
.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;
}
