/* ============================================================
   ASPIRO — styles.css
   Palette: deep purple / teal / paper white
   Type: DM Sans (grotesque) + Instrument Serif italic (accent)
   ============================================================ */

/* ── Tokens ── */
:root {
  --purple: #2b0e48;
  --purple-2: #3d1a63;
  --purple-deep: #1a0830;
  --ink: #120b1c;
  --teal: #40b8a2;
  --teal-2: #2a8f7c;
  /* AA on white for small text */
  --teal-bright: #6fd6c0;
  --paper: #ffffff;
  --paper-2: #f6f4f9;
  --text: #1a1425;
  --muted: #5d566a;
  --muted-w: rgba(255, 255, 255, 0.62);
  --line: rgba(43, 14, 72, 0.12);
  --line-strong: rgba(43, 14, 72, 0.22);
  --line-w: rgba(255, 255, 255, 0.14);

  --gutter: clamp(20px, 5vw, 72px);
  --max-w: 1280px;
  --sec-py: clamp(80px, 9vw, 140px);
  --header-h: 76px;

  --radius: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-sharp: cubic-bezier(.77, 0, .175, 1);

  --font-sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--teal);
  color: var(--purple);
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--purple);
  color: #fff;
  border-radius: 99px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Typography ── */
.t-title {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--purple);
  text-wrap: balance;
}

.t-title em,
.hero-headline em,
.step-name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--teal-2);
  letter-spacing: -0.01em;
}

.t-title--light {
  color: #fff;
}

.t-title--light em {
  color: var(--teal-bright);
}

.t-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.t-lead--light {
  color: var(--muted-w);
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 20px;
}

.label--teal {
  color: var(--teal-bright);
}

.section-head {
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
}

.section-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 380px;
  justify-self: end;
  padding-bottom: 6px;
  text-wrap: pretty;
}

.section-note--light {
  color: var(--muted-w);
}

/* ── Buttons & links ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-primary:hover {
  background: var(--purple-2);
  border-color: var(--purple-2);
  box-shadow: 0 10px 30px -10px rgba(43, 14, 72, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(43, 14, 72, 0.04);
}

.btn-ghost svg {
  transition: transform 0.25s var(--ease-out);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-teal {
  background: var(--teal);
  color: var(--purple);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  box-shadow: 0 10px 30px -10px rgba(64, 184, 162, 0.6);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--purple);
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 4px;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}

.link-arrow:hover {
  color: var(--teal-2);
  gap: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--purple);
  padding: 6px 0;
  letter-spacing: 0.005em;
  transition: color 0.2s;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-sharp), background 0.3s;
}

.menu-open .menu-btn span {
  background: #fff;
}

.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-btn span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-open .site-header {
  background: transparent;
  box-shadow: none;
}

.menu-open .header-cta {
  opacity: 0;
  pointer-events: none;
}

.menu-open .logo-img {
  filter: brightness(0) invert(1);
}

/* Mobile overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--purple);
  color: #fff;
  overflow-y: auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.menu-overlay.open {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: space-between;
  gap: 40px;
}

.menu-primary {
  display: flex;
  flex-direction: column;
}

.menu-primary a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-w);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s;
}

.menu-overlay.open .menu-primary a {
  opacity: 1;
  transform: translateY(0);
}

.menu-primary a:nth-child(1) { transition-delay: 0.05s; }
.menu-primary a:nth-child(2) { transition-delay: 0.1s; }
.menu-primary a:nth-child(3) { transition-delay: 0.15s; }
.menu-primary a:nth-child(4) { transition-delay: 0.2s; }
.menu-primary a:nth-child(5) { transition-delay: 0.25s; }
.menu-primary a:nth-child(6) { transition-delay: 0.3s; }
.menu-primary a:nth-child(7) { transition-delay: 0.35s; }

.menu-primary a:hover {
  color: var(--teal-bright);
}

.menu-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
}

.menu-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--muted-w);
}

.menu-secondary a:hover {
  color: #fff;
}

.menu-address {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px));
  background: var(--paper);
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: clamp(32px, 5vh, 64px);
}

.hero-headline {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--purple);
  max-width: 13ch;
  margin-bottom: clamp(24px, 3.5vh, 36px);
  text-wrap: balance;
}

.word-slot {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--teal-2);
  letter-spacing: -0.01em;
  line-height: inherit;
}

.word-slot-inner {
  display: block;
}

/* In the hero the word sits on its own line so the headline never reflows as words change length */
.hero .word-slot {
  display: block;
  width: max-content;
  max-width: 100%;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  padding-inline: 0.04em;
  margin-inline: -0.04em;
}

.word-slot-inner.exiting {
  animation: slotUp 0.42s var(--ease-sharp) forwards;
}

.word-slot-inner.entering {
  animation: slotDown 0.55s var(--ease-out) forwards;
}

@keyframes slotUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-105%); opacity: 0; }
}

@keyframes slotDown {
  from { transform: translateY(105%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-tagline {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 720px);
  width: 100%;
  justify-self: end;
  background: var(--purple-deep);
  box-shadow: 0 30px 80px -40px rgba(43, 14, 72, 0.45);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Stats strip */
.hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-block: clamp(24px, 3.5vh, 36px) clamp(32px, 5vh, 56px);
  gap: 24px;
}

.h-stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.h-stat-num {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.h-stat-label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 200px;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.clients-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(48px, 5vw, 80px);
  padding-right: clamp(48px, 5vw, 80px);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.client-logo:hover {
  filter: none;
  opacity: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--sec-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.about-left .t-lead {
  margin-top: 28px;
  max-width: 520px;
}

.about-right {
  padding-top: 10px;
}

.about-body p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.about-right .link-arrow {
  margin-top: 8px;
}

.about-media {
  position: relative;
  margin: 0 0 clamp(56px, 7vw, 96px);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--purple-deep);
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Photographic backgrounds for dark sections */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(18, 11, 28, 0.55) 35%, rgba(18, 11, 28, 0.75) 100%);
}

.section-bg--contact img {
  opacity: 0.55;
}

.section-bg--contact::after {
  background: linear-gradient(180deg, rgba(43, 14, 72, 0.9) 0%, rgba(43, 14, 72, 0.8) 50%, rgba(26, 8, 48, 0.95) 100%);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.adv-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
  position: relative;
}

.adv-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.5s var(--ease-out);
}

.adv-card:hover::before {
  width: 100%;
}

.adv-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-2);
  margin-bottom: 20px;
}

.adv-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--purple);
  margin-bottom: 12px;
}

.adv-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.about-location {
  margin-top: clamp(72px, 9vw, 130px);
  font-size: clamp(38px, 6.6vw, 100px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--purple);
}

.word-slot--location {
  vertical-align: baseline;
  position: relative;
  top: 0.06em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--sec-py) 0;
  background: var(--paper-2);
}

.svc-list {
  border-top: 1px solid var(--line-strong);
}

.svc-row {
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.svc-row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.5s var(--ease-out);
  z-index: 1;
}

.svc-row:hover::before,
.svc-row:has(.svc-head[aria-expanded="true"])::before {
  width: 100%;
}

.svc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px 44px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}

.svc-head:focus-visible {
  outline-offset: -2px;
}

.svc-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-2);
}

.svc-name {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--purple);
  transition: transform 0.35s var(--ease-out);
}

.svc-row:hover .svc-name {
  transform: translateX(6px);
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-2);
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out);
}

.svc-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-row:hover .svc-icon {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.svc-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  justify-self: end;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}

.svc-toggle::before,
.svc-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--purple);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.svc-toggle::before {
  width: 14px;
  height: 2px;
}

.svc-toggle::after {
  width: 2px;
  height: 14px;
}

.svc-head[aria-expanded="true"] .svc-toggle {
  background: var(--purple);
  border-color: var(--purple);
}

.svc-head[aria-expanded="true"] .svc-toggle::before,
.svc-head[aria-expanded="true"] .svc-toggle::after {
  background: #fff;
}

.svc-head[aria-expanded="true"] .svc-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.svc-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.svc-head[aria-expanded="false"] + .svc-body {
  grid-template-rows: 0fr;
}

.svc-body-inner {
  overflow: hidden;
  padding-left: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  opacity: 1;
  transition: opacity 0.4s ease 0.1s;
}

.svc-head[aria-expanded="false"] + .svc-body .svc-body-inner {
  opacity: 0;
  transition-delay: 0s;
}

.svc-body-inner > * {
  padding-bottom: 36px;
}

.svc-body-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.tags li {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--purple);
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}

.tags li:hover {
  border-color: var(--teal);
  color: var(--teal-2);
}

/* ============================================================
   APPROACH (dark)
   ============================================================ */
.approach {
  position: relative;
  padding: var(--sec-py) 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-w);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 184, 162, 0.5);
  background: linear-gradient(180deg, rgba(64, 184, 162, 0.08), rgba(255, 255, 255, 0.02));
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding-top: 8px;
}

.step-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.step-name {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.step-name em {
  color: var(--teal-bright);
}

.step-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-w);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-w);
  min-height: 74px;
}

.step-items li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
}

.step-items li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
  position: relative;
  top: -4px;
}

.approach-tags {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line-w);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.approach-tags li {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  padding: 9px 18px;
  border: 1px solid var(--line-w);
  border-radius: 99px;
  transition: color 0.2s, border-color 0.2s;
}

.approach-tags li:hover {
  color: var(--teal-bright);
  border-color: var(--teal);
}

/* ============================================================
   CASES
   ============================================================ */
.cases {
  padding: var(--sec-py) 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.case {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  transition: background 0.3s;
}

.case::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.case:hover {
  background: var(--paper-2);
}

.case:hover::before {
  transform: scaleX(1);
}

.case-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 28px;
}

.case-metric {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.case-metric-sub {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.case-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--purple);
  margin-bottom: 10px;
}

.case-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* ============================================================
   C-SUITE
   ============================================================ */
.csuite {
  padding: 0 0 var(--sec-py);
}

.csuite-rows {
  border-top: 1px solid var(--line-strong);
}

.csuite-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.3s;
}

.csuite-row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.5s var(--ease-out);
}

.csuite-row:hover::before {
  width: 100%;
}

.csuite-role-title {
  display: block;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 8px;
}

.csuite-role-sub {
  font-size: 13px;
  color: var(--muted);
}

.csuite-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.csuite-pain {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--purple);
  letter-spacing: -0.01em;
}

.csuite-solution {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.csuite-solution strong {
  color: var(--purple);
  font-weight: 600;
}

/* ============================================================
   SMART OPS (dark purple)
   ============================================================ */
.smartops {
  position: relative;
  padding: var(--sec-py) 0;
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 55%, #23103d 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.smartops-display {
  position: absolute;
  z-index: -1;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(200px, 30vw, 460px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111, 214, 192, 0.22);
  pointer-events: none;
  user-select: none;
}

.smartops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.smartops-left .t-lead {
  margin: 24px 0 44px;
  max-width: 520px;
}

.pillars {
  border-top: 1px solid var(--line-w);
}

.pillar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-w);
  transition: padding-left 0.35s var(--ease-out);
}

.pillar:hover {
  padding-left: 8px;
}

.pillar-n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
  padding-top: 4px;
}

.pillar h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.pillar p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-w);
  text-wrap: pretty;
}

.smartops-media {
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-w);
  background: var(--purple-deep);
}

.smartops-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-w);
  border: 1px solid var(--line-w);
  border-radius: var(--radius);
  overflow: hidden;
}

.outcome {
  background: rgba(18, 11, 28, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  transition: background 0.3s;
}

.outcome:hover {
  background: rgba(64, 184, 162, 0.1);
}

.outcome-num {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--teal-bright);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.outcome-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-w);
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  padding: var(--sec-py) 0;
  background: var(--paper);
}

.team-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.team-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(56px, 6vw, 80px);
}

.team-grid:last-child {
  margin-bottom: 0;
}

.person-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 16px;
}

.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 18px;
  position: relative;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease, transform 0.6s var(--ease-out);
}

.person-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43, 14, 72, 0.35));
  opacity: 0;
  transition: opacity 0.4s;
}

.person-btn:hover .person-photo img,
.person-btn:focus-visible .person-photo img {
  filter: none;
  transform: scale(1.04);
}

.person-btn:hover .person-photo::after {
  opacity: 1;
}

.person-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 4px;
}

.person-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 10px;
}

.person-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}

.person-btn:hover .person-more {
  color: var(--teal-2);
  border-color: var(--teal);
}

.team-grid--compact .person-name {
  font-size: 16px;
}

/* Bio dialog */
.bio-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: none;
  border-radius: 24px;
  padding: 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(18, 11, 28, 0.5);
  overflow: hidden;
}

.bio-dialog::backdrop {
  background: rgba(18, 11, 28, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.bio-dialog[open] {
  animation: dialogIn 0.4s var(--ease-out);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.bio-dialog-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  position: relative;
}

.bio-photo {
  background: var(--paper-2);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text {
  padding: clamp(32px, 4vw, 48px);
  overflow-y: auto;
  max-height: calc(100vh - 32px);
}

.bio-text h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--purple);
  margin-bottom: 20px;
}

.bio-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.bio-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.bio-close:hover {
  background: var(--purple);
  color: #fff;
}

/* ============================================================
   CONTACT (purple)
   ============================================================ */
.contact {
  position: relative;
  padding: var(--sec-py) 0;
  background: var(--purple);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact-left .t-lead {
  margin: 24px 0 40px;
  max-width: 460px;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-details dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 4px;
}

.contact-details dd {
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
}

.contact-details a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
}

.contact-details a:hover {
  color: var(--teal-bright);
  border-color: var(--teal-bright);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236fd6c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field select option {
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff8a8a;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note a:hover {
  color: #fff;
}

.form-status {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--teal-bright);
  min-height: 1.4em;
}

.form-status.error {
  color: #ffb1b1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  height: 30px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 320px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-w);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.footer-bar {
  border-top: 1px solid var(--line-w);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bar-links {
  display: flex;
  gap: 24px;
}

.footer-bar-links a:hover {
  color: #fff;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

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

  .menu-btn {
    display: flex;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .csuite-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .csuite-row .csuite-col:last-child {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .section-note {
    justify-self: start;
    padding-bottom: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-headline {
    max-width: 16ch;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    max-height: 380px;
    justify-self: stretch;
  }

  .hero-media img {
    object-position: center 92%;
  }

  .about-media {
    aspect-ratio: 16 / 10;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .adv-card {
    padding: 24px 0;
  }

  .svc-body-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .svc-body-inner > *:first-child {
    padding-bottom: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-quote {
    min-height: 0;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csuite-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .csuite-row .csuite-col:last-child {
    grid-column: auto;
  }

  .smartops-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .smartops-display {
    top: auto;
    bottom: -8%;
    right: -6vw;
    transform: none;
    font-size: clamp(200px, 50vw, 360px);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .bio-dialog-inner {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
}

@media (max-width: 640px) {
  :root {
    --sec-py: 72px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero-headline {
    font-size: clamp(40px, 11.5vw, 60px);
    letter-spacing: -0.035em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .h-stat {
    padding-left: 14px;
  }

  .svc-head {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 14px;
    padding: 22px 0;
  }

  .svc-icon {
    display: none;
  }

  .svc-body-inner {
    padding-left: 54px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-foot .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    display: none;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-group:last-child {
    display: none;
  }

}

/* ── Print ── */
@media print {
  .site-header,
  .menu-overlay,
  .section-bg,
  .contact-form,
  .skip-link {
    display: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   MULTI-PAGE COMPONENTS
   ============================================================ */
.section {
  padding: var(--sec-py) 0;
  position: relative;
}

.section--tint {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.section-more {
  margin-top: clamp(32px, 4vw, 48px);
}

/* Page hero */
.t-display {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 7vh, 88px)) 0 clamp(48px, 6vw, 88px);
  background: var(--paper);
}

.page-hero--dark {
  background: var(--ink);
  color: #fff;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.page-hero--media .page-hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.page-hero-copy .t-display {
  max-width: 16ch;
  margin-bottom: 24px;
}

.page-hero-copy .t-lead {
  max-width: 560px;
}

.page-hero-media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--purple-deep);
  box-shadow: 0 30px 80px -40px rgba(43, 14, 72, 0.45);
}

.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.breadcrumb [aria-current] {
  color: var(--purple);
  font-weight: 500;
}

/* Service cards (home) */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -30px rgba(43, 14, 72, 0.35);
}

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.svc-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--purple);
}

.svc-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.svc-card .link-arrow {
  align-self: flex-start;
}

/* Services index rows */
.svc-row-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px 44px;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.svc-row-link::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.5s var(--ease-out);
}

.svc-row-link:hover::before {
  width: 100%;
}

.svc-row-link .svc-num {
  padding-top: 10px;
}

.svc-row-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-row-link .svc-name {
  transition: color 0.2s;
}

.svc-row-link:hover .svc-name {
  color: var(--teal-2);
  transform: none;
}

.svc-row-summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
}

.svc-row-link .svc-toggle {
  justify-self: end;
  align-self: center;
}

.svc-toggle--arrow::before {
  width: 14px;
  height: 2px;
}

.svc-toggle--arrow::after {
  width: 8px;
  height: 8px;
  background: none;
  border-right: 2px solid var(--purple);
  border-top: 2px solid var(--purple);
  transform: translate(-30%, -50%) rotate(45deg);
}

.svc-row-link:hover .svc-toggle {
  background: var(--purple);
  border-color: var(--purple);
}

.svc-row-link:hover .svc-toggle--arrow::before {
  background: #fff;
}

.svc-row-link:hover .svc-toggle--arrow::after {
  border-color: #fff;
}

/* Service detail */
.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.prose h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--purple);
  margin: 40px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 18px;
  text-wrap: pretty;
}

.prose strong {
  color: var(--purple);
  font-weight: 600;
}

.svc-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.svc-aside-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.svc-aside-card h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 16px;
}

.svc-aside-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.svc-aside-card--cta {
  background: var(--paper-2);
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.check-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.check-list li::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
  position: relative;
  top: -4px;
}

.svc-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 40px;
}

.svc-links a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--purple);
  transition: color 0.2s;
}

.svc-links a:hover {
  color: var(--teal-2);
}

/* Stat band */
.stat-band {
  background: var(--purple);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
}

.stat-band-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  border-left: 1px solid var(--line-w);
  padding-left: 24px;
}

.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--teal-bright);
  margin-bottom: 12px;
}

.stat-label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-w);
  max-width: 280px;
}

/* Cases as links + detail */
a.case {
  display: block;
  color: inherit;
}

.cases-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 3vw, 44px);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.case-detail-body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--purple);
  margin-bottom: 6px;
}

.case-client {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.case-detail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.case-detail-cols h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 10px;
}

.case-detail-cols p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.case-services {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.case-services a {
  color: var(--purple);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}

.case-services a:hover {
  color: var(--teal-2);
  border-color: var(--teal);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  counter-reset: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: var(--line-strong);
}

.tl-phase {
  position: relative;
  padding-top: 60px;
}

.tl-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--paper-2);
}

.section:not(.section--tint) .tl-num {
  box-shadow: 0 0 0 8px var(--paper);
}

.tl-phase h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 4px;
}

.tl-period {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 16px;
}

.tl-phase ul li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

/* Principle / pillar cards */
.principle-cards,
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card,
.pillar-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.pillar-card {
  background: #fff;
}

.principle-card .adv-num,
.pillar-card .adv-num {
  display: block;
}

.principle-card h3,
.pillar-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 12px;
}

.principle-card p,
.pillar-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Facts */
.facts {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--purple);
}

.partner-note {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 28px 32px;
  border-left: 3px solid var(--teal);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.partner-note p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.partner-note strong {
  color: var(--purple);
}

/* Offices */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.office {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-w);
  background: rgba(255, 255, 255, 0.04);
}

.office h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.office-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 16px;
}

.office p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-w);
}

.office-grid--light .office {
  border-color: var(--line-strong);
  background: #fff;
}

.office-grid--light .office h3 {
  color: var(--purple);
}

.office-grid--light .office-sub {
  color: var(--teal-2);
}

.office-grid--light .office p {
  color: var(--muted);
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insights-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.insights-index .insights-grid--index {
  margin-top: 24px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -30px rgba(43, 14, 72, 0.35);
}

.insight-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--purple-deep);
  overflow: hidden;
}

.insight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.insight-card:hover .insight-media img {
  transform: scale(1.04);
}

.insight-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.insight-cat {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-2);
}

.insight-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--purple);
  text-wrap: pretty;
}

.insight-dek {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.insight-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.insight-card--featured .insight-media {
  aspect-ratio: auto;
  min-height: 360px;
}

.insight-card--featured .insight-body {
  padding: clamp(28px, 3.5vw, 48px);
  justify-content: center;
}

.insight-card--featured h3 {
  font-size: clamp(26px, 2.6vw, 36px);
}

.insight-card--featured .insight-dek {
  font-size: 17px;
  flex: 0;
}

/* Article */
.article-head {
  padding: calc(var(--header-h) + clamp(40px, 7vh, 80px)) 0 clamp(32px, 4vw, 48px);
}

.article-head .container {
  max-width: 900px;
}

.article-head .t-display {
  max-width: 20ch;
  margin: 16px 0 20px;
}

.article-dek {
  max-width: 680px;
}

.article-hero {
  position: relative;
  margin: 0 0 clamp(40px, 5vw, 72px);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--purple-deep);
}

.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.article-body {
  max-width: 720px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  margin-top: 44px;
}

.pullquote {
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--teal);
}

.pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--purple);
  margin: 0;
}

.article-byline {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px !important;
  color: var(--muted) !important;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.share h4,
.aside-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share a,
.share button {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}

.share a:hover,
.share button:hover {
  color: var(--teal-2);
  border-color: var(--teal);
}

.aside-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--paper-2);
}

.aside-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px 0 clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line-strong);
}

.article-nav-link {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--purple);
  line-height: 1.35;
  transition: color 0.2s;
}

.article-nav-link span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.article-nav-link--next {
  text-align: right;
}

.article-nav-link:hover {
  color: var(--teal-2);
}

/* CTA band */
.cta-band {
  background: var(--purple);
  color: #fff;
  padding: var(--sec-py) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  right: -20vw;
  top: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 184, 162, 0.28), transparent 65%);
  filter: blur(40px);
}

.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: center;
}

.cta-band .t-lead {
  margin-top: 20px;
  max-width: 520px;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-self: end;
}

.cta-band-mail {
  font-size: 16px;
  color: var(--muted-w);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-band-mail:hover {
  color: var(--teal-bright);
  border-color: var(--teal-bright);
}

/* Contact page */
.contact--page {
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 80px));
}

/* Legal + 404 */
.legal {
  padding: calc(var(--header-h) + 64px) 0 var(--sec-py);
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 16px;
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin: 40px 0 12px;
}

.legal p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}

.nf .nf-code {
  font-size: clamp(96px, 20vw, 220px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--purple);
}

.nf-code em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-2);
}

.nf-text {
  color: var(--muted);
  font-size: 18px;
  margin: 20px auto 32px;
  max-width: 420px;
}

/* Footer variants */
.footer-inner--4 {
  grid-template-columns: 1.6fr 1fr 0.9fr 1fr;
}

.footer-strap {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--teal-bright) !important;
  margin-top: 16px !important;
}

/* Compact steps on home */
.step--compact .step-quote {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  min-height: 0;
}

.insights-teaser {
  padding: var(--sec-py) 0;
}

/* Responsive for new components */
@media (max-width: 1024px) {
  .svc-cards,
  .insights-grid,
  .principle-cards,
  .pillar-cards,
  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .timeline::before {
    display: none;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner--4 {
    grid-template-columns: 1fr 1fr;
  }

  .svc-detail,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .svc-aside,
  .article-aside {
    position: static;
  }

  .case-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .page-hero--media .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    aspect-ratio: 16 / 9;
  }

  .insight-card--featured {
    grid-template-columns: 1fr;
  }

  .insight-card--featured .insight-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .cta-band-actions {
    justify-self: start;
  }

  .stat-band-inner,
  .case-detail-cols,
  .cases-grid--2,
  .insights-grid--2 {
    grid-template-columns: 1fr;
  }

  .svc-row-link {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 16px;
  }

  .svc-row-link .svc-icon {
    display: none;
  }
}

@media (max-width: 640px) {
  .svc-cards,
  .insights-grid,
  .principle-cards,
  .pillar-cards,
  .office-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner--4 {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-link--next {
    text-align: left;
  }
}

/* Header over a dark opening section */
.header-on-dark .site-header:not(.scrolled) .nav-desktop a { color: #fff; }
.header-on-dark .site-header:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
.header-on-dark .site-header:not(.scrolled) .menu-btn span { background: #fff; }
.header-on-dark .site-header:not(.scrolled) .header-cta { background: #fff; color: var(--purple); border-color: #fff; }

/* Page titles: brand purple, serif accent (fix for headings inheriting body colour) */
.t-display {
  font-weight: 600;
  color: var(--purple);
  text-wrap: balance;
}

.t-display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--teal-2);
  letter-spacing: -0.01em;
}

.t-display.t-title--light {
  color: #fff;
}

.t-display.t-title--light em {
  color: var(--teal-bright);
}

/* ============================================================
   WHITEPAPERS + GATED DOWNLOAD
   ============================================================ */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wp-grid--index {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.wp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.wp-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -30px rgba(43, 14, 72, 0.35);
}

.wp-cover {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--purple-deep);
  overflow: hidden;
}

.wp-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.wp-body h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--purple);
  text-wrap: balance;
}

.wp-body h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--teal-2);
}

.wp-audience {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.wp-dek {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
  text-wrap: pretty;
}

.wp-card--compact .wp-dek {
  display: none;
}

.wp-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.wp-meta {
  font-size: 12.5px;
  color: var(--muted);
}

/* Gate dialog */
.gate-dialog {
  width: min(640px, calc(100vw - 32px));
}

.gate-inner {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
}

.gate-inner .label {
  margin-bottom: 12px;
}

.gate-inner h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--purple);
  margin-bottom: 10px;
  padding-right: 48px;
}

.gate-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.gate-form .field label {
  color: var(--muted);
}

.gate-form .field input,
.gate-form .field select,
.gate-form .field textarea {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.gate-form .field input:focus {
  border-color: var(--teal);
  background: #fff;
}

.gate-form .field input[aria-invalid="true"] {
  border-color: #d64b4b;
}

.gate-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0 20px;
}

.gate-consent input {
  margin-top: 3px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.gate-consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-form .form-status {
  color: var(--teal-2);
}

.gate-form .form-status.error {
  color: #c43c3c;
}

.aside-card--wp {
  background: var(--purple);
  color: #fff;
}

.aside-card--wp h4 {
  color: var(--teal-bright);
}

.aside-wp-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff !important;
  margin-bottom: 8px !important;
}

.aside-wp-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-bright);
}

.aside-card--wp p {
  color: var(--muted-w);
}

.aside-card--wp .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--purple);
}

@media (max-width: 1024px) {
  .wp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wp-grid,
  .wp-grid--index {
    grid-template-columns: 1fr;
  }
}

.insights-wps {
  scroll-margin-top: var(--header-h);
}

/* ============================================================
   INSIGHTS LIBRARY: toolbar, rail, progress
   ============================================================ */
.ins-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ins-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}

.ins-types {
  display: flex;
  gap: 4px;
}

.ins-types button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.ins-types button::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.ins-types button:hover,
.ins-types button[aria-pressed="true"] {
  color: var(--purple);
}

.ins-types button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.ins-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ins-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.ins-select select {
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  padding: 0 36px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  cursor: pointer;
  transition: border-color 0.2s;
}

.ins-select select:focus {
  outline: none;
  border-color: var(--teal);
}

.ins-select svg {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.ins-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  width: 220px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  background: #fff;
  transition: border-color 0.2s, width 0.3s var(--ease-out);
}

.ins-search:focus-within {
  border-color: var(--teal);
  width: 280px;
}

.ins-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.ins-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.ins-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 calc(var(--gutter) + 12px) 12px;
  font-size: 13px;
  color: var(--muted);
}

.ins-summary [data-ins-count] {
  font-weight: 700;
  color: var(--purple);
  margin-right: 5px;
}

.ins-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-2);
  border-bottom: 1px solid var(--teal);
  padding: 0;
}

.ins-section[hidden],
[data-ins-item][hidden] {
  display: none !important;
}

.ins-empty {
  padding: 48px 0 var(--sec-py);
  font-size: 18px;
  color: var(--muted);
  text-align: center;
}

.ins-empty .link-arrow {
  background: none;
  cursor: pointer;
  font-size: 16px;
}

/* Whitepaper rail */
.wp-rail-wrap {
  position: relative;
}

.wp-rail {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wp-rail::-webkit-scrollbar {
  display: none;
}

.wp-rail:focus-visible {
  outline: none;
}

.wp-slide {
  flex: 0 0 min(760px, 82vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.wp-slide:hover {
  border-color: var(--teal);
  box-shadow: 0 30px 60px -36px rgba(43, 14, 72, 0.4);
}

.wp-slide-cover {
  margin: 0;
  position: relative;
  background: var(--purple-deep);
  min-height: 280px;
}

.wp-slide-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.wp-slide:hover .wp-slide-cover img {
  transform: scale(1.03);
}

.wp-slide-body {
  padding: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-slide-body h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--purple);
}

.wp-slide-body h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--teal-2);
}

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(43, 14, 72, 0.35);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.rail-btn:hover {
  background: var(--purple);
  color: #fff;
}

.rail-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.rail-btn--prev {
  left: max(12px, calc((100vw - var(--max-w)) / 2 - 8px));
}

.rail-btn--next {
  right: max(12px, calc((100vw - var(--max-w)) / 2 - 8px));
}

.rail-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.rail-dots button {
  width: 28px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.3s var(--ease-out);
}

.rail-dots button[aria-current="true"] {
  background: var(--teal);
  width: 44px;
}

/* Reading progress on articles */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 950;
  background: transparent;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.1s linear;
}

@media (max-width: 1024px) {
  .ins-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .ins-controls {
    width: 100%;
  }

  .ins-search,
  .ins-search:focus-within {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 900px) {
  .wp-slide {
    grid-template-columns: 1fr;
    flex-basis: min(520px, 86vw);
  }

  .wp-slide-cover {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .rail-btn {
    display: none;
  }
}

/* ============================================================
   HERO SKY: slow day-to-night cycle (colour overlays over the sky)
   ============================================================ */
.hero-media::before,
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

/* dawn: warm rose-gold light from the top */
.hero-media::before {
  background: linear-gradient(180deg, rgba(255, 150, 95, 0.75) 0%, rgba(255, 190, 140, 0.45) 30%, rgba(255, 210, 170, 0.15) 52%, transparent 68%);
  animation: skyDawn 36s ease-in-out infinite;
}

/* day: pale blue-teal light */
.hero-media::after {
  background: linear-gradient(180deg, rgba(140, 200, 235, 0.8) 0%, rgba(150, 215, 230, 0.55) 35%, rgba(170, 225, 225, 0.2) 55%, transparent 70%);
  animation: skyDay 36s ease-in-out infinite;
}

.hero-media img {
  animation: skyNight 36s ease-in-out infinite;
}

@keyframes skyDawn {
  0%, 8% { opacity: 0; }
  20% { opacity: 1; }
  32% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes skyDay {
  0%, 24% { opacity: 0; }
  38% { opacity: 1; }
  52% { opacity: 1; }
  64% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes skyNight {
  0% { filter: brightness(0.62) saturate(0.85) hue-rotate(-8deg); }
  14% { filter: brightness(1.02) saturate(1.05) hue-rotate(4deg); }
  45% { filter: brightness(1.08) saturate(0.95) hue-rotate(0deg); }
  66% { filter: brightness(1) saturate(1) hue-rotate(0deg); }
  84% { filter: brightness(0.68) saturate(0.85) hue-rotate(-8deg); }
  100% { filter: brightness(0.62) saturate(0.85) hue-rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::before,
  .hero-media::after,
  .hero-media img {
    animation: none;
  }
}

.section-more--row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.link-arrow--light {
  color: #fff;
}

.link-arrow--light:hover {
  color: var(--teal-bright);
}

/* The hidden attribute must always win over component display rules */
[hidden] {
  display: none !important;
}

/* Insights toolbar: let controls shrink on small screens */
.ins-controls,
.ins-select,
.ins-search {
  min-width: 0;
}

.ins-select select {
  max-width: 100%;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .ins-select {
    flex: 0 1 46%;
  }

  .ins-select select {
    width: 100%;
  }

  .ins-search,
  .ins-search:focus-within {
    flex: 1 1 0;
    width: auto;
  }

  .ins-types {
    margin-left: -12px;
  }

  .ins-summary {
    padding-inline: var(--gutter);
  }
}
