/* ================================================
   UX Consultancy — Innovation & Discovery
   Design system: "The Operating System"
   ================================================ */

/* ---- Tokens ---- */
:root {
  --navy-deep: #1a1a1a;
  --navy: #2d2d2d;
  --navy-light: #3a3a3a;
  --salmon-gradient: linear-gradient(
    135deg,
    #fff0e8 0%,
    #fff8f5 20%,
    #ffffff 40%,
    #fff8f2 60%,
    #ffefe5 80%,
    #ffe8dc 100%
  );
  --salmon-subtle: linear-gradient(180deg, #fef0ea 0%, #fff8f5 100%);
  --salmon-cta: linear-gradient(180deg, #fff8f5 0%, #fef0ea 50%, #fff8f5 100%);
  --accent: #f26522;
  --accent-hover: #d95a1b;
  --accent-glow: rgba(242, 101, 34, 0.15);
  --warm-grey: #f8f9fa;
  --slate: #000000;
  --blue-grey: #ffffff;
  --surface: #ffffff;
  --ink: #1a1a1a;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --text-h1: clamp(2.75rem, 5vw + 1rem, 4.5rem);
  --text-h2: clamp(2rem, 3vw + 0.5rem, 3rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
  --text-h4: clamp(1rem, 1vw + 0.25rem, 1.125rem);
  --text-body: clamp(0.9375rem, 0.5vw + 0.8125rem, 1.0625rem);
  --text-small: 0.875rem;
  --text-mono: 0.8125rem;
  --text-stat: clamp(2rem, 3vw, 2.75rem);

  --space-section: clamp(5rem, 10vw, 9rem);
  --space-block: clamp(2rem, 4vw, 4rem);
  --space-element: clamp(1rem, 2vw, 1.5rem);
  --max-w: 1200px;
  --pad: clamp(1.5rem, 4vw, 3rem);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-reveal: 600ms;
  --dur-stagger: 100ms;
  --dur-path: 1200ms;

  --header-h: 64px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 769px) {
  html {
    scroll-snap-type: y mandatory;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography ---- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
}
h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.015em;
}
h3 {
  font-size: var(--text-h3);
}
h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.35;
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.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;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
}
.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.btn--outline:hover {
  border-color: var(--ink);
}
.btn--dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--slate);
}
.btn--dark:hover {
  border-color: var(--ink);
}

/* ---- Reveal System ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-expo),
    transform var(--dur-reveal) var(--ease-expo);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > [data-reveal]:nth-child(2) {
  transition-delay: var(--dur-stagger);
}
[data-reveal-group] > [data-reveal]:nth-child(3) {
  transition-delay: calc(var(--dur-stagger) * 2);
}
[data-reveal-group] > [data-reveal]:nth-child(4) {
  transition-delay: calc(var(--dur-stagger) * 3);
}
[data-reveal-group] > [data-reveal]:nth-child(5) {
  transition-delay: calc(var(--dur-stagger) * 4);
}
[data-reveal-group] > [data-reveal]:nth-child(6) {
  transition-delay: calc(var(--dur-stagger) * 5);
}

/* ================================================
   PROGRESS RAIL
   ================================================ */
.progress-rail {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: rgba(45, 45, 45, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.progress-rail__track {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(80, 80, 80, 0.6);
  border-radius: 1px;
}
.progress-rail__fill {
  width: 100%;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}
.progress-rail__nodes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.progress-rail__node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2d2d2d;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition:
    border-color 300ms ease,
    background-color 300ms ease,
    transform 300ms ease;
}
.progress-rail__node span {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 300ms ease;
}
.progress-rail__node.is-active {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.15);
}
.progress-rail__node.is-active span {
  color: var(--surface);
}

/* ================================================
   SITE LOGO
   ================================================ */
.site-logo {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  z-index: 90;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.site-logo.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-logo__light,
.site-logo__dark {
  display: flex;
  align-items: center;
}
.site-logo__light {
  color: #1a1a1a;
}
.site-logo__dark {
  display: none;
}
.site-logo svg {
  width: 100px;
  height: auto;
}
.site-logo__text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-logo__text span {
  color: var(--accent);
}

/* ================================================
   SECTIONS — Shared
   ================================================ */
.section {
  padding: var(--space-section) 0;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}
.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: label-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.4);
}
.section__label::after {
  display: none;
}
@keyframes label-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242, 101, 34, 0);
    transform: scale(1.15);
  }
}
.section__heading {
  margin-bottom: var(--space-element);
}
.section__intro {
  max-width: 640px;
  color: var(--slate);
  margin-bottom: var(--space-block);
}

/* ================================================
   HERO
   ================================================ */
.section--hero {
  background: var(--salmon-gradient);
  color: var(--ink);
  overflow: hidden;
}
.hero__constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__constellation svg {
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--header-h);
}
.hero__label {
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.25rem, 4vw + 0.5rem, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero__subtitle {
  font-size: var(--text-body);
  color: #595959;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #595959;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-arrow {
  display: inline-block;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    r: var(--r);
    opacity: var(--o);
  }
  50% {
    r: calc(var(--r) + 3);
    opacity: calc(var(--o) * 1.5);
  }
}

@keyframes constellationDrift {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(8px, -5px);
  }
  66% {
    transform: translate(-5px, 8px);
  }
  100% {
    transform: translate(0, 0);
  }
}
.hero__constellation .drift {
  animation: constellationDrift 20s ease-in-out infinite;
}
.hero__constellation .drift-alt {
  animation: constellationDrift 25s ease-in-out infinite reverse;
}

/* ================================================
   WHY NOW
   ================================================ */
.section--why-now {
  background: var(--warm-grey);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.why-now__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.pressure-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.pressure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.pressure-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.pressure-card__stat {
  font-family: var(--font-mono);
  font-size: var(--text-stat);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pressure-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
}
.pressure-card__desc {
  color: var(--slate);
}

/* ================================================
   THE AI TRAP
   ================================================ */
.section--ai-trap {
  background: var(--salmon-subtle);
  color: var(--ink);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.section--ai-trap .section__label {
  color: var(--accent);
}
.section--ai-trap .section__intro {
  color: #595959;
}
.ai-trap__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.ai-trap__card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.ai-trap__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.ai-trap__card--good {
  border-color: var(--accent);
}
.ai-trap__card--bad {
  border-color: rgba(0, 0, 0, 0.12);
  opacity: 0.7;
}
.ai-trap__card--bad .ai-trap__card-title {
  color: #595959;
}
.ai-trap__card-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.ai-trap__card--good .ai-trap__card-title {
  color: var(--accent);
}
.ai-trap__card-desc {
  color: #595959;
}

/* ================================================
   OPPORTUNITY MAPPING
   ================================================ */
.section--blitz {
  background: var(--salmon-gradient);
  color: var(--ink);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.section--blitz .section__label {
  color: var(--accent);
}
.section--blitz .section__intro {
  color: var(--slate);
}
.blitz__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "header header"
    "stages image"
    "output output";
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 0.5rem;
  align-items: stretch;
}
.blitz__header {
  grid-area: header;
}
.blitz__stages {
  grid-area: stages;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.blitz__list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--slate);
  line-height: 1.6;
}
.blitz__image {
  grid-area: image;
}
.blitz__output {
  grid-area: output;
}
.section--blitz .pressure-card {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.06);
}
.section--blitz .pressure-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.section--blitz .pressure-card__title {
  color: var(--ink);
}
.section--blitz .pressure-card__desc {
  color: var(--slate);
}
.blitz__output {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.blitz__output .mono {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blitz__output p:last-child {
  color: var(--slate);
}
.blitz__image img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  height: 100%;
}

/* ================================================
   SERVICE PILLARS
   ================================================ */
.section--pillars {
  background: var(--warm-grey);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.section--pillars .section__intro {
  margin-bottom: clamp(1.25rem, 2vw, 2rem);
}
.section--pillars .section__label {
  color: var(--accent);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.pillar {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.pillar__title {
  margin-bottom: 0.75rem;
}
.pillar__desc {
  color: var(--slate);
  margin-bottom: 1.5rem;
}
/* Pillar icon animations */
@media (prefers-reduced-motion: no-preference) {
  /* Opportunity Mapping — rays pulse outward */
  .idea-ray {
    transform-origin: 24px 18px;
    animation: ideaPulse 3s ease-in-out infinite;
  }
  .idea-ray:nth-child(7) {
    animation-delay: 0s;
  }
  .idea-ray:nth-child(8) {
    animation-delay: 0.4s;
  }
  .idea-ray:nth-child(9) {
    animation-delay: 0.8s;
  }
  @keyframes ideaPulse {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.4;
      transform: scale(1.3);
    }
  }

  /* Concept Sprint — travelling highlight along the line */
  .sprint-line {
    stroke-dasharray: 12 80;
    stroke-dashoffset: 0;
    animation: sprintDash 2.5s linear infinite;
  }
  @keyframes sprintDash {
    0% {
      stroke-dashoffset: 92;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }

  /* Continuous Cycle — slow rotation */
  .pillars__cycle-icon {
    animation: cycleRotate 8s linear infinite;
  }
  @keyframes cycleRotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /* Pressure card: Clock — hand ticks slowly */
  .clock-hand {
    transform-origin: 24px 24px;
    animation: clockTick 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  @keyframes clockTick {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Pressure card: Grid — dots pulse in sequence */
  .grid-dot {
    animation: gridPulse 2.4s ease-in-out infinite;
  }
  .grid-dot:nth-child(6) {
    animation-delay: 0s;
  }
  .grid-dot:nth-child(7) {
    animation-delay: 0.4s;
  }
  .grid-dot:nth-child(8) {
    animation-delay: 0.8s;
  }
  @keyframes gridPulse {
    0%,
    100% {
      opacity: 0.3;
    }
    50% {
      opacity: 1;
    }
  }

  /* Pressure card: Warning — cross pulses */
  .warning-cross {
    animation: warningPulse 2s ease-in-out infinite;
  }
  @keyframes warningPulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.3;
    }
  }

  /* Infographic: collaboration pulse travels between nodes */
  .collab-pulse {
    animation: collabTravel 3s ease-in-out infinite;
  }
  @keyframes collabTravel {
    0%,
    100% {
      cx: 156;
      opacity: 0.3;
    }
    50% {
      cx: 244;
      opacity: 0.8;
    }
  }

  /* Infographic: PRD document glow pulse */
  .prd-glow {
    animation: prdPulse 3s ease-in-out infinite;
  }
  @keyframes prdPulse {
    0%,
    100% {
      opacity: 0.4;
    }
    50% {
      opacity: 0.8;
    }
  }

  /* Infographic: pipeline flow dashes scroll down */
  .pipeline-flow {
    animation: pipelineScroll 1.5s linear infinite;
  }
  @keyframes pipelineScroll {
    from {
      stroke-dashoffset: 20;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  /* Infographic: evidence flow lines pulse */
  .evidence-flow {
    animation: evidenceFlowPulse 2s ease-in-out infinite;
  }
  @keyframes evidenceFlowPulse {
    0%,
    100% {
      opacity: 0.15;
    }
    50% {
      opacity: 0.5;
    }
  }

  /* Infographic: evidence bar chart grows */
  .evidence-bar {
    transform-origin: center bottom;
    animation: barGrow 2.5s ease-in-out infinite;
    animation-delay: var(--bar-d, 0s);
  }
  @keyframes barGrow {
    0%,
    100% {
      transform: scaleY(1);
    }
    50% {
      transform: scaleY(0.4);
    }
  }
}

.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Continuous Cycle — full width below the two pillars */
.pillars__cycle {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.pillars__cycle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.pillars__cycle-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}
.pillars__cycle-content {
  flex: 1;
}
.pillars__cycle .pillar__title {
  margin-bottom: 0.5rem;
}
.pillars__cycle .pillar__desc {
  color: var(--slate);
  margin-bottom: 0;
}
.pillars__cycle .pillar__tags {
  flex-shrink: 0;
}
.pillar__tag {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  color: var(--slate);
}

/* ================================================
   CASE STUDIES — Immersive full-viewport
   ================================================ */
.case-study {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-section) 0;
  scroll-snap-align: start;
}
.case-study[hidden] {
  display: none;
}

/* Theme variants */
.case-study--dark {
  background: var(--salmon-subtle);
  color: var(--ink);
  --blue-grey: #595959;
  --slate: #595959;
}
.case-study--light {
  background: var(--warm-grey);
  color: var(--ink);
  --blue-grey: #595959;
  --slate: #1a1a1a;
}
.case-study--navy {
  background: var(--salmon-gradient);
  color: var(--ink);
}

/* Watermark number */
.case-study__watermark {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: clamp(12rem, 20vw, 28rem);
  font-weight: 500;
  line-height: 1;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.case-study--dark .case-study__watermark,
.case-study--navy .case-study__watermark {
  color: var(--ink);
}
.case-study--light .case-study__watermark {
  color: var(--ink);
}

/* Bespoke illustration */
.case-study__illustration {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  pointer-events: none;
  opacity: 0.12;
}
.case-study--dark .case-study__illustration,
.case-study--navy .case-study__illustration {
  color: var(--blue-grey);
}
.case-study--light .case-study__illustration {
  color: var(--slate);
}

/* Two-column layout */
.case-study__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Content column */
.case-study__content {
  max-width: 540px;
}
.case-study__label {
  margin-bottom: 1rem;
  color: var(--accent);
}
.case-study__title {
  font-size: var(--text-h2);
  margin-bottom: 0.75rem;
}
.case-study__context {
  font-size: var(--text-body);
  margin-bottom: var(--space-element);
}
.case-study--dark .case-study__context,
.case-study--navy .case-study__context {
  color: #595959;
}
.case-study--light .case-study__context {
  color: var(--slate);
}

/* Detail sections */
.case-study__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.case-study__detail h4 {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}
.case-study--dark .case-study__detail h4,
.case-study--navy .case-study__detail h4 {
  color: var(--ink);
}
.case-study--light .case-study__detail h4 {
  color: var(--ink);
}
.case-study__detail p {
  font-size: var(--text-small);
  line-height: 1.6;
}
.case-study--dark .case-study__detail p,
.case-study--navy .case-study__detail p {
  color: #595959;
}
.case-study--light .case-study__detail p {
  color: var(--slate);
}

/* Visual / metrics column */
.case-study__visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.case-study__metrics {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.case-study__metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.case-study__metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-stat);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.case-study__metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-study--dark .case-study__metric-label,
.case-study--navy .case-study__metric-label {
  color: #595959;
}
.case-study--light .case-study__metric-label {
  color: var(--slate);
}

/* Infographic visual (replaces metrics) */
.case-study__infographic {
  display: flex;
  align-items: center;
  justify-content: center;
}
.infographic {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* "What this enables next" */
.case-study__next {
  padding-top: 1.5rem;
  border-top: 1px solid;
}
.case-study--dark .case-study__next,
.case-study--navy .case-study__next {
  border-color: rgba(0, 0, 0, 0.08);
}
.case-study--light .case-study__next {
  border-color: rgba(0, 0, 0, 0.08);
}
.case-study__next h4 {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.case-study__next p {
  font-size: var(--text-small);
  line-height: 1.6;
}
.case-study--dark .case-study__next p,
.case-study--navy .case-study__next p {
  color: #595959;
}
.case-study--light .case-study__next p {
  color: var(--slate);
}

/* ================================================
   CASE STUDY EXAMPLES — What/How/Why format
   ================================================ */

/* Theme variants */
.case-study--examples-intro {
  min-height: auto;
  padding: var(--space-section) 0;
  background: var(--salmon-gradient);
  color: var(--ink);
  text-align: center;
}
.case-study--examples-intro .section__label {
  color: var(--accent);
}
.case-study--examples-intro .section__heading {
  max-width: 36ch;
  margin-inline: auto;
  color: var(--ink);
}
.case-study--examples-intro .section__intro {
  max-width: 52ch;
  margin-inline: auto;
  color: #595959;
}

.case-study--charcoal {
  background: var(--salmon-subtle);
  color: var(--ink);
}
.case-study--off-white {
  background: #edeae5;
  color: var(--ink);
}
.case-study--deep {
  background: var(--salmon-gradient);
  color: var(--ink);
}

/* Watermark colours */
.case-study--charcoal .case-study__watermark,
.case-study--deep .case-study__watermark {
  color: var(--ink);
}
.case-study--off-white .case-study__watermark {
  color: var(--ink);
}

/* Sector tag */
.case-study__sector {
  font-size: var(--text-mono);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-element);
  opacity: 0.6;
}

/* What/How/Why blocks */
.case-study__block {
  margin-bottom: 1.25rem;
}
.case-study__block:last-child {
  margin-bottom: 0;
}
.case-study__block h3 {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.case-study__block p {
  font-size: var(--text-small);
  line-height: 1.65;
}
.case-study--charcoal .case-study__block p,
.case-study--deep .case-study__block p {
  color: #595959;
}
.case-study--off-white .case-study__block p {
  color: var(--slate);
}
.case-study__block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.case-study__block li {
  font-size: var(--text-small);
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}
.case-study__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.case-study--charcoal .case-study__block li,
.case-study--deep .case-study__block li {
  color: #595959;
}
.case-study--off-white .case-study__block li {
  color: var(--slate);
}

/* Media placeholder */
.case-study__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.case-study__media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
}
.case-study--off-white .case-study__media-placeholder {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}
.case-study__media-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.4;
}
.case-study__phones {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 340 / 490;
}
.case-study__phones .device-mockup {
  position: absolute;
  width: 54%;
}
.case-study__phones .device-mockup:first-child {
  left: 0;
  top: 0;
  z-index: 1;
  --base-rotate: rotate(-3deg);
  transform: rotate(-3deg);
  animation: phone-float 6s ease-in-out infinite 3s;
}
.case-study__phones .device-mockup:last-child {
  right: 0;
  bottom: 0;
  z-index: 2;
  --base-rotate: rotate(3deg);
  transform: rotate(3deg);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%,
  100% {
    transform: var(--base-rotate) translateY(0);
  }
  50% {
    transform: var(--base-rotate) translateY(-6px);
  }
}

/* Device mockup (phone frame) */
.device-mockup {
  position: relative;
  width: 220px;
  border-radius: 36px;
  background: #1a1a1a;
  padding: 9px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 25px 60px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15);
}
.device-mockup .device-screen {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}
.device-mockup .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Side button (power) */
.device-mockup::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 21%;
  width: 3px;
  height: 9%;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}
/* Side buttons (volume) */
.device-mockup::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 18%;
  width: 3px;
  height: 4.6%;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow:
    0 250% 0 #2a2a2a,
    0 480% 0 #2a2a2a;
}
.case-study__video {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* ================================================
   CTA — merged outcomes + call to action
   ================================================ */
.section--cta {
  background: var(--salmon-cta);
  color: var(--ink);
}
.section--cta .hero__label {
  color: var(--accent);
}
.section--cta .hero__subtitle {
  color: #595959;
}
.cta__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.cta__content {
  max-width: 540px;
}
.cta__outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.cta__outcome {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.cta__outcome:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.cta__outcome h3 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.cta__outcome p {
  font-size: var(--text-small);
  color: var(--slate);
  line-height: 1.5;
}
.cta__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cta__contact-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cta__contact-photo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.cta__contact-name {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cta__contact-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.cta__contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================================================
   SVG PATH DRAWING
   ================================================ */
.draw-path {
  stroke-dasharray: var(--path-length, 1000);
  stroke-dashoffset: var(--path-length, 1000);
  transition: stroke-dashoffset var(--dur-path) var(--ease-out);
}
.draw-path.is-drawn {
  stroke-dashoffset: 0;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .progress-rail {
    display: none;
  }

  .why-now__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study__layout {
    grid-template-columns: 1fr;
    gap: var(--space-block);
  }
  .case-study__illustration {
    display: none;
  }
}

@media (max-width: 768px) {
  .why-now__grid {
    grid-template-columns: 1fr;
  }
  .ai-trap__grid {
    grid-template-columns: 1fr;
  }
  .blitz__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "image"
      "stages"
      "output";
  }
  .blitz__image img {
    height: auto;
  }
  .pillars__grid {
    grid-template-columns: 1fr;
  }
  .pillars__cycle {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-study {
    min-height: auto;
    padding: var(--space-section) 0;
  }
  .case-study__watermark {
    font-size: 8rem;
    right: -5%;
  }
  .case-study__infographic {
    margin-top: 2rem;
  }

  .cta__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta__contacts {
    gap: 1.25rem;
  }

  .hero__content {
    max-width: none;
  }
  .hero__scroll {
    display: none;
  }
}

/* ================================================
   SCROLL SNAP — lock sections to viewport on desktop
   ================================================ */
@media (min-width: 769px) {
  .section,
  .section--hero,
  .case-study {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
}

/* ================================================
   VIDEO LIGHTBOX
   ================================================ */
.video-lightbox-trigger {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.video-lightbox-trigger::after {
  content: "▶ View demo";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-lightbox-trigger:hover::after {
  opacity: 1;
}
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.video-lightbox.is-open {
  pointer-events: auto;
  visibility: visible;
}
.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.video-lightbox.is-open .video-lightbox__backdrop {
  opacity: 1;
}
.video-lightbox__content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-lightbox.is-open .video-lightbox__content {
  opacity: 1;
  transform: scale(1);
}
.video-lightbox__video {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.video-lightbox__close {
  all: unset;
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.video-lightbox__close:hover {
  opacity: 1;
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .draw-path {
    stroke-dashoffset: 0;
  }
}
