/* =========================================================
   MN Studio — Product Design Boutique
   Base styles
   ========================================================= */

/* Makira for headlines and navigation; Inter stays for sub-headings, body and UI text.
   Talesha (the previous display face) is still in assets/fonts but not loaded;
   commit a52a21a is the site as it was. */
@font-face { font-family: "Makira"; src: url("../assets/fonts/makira-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Makira"; src: url("../assets/fonts/makira-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Makira"; src: url("../assets/fonts/makira-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Makira"; src: url("../assets/fonts/makira-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --ink-soft: #52525b;
  --cream: #fafafa;
  --cream-2: #f1f1f1;
  --paper: #ffffff;
  --accent: #d62828;
  --accent-dark: #a91d1d;
  --accent-soft: #f6c1c1;
  --line: rgba(10, 10, 10, 0.12);
  --dark: #0a0a0a;
  --dark-2: #1a1a1a;

  /* Inter for body/UI; Makira (--font-serif, name kept) for headlines, display numbers and the nav */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Makira", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-nav: var(--font-serif);

  --wrap: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.025em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary: dark pill with a red arrow circle, matching the nav CTAs */
.btn-primary {
  gap: 12px;
  padding: 6px 26px 6px 6px;
  background: #1f1f1f;
  color: #fff;
}
.btn-primary::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .3s var(--ease);
}
.btn-primary:hover { background: #000; }
.btn-primary:hover::before { transform: translateX(3px); }
.btn-primary.btn-large { padding: 8px 32px 8px 8px; }
.btn-primary.btn-large::before { width: 44px; height: 44px; background-size: 20px; }
.btn-primary.btn-full { justify-content: center; }

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-full { width: 100%; }

/* Header / navigation lives in css/nav.css */

/* Logo (used in footer; header logo is styled in nav.css) */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: max(640px, calc(100vh - 40px));
  padding: calc(100px + clamp(40px, 9vh, 88px)) 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(246,193,193,0) 70%);
  opacity: .5;
  filter: blur(10px);
  pointer-events: none;
}
/* Mintlify-style line strands (drawn in js/main.js), behind the content */
.hero-strands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(38px, min(5.4vw, 8vh), 68px);
  max-width: 18ch;
  margin-bottom: 0;
}
.hero-title em { color: var(--accent); font-style: italic; }
/* Rotating headline ending: phrases stack in one grid cell so the height never jumps */
.hero-rotator { display: grid; }
.hero-rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.35em);
  filter: blur(4px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.hero-rotator > span.is-on { opacity: 1; transform: none; filter: none; transition-delay: .28s; }
.hero-rotator > span.is-leaving { opacity: 0; transform: translateY(-.35em); filter: blur(4px); transition-duration: .35s; }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  margin-top: 20px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  background: var(--paper);
}
.marquee-caption {
  margin: 0 0 22px;
  padding: 0 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.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;
  align-items: flex-start;
  gap: 72px;
  padding-right: 72px;
  animation: scroll-left 40s linear infinite;
}
.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 150px;
  text-align: center;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 14px;
}
.client-logo img { opacity: .82; transition: opacity .2s ease; }
.client:hover .client-logo img { opacity: 1; }
.client-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.client-desc {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  opacity: .8;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Section head
   ========================================================= */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head.light .eyebrow { color: var(--accent-soft); }
.section-head.light h2 { color: var(--paper); }

/* =========================================================
   Audience
   ========================================================= */
.audience { padding: 120px 0 0; }
.eyebrow-muted { color: var(--ink-soft); font-weight: 500; }
.audience-head { margin-bottom: 64px; }
.audience-head h2 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.audience-head .accent { color: var(--accent); }
.audience-sub { font-size: clamp(17px, 1.6vw, 20px); margin: 0; }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.audience-card {
  --tone: var(--accent);
  --tone-tint: #fdecec;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}
.audience-investors { --tone: var(--ink); --tone-tint: #ececec; }

.audience-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tone);
}
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tone-tint);
  color: var(--tone);
  flex-shrink: 0;
}
.audience-card h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--tone);
  margin-bottom: 22px;
}
.audience-card > p:not(.audience-tag) { font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
/* Buttons reuse .btn-primary (hero style); pin them to the card bottom */
.audience-btn { margin-top: auto; }

/* =========================================================
   Featured case studies (expanding panels)
   ========================================================= */
.cases { padding: 120px 0 0; }
.cases-head { margin-bottom: 48px; }
.cases-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.cases-head .accent { color: var(--accent); }
.cases-sub { margin: 0; font-size: 16px; }
.cases-sub a { font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.cases-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cs-rail {
  display: flex;
  gap: 10px;
  height: 540px;
}
.cs-panel {
  --cs-red: #ff5c5c;
  position: relative;
  flex: 0 0 64px;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--cs-bg, #111);
  transition: flex-grow .7s var(--ease);
}
.cs-panel.is-active { flex-grow: 1; }

.cs-reunion { --cs-bg: radial-gradient(120% 90% at 85% 35%, rgba(214,40,40,.42), transparent 55%), #0e0e0e; }
.cs-surreal { --cs-bg: linear-gradient(160deg, #c52222 0%, #5e0c0c 100%); }
.cs-flowmo { --cs-bg: radial-gradient(110% 90% at 75% 25%, #3b3b3b, #111 70%); }
.cs-space { --cs-bg: radial-gradient(90% 80% at 15% 90%, rgba(214,40,40,.5), transparent 55%), #161616; }
.cs-iseechange { --cs-bg: linear-gradient(200deg, #2c2c2c 0%, #0a0a0a 75%); }

/* Collapsed strip: the whole strip is the button */
.cs-tab {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color .25s ease;
}
.cs-tab:hover { background: rgba(255,255,255,.07); }
.cs-tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 16px; }
.cs-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-panel.is-active .cs-tab { visibility: hidden; }

/* Expanded body */
.cs-body {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.cs-body:focus { outline: none; }
.cs-body:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 16px; }
.cs-panel.is-active .cs-body {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease .3s, visibility 0s;
}

.cs-mark {
  position: absolute;
  top: 44%;
  right: -3%;
  transform: translateY(-50%);
  font-size: clamp(120px, 15vw, 230px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.04) 85%);
  -webkit-background-clip: text;
          background-clip: text;
  filter: blur(1.5px);
  pointer-events: none;
  user-select: none;
}

.cs-chip {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.cs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cs-red); }

.cs-content {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 48px;
  max-width: 640px;
}
.cs-content h3 {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}
.cs-content h3 em { font-style: normal; color: var(--cs-red); }
.cs-surreal .cs-content h3 em { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cs-desc { max-width: 56ch; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.74); margin-bottom: 28px; }

.cs-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 30px;
}
.cs-stats div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); min-width: 0; }
.cs-stats div:first-child { padding-left: 0; border-left: 0; }
.cs-stats dt { font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.cs-stats dd {
  margin: 8px 0 0;
  max-width: 26ch;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cs-red);
}
.cs-surreal .cs-stats dd { color: rgba(255,255,255,.85); }

/* Testimonial under the rail; swaps with the active case study */
.cs-quote { margin: 40px 0 0; max-width: 820px; transition: opacity .3s ease; }
.cs-quote.is-swapping { opacity: 0; }
.cs-quote blockquote { margin: 0 0 12px; }
.cs-quote blockquote p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.cs-quote blockquote p::before { content: "“"; }
.cs-quote blockquote p::after { content: "”"; }
.cs-quote figcaption { display: flex; align-items: center; gap: 14px; }
.cs-quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cs-quote-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cs-quote-role { display: block; font-size: 13.5px; color: var(--ink-soft); }

/* Light CTA on dark panels, same shape as the hero button */
.cs-cta { background: #fff; color: var(--ink); }
.cs-cta:hover { background: #f1f1f1; }
.cs-soon { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px dashed rgba(255,255,255,.4); border-radius: 999px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); cursor: default; }
.cs-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cs-cta-alt { display: inline-block; margin: 14px 0 0 18px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cs-cta-alt:hover { text-decoration-thickness: 2px; }

.cs-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--cs-red);
}
.cs-surreal .cs-progress { background: #fff; }

/* =========================================================
   What we do (Assess / Design / Embed)
   ========================================================= */
.wwd { padding: 120px 0 0; }
.wwd-head { max-width: 760px; margin-bottom: 56px; }
.wwd-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.wwd-head .accent { color: var(--accent); }
.wwd-head p:not(.eyebrow) { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; margin: 0; }

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.25);
  overflow: hidden;
}
.wwd-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 34px 38px;
}
.wwd-card + .wwd-card { border-left: 1px solid var(--line); }
.wwd-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 36px;
}
.wwd-icon { color: var(--accent); display: inline-flex; }
.wwd-count { font-size: 12px; letter-spacing: .12em; color: #6b6b6b; }
.wwd-count b { color: var(--ink-soft); font-weight: 600; }
.wwd-card h3 {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.wwd-tag {
  width: 100%;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
}
.wwd-meta { margin-bottom: 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.wwd-body { font-size: 15px; line-height: 1.65; margin-bottom: 32px; }
.wwd-cta { margin-top: auto; }

/* =========================================================
   Results
   ========================================================= */
.results { padding: 0 0 120px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 36px;
  background: var(--paper);
  transition: background-color .25s ease;
}
.result-card:hover { background: var(--cream); }
.result-client {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.result-value {
  margin: 0 0 12px;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.result-value-text { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; }
.result-desc { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* =========================================================
   Toolkit (hub-and-spoke integrations map)
   ========================================================= */
.toolkit {
  padding: 110px 0 120px;
  margin-top: 120px;
  background: radial-gradient(60% 50% at 50% 55%, rgba(214,40,40,.14), transparent 70%), #0d0d0f;
  color: #fff;
}
.toolkit-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.toolkit-eyebrow { color: rgba(255,255,255,.55); }
.toolkit-head h2 { font-size: clamp(32px, 4.6vw, 52px); color: #fff; margin-bottom: 16px; }
.toolkit-head .accent { color: #ff5c5c; }
.toolkit-head p:not(.eyebrow) { color: rgba(255,255,255,.62); font-size: 17px; line-height: 1.6; margin: 0; }

.toolkit-map { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 1000 / 600; }
.toolkit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl-line { fill: none; stroke: rgba(214,40,40,.32); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tl-pulse {
  fill: none;
  stroke: #ff5c5c;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 60 1000;
  stroke-dashoffset: 60;
  filter: drop-shadow(0 0 4px rgba(255,92,92,.9));
  animation: tl-flow 2.8s cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes tl-flow {
  0% { stroke-dashoffset: 60; opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: -420; opacity: 0; }
}
.toolkit-hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(145deg, #e03434, #7a0f0f);
  box-shadow: 0 0 0 8px rgba(214,40,40,.08), 0 0 60px rgba(214,40,40,.55);
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
  animation: hub-pulse 2.8s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(214,40,40,.08), 0 0 50px rgba(214,40,40,.45); }
  50% { box-shadow: 0 0 0 14px rgba(214,40,40,.05), 0 0 80px rgba(214,40,40,.7); }
}
.toolkit-tools { position: absolute; inset: 0; }
.tool {
  position: absolute;
  left: var(--x);
  width: 108px;
  margin-left: -54px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tool-top { top: 0; }
.tool-bot { bottom: 0; flex-direction: column-reverse; }
.tool-chip {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: #1c1216;
  transition: transform .25s var(--ease), border-color .25s ease;
}
.tool:hover .tool-chip { transform: translateY(-3px); border-color: rgba(255,92,92,.6); }
.tool-top .tool-chip { margin-bottom: 10px; }
.tool-bot .tool-chip { margin-top: 10px; }
.tool-name { font-size: 12.5px; white-space: nowrap; font-weight: 500; color: rgba(255,255,255,.88); }
.tool-cat { font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 3px; }
.tool-top .tool-name { order: 2; } .tool-top .tool-cat { order: 3; }
.tool-bot .tool-name { order: 2; } .tool-bot .tool-cat { order: 1; margin: 0 0 3px; }

.toolkit-note {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.toolkit-note strong { color: #fff; font-weight: 600; }
.toolkit-note-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: 1px;
}

/* Tablet: nine tools per row leaves ~80-110px each, so drop the category line and let names wrap */
@media (max-width: 1080px) and (min-width: 721px) {
  .tool { width: 84px; margin-left: -42px; }
  .tool-name { font-size: 11.5px; white-space: normal; line-height: 1.25; }
  .tool-cat { display: none; }
}

@media (max-width: 720px) {
  .toolkit { padding: 80px 0; margin-top: 80px; }
  .toolkit-map { aspect-ratio: 1000 / 700; }
  .tool { width: 34px; margin-left: -17px; }
  .tool-chip { width: 30px; height: 30px; border-radius: 8px; }
  .tool-chip svg { width: 15px; height: 15px; }
  .tool-name, .tool-cat { display: none; }
  .toolkit-hub { width: 64px; height: 64px; font-size: 17px; border-radius: 16px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 120px 0; }
.faq-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.faq-head { position: sticky; top: 130px; }
.faq-head h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.faq-head .accent { color: var(--accent); }
.faq-head p:not(.eyebrow) { font-size: 16px; margin-bottom: 28px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
  transition: transform .3s var(--ease), background-color .25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 56px 26px 0; }
.faq-answer p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.faq-answer a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Ready to start (pre-footer CTA)
   ========================================================= */
.start { padding: 120px 0; border-top: 1px solid var(--line); }
.start-inner { max-width: 700px; }
.start h2 {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.start .accent { color: var(--accent); }
.start-lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; margin-bottom: 36px; }
.start-note { margin: 24px 0 10px; font-size: 14px; color: var(--ink-soft); }
.start-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.start-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.start-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: start-pulse 2s ease-out infinite;
}
@keyframes start-pulse {
  from { transform: scale(1); opacity: .6; }
  to { transform: scale(2.6); opacity: 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: rgba(255,255,255,.72);
  background:
    /* star field: three layers of tiny points at different densities */
    radial-gradient(circle, rgba(255,255,255,.55) .8px, transparent 1.3px) 13px 21px / 173px 151px,
    radial-gradient(circle, rgba(255,255,255,.35) .7px, transparent 1.2px) 71px 87px / 109px 127px,
    radial-gradient(circle, rgba(255,255,255,.22) .6px, transparent 1.1px) 37px 5px / 97px 83px,
    radial-gradient(circle, rgba(255,255,255,.3) .7px, transparent 1.2px) 151px 49px / 239px 211px,
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  padding: 88px 0 0;
}
.site-footer > .wrap { position: relative; z-index: 2; }

/* Mirrored line strands (drawn in js/main.js) behind the footer content */
.footer-strands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.footer-top { padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo {
  display: inline-block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 22px;
}
.footer-tagline { max-width: 60ch; margin: 0; font-size: 16px; color: rgba(255,255,255,.72); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 52px 0 170px; /* room for the strands to sweep below the links */
}
.footer-title {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff5c5c;
}
.footer-title-sub { margin-top: 36px; }
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,.82); transition: color .2s ease; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }
.footer-social { display: inline-flex; align-items: center; gap: 10px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; color: inherit; }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-soft);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .cs-panel, .cs-body, .cs-panel.is-active .cs-body { transition: none; }
  .start-dot::after { animation: none; }
  .tl-pulse { display: none; }
  .toolkit-hub { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; padding-bottom: 220px; }
  .cs-rail { height: 600px; }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-card + .wwd-card { border-left: 0; border-top: 1px solid var(--line); }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-panel { flex-basis: 52px; }
  .cs-content { left: 32px; right: 32px; bottom: 36px; }
  .cs-stats { gap: 20px; }
  .cs-stats div { padding-left: 20px; }
}

/* Phones: stack panels vertically, accordion style */
@media (max-width: 860px) {
  .cs-rail { flex-direction: column; height: auto; gap: 8px; }
  .cs-panel, .cs-panel.is-active { flex: none; transition: none; }
  .cs-panel { height: 60px; }
  .cs-panel.is-active { height: auto; }
  .cs-tab { align-items: center; justify-content: flex-start; padding: 0 22px; }
  .cs-tab-label { writing-mode: horizontal-tb; transform: none; }
  .cs-panel.is-active .cs-tab { display: none; }
  .cs-body { display: none; }
  .cs-panel.is-active .cs-body { display: block; position: relative; padding: 76px 22px 30px; transition: none; }
  .cs-chip { top: 20px; left: 22px; right: auto; }
  .cs-mark { top: 40%; right: -10%; font-size: 140px; }
  .cs-content { position: relative; left: auto; right: auto; bottom: auto; }
  .cs-stats { flex-wrap: wrap; row-gap: 18px; }
  .cs-stats div { padding-left: 0; border-left: 0; flex: 1 1 40%; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .hero { min-height: 0; padding: 150px 0 200px; }
  .hero-cta { gap: 10px; margin-top: 24px; }
  .results { padding: 0 0 80px; }
  .audience { padding: 80px 0 0; }
  .cases { padding: 80px 0 0; }
  .audience-grid { grid-template-columns: 1fr; gap: 56px; }
  .audience-head { margin-bottom: 44px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { padding: 26px 22px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 48px; }
  .footer-bottom { padding: 28px 0 32px; }
  .faq { padding: 80px 0; }
  .start { padding: 80px 0; }
  .wwd { padding: 80px 0 0; }
  .wwd-card { padding: 28px 22px 30px; }
  .faq-answer { padding-right: 0; }
  .faq-item summary { font-size: 16.5px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* =========================================================
   About page
   ========================================================= */
.ab-hero { padding: calc(100px + clamp(56px, 10vh, 110px)) 0 96px; border-bottom: 1px solid var(--line); }
.ab-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; max-width: 16ch; margin-bottom: 24px; }
.ab-lede { max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; margin: 0; }
.about-page .accent { color: var(--accent); }

.ab-section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.ab-alt { background: var(--paper); }
.ab-section h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 48px; }
.ab-narrow { max-width: 860px; }
.ab-narrow h2 { margin-bottom: 32px; }
.ab-narrow > p:not(.eyebrow) { font-size: 17px; line-height: 1.75; margin-bottom: 20px; }
.ab-narrow strong { color: var(--ink); }
.ab-placeholder { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--cream); font-style: italic; }

.people { display: flex; flex-direction: column; gap: 56px; max-width: 880px; }
.person { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: start; }
.person-photo {
  width: 150px; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #1a1a1a, #3a1010);
  color: rgba(255,255,255,.85); font-size: 34px; font-weight: 600; letter-spacing: .02em;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.person-role { margin: 4px 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.person h3 { display: flex; align-items: center; gap: 10px; font-size: 28px; margin-bottom: 14px; }
.person-li { display: inline-flex; color: var(--ink-soft); transition: color .2s ease; }
.person-li:hover { color: var(--accent); }
.person-body > p:not(.person-role) { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.person-more { font-size: 14.5px; font-weight: 600; color: var(--accent-dark); }
.person-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.principle { padding-left: 22px; border-left: 1px solid var(--line); }
.principle-num { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent-dark); }
.principle h3 { font-size: 24px; margin-bottom: 12px; }
.principle p:last-child { font-size: 15px; line-height: 1.65; margin: 0; }

@media (max-width: 1024px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .ab-hero { padding: 140px 0 64px; }
  .ab-section { padding: 72px 0; }
  .person { grid-template-columns: 1fr; gap: 18px; }
  .person-photo { width: 120px; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   Case study page
   ========================================================= */
.csp-hero { padding: calc(100px + clamp(40px, 8vh, 90px)) 0 0; }
.csp-hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; max-width: 20ch; margin-bottom: 22px; }
.csp-back { display: inline-flex; gap: 8px; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.csp-back:hover { color: var(--accent); }
.csp-meta { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 12px 48px; margin: 36px 0 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.csp-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.csp-meta dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.csp-hero-shot { margin: 0 0 -1px; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px -40px rgba(0,0,0,.35); }
.csp-hero-shot img { display: block; width: 100%; height: auto; }
.csp-intro { max-width: 60ch; font-size: 17px; line-height: 1.7; margin: -24px 0 40px; }
.csp-problem { max-width: 70ch; margin: -16px 0 32px; }
.csp-problem p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.csp-problem strong, .csp-principles strong { color: var(--ink); }
.csp-principles { max-width: 70ch; margin-bottom: 40px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--cream); border-radius: 0 12px 12px 0; }
.csp-principles-label { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.csp-principles ul { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--ink-soft); }
.csp-principles li::before { content: "→ "; color: var(--accent); }
.csp-intro { margin-top: 0 !important; }
.csp-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.csp-goal { padding: 28px 26px 30px; background: var(--paper); }
.csp-goal-num { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent-dark); }
.csp-goal h3 { font-size: 23px; margin-bottom: 10px; }
.csp-goal p { font-size: 15px; line-height: 1.6; margin: 0; }

/* Interactive walkthrough: step list + screen */
.walkthrough { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.wt-steps { display: flex; flex-direction: column; gap: 8px; }
.wt-step {
  display: flex; gap: 16px; width: 100%; padding: 18px 18px 18px 16px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-left: 3px solid var(--line); border-radius: 0 12px 12px 0;
  transition: background-color .2s ease, border-color .2s ease;
}
.wt-step:hover { background: rgba(10,10,10,.03); }
.wt-step.is-on { background: var(--paper); border-color: var(--line); border-left-color: var(--accent); box-shadow: 0 10px 30px -20px rgba(0,0,0,.3); }
.wt-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wt-num { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-soft); padding-top: 3px; }
.wt-step.is-on .wt-num { color: var(--accent); }
.wt-text strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.wt-text span { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.wt-stage { display: grid; border-radius: 14px; overflow: hidden; }
.wt-stage img { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; transition: opacity .4s ease; }
.wt-stage img.is-on { opacity: 1; }

.csp-decisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; max-width: 1000px; }
.csp-decision { padding-left: 22px; border-left: 2px solid var(--accent); }
.csp-decision h3 { font-size: 26px; margin-bottom: 10px; }
.csp-decision p { font-size: 16px; line-height: 1.65; margin: 0; }
/* FlowMo-style additions */
.csp-links { display: flex; flex-wrap: wrap; gap: 12px; margin: -20px 0 48px; }
.csp-results { padding: 64px 0; border-bottom: 1px solid var(--line); }
.csp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; }
.csp-stats > div { padding-left: 22px; border-left: 2px solid var(--accent); }
.csp-stats dt { font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink); margin-bottom: 10px; }
.csp-stats dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 24ch; }
.csp-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 56px; padding: 0; list-style: none; counter-reset: tl; }
.csp-timeline li { position: relative; padding: 18px 18px 20px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; }
.csp-tl-stage { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.csp-timeline strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.csp-scope { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.csp-scope ul { columns: 2; column-gap: 32px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.csp-scope li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.csp-scope .csp-features { columns: 1; }
.csp-features li { font-size: 17px; font-weight: 600; color: var(--ink); }
.csp-features span { display: inline-block; width: 44px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.csp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.csp-split .csp-problem { margin: 0; }
.csp-figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -45px rgba(0,0,0,.35); }
.csp-figure img { display: block; width: 100%; height: auto; }
.csp-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.csp-stack li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); }
.wt-stage-fit { position: relative; display: block; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line); }
.wt-stage-fit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1025px) { .wt-stage-fit { position: sticky; top: 120px; } }
.csp-quote { margin-top: 8px; }
.csp-hero-crop { aspect-ratio: 16 / 8; }
.csp-hero-crop img { height: 100%; object-fit: cover; object-position: top center; }
.csp-goals-5 { grid-template-columns: repeat(5, 1fr); }
.csp-goals-5 .csp-goal { padding: 26px 22px 28px; }
.csp-goals-5 .csp-goal h3 { font-size: 21px; }
.wt-stage-square { aspect-ratio: 1 / 1; }
.csp-scope-note { font-size: 15.5px; line-height: 1.6; margin: 0 0 16px; }
.csp-next { padding: 110px 0; text-align: center; }
.csp-next h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 8px; }
.csp-next .hero-cta { justify-content: center; }

@media (max-width: 1024px) {
  .csp-goals { grid-template-columns: repeat(2, 1fr); }
  .walkthrough { grid-template-columns: 1fr; gap: 20px; }
  .wt-steps { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .wt-steps li { flex: 0 0 min(280px, 78%); scroll-snap-align: start; }
  .wt-step { height: 100%; }
  .csp-timeline { grid-template-columns: repeat(3, 1fr); }
  .csp-goals-5 { grid-template-columns: repeat(2, 1fr); }
  .wt-stage-square { aspect-ratio: 4 / 3; }
  .csp-split, .csp-scope { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .csp-meta { grid-template-columns: repeat(2, auto); }
  .csp-stats { grid-template-columns: 1fr; gap: 24px; }
  .csp-timeline { grid-template-columns: 1fr 1fr; }
  .csp-scope ul { columns: 1; }
  .csp-goals-5 { grid-template-columns: 1fr; }
  .csp-hero-crop { aspect-ratio: 4 / 3; }
  .csp-goals { grid-template-columns: 1fr; }
  .csp-decisions { grid-template-columns: 1fr; gap: 32px; }
  .csp-next { padding: 72px 0; }
}

/* =========================================================
   Display type: Makira for headlines and big numbers
   ========================================================= */
.hero-title,
.audience-head h2, .cases-head h2, .wwd-head h2, .faq-head h2, .start h2, .section-head h2,
.toolkit-head h2, .audience-card h3, .cs-content h3, .wwd-card h3,
.ab-hero h1, .ab-section h2, .person h3, .principle h3,
.csp-hero h1, .csp-goal h3, .csp-decision h3, .csp-next h2,
.result-value, .cs-stats dt, .csp-stats dt {
  font-family: var(--font-serif);
  font-weight: 500;
  font-synthesis: none;      /* Makira has no italics; emphasis stays upright, in colour */
  letter-spacing: -0.02em;
}
.hero-title { line-height: 1.04; }
.result-value-text { letter-spacing: -0.01em; }
/* Small uppercase labels that happen to be headings stay in Inter */
.footer-title { font-family: var(--font-sans); }

/* M&N wordmark in Makira everywhere it appears */
.nav-logo, .footer-logo, .toolkit-hub {
  font-family: var(--font-serif);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: -0.02em;
}
.nav-logo { font-size: 32px; }
.footer-logo { font-size: 42px; }
.toolkit-hub { font-size: 28px; }
@media (max-width: 720px) { .toolkit-hub { font-size: 21px; } }

/* =========================================================
   Service pages
   ========================================================= */
.svc-hero { padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.svc-hero h1 { max-width: 18ch; }
.svc-hero-cta { margin-top: 36px; }
.svc-steps-4 { grid-template-columns: repeat(4, 1fr); }
.svc-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-case { display: flex; flex-direction: column; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.svc-case:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 50px -36px rgba(0,0,0,.4); }
.svc-case-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.svc-case-name { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.svc-case-stat { margin: 26px 0 8px; font-family: var(--font-serif); font-size: clamp(36px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.01em; color: var(--accent); }
.svc-case-desc { flex: 1; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.svc-case-cta { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink); }
.svc-case:hover .svc-case-cta { color: var(--accent); }
.svc-engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-engage-item { padding: 30px 28px; background: #fff; }
.svc-engage-item h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; margin-bottom: 10px; }
.svc-engage-item p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.svc-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.svc-faq h2 { margin-bottom: 0; }
.svc-related-section { padding: 72px 0; }
.svc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-related a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 56px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s ease; }
.svc-related a:hover { border-color: var(--ink); }
.svc-rel-group { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.svc-rel-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.svc-rel-arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; transition: transform .2s ease; }
.svc-related a:hover .svc-rel-arrow { transform: translate(4px, -50%); }
.svc-page .ab-narrow a strong { color: var(--accent-dark); }
.svc-page .ab-narrow p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-dark); }
@media (max-width: 1024px) {
  .svc-cases, .svc-related { grid-template-columns: 1fr 1fr; }
  .svc-steps-4 { grid-template-columns: 1fr 1fr; }
  .svc-faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .svc-cases, .svc-related, .svc-engage { grid-template-columns: 1fr; }
  .svc-hero { padding-bottom: 64px; }
}

/* Case study: deal card, video link */
.csp-deal { max-width: 900px; padding: 36px 40px 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: 0 30px 70px -50px rgba(0,0,0,.35); }
.csp-deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.csp-deal-tags { display: flex; gap: 8px; margin: 0 0 16px; }
.csp-deal-tag { padding: 5px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.csp-deal-tag-alt { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.csp-deal h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; max-width: 16ch; margin-bottom: 10px; }
.csp-deal-sub { margin: 0; font-size: 16px; color: var(--ink-soft); max-width: 36ch; }
.csp-deal-value { margin: 0; font-family: var(--font-serif); font-size: clamp(56px, 8vw, 104px); line-height: 1; letter-spacing: -0.01em; color: var(--accent); white-space: nowrap; }
.csp-deal-rows { margin: 0; }
.csp-deal-rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.csp-deal-rows > div:last-child { border-bottom: 0; }
.csp-deal-rows dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.csp-deal-rows dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.csp-stats-after { margin-top: 56px; }
.csp-timeline-after { margin: 56px 0 0; }
.csp-video { position: relative; display: block; max-width: 1040px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0a; }
.csp-video img { display: block; width: 100%; height: auto; opacity: .55; transition: opacity .3s ease, transform .5s ease; }
.csp-video:hover img { opacity: .4; transform: scale(1.015); }
.csp-video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 10px rgba(214,40,40,.25); transition: transform .2s ease; }
.csp-video:hover .csp-video-play { transform: scale(1.08); }
.csp-video:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.csp-video-label { position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: 15px; font-weight: 600; }
@media (max-width: 720px) {
  .csp-deal { padding: 26px 20px 18px; }
  .csp-deal-head { flex-direction: column; gap: 16px; }
  .csp-deal-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .csp-video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* Case study: tinted stage for small widget screens, and view galleries */
.wt-stage-tint { background: linear-gradient(160deg, #eef0ff, #f7f7fb); }
.wt-stage-tint img { padding: 18px 0; filter: drop-shadow(0 18px 30px rgba(20,20,60,.18)); }
.csp-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.csp-views-2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
.csp-view { margin: 0; }
.csp-view-img { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.csp-view-img img { width: 100%; height: 100%; object-fit: contain; }
.csp-view-img-tint { background: linear-gradient(160deg, #eef0ff, #f7f7fb); padding: 20px; }
.csp-views-2 .csp-view-img { aspect-ratio: 4 / 3; }
.csp-view-img-tint img { filter: drop-shadow(0 16px 28px rgba(20,20,60,.18)); }
.csp-view figcaption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.csp-view figcaption strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }
@media (max-width: 860px) { .csp-views, .csp-views-2 { grid-template-columns: 1fr; } }
.csp-view-img { position: relative; }
.csp-view-img-tint img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; }

/* Screen frame: every product screen sits in the same dark bezel as the
   phone mockups, sized to the screenshot itself so there's no letterboxing. */
:root { --bezel: 8px; }
.wt-stage:not(.wt-stage-tint), .csp-view-img.is-screen { overflow: visible; }
.wt-stage-fit:not(.wt-stage-tint), .csp-view-img.is-screen { background: none; border: 0; border-radius: 0; }
.wt-stage:not(.wt-stage-tint) img, .csp-view-img.is-screen img, .csp-figure.is-screen img {
  background: #fff; border: var(--bezel) solid #111; border-radius: 16px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.45);
}
.wt-stage:not(.wt-stage-fit):not(.wt-stage-tint) img { box-sizing: border-box; }
.wt-stage-fit:not(.wt-stage-tint) img, .csp-view-img.is-screen img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; object-fit: fill;
  max-width: calc(100% - 2 * var(--bezel)); max-height: calc(100% - 2 * var(--bezel));
}
.csp-figure.is-screen { overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; }
.csp-figure.is-screen img { box-sizing: border-box; }
@media (max-width: 720px) {
  :root { --bezel: 5px; }
  .wt-stage:not(.wt-stage-tint) img, .csp-view-img.is-screen img, .csp-figure.is-screen img { border-radius: 12px; }
}

/* Mobile screens in phone frames (shared by case studies) */
.csp-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.csp-phone { margin: 0; min-width: 0; }
.csp-phone-frame { overflow: hidden; aspect-ratio: 9 / 18.5; border: 8px solid #111; border-radius: 30px; background: #fff; box-shadow: 0 24px 50px -30px rgba(0,0,0,.45); }
.csp-phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.csp-phone figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.csp-phone figcaption strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }

@media (max-width: 1100px) { .csp-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .csp-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .csp-phone-frame { border-width: 6px; border-radius: 24px; }
}
.csp-phones-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1100px) { .csp-phones-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .csp-phones-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= CASE STUDIES LANDER ================= */
.csx-hero { padding: calc(100px + clamp(40px, 8vh, 90px)) 0 clamp(40px, 6vw, 64px); }
.csx-hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; max-width: 18ch; margin-bottom: 22px; }
.csx-list { padding: 0 0 clamp(80px, 10vw, 128px); }
.csx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.csx-card { min-width: 0; }
.csx-card > a, .csx-soon { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.csx-card > a:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); border-color: rgba(10,10,10,.2); }
.csx-card > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.csx-shot { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.csx-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.csx-card > a:hover .csx-shot img { transform: scale(1.03); }
.csx-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.csx-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.csx-body h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; }
.csx-desc { margin: 0; font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.csx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.csx-stats div { min-width: 0; }
.csx-stats dt { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.csx-stats dd { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.csx-more { margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.csx-card > a:hover .csx-more { color: var(--accent-dark); }
.csx-soon { background: var(--cream-2); border-style: dashed; justify-content: center; min-height: 220px; }
.csx-soon h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
  .csx-grid { grid-template-columns: 1fr; gap: 20px; }
  .csx-body { padding: 20px 20px 22px; }
}

/* ================= TESTIMONIALS ================= */
.voices { padding: 0 0 120px; }
.voices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.voice-card { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 36px 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.voice-card blockquote { margin: 0; }
.voice-card blockquote p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.voice-card blockquote p::before { content: "“"; }
.voice-card blockquote p::after { content: "”"; }
.voice-card figcaption { display: flex; align-items: center; gap: 14px; }
.voice-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--cream-2); }
.voice-card strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.voice-card figcaption span span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 860px) {
  .voices { padding-bottom: 88px; }
  .voices-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .voice-card { padding: 26px 24px; gap: 24px; }
  .voice-card blockquote p { font-size: 16px; }
}

/* ================= SERVICE DEMO VIDEO ================= */
.svc-video { position: relative; margin: 36px 0 0; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 18px; overflow: hidden; background: #f4f4f2; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(0,0,0,.45); }
.svc-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-video-toggle { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border: 0; border-radius: 999px; background: rgba(10,10,10,.78); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.svc-video-toggle:hover { background: var(--ink); }
.svc-video-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc-video-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.svc-video.is-paused .svc-video-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.svc-demo-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; counter-reset: none; }
.svc-demo-steps li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.svc-demo-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.svc-demo-steps strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.svc-demo-steps li > span:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 860px) { .svc-demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .svc-video { border-radius: 12px; }
  .svc-video-toggle { right: 10px; bottom: 10px; padding: 7px 11px 7px 10px; font-size: 12px; }
  .svc-demo-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ================= ANNOUNCEMENTS ================= */
.news-hero { padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.news-hero h1 { max-width: 18ch; }
.news-hero .ab-lede a, .news-page .ab-narrow p a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.news-points { list-style: none; margin: 8px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.news-points li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-points strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.news-points span { flex-shrink: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 560px) { .news-points li { flex-direction: column; gap: 4px; } }

/* Team: generic illustrations instead of photos */
.person-art { color: rgba(255,255,255,.88); }
.person-art svg { width: 46%; height: 46%; }
.section-head .section-lede { margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; max-width: 58ch; }
.section-head .section-lede strong { color: var(--ink); }
