/* Homepage motion, progressively enhanced and reduced-motion safe. */

:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-maroon-deep: #3d0418;
  --motion-maroon-brand: #5a0624;
  --motion-maroon-hover: #75092f;
  --motion-maroon-accent: #f6dfe6;
  --motion-maroon-tint: #fbf1f4;
  --motion-white: #ffffff;
  --motion-black: #111111;
  --motion-black-2: #1a1a1a;
  --motion-line-dark: #2b2b2b;
  --motion-grey-400: #bdbdbd;
  --motion-grey-200: #ececec;
  --motion-space-0: #05060a;
  --motion-space-1: #0b0d14;
}

/* ================= 1. Hero Section: Black Space and Starfield ================= */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--motion-space-0);
  background-image: linear-gradient(180deg, var(--motion-space-0) 0%, var(--motion-space-1) 100%);
}

.hero-content-grid {
  position: relative;
  z-index: 3;
}

/* Starfield with 3 depths of stars inside hero */
.starfield {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.star-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: opacity;
}

.star-layer[data-depth="0"] { z-index: 0; }
.star-layer[data-depth="1"] { z-index: 1; }
.star-layer[data-depth="2"] { z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .star-layer canvas { animation: home-twinkle 6s ease-in-out infinite; }
  .star-layer canvas + canvas { animation-duration: 9s; animation-delay: -3.5s; }
  .star-layer[data-depth="1"] canvas { animation-duration: 7.5s; }
  .star-layer[data-depth="1"] canvas + canvas { animation-duration: 11s; }
  .star-layer[data-depth="2"] canvas { animation-duration: 4.5s; }
  .star-layer[data-depth="2"] canvas + canvas { animation-duration: 6.5s; }
}

@keyframes home-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.stars-static .star-layer canvas {
  animation: none;
  opacity: 1;
}

/* Subtle maroon overlay: faint color grade across space (8% to 12% opacity) */
.hero-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 75% 50%, rgba(90, 6, 36, 0.12) 0%, rgba(61, 4, 24, 0.08) 55%, rgba(5, 6, 10, 0) 90%),
              radial-gradient(ellipse at 50% 100%, rgba(90, 6, 36, 0.10) 0%, transparent 65%);
}

/* Particle K canvas: pinned across the first 1200px of scroll */
.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.home-canvas-active .hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.home-canvas-active .hero-k-mark {
  opacity: 0;
}

.home-canvas-active .hero-section {
  cursor: crosshair;
}

.home-canvas-active .hero-section :where(a, button) {
  cursor: pointer;
}

.hero-k-tagline {
  margin: 18px auto 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 650ms var(--motion-ease), transform 650ms var(--motion-ease);
}

.hero-k-tagline.is-assembled {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-k-tagline {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= 2. Header State Change on Scroll (S3) ================= */
.site-header {
  transition: background-color 250ms ease, border-color 250ms ease;
}

.site-header .brand-title-wrap {
  transition: opacity 250ms ease, transform 250ms var(--motion-ease);
}

.site-header.is-scrolled {
  background-color: rgba(17, 17, 17, 0.95);
}

.site-header.is-scrolled .brand-title-wrap {
  opacity: 0;
  transform: translateY(-6px);
}

/* ================= 3. Letter Flash on Kicker (P3) ================= */
.flash-char {
  display: inline-block;
  white-space: pre;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .flash-char:hover {
    animation: home-char-flash 200ms step-end;
  }
}

@keyframes home-char-flash {
  0% { color: var(--motion-maroon-accent); }
  100% { color: inherit; }
}

.home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ================= 4. Split Quote Banner (S4) ================= */
.signature-quote-banner.split {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.split .quote-inner {
  position: relative;
  z-index: 1;
}

.split-bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.split-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--motion-maroon-brand);
  transform: scaleX(calc(1 - var(--split, 0)));
}

.split-bar-left {
  left: 0;
  transform-origin: left center;
}

.split-bar-right {
  right: 0;
  transform-origin: right center;
}

.split-stage {
  display: grid;
}

.split-half {
  grid-area: 1 / 1;
  display: block;
}

.split-left {
  clip-path: inset(0 50% 0 0);
  transform: translate3d(calc(var(--split, 0) * -12vw), 0, 0);
}

.split-right {
  clip-path: inset(0 0 0 50%);
  transform: translate3d(calc(var(--split, 0) * 12vw), 0, 0);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split[data-driver="css"] {
      view-timeline: --quote-split block;
    }
    .split[data-driver="css"] .split-left {
      animation: quote-split-left linear both;
      animation-timeline: --quote-split;
      animation-range: entry 20% cover 50%;
    }
    .split[data-driver="css"] .split-right {
      animation: quote-split-right linear both;
      animation-timeline: --quote-split;
      animation-range: entry 20% cover 50%;
    }
    .split[data-driver="css"] .split-bar {
      animation: quote-split-bars linear both;
      animation-timeline: --quote-split;
      animation-range: entry 20% cover 50%;
    }
  }
}

@keyframes quote-split-left {
  from { transform: translate3d(-12vw, 0, 0); }
  to { transform: none; }
}

@keyframes quote-split-right {
  from { transform: translate3d(12vw, 0, 0); }
  to { transform: none; }
}

@keyframes quote-split-bars {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ================= 5. S5 Word Reveal and Refined Headline Underlines ================= */
.w {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .home-words .w {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 750ms var(--motion-ease), transform 750ms var(--motion-ease);
    transition-delay: var(--d, 0ms);
  }
  .home-words.is-in .w {
    opacity: 1;
    transform: none;
  }
}

/* Refined double-line underline beneath headlines */
.headline-rule {
  display: block;
  width: 56px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  margin: 16px 0 20px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--motion-ease);
}

.section-title-center .headline-rule,
.services-header-wrap .headline-rule {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center center;
}

.k-rule,
.gold-underline {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--motion-ease);
}

.section-title-center .gold-underline {
  transform-origin: center center;
}

.is-in .headline-rule,
.headline-rule.is-in,
.is-in .k-rule,
.k-rule.is-in,
.is-in .gold-underline,
.gold-underline.is-in,
.home-words.is-in ~ .headline-rule,
.home-words.is-in ~ .gold-underline,
.home-words.is-in ~ .k-rule {
  transform: scaleX(1);
}

/* ================= 6. Scroll Storytelling Down the Whole Page ================= */
@media (prefers-reduced-motion: no-preference) {
  .motion-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 750ms var(--motion-ease), transform 750ms var(--motion-ease);
    transition-delay: var(--d, 0ms);
  }
  .motion-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .motion-css-reveal {
      animation: home-item-in var(--motion-ease) both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

@keyframes home-item-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle Parallax on Graphics and Images (under 40px translateY) */
.motion-parallax {
  will-change: transform;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .motion-css-parallax {
      animation: home-parallax-view linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes home-parallax-view {
  from { transform: translateY(-16px); }
  to { transform: translateY(16px); }
}

/* ================= 7. Keynote Preview Tabs with Countdown (S6) ================= */
.home-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin: 0 auto 24px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  border: 1px solid var(--motion-line-dark);
  background: var(--motion-black);
}

.home-tabs::-webkit-scrollbar {
  display: none;
}

.home-tab {
  position: relative;
  overflow: hidden;
  flex: none;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--motion-grey-200);
  font: 400 15px/1 var(--font-body, "Outfit", sans-serif);
  transition: color 150ms ease, background-color 150ms ease;
}

.home-tab:hover {
  color: var(--motion-white);
}

.home-tab[aria-selected="true"] {
  background: var(--motion-maroon-brand);
  color: var(--motion-white);
}

.home-countdown {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--motion-maroon-accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.home-tabs-auto .home-tab[aria-selected="true"] .home-countdown {
  animation: home-countdown-run 7000ms linear both;
}

.home-tabs-paused .home-tab[aria-selected="true"] .home-countdown {
  animation-play-state: paused;
}

@keyframes home-countdown-run {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.keynote-grid.is-tabbed {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.keynote-grid.is-tabbed .keynote-card[hidden] {
  display: none;
}

/* ================= 8. Card Hover Tint for Fine Pointers (P4) ================= */
@media (hover: hover) and (pointer: fine) {
  .service-tile {
    position: relative;
    isolation: isolate;
  }
  .service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--motion-maroon-tint);
    opacity: 0;
    z-index: -1;
    transition: opacity 200ms ease-in-out;
    pointer-events: none;
  }
  .service-tile:hover::after {
    opacity: 1;
  }
}

/* ================= 9. ADKAR Drag Scrubber (P5) ================= */
.adkar-section {
  background-color: var(--motion-black);
  color: var(--motion-white);
  padding: 72px 24px;
  border-bottom: 1px solid var(--motion-line-dark);
}

.adkar-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.adkar-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--motion-white);
}

.adkar-intro {
  color: var(--motion-grey-200);
  max-width: 68ch;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.6;
}

.scrub {
  background: var(--motion-black-2);
  border: 1px solid var(--motion-line-dark);
  border-radius: 4px;
  padding: 32px;
}

.scrub-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.scrub-steps li {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--motion-grey-400);
  padding-top: 12px;
  border-top: 2px solid var(--motion-line-dark);
  transition: color 150ms ease, border-color 150ms ease;
}

.scrub-steps li.is-active {
  color: var(--motion-white);
  border-top-color: var(--motion-maroon-accent);
}

.step-initial {
  display: none;
}

.scrub-track {
  position: relative;
  height: 44px;
}

.scrub-rail,
.scrub-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}

.scrub-rail {
  background: var(--motion-line-dark);
}

.scrub-fill {
  background: var(--motion-maroon-accent);
  transform-origin: left center;
  transform: scaleX(var(--scrub, 0));
}

.scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--motion-white);
  border: 2px solid var(--motion-maroon-brand);
  pointer-events: none;
  transform: translate3d(calc(var(--scrub-x, 0) * 1px), 0, 0);
}

.scrub-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.scrub-track:has(.scrub-range:focus-visible) {
  outline: 2px solid var(--motion-white);
  outline-offset: 4px;
  border-radius: 4px;
}

.scrub-readout {
  margin: 16px 0 0;
  color: var(--motion-grey-200);
  min-height: 56px;
}

.scrub-readout strong {
  color: var(--motion-white);
  font-weight: 500;
}

/* ================= 10. Responsive and Reduced Motion ================= */
@media (max-width: 640px) {
  .adkar-section {
    padding: 48px 24px;
  }
  .adkar-heading {
    font-size: 28px;
  }
  .scrub {
    padding: 24px 16px;
  }
  .scrub-steps li {
    font-size: 16px;
    letter-spacing: 0;
    text-align: center;
  }
  .step-initial {
    display: inline;
  }
  .step-name {
    display: none;
  }
  .home-tabs {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .split-left,
  .split-right {
    transform: none;
  }
  .split-bar {
    transform: none;
  }
  .site-header .brand-title-wrap,
  .home-tab,
  .scrub-steps li,
  .service-tile::after,
  .headline-rule,
  .k-rule,
  .gold-underline {
    transition: none;
    transform: none;
  }
  .home-countdown {
    display: none;
  }
  .home-canvas-active .hero-section {
    cursor: auto;
  }
  .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-words .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motion-parallax {
    transform: none;
  }
}

.foundation-section {
  padding: 64px 0 0;
  background: var(--motion-space-0);
  color: var(--white);
  --surface-accent: var(--motion-maroon-accent);
  --surface-heading: var(--white);
  --surface-muted: var(--grey-200);
  --focus-color: var(--white);
}
.foundation-heading { padding-bottom: 44px; }
.foundation-section .section-headline { max-width: 16ch; color: var(--white); font-size: clamp(42px, 5vw, 72px); line-height: 1; }
.foundation-intro { max-width: 58ch; margin: 20px 0 0; color: var(--grey-200); font-size: 20px; line-height: 1.55; }
.foundation-story { display: none; position: relative; height: 600svh; }
.foundation-section.is-enhanced .foundation-story { display: block; }
.foundation-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: clip; background: var(--motion-space-0); cursor: crosshair; }
.foundation-media, .foundation-particles, .foundation-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.foundation-media { overflow: clip; background: var(--motion-space-0); }
.foundation-particles { z-index: 3; pointer-events: none; }
.foundation-scrim { z-index: 4; pointer-events: none; background: radial-gradient(ellipse at 56% 48%, rgba(5,6,10,0) 46%, rgba(5,6,10,.62) 100%); }
.foundation-scrim::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 60% 46%, rgba(90,6,36,.18), transparent 56%); }
.foundation-sweep { display: none; }
.foundation-copy-stack { position: absolute; z-index: 6; left: clamp(20px, 4vw, 56px); bottom: clamp(22px, 4vh, 44px); width: min(550px, 45vw); min-height: 332px; padding: 26px 32px; background: rgba(5,6,10,.94); border-left: 4px solid var(--maroon-700); border-top: 1px solid rgba(246,223,230,.24); transition: opacity 220ms ease; cursor: auto; }
.foundation-step-copy { position: absolute; inset: 24px 30px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; pointer-events: none; }
.foundation-step-copy.is-active { opacity: 1; pointer-events: auto; }
.foundation-step-number { display: block; margin-bottom: 6px; font: 300 clamp(54px, 6vw, 76px)/.84 var(--font-display); color: var(--motion-maroon-accent); letter-spacing: 0.04em; }
.foundation-step-copy h3 { align-self: flex-start; max-width: 18ch; margin: 0 0 12px; padding: 6px 14px 8px; background: var(--maroon-200); color: var(--maroon-700); border-left: 5px solid var(--maroon-700); border-radius: 3px; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.foundation-step-copy p { max-width: 46ch; margin: 0; color: var(--white); font-size: 19px; line-height: 1.5; }
.foundation-deliverable { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(246,223,230,.24); color: var(--maroon-200); font-size: 15px; line-height: 1.42; }
.foundation-deliverable strong { color: var(--white); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.foundation-step-copy a { align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 8px 18px; display: inline-flex; align-items: center; background: var(--maroon-700); border: 1px solid var(--maroon-200); border-radius: 3px; color: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.foundation-step-copy a:hover, .foundation-step-copy a:focus-visible { background: var(--maroon-600); color: var(--white); }
.foundation-word { display: inline-block; opacity: 0; transform: translateY(12px); will-change: opacity, transform; }
.foundation-rail { position: absolute; z-index: 7; top: 50%; right: clamp(16px, 2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; width: 288px; height: min(70vh, 556px); padding: 16px 14px; background: rgba(5,6,10,.88); border: 1px solid rgba(246,223,230,.22); border-radius: 4px; transform: translateY(-50%); cursor: auto; }
.foundation-rail::before, .foundation-rail-fill { content: ""; position: absolute; z-index: -1; top: 34px; right: 31px; width: 3px; height: calc(100% - 68px); transform-origin: top; }
.foundation-rail::before { background: rgba(255,255,255,.28); }
.foundation-rail-fill { background: var(--maroon-700); transform: scaleY(var(--foundation-progress, 0)); }
.foundation-rail button { position: relative; display: grid; grid-template-columns: 1fr 36px; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 4px 0; border: 0; background: transparent; color: var(--grey-200); font: 500 17px/1.2 var(--font-display); letter-spacing: 0.02em; text-align: right; cursor: pointer; }
.foundation-node { grid-column: 2; justify-self: center; width: 14px; height: 14px; border: 2px solid var(--white); border-radius: 50%; background: var(--motion-space-0); transition: transform 180ms var(--motion-ease), background-color 180ms ease, box-shadow 180ms ease; }
.foundation-node-label { grid-column: 1; grid-row: 1; padding: 4px 10px; border-radius: 3px; transition: background-color 180ms ease, color 180ms ease; }
.foundation-rail button.is-active { color: var(--maroon-700); font-weight: 600; }
.foundation-rail button.is-active .foundation-node-label { background: var(--maroon-200); color: var(--maroon-700); }
.foundation-rail button.is-active .foundation-node { background: var(--maroon-700); border-color: var(--maroon-200); transform: scale(1.48); box-shadow: 0 0 14px rgba(246,223,230,.55); }
.foundation-reduced { display: grid; gap: 28px; padding-bottom: 56px; }
.foundation-section.is-enhanced .foundation-reduced { display: none; }
.foundation-reduced article { display: grid; grid-template-columns: 84px 1fr; column-gap: 24px; align-items: start; padding: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(246,223,230,.22); border-left: 4px solid var(--maroon-700); border-radius: 4px; }
.foundation-reduced span { grid-row: 1 / 3; color: var(--motion-maroon-accent); font: 300 56px/1 var(--font-display); }
.foundation-reduced h3 { justify-self: start; margin: 0 0 10px; padding: 4px 12px 6px; background: var(--maroon-200); color: var(--maroon-700); border-left: 4px solid var(--maroon-700); border-radius: 3px; font-size: 32px; }
.foundation-reduced p { grid-column: 2; margin: 0; color: var(--grey-200); font-size: 18px; line-height: 1.5; }

/* Metrics ribbon canvas */
.metrics-bar {
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
}
.metrics-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.metrics-inner {
  position: relative;
  z-index: 2;
}

/* About architecture alignment canvas */
.about-section {
  padding: 56px 24px;
}
.about-architecture-wrap {
  margin: 16px 0 20px;
}
.about-alignment-canvas {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 96px;
  border: 1px solid var(--maroon-200);
  border-radius: 4px;
  background: var(--white);
  touch-action: pan-y;
}

/* Enterprise delivery fleet teaser */
.team-teaser {
  padding: 48px 24px;
  background: var(--white);
  border-top: 1px solid var(--maroon-200);
  border-bottom: 1px solid var(--maroon-200);
  color: var(--ink);
  --surface-heading: var(--ink);
  --surface-accent: var(--maroon-700);
  --surface-muted: var(--ink-2);
}
.team-teaser-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.team-teaser-title,
.team-teaser-content h2,
.team-teaser .section-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
  margin: 6px 0 12px;
  color: var(--maroon-700);
}
.team-teaser-content p {
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.team-fleet-canvas {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 460 / 220;
  border: 1px solid var(--maroon-200);
  border-radius: 4px;
  background: var(--maroon-50);
  touch-action: pan-y;
}

/* Keynote harmonic spectrum */
.keynotes-section {
  padding: 56px 24px;
}
.keynote-spectrum-wrap {
  max-width: 1200px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.keynote-spectrum-canvas {
  display: block;
  width: 100%;
  height: 52px;
  touch-action: pan-y;
}

/* ADKAR stream: light editorial band between dark Keynotes and dark Services */
.adkar-section {
  padding: 56px 24px;
  background-color: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--maroon-200);
  border-bottom: 1px solid var(--maroon-200);
}
.adkar-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.adkar-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--maroon-700);
}
.adkar-intro {
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
}
.adkar-spectrum-wrap {
  margin: 0 0 16px;
  background: var(--motion-space-0);
  border: 1px solid var(--maroon-900);
  border-radius: 4px;
  padding: 6px 12px;
}
.adkar-canvas {
  display: block;
  width: 100%;
  height: 54px;
}
.scrub {
  background: var(--maroon-50);
  border: 1px solid var(--maroon-200);
  border-left: 4px solid var(--maroon-700);
  border-radius: 4px;
  padding: 24px;
}
.scrub-steps {
  margin: 0 0 16px;
}
.scrub-steps li {
  color: var(--ink-2);
  border-top-color: var(--grey-300);
}
.scrub-steps li.is-active {
  color: var(--maroon-700);
  border-top-color: var(--maroon-700);
  font-weight: 500;
}
.scrub-rail {
  background: var(--grey-300);
}
.scrub-fill {
  background: var(--maroon-700);
}
.scrub-thumb {
  background: var(--white);
  border: 2px solid var(--maroon-700);
}
.scrub-track:has(.scrub-range:focus-visible) {
  outline: 2px solid var(--maroon-700);
}
.scrub-readout {
  margin: 12px 0 0;
  color: var(--ink-2);
  min-height: 44px;
}
.scrub-readout strong {
  color: var(--maroon-700);
  font-weight: 600;
}

/* Restrained white space ceilings */
.services-section {
  padding: 56px 24px;
}
.services-header-wrap {
  margin: 0 auto 24px;
}
.signature-quote-banner {
  padding: 44px 24px;
}
.sectors-section {
  padding: 24px 24px;
}
.formats-section {
  padding: 56px 24px;
}

.formats-packet-row {
  margin: 28px 0 0;
  text-align: center;
}

.formats-packet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-700);
  background: var(--white);
  border: 1px solid var(--maroon-700);
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.formats-packet-link:hover,
.formats-packet-link:focus-visible,
.formats-packet-link:active {
  background: var(--maroon-700);
  color: var(--white);
  text-decoration: none;
}

/* Distinct hero approach blocks with AA contrast */
.hero-approach-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 28px;
  max-width: 62ch;
}
.hero-approach {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 18px;
  border-radius: 4px;
}
.hero-approach-typical {
  background: rgba(17, 17, 17, 0.65);
  border-left: 3px solid var(--ink-3);
  color: var(--grey-300);
}
.hero-approach-kado {
  background: rgba(90, 6, 36, 0.22);
  border-left: 3px solid var(--maroon-200);
  color: var(--white);
}
.hero-approach-lead {
  font-weight: 600;
  color: var(--white);
}

@media(max-width:700px) {
  .foundation-section { padding-top:40px; }
  .foundation-heading { padding-bottom:32px; }
  .foundation-section .section-headline { font-size: 42px; }
  .foundation-intro { font-size: 17px; }
  .foundation-story { height: 600svh; }
  .foundation-stage { top: 76px; height: calc(100svh - 76px); min-height: 580px; }
  .foundation-media { top: 0; bottom: auto; height: 56%; min-height: 280px; }
  .foundation-scrim { top: auto; height: 48%; background: linear-gradient(0deg, rgba(5,6,10,1) 0%, rgba(5,6,10,.98) 72%, rgba(5,6,10,0) 100%); }
  .foundation-scrim::after { display: none; }
  .foundation-copy-stack { left: 0; right: 0; bottom: 0; width: auto; min-height: 46%; padding: 16px 18px 14px; background: var(--motion-space-0); border-left: 0; border-top: 2px solid var(--maroon-700); }
  .foundation-step-copy { inset: 14px 18px 14px; justify-content: center; }
  .foundation-step-number { font-size: 40px; margin-bottom: 4px; }
  .foundation-step-copy h3 { font-size: 28px; margin-bottom: 8px; padding: 4px 10px 6px; }
  .foundation-step-copy p { font-size: 15.5px; line-height: 1.42; }
  .foundation-deliverable { margin-top: 8px; padding-top: 8px; font-size: 13.5px; line-height: 1.35; }
  .foundation-step-copy a { margin-top: 8px; font-size: 13.5px; padding: 6px 14px; }
  .foundation-rail { top: 0; left: 0; right: 0; width: 100%; height: 84px; padding: 8px 6px 4px; flex-direction: row; transform: none; background: rgba(5,6,10,.94); border-bottom: 1px solid rgba(246,223,230,.22); border-radius: 0; }
  .foundation-rail::before, .foundation-rail-fill { top: 14px; left: 10%; right: auto; width: 80%; height: 3px; transform-origin: left; }
  .foundation-rail-fill { transform: scaleX(var(--foundation-progress, 0)); }
  .foundation-rail button { display: flex; flex: 1; min-width: 0; min-height: 64px; flex-direction: column; justify-content: flex-start; gap: 4px; font-size: 13px; line-height: 1.12; text-align: center; }
  .foundation-node { order: -1; flex: 0 0 auto; width: 11px; height: 11px; }
  .foundation-node-label { white-space: normal; overflow-wrap: normal; word-break: normal; padding: 2px 4px; }
  .foundation-reduced { gap: 24px; }
  .foundation-reduced article { display: block; padding: 20px; }
  .foundation-reduced span { display: block; font-size: 44px; margin-bottom: 6px; }
  .foundation-reduced h3 { display: inline-block; font-size: 26px; }
  .hero-headline { max-width:none; }
  .team-teaser-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media(max-width:640px) {
  .about-section,
  .keynotes-section,
  .adkar-section,
  .services-section,
  .formats-section,
  .team-teaser {
    padding: 40px 20px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .foundation-story { display:none !important; }
  .foundation-section.is-enhanced .foundation-reduced { display:grid; }
  .metrics-canvas,
  .about-alignment-canvas,
  .team-fleet-canvas,
  .keynote-spectrum-canvas,
  .adkar-canvas {
    animation: none;
    transition: none;
  }
}

.adoption-band { margin-top: 0; padding-top: 48px; padding-bottom: 48px; background: var(--maroon-900); }
.adoption-band-text { max-width: 58ch; margin: 8px 0 0; color: var(--white); font-size: 24px; line-height: 1.45; }
@media (max-width: 760px) { .adoption-band { padding-top: 32px; padding-bottom: 32px; } .adoption-band-text { font-size: 19px; } }


/* Hero fixes: one smooth space gradient (no 18px tiling bands); keep text and K side by side on tablets */
.hero-section { background-size: 100% 100%; background-repeat: no-repeat; }
.hero-image-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (min-width: 701px) and (max-width: 1024px) {
  .hero-content-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); text-align: left; gap: 24px; }
  .hero-actions { justify-content: flex-start; }
  .hero-image-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .hero-image-col .hero-k-mark { max-height: 360px; width: auto; }
}
@media (max-width: 700px) {
  .hero-section { padding: 16px 18px 22px; min-height: auto; }
  .hero-content-grid { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 10px; }
  .hero-main-title { font-size: 28px; line-height: 1.08; margin: 2px 0 6px; }
  .hero-approach-blocks { gap: 6px; margin: 8px 0 10px; }
  .hero-approach { font-size: 13px; line-height: 1.38; padding: 7px 11px; }
  .hero-image-col { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 4px; }
  .hero-image-col .hero-k-mark { max-height: 120px; width: auto; }
  .hero-k-tagline { margin-top: 8px; font-size: 13px; letter-spacing: 0.16em; }
  .hero-kicker { font-size: 12px; letter-spacing: 0.12em; margin-bottom: 6px; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
}
.flash-word { display: inline-block; white-space: nowrap; }
@media (max-width: 700px) { .metric-num { font-size: 26px; overflow-wrap: normal; word-break: normal; hyphens: none; } }
