/* ============ Wov3 — base styles ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* Default (Onyx) palette */
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --fg: #ffffff;
  --fg-mute: rgba(255,255,255,0.62);
  --fg-dim: rgba(255,255,255,0.42);
  --accent: #4f7ffa;        /* the blue from the reference */
  --accent-hover: #6b93ff;
  --border: rgba(255,255,255,0.08);
  --card: #0e0e0e;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* Light palette */
body[data-palette="bone"] {
  --bg: #f4f1ec;
  --bg-elev: #ffffff;
  --fg: #0c0c0c;
  --fg-mute: rgba(12,12,12,0.65);
  --fg-dim: rgba(12,12,12,0.45);
  --accent: #3a719f;
  --accent-hover: #2d5d87;
  --border: rgba(0,0,0,0.08);
  --card: #ffffff;
}

/* Cobalt palette */
body[data-palette="cobalt"] {
  --bg: #050a1f;
  --bg-elev: #0a132f;
  --fg: #ffffff;
  --fg-mute: rgba(255,255,255,0.65);
  --fg-dim: rgba(255,255,255,0.4);
  --accent: #ffd64e;
  --accent-hover: #ffe27a;
  --border: rgba(255,255,255,0.1);
  --card: #0c1734;
}

/* Sand palette */
body[data-palette="sand"] {
  --bg: #1a1612;
  --bg-elev: #221c16;
  --fg: #f3ead9;
  --fg-mute: rgba(243,234,217,0.62);
  --fg-dim: rgba(243,234,217,0.42);
  --accent: #f5a524;
  --accent-hover: #ffb946;
  --border: rgba(243,234,217,0.1);
  --card: #1f1914;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

button { font-family: inherit; }

/* ===================== Layout ===================== */
.shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===================== Top Nav ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  padding: 6px 4px;
  min-height: 44px;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 14px;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 19px;
}
.brand-name sup {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 600;
  margin-left: 2px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  background: none; border: 0; color: var(--fg-mute);
  font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 10px 16px; border-radius: 10px;
  cursor: pointer; transition: color .2s, background .2s;
  letter-spacing: -0.01em;
}
.nav-link:hover { color: var(--fg); background: var(--border); }
.nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::after {
  content: ""; display: block; height: 2px;
  background: var(--accent); margin-top: 4px;
  border-radius: 2px;
}

.nav-cta {
  background: var(--fg); color: var(--bg);
  border: 0; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform .2s, opacity .2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

.nav-burger { display: none; background: none; border: 0; color: var(--fg); padding: 12px; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

@media (max-width: 840px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-inner { height: 64px; }
}

/* ===================== Hero ===================== */
.hero {
  padding: clamp(60px, 9vw, 140px) 0 clamp(80px, 11vw, 160px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}

.hero-title {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-family: "Instrument Serif", "Source Serif Pro", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 460px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

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

.btn-primary, .btn-ghost {
  border: 0; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  transition: transform .2s, background .2s, color .2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.hero-meta.hero-meta-centered {
  display: flex;
  justify-content: center;
  gap: clamp(48px, 8vw, 120px);
  text-align: center;
}
.hero-meta.hero-meta-centered .hero-meta-item { max-width: 280px; }
.hero-meta-item .num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-meta-item .num em {
  font-style: normal;
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.hero-meta-item .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.4;
}

/* Hero floating image */
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #04060b;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: right center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.hero-media:hover img { transform: scale(1.04); }

.hero-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 12px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.hero-tag .txt { font-size: 13px; font-weight: 500; }
.hero-tag .sub { font-size: 11px; color: var(--fg-mute); }

/* ===================== Section ===================== */
.section { padding: clamp(60px, 10vw, 140px) 0; }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.section-kicker {
  color: var(--fg-mute);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.5;
  margin: 0;
}

/* ===================== Collection (product grid) ===================== */
.collection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .collection { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .collection { grid-template-columns: 1fr; } }

body[data-layout="magazine"] .collection {
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: minmax(0, auto);
}
body[data-layout="magazine"] .collection .product:nth-child(1) { grid-row: span 2; }
body[data-layout="magazine"] .collection .product:nth-child(1) .product-media { aspect-ratio: 4/5.4; }
body[data-layout="magazine"] .collection .product:nth-child(4) { grid-column: 2 / 4; }
body[data-layout="magazine"] .collection .product:nth-child(4) .product-media { aspect-ratio: 21/9; }
@media (max-width: 1100px) {
  body[data-layout="magazine"] .collection { grid-template-columns: repeat(2, 1fr); }
  body[data-layout="magazine"] .collection .product:nth-child(1) { grid-row: auto; }
  body[data-layout="magazine"] .collection .product:nth-child(4) { grid-column: auto; }
  body[data-layout="magazine"] .collection .product:nth-child(1) .product-media,
  body[data-layout="magazine"] .collection .product:nth-child(4) .product-media { aspect-ratio: 1; }
}

body[data-layout="compact"] .collection { gap: 12px; }
body[data-layout="compact"] .product-media { aspect-ratio: 1.1/1; border-radius: var(--radius-sm); }
body[data-layout="compact"] .product-info { padding-top: 12px; }

.product {
  display: flex; flex-direction: column;
  cursor: pointer;
}
.product-media {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  position: relative;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.product:hover .product-media img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.product-info {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 22px;
  padding-top: 18px;
  align-items: start;
}
.product-sku {
  font-size: 14px; font-weight: 500;
  color: var(--fg-mute); line-height: 1.35;
  text-wrap: balance;
}
.product-name {
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  text-wrap: balance;
  display: flex; align-items: center; gap: 6px;
}
.product-name::after {
  content: "→"; opacity: 0; transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
}
.product:hover .product-name::after { opacity: 1; transform: translateX(0); }

/* ===================== Feature rows ===================== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 56px;
  margin-top: 100px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; gap: 48px; } }

body[data-layout="magazine"] .features {
  grid-template-columns: 1fr;
  gap: 80px;
}
body[data-layout="magazine"] .feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
}
body[data-layout="magazine"] .feature:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}
body[data-layout="magazine"] .feature:nth-child(even) .feature-media { order: 2; }
body[data-layout="magazine"] .feature-media { aspect-ratio: 5/4; }
@media (max-width: 900px) {
  body[data-layout="magazine"] .feature,
  body[data-layout="magazine"] .feature:nth-child(even) { grid-template-columns: 1fr; }
  body[data-layout="magazine"] .feature:nth-child(even) .feature-media { order: 0; }
}

.feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; gap: 18px; } }

.feature-media {
  aspect-ratio: 1.1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s ease;
}
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-title {
  font-size: clamp(20px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.feature-lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.3;
  color: var(--accent);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.feature-body {
  color: var(--fg-mute);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  text-wrap: pretty;
}

/* ===================== CTA banner ===================== */
.cta-banner {
  position: relative;
  margin: clamp(60px, 10vw, 120px) 0 0;
  padding: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 65%, #000 30%) 100%);
  color: white;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative; display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 700;
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}
.cta-banner h2 em {
  font-style: normal;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.cta-banner p {
  color: rgba(255,255,255,0.85); max-width: 440px;
  font-size: 16px; line-height: 1.5; margin: 18px 0 0;
}
.cta-banner .btn-primary {
  background: var(--fg); color: var(--bg);
}
.cta-banner .btn-primary:hover { background: white; color: black; }

/* ===================== Footer ===================== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(80px, 10vw, 140px);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h4 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--fg-mute);
  margin: 0 0 18px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col button.link {
  background: none; border: 0; color: var(--fg); font: inherit; cursor: pointer;
  padding: 0; text-align: left; font-size: 15px; letter-spacing: -0.01em;
}
.footer-col button.link:hover { color: var(--accent); }
.footer-bio { color: var(--fg-mute); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 16px 0 0; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--fg-mute); gap: 24px; flex-wrap: wrap;
}

/* ===================== Scroll reveals ===================== */
/* Default is visible so the page can NEVER be blank if JS fails to add classes.
   JS adds `.pre` to elements that start below the fold at mount; IO removes
   `.pre` (revealing + animating) when they intersect. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.pre {
  opacity: 0;
  transform: translateY(28px);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ===================== Product page ===================== */
.page-head {
  /* Keep the .container gutter intact on left/right — only set vertical padding. */
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-head-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 24px;
}
.page-head-title {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.94;
  margin: 0 0 24px; text-wrap: balance;
}
.page-head-title em {
  font-style: normal; color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.page-head-sub {
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55;
  color: var(--fg-mute); max-width: 620px; margin: 0;
  text-wrap: pretty;
}

/* Detail product cards */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
}
.product-detail:nth-child(even) .product-detail-media { order: 2; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail:nth-child(even) .product-detail-media { order: 0; }
}
.product-detail-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Custom insole image has text callouts baked in — show full image, not cropped */
.product-detail-media:has(img[alt*="Custom 3D Insoles"]) {
  background: #ffffff;
}
.product-detail-media:has(img[alt*="Custom 3D Insoles"]) img {
  object-fit: contain;
  padding: 32px;
  transform: scale(1.2);
  transform-origin: center;
}
/* Universal Collection product photo treatment — visual consistency across
   three photos that have different native aspect ratios and studio backdrops:
   - Each product sits inside an identical soft-tint tile (no boxy contrast)
   - Image is constrained to the SAME max-height so all three render the same
     visual size regardless of native aspect ratio
   - No blend mode (it produced different results per background) */
.product-detail:not(:has(img[alt*="Custom 3D Insoles"])) .product-detail-media {
  /* Soft white → blue gradient, matching the WV-3 photo backdrop so all 3 products
     sit on the same visual atmosphere. No frame, no border, no boxy tile. */
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 35%, #d6dee9 100%);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(32px, 4vw, 64px);
}
.product-detail:not(:has(img[alt*="Custom 3D Insoles"])) .product-detail-media img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 62%;              /* uniform vertical cap — size normalizer */
  object-fit: contain;
  transform: none;
  /* Multiply blend = each photo's own baked-in background dissolves into the
     shared gradient. White-bg photos blend with the white top; the gradient WV-3
     photo already matches, so it stays seamless.
     NOTE: filter: drop-shadow breaks mix-blend-mode (stacking-context issue), so
     no drop-shadow here. */
  mix-blend-mode: multiply;
}

/* Technology / What you'll receive */
.ortho-receive-section { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.ortho-receive-grid {
  margin-top: clamp(28px, 4vw, 56px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.ortho-receive-grid .product-gallery {
  height: 100%;
}

/* ─── Product gallery / carousel ─── */
.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
}
.product-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-gallery-track::-webkit-scrollbar { display: none; }
.product-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  display: block;
}
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  font-size: 22px;
  line-height: 1;
  color: var(--fg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.product-gallery-arrow-prev { left: 12px; }
.product-gallery-arrow-next { right: 12px; }
.product-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.product-gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(12,12,12,0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ===================== Unified blue tint on photography =====================
   Applies a bottom-anchored translucent accent gradient to every media frame
   so all images share a common color signature (à la MSBC). */
.product-media,
.feature-media,
.hero-media,
.tech-hero-media,
.product-detail-media {
  position: relative;
}
.product-media::after,
.feature-media::after,
.hero-media::after,
.tech-hero-media::after,
.product-detail-media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 45%,
    color-mix(in oklab, var(--accent) 20%, transparent) 75%,
    color-mix(in oklab, var(--accent) 55%, transparent) 100%
  );
  mix-blend-mode: multiply;
  z-index: 1;
}
/* Sit any overlays (badges, tags) above the tint */
.product-badge,
.hero-tag {
  z-index: 2;
}
/* Custom insole has white bg + product callouts — skip the tint there */
.product-detail-media:has(img[alt*="Custom 3D Insoles"])::after {
  display: none;
}
.product-detail-sku {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 16px;
}
.product-detail-title {
  font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; font-weight: 700;
  margin: 0 0 24px; line-height: 0.95;
}
.product-detail-title em {
  font-style: normal; color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.product-detail-kicker {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--accent);
  margin: -8px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-detail-body { color: var(--fg-mute); font-size: 16px; line-height: 1.6; margin: 0 0 32px; max-width: 460px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { font-weight: 600; }
.spec-list span { color: var(--fg-mute); }

/* ===================== Sports page ===================== */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .disciplines { grid-template-columns: 1fr; } }

.discipline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s, border-color .3s, background .3s;
}
.discipline:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.discipline-tag {
  display: inline-flex; align-self: start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 10px; border: 1px solid var(--accent);
  border-radius: 999px;
}
.discipline-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 4px 0 0;
}
.discipline-body {
  color: var(--fg-mute); line-height: 1.6; font-size: 15px;
  margin: 0; text-wrap: pretty;
}
.discipline-stat {
  margin-top: 12px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px;
  align-items: center;
}
.discipline-stat .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px; font-weight: 400;
  color: var(--accent);
  line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
}
.discipline-stat .lbl {
  font-size: 13px; color: var(--fg-mute); line-height: 1.45;
  text-wrap: balance;
}

/* ===================== Technology page ===================== */
.tech-hero-media {
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--card);
}
.tech-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: clamp(60px, 8vw, 120px) 0;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s, border-color .3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--accent); }
.process-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}
.process-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.process-body { font-size: 14px; color: var(--fg-mute); line-height: 1.55; margin: 0; }

/* ===================== Contact page ===================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  /* Use top/bottom only — .container gutter handles left/right */
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-block h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-mute); margin: 0 0 10px; font-weight: 600;
}
.contact-block p { margin: 0; font-size: 17px; line-height: 1.5; }
.contact-block a { color: var(--fg); text-decoration: none; }
.contact-block a:hover { color: var(--accent); }
.contact-block-cta {
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}
.contact-block-cta h4 { color: var(--accent); }
.contact-block-cta p { font-size: 15px; color: var(--fg-mute); margin: 0 0 16px; }
.contact-calendly-btn { padding: 10px 18px; font-size: 14px; }

.contact-block-partner {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  position: relative;
}
.contact-block-partner::before {
  content: "NEW";
  position: absolute;
  top: -10px; left: 20px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.contact-block-partner h4 { color: var(--fg); }
.contact-block-partner p {
  font-size: 14px; line-height: 1.55;
  color: var(--fg-mute); margin: 8px 0 0;
}
.contact-block-partner b { color: var(--accent); font-weight: 600; }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-mute); font-weight: 600;
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #f87171; font-size: 13px; min-height: 18px; }
.form-success {
  padding: 32px; border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 15%, var(--card));
  border: 1px solid var(--accent);
  display: flex; flex-direction: column; gap: 8px; align-items: start;
}
.form-success h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.form-success p { margin: 0; color: var(--fg-mute); font-size: 15px; }

/* ===================== Page transition ===================== */
.page-enter {
  animation: pageIn .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============== Mobile menu ============== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 32px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.mobile-menu nav { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav button {
  background: none; border: 0; color: var(--fg); text-align: left;
  font: inherit; font-size: 28px; font-weight: 600; letter-spacing: -0.025em;
  padding: 16px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}

/* ===================== Home — Sports bridge =====================
   A trimmed editorial hero on the Home page that links into the Sports story. */
.home-sports-bridge {
  position: relative;
  width: calc(100% + var(--gutter) * 2);
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  height: clamp(520px, 70vh, 720px);
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 140px);
  margin-bottom: clamp(60px, 8vw, 100px);
  cursor: pointer;
}
/* When the bridge sits at the top of <main> (outside .container), reset bleed + spacing. */
main > .home-sports-bridge:first-child {
  width: 100%;
  margin: 0;
  height: clamp(560px, 80vh, 820px);
}
.home-sports-bridge-media { position: absolute; inset: 0; }
.home-sports-bridge-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.home-sports-bridge:hover .home-sports-bridge-media img { transform: scale(1.04); }
.home-sports-bridge-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, transparent 60%, color-mix(in oklab, var(--accent) 35%, transparent) 100%);
}
.home-sports-bridge-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
}
.home-sports-bridge-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.home-sports-bridge-edition {
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: 18px;
  letter-spacing: 0.04em; text-transform: none;
}
.home-sports-bridge-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.4); }
.home-sports-bridge-title {
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.home-sports-bridge-title em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #fff;
}
.home-sports-bridge-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.home-sports-bridge-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
  transition: gap .2s;
}
.home-sports-bridge:hover .home-sports-bridge-cta { gap: 18px; }
@media (max-width: 640px) {
  .home-sports-bridge { height: 70vh; min-height: 480px; }
}

/* ===================== Athlete testimonials ===================== */
.athletes-section { padding: clamp(80px, 10vw, 140px) 0; }
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { .athletes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .athletes-grid { grid-template-columns: 1fr; } }

.athlete-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.athlete-card-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.athlete-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) saturate(0.92);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.athlete-card:hover .athlete-card-media img { transform: scale(1.05); }
.athlete-card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 55%,
    color-mix(in oklab, var(--accent) 25%, transparent) 100%);
  mix-blend-mode: multiply;
}
.athlete-card-id {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  color: #fff;
}
.athlete-card-name {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.athlete-card-team {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.athlete-card-body {
  padding: 24px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.athlete-card-quote-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px; line-height: 0.6;
  color: var(--accent);
}
.athlete-card-quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
  font-style: italic;
}

/* ===================== Partners strip ===================== */
.partners-section {
  /* Preserve .container left/right gutter */
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-mute);
  text-align: center; margin-bottom: 28px;
}
.partners-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  flex-shrink: 0;
  padding-right: clamp(48px, 8vw, 120px);
  animation: partners-scroll 28s linear infinite;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.partners-row:hover .partners-track { animation-play-state: paused; }
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin: 0;
}
.partners-row img {
  height: clamp(72px, 9vw, 110px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.4);
  transition: opacity .25s, filter .25s;
  flex-shrink: 0;
}
body[data-palette="bone"] .partners-row img { filter: grayscale(1) brightness(0.9); }
.partner-item:hover img { opacity: 1; filter: grayscale(0); }
.partner-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
  transition: color .25s ease;
}
.partner-item:hover .partner-name { color: var(--fg); }

/* ===================== Sports — Editorial layout =====================
   Nike-Women's inspired: full-bleed athlete photography, oversized headlines,
   numbered chapters, generous negative space, cinematic grading. */
/* ===================== Hero — full-bleed variant ===================== */
.hero--full {
  position: relative;
  width: 100%;
  min-height: clamp(680px, 96vh, 960px);
  overflow: hidden;
  padding: 0;
}
.hero--full .hero-bg {
  position: absolute; inset: 0;
}
.hero--full .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: right center;
  filter: contrast(1.05) saturate(0.95);
}
.hero--full .hero-bg-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 75%, transparent) 40%, transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 60%, color-mix(in oklab, var(--bg) 85%, transparent) 100%);
}
.hero--full .hero-overlay {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(680px, 96vh, 960px);
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(80px, 10vw, 120px);
}
.hero--full .hero-title {
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero--full .hero-sub {
  max-width: 480px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.4);
}
.hero--full .hero-meta {
  margin-top: 56px;
}
.hero--full .hero-tag {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 3;
}
@media (max-width: 900px) {
  .hero--full .hero-bg-grade {
    background:
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 35%, transparent) 0%, color-mix(in oklab, var(--bg) 80%, transparent) 100%);
  }
  .hero--full .hero-bg img { object-position: 70% center; }
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  position: sticky; top: 96px;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) saturate(0.95);
}
.about-portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 55%,
    color-mix(in oklab, var(--accent) 25%, transparent) 100%);
  mix-blend-mode: multiply;
}
.about-portrait-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
}
.about-portrait-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
}
.about-portrait-tag .txt { font-size: 12px; font-weight: 600; color: var(--fg); }
.about-portrait-tag .sub { font-size: 11px; color: var(--fg-mute); margin-top: 2px; }
@media (max-width: 900px) { .about-portrait { position: relative; top: 0; } }

.about-story-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.about-story-name {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
  text-wrap: balance;
}
.about-story-name em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.about-story-lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--fg);
  margin: 0 0 48px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  max-width: 32ch;
  text-wrap: balance;
}
.about-chapter {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.about-chapter:last-of-type { border-bottom: 1px solid var(--border); }
.about-chapter-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.about-chapter-num::after {
  content: ""; width: 48px; height: 1px;
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}
.about-chapter p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-mute);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.about-story-cta {
  display: flex; gap: 14px; margin-top: 36px;
  flex-wrap: wrap;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .about-pillars-grid { grid-template-columns: 1fr; } }
.about-pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, border-color .3s;
  display: flex; flex-direction: column; gap: 14px;
}
.about-pillar:hover { transform: translateY(-4px); border-color: var(--accent); }
.about-pillar-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.about-pillar-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.about-pillar-body {
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ===================== About — Team grid ===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Compact 4-up team grid */
.team-grid-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
@media (max-width: 760px) {
  .team-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .team-grid-compact { grid-template-columns: 1fr; }
}
.team-card-compact {
  gap: 10px;
}
.team-card-compact .team-name {
  font-size: 17px;
  margin-top: 4px;
}
.team-card-compact .team-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-top: -4px;
}
.team-card-compact .team-bio-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-mute);
  margin-top: 4px;
}
.team-read-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 6px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.team-read-more:hover { color: var(--accent-hover); }
.team-read-more span {
  transition: transform 0.2s ease;
  display: inline-block;
}
.team-read-more:hover span { transform: translateX(3px); }

/* Team member detail page */
.team-member-head .page-head-title em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.team-member-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.team-member-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
  margin-bottom: clamp(64px, 8vw, 120px);
}
@media (max-width: 880px) {
  .team-member-body { grid-template-columns: 1fr; }
}
.team-member-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e2d6;
  position: relative;
}
.team-member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.team-member-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-member-para {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  text-wrap: pretty;
}
.team-member-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent);
  margin: 12px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.team-member-back { margin-top: 28px; }
.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  /* Unified neutral backdrop so each subject sits inside the same frame, regardless of their photo's original background */
  background: #e8e2d6;
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  /* Slight unifying grade: keeps tones in the same family across the four portraits */
  filter: saturate(0.92) contrast(1.02);
}
/* Subtle warm wash over each portrait to align the four into one visual family */
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244,241,236,0) 60%, rgba(244,241,236,0.18) 100%);
  pointer-events: none;
}
.team-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 8px;
}
.team-role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -8px;
}
.team-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.team-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--accent);
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sports-editorial { --chapter-gap: clamp(80px, 12vw, 160px); }

/* Hero — full bleed */
.sports-hero {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 88vh, 880px);
  overflow: hidden;
  margin-top: -1px;
  background: #0a0a0a;
  display: flex;
  align-items: stretch;
}
.sports-hero-media {
  position: absolute;
  inset: 0;
  /* Image is full-bleed background; subject framed to the right via object-position */
  width: 100%;
  overflow: hidden;
}
.sports-hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Keep Bree visually on the right side of the frame */
  object-position: 72% center;
  filter: contrast(1.03) saturate(0.95);
}
.sports-hero-grade {
  position: absolute; inset: 0;
  /* Dark grade to match the 03/Field section — black fade on the LEFT, soft vignette overall */
  background:
    linear-gradient(90deg,
      rgba(8,8,10,0.96) 0%,
      rgba(8,8,10,0.92) 24%,
      rgba(8,8,10,0.78) 38%,
      rgba(8,8,10,0.45) 52%,
      rgba(8,8,10,0.18) 66%,
      rgba(8,8,10,0.05) 80%),
    linear-gradient(180deg,
      rgba(0,0,0,0.45) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0,0,0,0.55) 100%);
}
.sports-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 7vw, 100px);
  padding-top: clamp(120px, 14vw, 180px);
  padding-right: max(45%, 0px); /* reserve right side for the subject */
}
@media (max-width: 880px) {
  .sports-hero-media img { object-position: 65% center; }
  .sports-hero-grade {
    background:
      linear-gradient(180deg,
        color-mix(in oklab, var(--bg) 60%, transparent) 0%,
        transparent 35%,
        transparent 60%,
        var(--bg) 100%);
  }
  .sports-hero-overlay {
    padding-right: var(--gutter);
    padding-top: clamp(60px, 12vw, 100px);
  }
}
.sports-hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.sports-hero-edition {
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.sports-hero-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.32); }
.sports-hero-eyebrow { color: rgba(255,255,255,0.78); }
.sports-hero-title {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
  color: #ffffff;
  text-wrap: balance;
  max-width: 14ch;
}
.sports-hero-title em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #9ec5e8;
  letter-spacing: -0.02em;
}
.sports-hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.sports-hero-cta {
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sports-hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sports-hero-meta {
  display: flex; gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px; max-width: 560px;
}
.sports-hero-meta div {
  display: flex; flex-direction: column; gap: 4px;
}
.sports-hero-meta b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sports-hero-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.62);
}

/* Manifesto — centered editorial intro */
.sports-manifesto {
  /* Preserve .container left/right gutter */
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
}
.sports-manifesto-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px;
}
.sports-manifesto-eyebrow::before,
.sports-manifesto-eyebrow::after {
  content: ""; display: inline-block; width: 36px; height: 1px;
  background: var(--accent); vertical-align: middle; margin: 0 16px;
  opacity: 0.5;
}
.sports-manifesto-body {
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--fg);
  max-width: 880px;
  margin: 0 auto;
  text-wrap: balance;
}
.sports-manifesto-body em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}

/* Chapter — split layout, alternating */
.sports-chapter {
  padding: clamp(60px, 8vw, 120px) 0;
}
.sports-chapter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.sports-chapter--reverse .sports-chapter-grid {
  grid-template-columns: 1fr 1.1fr;
}
.sports-chapter--reverse .sports-chapter-media { order: 2; }
@media (max-width: 900px) {
  .sports-chapter-grid,
  .sports-chapter--reverse .sports-chapter-grid {
    grid-template-columns: 1fr;
  }
  .sports-chapter--reverse .sports-chapter-media { order: 0; }
}
.sports-chapter-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.sports-chapter-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) saturate(0.92);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.sports-chapter-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    color-mix(in oklab, var(--accent) 25%, transparent) 100%
  );
  mix-blend-mode: multiply;
}
.sports-chapter:hover .sports-chapter-media img { transform: scale(1.03); }
.sports-chapter-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.sports-chapter-num::after {
  content: ""; width: 60px; height: 1px;
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}
.sports-chapter-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.sports-chapter-title em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.sports-chapter-body {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0 0 28px;
  max-width: 520px;
  text-wrap: pretty;
}
.sports-chapter-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 520px;
}
.sports-chapter-points li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
  color: var(--fg);
}
.sports-chapter-points li::before {
  content: ""; position: absolute;
  left: 0; top: 0.7em; width: 12px; height: 1px;
  background: var(--accent);
}
.sports-chapter-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sports-chapter-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Quote — full-bleed portrait with overlaid pull quote */
.sports-quote {
  position: relative;
  margin: clamp(60px, 8vw, 120px) 0;
  height: clamp(560px, 80vh, 780px);
  overflow: hidden;
}
.sports-quote-media {
  position: absolute; inset: 0;
}
.sports-quote-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) saturate(0.88);
}
.sports-quote-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.sports-quote-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1280px;
}
.sports-quote-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.sports-quote-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  color: #fff;
  margin: 0 0 28px;
  max-width: 18ch;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
.sports-quote-text em {
  font-style: italic;
  color: var(--accent);
}
.sports-quote-attrib {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* Section number tag for editorial sections */
.sports-section-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px; color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 12px;
}
.sports-section-num::after {
  content: ""; width: 48px; height: 1px;
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}

@media (max-width: 640px) {
  .sports-hero { height: 80vh; min-height: 560px; }
  .sports-hero-meta { gap: 20px; flex-wrap: wrap; }
  .sports-quote-text { font-size: clamp(28px, 8vw, 40px); }
}

/* ===================== FAQ ===================== */
.faq-section { padding-top: clamp(40px, 6vw, 80px); }
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 4px;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  min-width: 36px;
}
.faq-q-text {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}
.faq-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-mute);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .2s, color .2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-a {
  padding: 0 4px 32px calc(36px + 28px);
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  text-wrap: pretty;
  animation: faqSlide .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .faq-q { gap: 16px; padding: 22px 2px; }
  .faq-num { font-size: 18px; min-width: 28px; }
  .faq-a { padding-left: calc(28px + 16px); padding-bottom: 24px; }
}


/* ===================== Orthotics page ===================== */
.ortho-head { padding-bottom: clamp(28px, 4vw, 56px); }
.ortho-head-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 40px;
}
.ortho-head-meta-item .num {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
}
.ortho-head-meta-item .num em {
  font-style: normal; color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.ortho-head-meta-item .lbl {
  margin-top: 8px;
  font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.16em;
}

.ortho-section-num {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  color: var(--accent); font-size: 14px; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.ortho-section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.035em; line-height: 1.02;
  font-weight: 700; margin: 0 0 16px; text-wrap: balance;
}
.ortho-section-title em {
  font-style: normal;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; color: var(--accent);
}
.ortho-section-kicker {
  color: var(--fg-mute); font-size: 15px; line-height: 1.55;
  max-width: 540px; margin: 0;
}

/* ---- Selector ---- */
.ortho-selector { padding-top: clamp(40px, 6vw, 80px); }
.ortho-selector-head { margin-bottom: 48px; max-width: 720px; }

.ortho-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ortho-grid-gap, /*EDITMODE-BEGIN*/clamp(28px, 4vw, 64px)/*EDITMODE-END*/);
  align-items: start;
}
@media (max-width: 880px) {
  .ortho-selector-grid { grid-template-columns: 1fr; }
}

.ortho-body {
  position: sticky; top: 90px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 24px 20px;
  color: var(--fg);
}
@media (max-width: 880px) {
  .ortho-body { position: static; }
}
.ortho-body-svg {
  width: 100%; height: auto; max-height: 720px; display: block;
}
.ortho-body-caption {
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.ortho-body-caption-divider {
  flex: 1; height: 1px; background: var(--border);
}

/* Hotspots */
.ortho-hotspot .ortho-hotspot-dot {
  fill: var(--bg-elev);
  stroke: var(--fg-mute);
  stroke-width: 1;
  transition: fill .25s, stroke .25s, r .25s;
}
.ortho-hotspot .ortho-hotspot-num {
  fill: var(--fg-mute);
  transition: fill .25s;
  font-family: var(--font);
  pointer-events: none;
}
.ortho-hotspot .ortho-hotspot-pulse {
  fill: var(--accent); opacity: 0;
  transition: opacity .25s, r .35s cubic-bezier(.2,.7,.2,1);
}
.ortho-hotspot:hover .ortho-hotspot-dot {
  fill: var(--fg); stroke: var(--fg);
}
.ortho-hotspot:hover .ortho-hotspot-num { fill: var(--bg); }
.ortho-hotspot.is-active .ortho-hotspot-pulse {
  opacity: 0.22;
  animation: orthoHotspotPulse 2s ease-out infinite;
}
.ortho-hotspot.is-active .ortho-hotspot-dot {
  fill: var(--accent); stroke: var(--accent);
}
.ortho-hotspot.is-active .ortho-hotspot-num { fill: white; }
@keyframes orthoHotspotPulse {
  0%   { r: 12; opacity: 0.32; }
  100% { r: 22; opacity: 0; }
}

/* Condition list */
.ortho-list {
  display: flex; flex-direction: column; gap: 6px;
}
.ortho-list-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.ortho-list-item:hover {
  background: var(--bg-elev);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
}
.ortho-list-item.is-active {
  background: var(--bg-elev);
  border-color: var(--accent);
}
.ortho-list-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
}
.ortho-list-text {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.ortho-list-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
}
.ortho-list-region {
  font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.ortho-list-arrow {
  color: var(--fg-mute);
  font-size: 16px;
  transition: transform .25s, color .25s;
}
.ortho-list-item:hover .ortho-list-arrow {
  color: var(--accent); transform: translateX(3px);
}
.ortho-list-item.is-active .ortho-list-arrow {
  color: var(--accent); transform: translateX(3px);
}

/* ---- Detail panel ---- */
.ortho-detail-wrap { padding-top: clamp(48px, 7vw, 100px); }
.ortho-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  animation: orthoDetailFade .45s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 880px) {
  .ortho-detail { grid-template-columns: 1fr; }
}
@keyframes orthoDetailFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.ortho-detail-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.ortho-detail-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ortho-detail-region {
  position: absolute; left: 18px; top: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ortho-detail-region .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.ortho-detail-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 14px;
}
.ortho-detail-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 16px; text-wrap: balance;
}
.ortho-detail-title em {
  font-style: normal; color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
}
.ortho-detail-lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4; color: var(--fg);
  margin: 0 0 28px; text-wrap: balance;
}

.ortho-detail-grid {
  display: grid; gap: 24px;
  margin-bottom: 32px;
}
.ortho-detail-block {
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ortho-detail-block.ortho-detail-block-help {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  background: color-mix(in oklab, var(--accent) 6%, var(--bg-elev));
}
.ortho-detail-block-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--fg-mute);
  margin-bottom: 12px;
}
.ortho-detail-block.ortho-detail-block-help .ortho-detail-block-label {
  color: var(--accent);
}
.ortho-detail-block p {
  margin: 0; line-height: 1.55; color: var(--fg);
  font-size: 15px;
}
.ortho-detail-block ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ortho-detail-block li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
  font-size: 15px;
}
.ortho-detail-block li::before {
  content: ""; position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--fg-mute);
}
.ortho-detail-block.ortho-detail-block-help li::before {
  background: var(--accent);
}

.ortho-detail-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Condition deep-dive */
.ortho-deepdive {
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--border);
}
.ortho-deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .ortho-deepdive-grid { grid-template-columns: 1fr; }
}
.ortho-deepdive-col .section-title {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
}
.ortho-deepdive-sub {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--accent);
  margin: 0 0 24px;
  line-height: 1.3;
}
.ortho-deepdive-body {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0 0 16px;
}
.ortho-deepdive-h3 {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.ortho-deepdive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ortho-deepdive-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-mute);
  border-bottom: 1px solid var(--border);
}
.ortho-deepdive-list li:last-child { border-bottom: none; }
.ortho-deepdive-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.ortho-deepdive-treatment {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
}

/* Why store-bought insoles fail */
.ortho-fail-section { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.ortho-fail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(28px, 4vw, 56px);
}
@media (max-width: 880px) {
  .ortho-fail-grid { grid-template-columns: 1fr; }
}
.ortho-fail-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ortho-fail-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
}
.ortho-fail-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.ortho-fail-title {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.ortho-fail-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
}

/* =====================================================================
   Blog
   ===================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding-bottom: clamp(60px, 9vw, 100px);
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.25;
  margin: 0 0 12px;
  color: var(--fg);
}

.blog-card-excerpt {
  font-size: 15px; line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.blog-card-author {
  font-size: 13px; font-weight: 600;
  color: var(--fg);
}

.blog-card-arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
}

/* Blog post detail */
.blog-post {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 9vw, 120px);
}

.blog-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 40px;
}
.blog-back:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
}

.blog-post-header {
  max-width: 760px;
  margin: 0 auto 48px;
}

.blog-post-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-mute);
  margin-bottom: 20px;
}

.blog-post-meta-divider {
  color: var(--border);
}

.blog-post-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}

.blog-post-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 48px 0 20px;
  line-height: 1.2;
}

.blog-post-content h2:first-child {
  margin-top: 0;
}

.blog-post-content p {
  margin: 0 0 20px;
}

.blog-post-lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 32px !important;
  font-style: italic;
}

.blog-post-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.blog-post-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.blog-post-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.blog-post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.blog-post-content a:hover {
  opacity: 0.75;
}

.blog-post-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ---- Process strip ---- */
.ortho-process-section { padding-top: clamp(60px, 9vw, 120px); }
.ortho-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (max-width: 880px) { .ortho-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ortho-process { grid-template-columns: 1fr; } }
.ortho-process-step {
  background: var(--bg-elev);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.ortho-process-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 28px; color: var(--accent); line-height: 1;
}
.ortho-process-title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.ortho-process-body {
  color: var(--fg-mute); font-size: 14.5px; line-height: 1.55; margin: 0;
}

/* ---- Quote ---- */
.ortho-quote-section { padding: clamp(60px, 9vw, 120px) 0 0; }
.ortho-quote {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 56px);
  text-align: center;
}
.ortho-quote blockquote {
  margin: 0; padding: 0;
  position: relative;
}
.ortho-quote-mark {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--accent);
  font-size: 96px; line-height: 0.7;
  display: block; margin-bottom: 8px;
}
.ortho-quote blockquote p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-style: italic;
  line-height: 1.32;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
.ortho-quote figcaption {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
}
.ortho-quote-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.ortho-quote-role {
  font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.16em;
}

/* ---- Orthotics FAQ ---- */
.ortho-faq-section { padding-top: clamp(60px, 9vw, 120px); }

/* ---- Final CTA banner overrides ---- */
.ortho-cta-banner { background: var(--accent); }
.ortho-cta-banner::before {
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.22), transparent 55%);
}
.ortho-cta-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.ortho-cta-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.ortho-cta-ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* Light palette (Bone) tweaks for cta accent contrast */
body[data-palette="bone"] .ortho-cta-banner {
  background: var(--accent);
  color: white;
}
body[data-palette="bone"] .ortho-cta-banner p { color: rgba(255,255,255,0.85); }

/* ─────────────────────────────────────────────────────────
   Lattice Lab — first-time educational reveal
   ───────────────────────────────────────────────────────── */
.lattice-lab-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lattice-lab-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
  background: var(--bg);
}
.lattice-lab-fab.is-hidden { display: none; }
.lattice-lab-fab-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: lab-pulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes lab-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 14px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.lattice-lab-fab-text {
  display: flex; flex-direction: column; line-height: 1.15;
  text-align: left;
}
.lattice-lab-fab-text em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
}
.lattice-lab-fab-text small {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
}
@media (max-width: 560px) {
  .lattice-lab-fab { bottom: 16px; right: 16px; padding: 10px 14px 10px 12px; }
  .lattice-lab-fab-text small { display: none; }
}

/* Modal overlay */
.lattice-lab-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--fg) 65%, rgba(0,0,0,0.8));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lab-fade .3s ease-out;
}
@keyframes lab-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lattice-lab-modal {
  width: min(900px, 100%);
  max-height: min(680px, 90vh);
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lab-rise .35s cubic-bezier(.2,.7,.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
@keyframes lab-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lattice-lab-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.lattice-lab-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--fg);
}
.lattice-lab-brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font);
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.lattice-lab-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lattice-lab-close:hover { background: var(--border); }

.lattice-lab-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lattice-lab-track::-webkit-scrollbar { display: none; }

.lattice-lab-panel {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 44px);
  align-items: center;
}
@media (max-width: 720px) {
  .lattice-lab-panel { grid-template-columns: 1fr; padding: 24px 20px; }
}

.lattice-lab-visual {
  background: color-mix(in oklab, var(--accent) 5%, var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 5 / 3;
  display: grid; place-items: center;
  color: var(--accent);
  padding: 18px;
}
.lab-viz {
  width: 100%; height: 100%;
  display: block;
}
.lab-viz-photo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f3f4f6;
}
.lab-viz-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom insole visual (Solution panel) */
.lab-viz-insole {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lab-viz-insole img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
}

/* Lattice Lab — Problem cards (numbered list inside a panel) */
.lattice-lab-cards {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lattice-lab-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.lattice-lab-card-num {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
  min-width: 22px;
}
.lattice-lab-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lattice-lab-card-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.lattice-lab-card-text span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-mute);
}
.lab-pressure-hot, .lab-pressure-warm {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: blur(6px);
}
.lab-pressure-hot {
  background: radial-gradient(closest-side, rgba(255,68,40,0.85), rgba(255,170,40,0.3) 60%, transparent 100%);
}
.lab-pressure-warm {
  background: radial-gradient(closest-side, rgba(255,170,40,0.7), transparent 75%);
}
.lab-pressure-heel { left: 11%; top: 60%; width: 16%; height: 22%; animation: lab-pulse-spot 2.6s ease-in-out infinite; }
.lab-pressure-ball { left: 16%; top: 14%; width: 12%; height: 16%; animation: lab-pulse-spot 2.6s 0.3s ease-in-out infinite; }
.lab-pressure-arch { left: 13%; top: 38%; width: 10%; height: 14%; animation: lab-pulse-spot 2.6s 0.6s ease-in-out infinite; }
@keyframes lab-pulse-spot {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}
.lab-viz-lattice circle {
  animation: lab-shimmer 3.2s ease-in-out infinite;
  transform-origin: center;
}
.lab-viz-lattice circle:nth-child(odd) { animation-delay: -1.2s; }
.lab-viz-lattice circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes lab-shimmer {
  0%, 100% { stroke-opacity: 0.25; r: 2.8; }
  50% { stroke-opacity: 0.85; r: 3.4; }
}

.lattice-lab-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lattice-lab-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--fg);
}
.lattice-lab-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 24px;
}
.lattice-lab-next {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s ease;
}
.lattice-lab-next:hover { transform: translateY(-1px); }

.lattice-lab-form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.lattice-lab-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit; font-size: 14px;
  min-height: 44px;
}
.lattice-lab-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lattice-lab-form .btn-primary { padding: 12px 22px; font-size: 14px; }

.lattice-lab-success {
  padding: 16px 18px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--border));
  color: var(--fg);
  font-size: 15px; line-height: 1.5;
}
.lattice-lab-success strong { color: var(--accent); }

.lattice-lab-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.lattice-lab-dots {
  display: flex; gap: 8px;
}
.lattice-lab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in oklab, var(--fg) 22%, transparent);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lattice-lab-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
.lattice-lab-skip {
  background: none; border: 0;
  color: var(--fg-mute);
  font: inherit; font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
}
.lattice-lab-skip:hover { color: var(--fg); }

/* ─────────────────────────────────────────────────────────
   Promo banner — top of page
   ───────────────────────────────────────────────────────── */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  /* American flag — navy → red gradient with subtle diagonal sheen */
  background:
    linear-gradient(
      100deg,
      #0a2a6c 0%,
      #0a2a6c 38%,
      #b22234 62%,
      #b22234 100%
    );
  color: #ffffff;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  position: sticky;
}
.promo-banner::before {
  /* Diagonal moving white sheen + faint stars */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 2px,
      transparent 2px,
      transparent 14px
    );
  pointer-events: none;
  opacity: 0.5;
}
.promo-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.promo-banner-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #ffffff;
  color: #0a2a6c;
  padding: 5px 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,0,0.18);
}
.promo-banner-text { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-banner-text strong { font-weight: 700; }
.promo-banner-code {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1.5px dashed rgba(255,255,255,0.65);
  color: #ffffff;
  font: inherit; font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.promo-banner-code:hover { background: rgba(255,255,255,0.26); border-color: #ffffff; }
.promo-banner-code span { font-weight: 700; letter-spacing: 0.15em; }
.promo-banner-code em {
  font-style: normal;
  font-size: 10.5px;
  opacity: 0.65;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-banner-cta {
  flex: 0 0 auto;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 700;
  padding: 4px 0;
}
.promo-banner-cta:hover { text-decoration-thickness: 2.5px; }
.promo-banner-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 6px;
  margin-left: 2px;
  transition: opacity 0.2s ease;
}
.promo-banner-close:hover { opacity: 1; }

@media (max-width: 720px) {
  .promo-banner-inner { gap: 10px; padding: 8px 16px; font-size: 12px; }
  .promo-banner-tag { padding: 3px 8px; font-size: 9.5px; }
  .promo-banner-cta { display: none; }
  .promo-banner-code em { display: none; }
}

/* ===== Event variant — Wov3 × The Rendezvous (World Cup pop-up) ===== */
.promo-banner--event {
  /* Football pitch green: deep grass + diagonal mowed-stripe pattern + warm stadium floodlight on the right edge */
  background:
    /* Stadium floodlight warmth bleeding in from the right */
    radial-gradient(
      ellipse 60% 200% at 100% 50%,
      rgba(255, 196, 0, 0.22) 0%,
      rgba(255, 196, 0, 0.08) 30%,
      transparent 60%
    ),
    /* Mowed-pitch diagonal stripes */
    repeating-linear-gradient(
      62deg,
      rgba(255, 255, 255, 0.06) 0 24px,
      transparent 24px 48px
    ),
    /* Base pitch gradient — deep grass green */
    linear-gradient(
      100deg,
      #0a3d22 0%,
      #0e5530 45%,
      #0a3d22 100%
    );
}
.promo-banner--event .promo-banner-tag {
  background: #ffffff;
  color: #0a3d22;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.promo-banner-sub {
  font-style: normal;
  margin-left: 10px;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0;
}
@media (max-width: 900px) {
  .promo-banner-sub { display: none; }
}

/* ===== Fitting 4-step grid (Technology "02 / The fitting") — Wov3 Lab mirror ===== */
.ortho-fitting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 980px) {
  .ortho-fitting-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ortho-fitting-grid { grid-template-columns: 1fr; }
}
.ortho-fitting-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ortho-fitting-media {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #d6dee9 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ortho-fitting-media img {
  max-width: 82%;
  max-height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.ortho-fitting-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #9ec5e8;
  text-transform: uppercase;
}
.ortho-fitting-title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: #ffffff;
}
.ortho-fitting-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

/* ===== Manifesto break (Technology) — bone backdrop, single italic serif line ===== */
.tech-manifesto {
  background: var(--bg);
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-manifesto-text {
  margin: 0 auto;
  max-width: 22ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  text-wrap: balance;
}
.tech-manifesto-text em {
  font-style: italic;
  color: var(--accent);
}

/* ===== Dark editorial variant for the Process section (mirrors Home's Chapter 03 quote) ===== */
.ortho-process-section--dark {
  background: #0a0a0a;
  color: #ffffff;
  margin: clamp(60px, 8vw, 120px) 0;
}
.ortho-process-section--dark .ortho-section-num {
  color: rgba(255,255,255,0.62);
}
.ortho-process-section--dark .section-title {
  color: #ffffff;
}
.ortho-process-section--dark .section-title em {
  color: #9ec5e8;
}
.ortho-process-section--dark .section-kicker {
  color: rgba(255,255,255,0.72);
}
.ortho-process-section--dark .ortho-process-num,
.ortho-process-section--dark .ortho-process-title {
  color: #ffffff;
}
.ortho-process-section--dark .ortho-process-body {
  color: rgba(255,255,255,0.72);
}
.ortho-process-section--dark .ortho-process-spec {
  color: #9ec5e8;
}
.ortho-process-section--dark .ortho-process-step {
  border-color: rgba(255,255,255,0.12);
}

/* ===== Compact page-head variant (Technology, post-trim) ===== */
.ortho-head--compact {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(24px, 3vw, 48px);
}
.page-head-title--md {
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 18ch;
}
.page-head-title--md em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.ortho-process-spec {
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Conditions CTA (on Technology) + Conditions footer ===== */
.ortho-conditions-cta {
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.ortho-conditions-cta-inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px);
  max-width: 920px;
}
.ortho-conditions-cta-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  flex-wrap: wrap;
  margin-top: 24px;
}
.ortho-conditions-cta-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.ortho-conditions-footer {
  margin-top: clamp(48px, 6vw, 96px);
}
.ortho-conditions-footer-inner {
  text-align: left;
  max-width: 720px;
}

/* ===== About — Mission + Vision ===== */
.about-mission,
.about-mission-vision {
  margin-top: clamp(40px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 32px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .about-mission-vision { grid-template-columns: 1fr; }
}
.about-mission-inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px);
  max-width: 960px;
  height: 100%;
}
.about-vision-inner {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px);
  max-width: 960px;
  height: 100%;
}
.about-vision-inner .about-mission-statement {
  color: #ffffff;
}
.about-vision-inner .about-mission-statement em {
  color: #9ec5e8;
}
.about-mission-eyebrow,
.about-vision-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-vision-eyebrow {
  color: #9ec5e8;
}
.about-mission-statement {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: pretty;
  font-weight: 500;
}
.about-mission-statement em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}

/* ===== Breadcrumb (Conditions page) ===== */
.ortho-breadcrumb {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
}
.ortho-breadcrumb:hover { color: var(--accent-hover); }
.ortho-breadcrumb-sep {
  margin: 0 10px;
  color: var(--fg-dim);
}

/* ===== Blog educational resource card ===== */
.blog-resources {
  margin-top: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.blog-resources-head {
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 720px;
}
.blog-resource-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.25);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
}
.blog-resource-card-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #eef2f6;
}
.blog-resource-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.blog-resource-card-body {
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.blog-resource-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}
.blog-resource-card-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  font-weight: 700;
}
.blog-resource-card-title em {
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.blog-resource-card-sub {
  margin: 0;
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.blog-resource-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.blog-section-head {
  margin-top: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(16px, 2vw, 28px);
  max-width: 720px;
}
@media (max-width: 880px) {
  .blog-resource-card {
    grid-template-columns: 1fr;
  }
  .blog-resource-card-media {
    min-height: 220px;
  }
}
