/*
Theme Name: Salom
Theme URI: https://salomchange.com/
Author: Salom Change Dynamics
Description: Custom classic theme. DESIGN.md visual system (6 / 12 / 16).
Version: 0.5.51
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: salom
*/

/* Salom Change Dynamics — 2026 brand tokens.
   Official chromatic source: #329B83, #949594, #000000, #FFFFFF.
   All other hexes are mixes of those values. Soft geometry: 6 / 12 / 16. */

:root {
  --primary: #329b83;
  --primary-strong: #287c69;
  --primary-stronger: #236c5c;
  --primary-soft: #eaf5f3;
  --secondary: #949594;
  --black: #000000;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f6f7f6;
  --surface-muted: #eeeeee;
  --on-surface: #000000;
  --on-surface-muted: #3b3c3b;
  --on-surface-subtle: #606160;
  --on-primary: #ffffff;
  --on-primary-dark: #000000;
  --border: #dfdfdf;
  --border-strong: #949594;
  --focus: #329b83;
  --success: #329b83;
  --success-strong: #287c69;
  --overlay: #00000066;
  --surface-dark: #0c0c0c;
  --surface-dark-raised: #181818;
  --surface-dark-overlay: #242424;
  --on-surface-dark: #ffffff;
  --on-surface-dark-muted: #e1e1e1;
  --on-surface-dark-subtle: #b5b5b5;
  --border-dark: #2f302f;
  --primary-soft-dark: #12231f;

  --display: "Outfit", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 72px;
  --gutter: clamp(24px, 4vw, 24px);
  --max: 1200px;
  --measure: 720px;
  --control: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 16px;
}

.wrap,
.wide {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-stronger);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.lede {
  color: var(--on-surface-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: var(--measure);
}

.section {
  padding: var(--space-3xl) 0;
}

body.home .section {
  padding: var(--space-2xl) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--space-xl);
  max-width: var(--measure);
}

body.home .section-head {
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
}

.rule {
  display: block;
  height: 1px;
  background: var(--primary);
  transform-origin: left center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

body.is-scrolled .site-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-surface-muted);
  padding: 8px 16px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--primary-stronger);
}

.nav-cta {
  color: var(--primary-stronger) !important;
  background: transparent;
  border: 1px solid var(--primary-stronger);
}

.nav-cta:hover {
  background: var(--primary-soft);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--on-surface);
  position: relative;
  margin-inline: auto;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), background 0.2s var(--ease);
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -5px;
}

.menu-btn span::after {
  top: 5px;
}

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .site-header {
    background: var(--surface);
    overflow: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    border-bottom-color: var(--border);
    z-index: 70;
  }

  body.nav-open .program-float {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: var(--surface);
    color: var(--on-surface);
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease-out,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s;
  }

  .nav.is-open {
    max-height: calc(100dvh - var(--header));
    opacity: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .nav .menu {
    padding: 8px 24px 0;
  }

  .nav a {
    padding: 12px 16px;
    height: auto;
    min-height: 48px;
    border-radius: var(--radius-sm);
    color: var(--on-surface-muted);
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav.is-open a {
    animation: salom-nav-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--nav-delay, 0.05s);
  }

  .nav a[aria-current="page"],
  .nav a:hover {
    background: var(--surface-subtle);
    color: var(--primary-stronger);
  }

  .nav-cta {
    color: var(--primary-stronger) !important;
    justify-content: center;
    margin: 8px 24px 24px;
    border: 1px solid var(--primary-stronger);
  }

  .header-tools {
    margin-left: auto;
  }
}

@keyframes salom-nav-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .nav {
    transform: none;
    transition: none;
  }

  .nav a,
  .nav.is-open a {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Buttons — 6px, never pill, never square. One earned green fill. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  height: var(--control);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-stronger);
}

.btn-ghost {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.band-dark .btn-ghost {
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  border-color: var(--border-dark);
}

.band-dark .btn-ghost:hover {
  background: var(--surface-dark-overlay);
}

.band-dark .btn-primary {
  background: var(--primary);
  color: var(--on-primary-dark);
}

.band-dark .btn-primary:hover {
  background: var(--primary-strong);
  color: var(--white);
}

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

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-grid:has(.has-video) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.hero-grid:has(.has-video) .hero-copy {
  align-content: center;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  max-width: 16ch;
  margin: 16px 0 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-stronger);
}

.hero-copy {
  display: grid;
  gap: 16px;
  max-width: 36rem;
}

.hero-copy h1 {
  margin: 0;
}

.hero-copy .lede {
  max-width: 28rem;
}

.offer-lede {
  margin: 0;
  max-width: 42rem;
  font-family: var(--sans);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--on-surface-muted);
}

.panel {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 352px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.media-mark {
  position: absolute;
  right: -24px;
  bottom: -16px;
  width: 280px;
  height: 280px;
  color: var(--secondary);
  opacity: 0.22;
  pointer-events: none;
}

.portrait-name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.portrait-meta {
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-dark-muted);
  max-width: 18rem;
}

.portrait-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .portrait-video,
  .post-hero-media video,
  .ebmc-hero-media video {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-grid,
  .split,
  .cards-3 {
    grid-template-columns: 1fr !important;
  }

  .panel {
    min-height: 280px;
  }
}

/* Proof / logo wall */
.proof {
  border-block: 1px solid var(--border);
  background: var(--surface-subtle);
  padding: 24px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 75%, transparent);
}

.proof-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  will-change: transform;
  padding-inline: 24px;
}

.proof-item {
  display: grid;
  place-items: center;
  height: 40px;
  flex: 0 0 auto;
}

.proof-item img {
  height: 32px;
  width: auto;
  max-width: 144px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.proof-item:hover img {
  filter: none;
  opacity: 1;
}

/* Cards — 12px, tonal, 1px border, no shadow */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 12px;
  min-height: 100%;
  text-decoration: none;
  color: var(--on-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.card .num {
  font-variant-numeric: tabular-nums;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 24px;
}

.card p,
.muted {
  color: var(--on-surface-muted);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cred {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.cred::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0.16);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.cred:hover,
.cred:focus-within {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.cred:hover::before,
.cred:focus-within::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.cred-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.45s var(--ease);
}

.cred:hover .cred-icon,
.cred:focus-within .cred-icon {
  transform: scale(1.1) rotate(5deg);
}

.cred-icon svg {
  width: 32px;
  height: 32px;
}

.cred-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--on-surface);
}

.cred-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-muted);
}

@media (max-width: 1100px) {
  .cred-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cred-grid {
    gap: 16px;
  }

  .cred {
    padding: 24px 16px;
  }
}

/* Dark authority band */
.principles,
.band-dark {
  background: var(--surface-dark);
  color: var(--on-surface-dark);
}

.principles .kicker,
.band-dark .kicker {
  color: var(--primary);
}

.principles .kicker::before,
.band-dark .kicker::before {
  background: var(--primary);
}

.principles .section-head h2 {
  max-width: 12ch;
}

.principle {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.principle .n {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.principle h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.principle p {
  color: var(--on-surface-dark-muted);
  max-width: var(--measure);
}

/* Omar band */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.panel .kicker {
  color: var(--primary);
}

.panel .portrait-meta {
  max-width: 22rem;
}

.panel .portrait-name {
  margin-top: 8px;
}

.link-next {
  color: var(--primary-stronger);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.link-next:hover {
  text-decoration: underline;
}

/* Contact */
.form-card {
  max-width: 40rem;
}

.form,
.wpcf7 form {
  display: grid;
  gap: 20px;
  max-width: none;
}

.wpcf7 form > .hidden-fields-container,
.wpcf7 form > .hidden-fields-container input {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.wpcf7 form p {
  margin: 0;
}

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

.form label,
.wpcf7 label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea,
.form select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--on-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  height: var(--control);
  outline: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  appearance: none;
}

.form textarea,
.wpcf7 textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus,
.form textarea:focus,
.form select:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--focus);
  background: var(--surface);
}

.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 8.5rem;
  min-height: var(--control);
  height: var(--control);
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: var(--on-primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover {
  background: var(--primary-stronger);
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-surface-subtle);
}

.wpcf7 .wpcf7-response-output {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(28rem, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="ok"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.toast[data-tone="err"] {
  box-shadow: inset 0 -2px 0 var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 0.15s ease;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
  color: var(--on-surface-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--on-surface-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-stronger);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr) minmax(200px, 1fr);
  align-items: center;
  gap: 24px;
}

.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 14ch;
  margin: 16px 0 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 16px;
}

/* Match aphorism cards: less inset around the featured image. */
.resource-grid .card {
  padding: 12px 12px 22px;
  gap: 16px;
}

.resource-grid .card-media {
  border-radius: var(--radius-lg);
}

@media (max-width: 720px) {

  .principle {
    grid-template-columns: 56px 1fr;
  }
}

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

  .cred,
  .cred::before,
  .cred-icon {
    transition: none;
  }

  .cred:hover,
  .cred:focus-within {
    transform: none;
  }

  .cred:hover .cred-icon,
  .cred:focus-within .cred-icon {
    transform: none;
  }
}

/* WordPress extras: blueprint look with SITE.md nav */

:root {
  --display: "Outfit", sans-serif;
  --sans: "Manrope", sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.site-footer {
  overflow-anchor: none;
}

html,
body,
p,
li,
a,
.lede,
.muted,
.kicker,
.btn,
.nav,
.entry,
.portrait-meta,
input,
textarea,
button {
  font-family: var(--sans);
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
}

.principle .n,
.card .num {
  font-family: var(--sans);
  letter-spacing: 0;
}

.portrait-name,
.principle h3,
.section-head h2,
.hero h1,
.page-hero h1,
.card h3 {
  font-family: var(--display);
  font-weight: 400;
}

.cred-label {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
}

.footer-brand {
  display: block;
  justify-self: start;
  line-height: 0;
}

.footer-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: min(220px, 100%);
}

.footer-claim {
  margin: 0;
  justify-self: center;
  max-width: 28ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-surface-muted);
}

.footer-meta {
  display: grid;
  gap: 12px;
  justify-self: end;
  justify-items: end;
}

.footer-meta p {
  margin: 0;
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-stronger);
}

.footer-social-btn svg,
.footer-social-btn img {
  display: block;
  width: 18px;
  height: 18px;
}

/* Fuerza monocromo: el usuario no necesita currentColor en el SVG. */
.footer-social-btn svg {
  color: inherit;
}
.footer-social-btn svg *:not([fill="none"]) {
  fill: currentColor;
}
.footer-social-btn svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.footer-legal {
  margin: 12px auto 0;
  padding-top: 8px;
  display: grid;
  gap: 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--on-surface-subtle);
  overflow-anchor: none;
}

.footer-copy,
.footer-credit {
  margin: 0;
  height: 16px;
  line-height: 16px;
  white-space: nowrap;
}

.footer-credit a {
  color: inherit;
}

.footer-credit a:hover {
  color: var(--on-surface);
}

.footer-heart {
  display: inline;
}

.footer-heart::before {
  content: "🖤";
}

body.theme-ebmc .footer-heart::before {
  content: "🤍";
}

body.theme-ebmc .footer-credit a:hover {
  color: #ffffff;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-brand,
  .footer-claim,
  .footer-meta {
    justify-self: center;
  }

  .footer-meta {
    justify-items: center;
  }

  .footer-meta p {
    text-align: center;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface-muted);
  cursor: pointer;
}

.search-btn:hover,
.search-btn:focus-visible {
  color: var(--primary-stronger);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18vh 24px 24px;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-dialog {
  width: min(100%, 640px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  transform: translateY(-12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.is-open .search-dialog {
  transform: none;
}

.site-search {
  margin: 0;
}

.site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.site-search-row:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.site-search-icon {
  flex-shrink: 0;
  color: var(--on-surface-subtle);
}

.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-surface);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
}

.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.site-search-submit {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: var(--on-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
  background: var(--primary-stronger);
}

body.search-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .search-overlay {
    padding-top: 12vh;
  }
}

.header-inner .nav {
  margin-left: auto;
}

.nav .menu,
.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .menu a,
.nav ul a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-surface-muted);
  padding: 8px 16px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.nav .menu a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav a[aria-current="page"] {
  color: var(--primary-stronger);
}

.nav .menu-item-has-children {
  position: relative;
}

.nav .menu-item-has-children > a[href="#"] {
  cursor: default;
}

.nav .sub-menu {
  display: grid;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
}

.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav .sub-menu a {
  height: auto;
  min-height: 40px;
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.nav .sub-menu a:hover {
  background: var(--surface-subtle);
}

.nav-cta {
  color: var(--primary-stronger) !important;
  border: 1px solid var(--primary-stronger);
}

@media (max-width: 820px) {
  .nav .menu,
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav .sub-menu {
    position: static;
    display: grid;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease-out,
      transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav .menu-item-has-children:hover > .sub-menu,
  .nav .menu-item-has-children:focus-within > .sub-menu {
    display: grid;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav .menu-item-has-children.is-expanded > .sub-menu,
  .nav .menu-item-has-children.is-expanded:hover > .sub-menu,
  .nav .menu-item-has-children.is-expanded:focus-within > .sub-menu {
    max-height: min(70vh, 640px);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 8px 12px;
    pointer-events: auto;
  }

  .nav .menu-item-has-children > a {
    justify-content: space-between;
  }

  .nav .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }

  .nav .menu-item-has-children.is-expanded > a::after {
    transform: rotate(-135deg);
  }

  .nav .menu a,
  .nav ul a {
    color: var(--on-surface-muted);
  }

  .nav .sub-menu a {
    min-height: 40px;
    height: auto;
    font-weight: 400;
  }

  .nav .menu a:hover,
  .nav .current-menu-item > a,
  .nav .current_page_item > a {
    background: var(--surface-subtle);
    color: var(--primary-stronger);
  }
}

.entry {
  display: grid;
  gap: 16px;
  max-width: var(--measure);
  color: var(--on-surface-muted);
  font-size: 18px;
  line-height: 1.55;
}

.entry h2 {
  color: var(--on-surface);
}

.entry h2,
.entry h3,
.entry .wp-block-heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}

.entry p,
.entry .wp-block-paragraph {
  margin: 0;
}

/* Body note after cards / grids — use Paragraph → Styles → Nota de cierre */
.entry .is-style-entry-note,
.entry p.is-style-entry-note,
.wp-block-paragraph.is-style-entry-note {
  margin: 28px 0 0;
  max-width: none;
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--on-surface-muted);
  text-wrap: pretty;
}

.skill-page > .is-style-entry-note,
.counsel-page > .is-style-entry-note,
.method-page > .is-style-entry-note,
.skill-page > p.is-style-entry-note,
.counsel-page > p.is-style-entry-note,
.method-page > p.is-style-entry-note {
  margin-top: 32px;
  max-width: none;
}

/* Plain paragraphs under skill/method/counsel cards: body copy, not title measure */
.skill-page > p,
.skill-page > .wp-block-paragraph,
.counsel-page > p,
.counsel-page > .wp-block-paragraph,
.method-page > p,
.method-page > .wp-block-paragraph {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--on-surface-muted);
  max-width: none;
  text-wrap: pretty;
}

.skill-page > .wp-block-heading,
.counsel-page > .wp-block-heading,
.method-page > .wp-block-heading {
  max-width: var(--measure);
}

.entry p:empty {
  display: none;
}

.entry .wp-block-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.entry figcaption {
  font-size: 14px;
  color: var(--on-surface-subtle);
  margin-top: 8px;
}

.post-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--on-surface-dark);
}

.post-hero-media {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.post-hero-media img,
.post-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.post-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.post-hero.is-bright .post-hero-shade {
  background: linear-gradient(
    to top,
    rgb(12 12 12 / 0.82) 0%,
    rgb(12 12 12 / 0.48) 46%,
    rgb(12 12 12 / 0.08) 100%
  );
}

.hero.post-hero.is-bright .post-hero-shade {
  background: rgb(12 12 12 / 0.55);
}

.post-hero .rule {
  background: var(--primary);
}

.post-hero.is-bright .post-hero-copy h1,
.post-hero.is-bright .post-hero-copy .kicker,
.post-hero.is-bright .post-hero-copy .muted,
.post-hero.is-bright .post-hero-copy .lede {
  text-shadow: 0 1px 18px rgb(12 12 12 / 0.55);
}

.post-hero-copy {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) 0 var(--space-2xl);
  max-width: var(--measure);
}

.post-hero .kicker {
  color: var(--primary);
}

.post-hero .kicker::before {
  background: var(--primary);
}

.post-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 16ch;
  margin: 16px 0;
  color: var(--on-surface-dark);
}

.post-hero .muted {
  margin-top: 16px;
  color: var(--on-surface-dark-subtle);
}

.hero.post-hero {
  padding: var(--space-2xl) 0;
  align-items: end;
  min-height: min(72vh, 720px);
}

.hero.post-hero .post-hero-copy {
  padding: 0 0 clamp(48px, 10vh, 120px);
  max-width: none;
  width: min(100% - var(--gutter) * 2, var(--max));
}

.hero.post-hero .hero-grid {
  grid-template-columns: 1.25fr 0.85fr;
  position: relative;
  z-index: 2;
}

.hero.post-hero .kicker {
  color: var(--white);
}

.hero.post-hero .kicker::before,
.hero.post-hero .rule {
  background: var(--white);
}

.hero.post-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 56px);
}

.hero.post-hero .lede {
  color: var(--on-surface-dark-muted);
}

.hero.post-hero h1 em {
  color: var(--primary);
}

.hero.post-hero .btn-primary {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.hero.post-hero .btn-primary:hover {
  background: var(--primary-stronger);
  color: var(--on-primary);
}

/* Scroll cue: more content below full-bleed heroes */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-surface-muted);
  transform: translateX(-50%);
  text-decoration: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-cue-chevron {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero.post-hero .scroll-cue,
.ebmc-hero .scroll-cue {
  color: var(--white);
}

@keyframes salom-scroll-cue {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-chevron {
    animation: salom-scroll-cue 1.8s ease-in-out infinite;
  }
}

.post-body {
  padding-top: var(--space-3xl);
}

.post-body .entry {
  margin-inline: auto;
}

.post-body .entry > p:first-child,
.post-body .entry > .wp-block-paragraph:first-of-type {
  font-size: 20px;
  color: var(--on-surface);
  line-height: 1.5;
}

.post-foot {
  margin-top: var(--space-xl);
}

.card-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-photo-wrap {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.panel-photo-wrap.is-portrait {
  aspect-ratio: auto;
}

.panel-photo-wrap.is-portrait img {
  height: auto;
  object-fit: contain;
}

.split-aside {
  align-items: start;
}

.split-aside .panel {
  height: auto;
  align-self: start;
  justify-content: flex-start;
  position: sticky;
  top: calc(var(--header) + 24px);
}

.panel-inverse {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--border);
}

.panel-inverse .portrait-meta {
  color: var(--on-surface-muted);
}

.panel-inverse .media-mark {
  color: var(--primary);
  opacity: 0.14;
}

body.admin-bar .split-aside .panel {
  top: calc(var(--header) + 56px);
}

@media (max-width: 900px) {
  .split-aside .panel {
    position: static;
    top: auto;
  }
}

.panel .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 4px 0 8px;
}

.panel .stat {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
}

.panel .stat-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}

.odometer {
  display: inline-flex;
  align-items: baseline;
}

.odometer-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.odometer-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.odometer-reel span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
}

.odometer-suffix {
  margin-left: 0.02em;
}

.panel .stat-label {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel .about-chain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 10px 0 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--on-surface-muted);
}

.panel .about-chain span {
  display: grid;
  grid-template-columns: 1em minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
}

.panel .about-chain span::before {
  content: "→";
  color: var(--primary);
  font-weight: 500;
  line-height: 1.35;
}

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--on-surface-subtle);
}

.error-404-hero .lede {
  max-width: 36rem;
  margin: 0 0 28px;
  color: var(--on-surface-muted);
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .error-404-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-404-actions .btn {
    justify-content: center;
    text-align: center;
  }
}

.proof-band {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.proof-band .section-head {
  margin-bottom: var(--space-md);
}

.proof-band .proof {
  border: 0;
  background: transparent;
  padding: 8px 0 24px;
}

.quotes-band {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border);
}

.quotes-band .section-head {
  max-width: none;
}

.quote-stage {
  display: grid;
  gap: 24px;
}

.quote-stage:focus {
  outline: none;
}

.quote-stage:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.quote-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
}

.quote-stage .quote-frame {
  display: grid;
}

.quote-slide {
  display: none;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  min-height: 280px;
}

.quote-slide.is-active {
  display: grid;
}

.quote-stage .quote-slide {
  grid-area: 1 / 1;
  display: grid;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  min-height: 0;
}

.quote-stage .quote-slide.is-active {
  visibility: visible;
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

.quote-media {
  margin: 0;
  width: 280px;
  height: 280px;
  justify-self: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 6px;
}

.quote-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-full);
}

.quote-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.quote-mark {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.7;
  color: var(--primary);
}

.quote-copy blockquote {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--on-surface-muted);
  max-width: 40rem;
}

.quote-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.quote-person strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.quote-person .muted {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.quote-person .lang {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-stronger);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.quote-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.quote-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 5px;
  background: var(--primary-soft);
  overflow: hidden;
  opacity: 0;
}

.quote-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}

.quote-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}

.quote-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.38;
  transform: scale(1);
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.quote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.quote-thumb:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.quote-thumb.is-active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.1);
}

.quote-toolbar .btn {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .quote-slide {
    grid-template-columns: 1fr;
    min-height: 0;
    justify-items: center;
    align-items: start;
    align-content: start;
    gap: 20px;
  }

  .quote-media {
    width: 200px;
    height: 200px;
  }

  .quote-mark {
    font-size: 40px;
  }
}

.quotes-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.theme-ebmc {
  --primary-brand: #81242a;
  --primary: #c45359;
  --primary-strong: #c45359;
  --primary-stronger: #e08a8e;
  --primary-soft: #2a1214;
  --secondary: #757575;
  --surface: #0a0a0a;
  --surface-subtle: #141414;
  --surface-muted: #1c1c1c;
  --on-surface: #ffffff;
  --on-surface-muted: #e4e4e4;
  --on-surface-subtle: #b3b3b3;
  --on-primary: #ffffff;
  --border: #2a2a2a;
  --border-strong: #757575;
  --focus: #c45359;
  --success: #c45359;
  --success-strong: #c45359;
  --overlay: #00000099;
  --surface-dark: #0a0a0a;
  --surface-dark-raised: #141414;
  --surface-dark-overlay: #1c1c1c;
  --on-surface-dark: #ffffff;
  --on-surface-dark-muted: #e4e4e4;
  --on-surface-dark-subtle: #b3b3b3;
  --border-dark: #2a2a2a;
  --primary-soft-dark: #1a0c0d;
}

body.theme-ebmc .site-header,
body.theme-ebmc.is-scrolled .site-header {
  background: #2a0e10;
  border-bottom-color: #5a2428;
}

body.theme-ebmc .search-btn,
body.theme-ebmc .menu-btn {
  background: #2a0e10;
  border-color: #5a2428;
  color: #e4e4e4;
}

body.theme-ebmc .nav-cta {
  color: #ffffff !important;
  border-color: #ffffff;
}

body.theme-ebmc .nav-cta:hover,
body.theme-ebmc .search-btn:hover,
body.theme-ebmc .search-btn:focus-visible {
  background: #3a1618;
  border-color: #e8d4c8;
}

body.theme-ebmc .brand-logo,
body.theme-ebmc .footer-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 820px) {
  body.theme-ebmc .nav {
    background: #2a0e10;
    border-bottom-color: #5a2428;
  }
}

body.has-curtain {
  overflow: hidden;
}

.curtain {
  display: none;
}

.curtain.is-active {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}

.curtain__word {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.curtain__word img {
  width: min(86vw, 560px);
  height: auto;
  display: block;
}

.curtain__brand {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding: 0 24px;
}

.curtain__logo {
  width: min(42vw, 220px);
  height: auto;
  display: block;
}

.curtain__rule {
  display: block;
  width: 4rem;
  height: 1px;
  background: #c45359;
  transform-origin: center;
}

.curtain__title {
  display: grid;
  justify-items: center;
  gap: 0.08em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.2vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.curtain__line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .curtain__title {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.28;
    gap: 0.16em;
  }

  .curtain__line {
    white-space: normal;
    text-wrap: balance;
    max-width: 14ch;
  }
}

.ebmc-band {
  padding: var(--space-3xl) 0;
}

.ebmc-band--wine {
  background: #2a0e10;
  color: #ffffff;
}

.ebmc-band--wine .kicker {
  color: #e8d4c8;
}

.ebmc-band--wine .kicker::before,
.ebmc-band--wine .rule {
  background: #c45359;
}

.ebmc-band--wine .ebmc-lede,
.ebmc-band--wine .ebmc-foot {
  color: #e4e4e4;
}

.ebmc-band--cream {
  --surface: #f6f2f0;
  --on-surface: #0a0a0a;
  --on-surface-muted: #4a4444;
  --primary: #81242a;
  --primary-strong: #81242a;
  --primary-stronger: #6a1e22;
  --border: #e4d9d8;
  background: #f6f2f0;
  color: #0a0a0a;
}

.ebmc-band--cream .kicker {
  color: #81242a;
}

.ebmc-band--cream .kicker::before,
.ebmc-band--cream .rule {
  background: #81242a;
}

.ebmc-band--cream .ebmc-lede,
.ebmc-band--cream .ebmc-foot,
.ebmc-band--cream .ebmc-pairs dd,
.ebmc-band--cream .ebmc-stats p:last-child {
  color: #5c5555;
}

.ebmc-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.ebmc-head--wide {
  max-width: 46rem;
}

.ebmc-head h2,
.ebmc-cta h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.02em;
}

.ebmc-lede {
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  max-width: 40rem;
}

.ebmc-highlight {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 40rem;
  margin: 0 0 var(--space-xl);
}

.ebmc-about-copy {
  display: grid;
  gap: 28px;
  padding-top: 8px;
}

.ebmc-about-copy .ebmc-highlight {
  margin: 0;
  max-width: none;
  padding-top: 28px;
  border-top: 1px solid var(--border, #e4d9d8);
}

.ebmc-about-copy > .ebmc-highlight:only-child {
  padding-top: 0;
  border-top: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  align-self: center;
}

.ebmc-purpose-copy {
  display: grid;
  gap: 20px;
}

.ebmc-purpose-copy .ebmc-lede {
  margin: 0;
}

.ebmc-connect {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.ebmc-connect li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid #5a2428;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ebmc-connect li::before {
  content: "→";
  color: #c45359;
  font-weight: 400;
}

.ebmc-band--cream .ebmc-connect li {
  border-top-color: #e4d9d8;
}

.ebmc-band--cream .ebmc-connect li::before {
  color: #81242a;
}

.ebmc-head .ebmc-highlight {
  margin: 8px 0 0;
}

.ebmc-body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #5c5555;
  max-width: 36rem;
}

.ebmc-band--wine .ebmc-body {
  color: #e4e4e4;
}

.ebmc-impact {
  position: relative;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 38rem;
  margin: var(--space-xl) auto 0;
  text-align: center;
}

.ebmc-type-sizer {
  display: block;
}

.ebmc-impact.is-armed .ebmc-type-sizer {
  visibility: hidden;
}

.ebmc-type {
  white-space: pre-wrap;
}

.ebmc-impact.is-armed .ebmc-type {
  position: absolute;
  inset: 0;
}

.ebmc-caret {
  display: inline;
  margin-left: 1px;
  color: #81242a;
  font-weight: 400;
  animation: ebmc-caret-blink 1s step-end infinite;
}

.ebmc-band--wine .ebmc-caret {
  color: #c45359;
}

@keyframes ebmc-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.ebmc-kicker-plain {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8d4c8;
  margin: 0 0 16px;
}

.ebmc-foot {
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  text-align: center;
  margin-top: var(--space-xl);
  margin-inline: auto;
  max-width: 40rem;
}

.ebmc-hero {
  position: relative;
  min-height: calc(100dvh - var(--header));
  display: grid;
  align-content: center;
  padding-block: var(--space-3xl);
}

.ebmc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
}

.ebmc-hero-logo {
  width: min(42vw, 280px);
  height: auto;
  display: block;
  margin-bottom: var(--space-xl);
}

.ebmc-hero-title {
  font-size: clamp(36px, 6vw, 60px);
  max-width: 12ch;
  margin: 0;
}

.ebmc-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ebmc-hero-copy {
  display: grid;
  gap: 24px;
  padding-bottom: 8px;
}

.ebmc-hero .ebmc-foot {
  text-align: left;
  font-style: normal;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  margin: 0;
  max-width: none;
}

.ebmc-hero--mark .ebmc-hero-stack {
  display: grid;
  justify-items: start;
  gap: 28px;
  max-width: 38rem;
}

.ebmc-hero--mark .ebmc-hero-logo {
  width: min(48vw, 320px);
  margin-bottom: 8px;
}

.ebmc-hero--mark .ebmc-hero-title {
  max-width: none;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.ebmc-hero--mark .ebmc-lede {
  margin: 0;
  max-width: 26rem;
  padding-top: 24px;
  border-top: 1px solid rgba(196, 83, 89, 0.55);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
}

.ebmc-hero.has-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ebmc-hero-media {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
}

.ebmc-hero-media img,
.ebmc-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ebmc-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(12 12 12 / 0.55);
}

.ebmc-hero.has-photo .ebmc-hero-stack,
.ebmc-hero.has-photo .ebmc-hero-grid {
  position: relative;
  z-index: 2;
}

.ebmc-hero.has-photo .ebmc-hero-title,
.ebmc-hero.has-photo .ebmc-lede,
.ebmc-hero.has-photo .ebmc-foot {
  text-shadow: 0 1px 18px rgb(12 12 12 / 0.55);
}

.ebmc-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.ebmc-split .ebmc-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header) + 24px);
}

.ebmc-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.ebmc-duo article + article {
  border-left: 1px solid #e4d9d8;
  padding-left: 48px;
}

.ebmc-duo h3 {
  color: #81242a;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 16px;
}

.ebmc-duo p {
  color: #5c5555;
  font-size: 18px;
  line-height: 1.55;
}

.ebmc-pairs,
.ebmc-defs {
  margin: 0;
  display: grid;
  gap: 0;
}

.ebmc-pairs > div,
.ebmc-defs > div {
  padding: 20px 0;
  border-top: 1px solid #5a2428;
}

.ebmc-defs > div {
  border-top-color: #e4d9d8;
}

.ebmc-pairs > div:last-child,
.ebmc-defs > div:last-child {
  border-bottom: 1px solid #5a2428;
}

.ebmc-defs > div:last-child {
  border-bottom-color: #e4d9d8;
}

.ebmc-pairs dt,
.ebmc-defs dt {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
}

.ebmc-pairs dd,
.ebmc-defs dd {
  margin: 0;
  color: #e4e4e4;
  font-size: 16px;
  line-height: 1.5;
}

.ebmc-defs dd {
  color: #5c5555;
}

.ebmc-catalog,
.ebmc-timeline,
.ebmc-process {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ebmc-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.ebmc-catalog li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #e4d9d8;
}

.ebmc-catalog li:nth-child(odd):last-child {
  border-bottom: 1px solid #e4d9d8;
}

.ebmc-catalog h3,
.ebmc-timeline h3,
.ebmc-process h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.ebmc-catalog p,
.ebmc-timeline p:last-child,
.ebmc-process p:last-child {
  margin: 0;
  color: #5c5555;
  font-size: 16px;
  line-height: 1.5;
}

.ebmc-num {
  font-family: var(--display);
  font-size: 18px;
  color: #81242a;
  line-height: 1.2;
}

.ebmc-band--wine .ebmc-num {
  color: #e8d4c8;
}

.ebmc-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ebmc-timeline li {
  padding-top: 16px;
  border-top: 1px solid #5a2428;
}

.ebmc-timeline p:last-child {
  color: #e4e4e4;
}

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

.ebmc-process li {
  padding-top: 16px;
  border-top: 1px solid #81242a;
}

.ebmc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: var(--space-xl);
}

.ebmc-stat {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #e8d4c8;
  margin: 0;
}

.ebmc-stat-unit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c45359;
  margin: 8px 0 16px;
}

.ebmc-stats h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.ebmc-stats p:last-child {
  margin: 0;
  color: #e4e4e4;
  font-size: 16px;
}

.lab-experts {
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  padding: var(--space-3xl) 0;
}

.lab-experts-head {
  margin-bottom: 20px;
}

.lab-experts-head .kicker {
  color: var(--on-surface-dark-subtle);
}

.lab-experts-head .kicker::before {
  background: var(--primary);
}

.lab-experts-head h2 {
  margin: 12px 0 0;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lab-experts-hint {
  margin: 12px 0 0;
  color: var(--on-surface-dark-subtle);
  font-size: 15px;
  line-height: 1.4;
}

.lab-experts.is-detail .lab-experts-hint {
  opacity: 0;
  pointer-events: none;
}

.lab-experts-track {
  position: relative;
}

.lab-experts-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  scrollbar-width: none;
}

.lab-experts-rail.is-focused {
  scroll-snap-type: none;
  padding-inline: calc(50% - clamp(220px, 60vw, 300px) / 2);
}

.lab-experts-rail::-webkit-scrollbar {
  display: none;
}

.lab-experts-more {
  position: absolute;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(28vw, 160px);
  height: 100%;
  border: 0;
  color: var(--on-surface-dark);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.lab-experts-more--next {
  right: 0;
  padding: 0 12px 0 0;
  justify-items: end;
  background: linear-gradient(
    to right,
    rgba(12, 12, 12, 0) 0%,
    rgba(12, 12, 12, 0.08) 18%,
    rgba(12, 12, 12, 0.28) 40%,
    rgba(12, 12, 12, 0.62) 62%,
    rgba(12, 12, 12, 0.9) 82%,
    #0c0c0c 100%
  );
}

.lab-experts-more--prev {
  left: 0;
  padding: 0 0 0 12px;
  justify-items: start;
  background: linear-gradient(
    to left,
    rgba(12, 12, 12, 0) 0%,
    rgba(12, 12, 12, 0.08) 18%,
    rgba(12, 12, 12, 0.28) 40%,
    rgba(12, 12, 12, 0.62) 62%,
    rgba(12, 12, 12, 0.9) 82%,
    #0c0c0c 100%
  );
}

.lab-experts-more:hover,
.lab-experts-more:focus-visible {
  color: var(--primary);
}

.lab-experts-more[hidden] {
  display: none;
}

.lab-experts.is-detail .lab-experts-more {
  display: none;
}

.lab-expert {
  flex: 0 0 clamp(220px, 24vw, 300px);
  scroll-snap-align: start;
}

.lab-expert-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  text-align: left;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.lab-expert-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.lab-expert-photo {
  position: absolute;
  inset: 0;
}

.lab-expert-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.lab-expert-card:hover img,
.lab-expert-card:focus-visible img,
.lab-expert.is-open img {
  filter: grayscale(0);
  transform: scale(1.06);
}

.lab-expert.is-open .lab-expert-meta {
  display: none;
}

.lab-expert-bio-name {
  margin: 0 0 10px;
  color: var(--on-surface-dark);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lab-expert-meta {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 6px;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0));
}

.lab-expert-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lab-experts-panel {
  display: grid;
  grid-template-rows: 0fr;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-experts-detail-media {
  display: none;
}

.lab-experts-ghost {
  position: fixed;
  z-index: 30; /* under .site-header (40) during FLIP flight */
  overflow: hidden;
  background: var(--surface-dark-raised);
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}

.lab-experts-ghost img,
.lab-experts-detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 801px) {
  .lab-experts-panel {
    display: block;
    grid-template-rows: unset;
    padding-inline: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(28px);
    transition: none;
  }

  .lab-experts-stage {
    position: relative;
  }

  .lab-experts-portrait {
    transition: opacity 0.5s ease 0.15s;
  }

  .lab-experts-portrait .lab-experts-back {
    display: none;
  }

  .lab-experts.is-detail .lab-experts-portrait {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .lab-expert.is-landing .lab-expert-card {
    visibility: hidden;
  }

  .lab-expert-meta {
    transition: opacity 0.45s ease;
  }

  .lab-expert.is-landing .lab-expert-meta,
  .lab-expert.is-revealing .lab-expert-meta {
    opacity: 0;
    transition: none;
  }

  .lab-expert.is-landing img,
  .lab-expert.is-revealing img {
    filter: grayscale(0);
    transition: none;
  }

  .lab-experts.is-detail .lab-experts-detail {
    display: grid;
    grid-template-columns: clamp(220px, 24vw, 300px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    width: min(100% - var(--gutter) * 2, var(--max));
    margin-inline: auto;
  }

  .lab-experts.is-detail .lab-experts-detail-media {
    display: block;
    position: sticky;
    top: calc(var(--header) + 24px);
  }

  .lab-experts-detail-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-dark-raised);
  }

  .lab-experts.is-flying .lab-experts-detail-photo img {
    visibility: hidden;
  }

  .lab-experts-detail-media .lab-experts-back {
    margin: 16px 0 0;
  }

  .lab-experts.is-detail .lab-experts-panel {
    max-height: none;
    overflow: visible;
  }

  .lab-experts.is-detail.is-settled .lab-experts-panel {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease 0.25s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  }

  .lab-experts.is-detail .lab-expert-bio.is-current {
    max-width: none;
    padding-top: 0;
  }
}

.lab-experts-panel.is-open {
  grid-template-rows: 1fr;
}

.lab-experts-panel-clip {
  overflow: hidden;
}

.lab-expert-bio {
  display: none;
  max-width: var(--measure);
  padding-top: 28px;
  color: var(--on-surface-dark-muted);
  font-size: 17px;
  line-height: 1.65;
}

.lab-expert-bio.is-current {
  display: block;
}

.lab-experts-back {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 16px max(var(--gutter), calc((100% - var(--max)) / 2)) 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lab-experts-back:hover,
.lab-experts-back:focus-visible {
  color: var(--primary-stronger);
}

.lab-experts-back[hidden] {
  display: none;
}

.lab-expert-bio-role {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.5;
}

.lab-expert-bio p {
  margin: 0 0 16px;
}

.lab-expert-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .lab-expert {
    flex-basis: clamp(220px, 60vw, 300px);
    transition: opacity 0.4s ease;
  }

  .lab-experts-rail.is-focused .lab-expert:not(.is-centered) {
    opacity: 0;
    pointer-events: none;
  }

  .lab-experts-more {
    width: min(32vw, 110px);
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-expert-photo img,
  .lab-experts-panel,
  .lab-experts.is-detail.is-settled .lab-experts-panel {
    transition: none;
  }
}

.lab-voices {
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  padding: var(--space-3xl) 0;
}

.lab-voices-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.lab-voices-head .kicker {
  color: var(--on-surface-dark-subtle);
}

.lab-voices-head .kicker::before {
  background: var(--primary);
}

.lab-voices-head h2 {
  margin: 12px 0 0;
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.lab-voices-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lab-voices-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.lab-voices-nav button:hover,
.lab-voices-nav button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.lab-voices-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  justify-content: safe center;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.lab-voices-rail::-webkit-scrollbar {
  display: none;
}

.lab-voice {
  flex: 0 0 clamp(200px, 22vw, 260px);
  scroll-snap-align: center;
}

.lab-voice-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark-raised);
  border: 1px solid transparent;
}

.lab-voice.is-speaking .lab-voice-stage {
  border-color: var(--primary);
}

.lab-voice-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.lab-voice-name,
.lab-voice-role {
  margin: 0;
}

.lab-voice-name {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
}

.lab-voice-role {
  margin-top: 4px;
  color: var(--on-surface-dark-subtle);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .lab-voices-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-voice {
    flex-basis: min(72vw, 280px);
  }
}

.ebmc-cta {
  text-align: center;
}

.ebmc-cta .wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.ebmc-cta .ebmc-head,
.ebmc-cta .ebmc-lede {
  text-align: center;
}

.ebmc-cta .rule {
  width: 5rem;
}

.ebmc-cta .ebmc-foot {
  margin-top: 0;
}

.ebmc-cta .ebmc-foot a {
  color: inherit;
}

.ebmc-cta .ebmc-foot a:hover {
  color: #e08a8e;
}

.band-dark.ebmc-cta .ebmc-lede,
.band-dark.ebmc-cta .ebmc-foot {
  color: var(--on-surface-dark-muted);
}

.band-dark.ebmc-cta .ebmc-foot {
  margin-top: 0;
}

.band-dark.ebmc-cta .btn-primary {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.band-dark.ebmc-cta .btn-primary:hover {
  background: var(--primary-stronger);
  color: var(--on-primary);
}

/* Floating invite to The Executive Consulting Lab (site-wide, not on program page). */
.program-float {
  --program-wine-light: #e08a8e;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: stretch;
  width: min(380px, calc(100vw - 32px));
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px #00000040, 0 2px 8px #00000033;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.program-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.program-float.is-hiding {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.program-float__card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  transition: background 0.2s ease;
}

.program-float__card:hover,
.program-float__card:focus-visible {
  background: var(--surface-dark-raised);
  color: #fff;
  outline: none;
}

.program-float__logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.program-float__stage {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.program-float__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: #fff;
  visibility: hidden;
  pointer-events: none;
}

.program-float__line.is-active {
  visibility: visible;
  pointer-events: auto;
}

.program-float__line--cta {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--program-wine-light);
}

.program-float__card:hover .program-float__line--cta,
.program-float__card:focus-visible .program-float__line--cta {
  color: #f0b0b3;
}

.program-float__close {
  width: 40px;
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid #ffffff22;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background 0.2s ease;
}

.program-float__close:hover,
.program-float__close:focus-visible {
  background: #00000022;
  outline: none;
}

@media (max-width: 520px) {
  .program-float {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    width: auto;
  }

  .program-float__line {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-float {
    transition: none;
  }
}

@media (max-width: 900px) {
  .ebmc-hero-grid,
  .ebmc-split,
  .ebmc-duo,
  .ebmc-catalog,
  .ebmc-timeline,
  .ebmc-process,
  .ebmc-stats {
    grid-template-columns: 1fr;
  }

  .ebmc-duo article + article {
    border-left: 0;
    padding-left: 0;
    padding-top: 32px;
    border-top: 1px solid #e4d9d8;
    margin-top: 32px;
  }

  .ebmc-split .ebmc-head {
    position: static;
  }
}

.aphorisms {
  display: grid;
  gap: 32px;
}

.aphorism-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.aphorism-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--on-surface-muted);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  max-width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.aphorism-chip:hover,
.aphorism-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-stronger);
}

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

.aphorism-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 100%;
  padding: 12px 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.aphorism-card:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.aphorism-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.aphorism-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.aphorism-media.is-empty {
  background:
    radial-gradient(120% 90% at 12% 0%, var(--primary-soft) 0%, transparent 52%),
    linear-gradient(165deg, #1c2c28 0%, #0c0c0c 72%);
}

.aphorism-media-mark {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 78%, #329b8340 0 26%, transparent 27%),
    radial-gradient(circle at 28% 28%, #ffffff16 0 16%, transparent 17%);
}

.aphorism-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.aphorism-body {
  display: grid;
  gap: 10px;
  padding: 0 8px;
  align-content: start;
}

.aphorism-mark {
  color: var(--primary);
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.55;
}

.aphorism-body blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

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

@media (max-width: 700px) {
  .aphorism-grid {
    grid-template-columns: 1fr;
  }
}

.aphorism-pages {
  margin-top: 8px;
}

.aphorism-pages .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aphorism-pages .page-numbers li {
  margin: 0;
}

.aphorism-pages a.page-numbers,
.aphorism-pages span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--on-surface-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.aphorism-pages a.page-numbers:hover,
.aphorism-pages .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-stronger);
}

@media (prefers-reduced-motion: reduce) {
  .curtain {
    display: none;
  }

  .nav .sub-menu {
    transition: none;
    transform: none;
  }

  .ebmc-caret {
    animation: none;
  }

  .aphorism-card:hover .aphorism-media img {
    transform: none;
  }
}

.counsel-page {
  display: grid;
  gap: 8px;
  max-width: none;
}

.counsel-page > .wp-block-heading {
  max-width: var(--measure);
}

.counsel-timeline {
  position: relative;
  margin: 32px 0 0;
  padding: 8px 0 48px;
  display: grid;
  gap: 40px;
  width: 100%;
  overflow: visible;
}

.counsel-line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: calc(50% - 1px);
  width: 4px;
  background: var(--primary-soft);
  pointer-events: none;
}

.counsel-line-draw {
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
  .counsel-line-draw {
    transform: none;
  }
}

.counsel-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  width: calc(50% - 32px);
  margin: 0 auto 0 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.counsel-card--right {
  margin: 0 0 0 auto;
}

.counsel-card:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.counsel-num {
  position: absolute;
  top: 32px;
  right: -56px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-stronger);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.counsel-card--right .counsel-num {
  right: auto;
  left: -56px;
}

.counsel-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-surface);
}

.counsel-card p {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 16px;
  line-height: 1.5;
}

.ebmc-band--wine .counsel-timeline {
  --surface: #f6f2f0;
  --surface-subtle: #ffffff;
  --on-surface: #0a0a0a;
  --on-surface-muted: #4a4444;
  --border: #e4d9d8;
  --primary: #c45359;
  --primary-soft: #5a2428;
  --primary-strong: #c45359;
  --primary-stronger: #e08a8e;
}

.ebmc-band--wine .counsel-num {
  color: #f6f2f0;
}

@media (min-width: 1100px) {
  .counsel-timeline {
    gap: 48px;
  }

  .counsel-card {
    width: calc(50% - 40px);
    padding: 36px;
    gap: 18px;
  }

  .counsel-card h3 {
    font-size: 20px;
  }

  .counsel-card p {
    font-size: 17px;
  }

  .counsel-num {
    top: 36px;
    right: -68px;
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .counsel-card--right .counsel-num {
    left: -68px;
  }
}

@media (max-width: 800px) {
  .counsel-timeline {
    gap: 28px;
    padding: 8px 0 32px;
  }

  .counsel-line {
    top: 16px;
    bottom: 16px;
    left: 19px;
  }

  .counsel-card,
  .counsel-card--right {
    width: calc(100% - 64px);
    margin: 0 0 0 auto;
    padding: 24px;
    gap: 12px;
  }

  .counsel-card h3 {
    font-size: 16px;
  }

  .counsel-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .counsel-num,
  .counsel-card--right .counsel-num {
    top: 24px;
    right: auto;
    left: -64px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.skill-page {
  display: grid;
  gap: 8px;
  max-width: none;
}

.skill-page > .wp-block-heading {
  max-width: var(--measure);
}

.skill-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  min-height: 72px;
  padding: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.skill-card:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.skill-num {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-stronger);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.skill-card .skill-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--on-surface);
}

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

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

.method-page {
  display: grid;
  gap: 8px;
  max-width: none;
}

.method-page > .wp-block-heading {
  max-width: var(--measure);
}

.domain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.domain-card {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 100%;
  overflow: hidden;
}

.domain-media {
  position: relative;
  margin: -24px -24px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--on-surface-dark);
}

.domain-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.domain-icon {
  position: absolute;
  right: 24px;
  bottom: 28%;
  width: 120px;
  height: 120px;
  color: var(--on-surface-dark);
  opacity: 0.55;
  pointer-events: none;
}

.domain-icon svg {
  width: 100%;
  height: 100%;
}

.domain-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(12 12 12 / 0.55) 0%,
    rgb(12 12 12 / 0.18) 48%,
    transparent 100%
  );
  pointer-events: none;
}

.domain-card.is-bright .domain-shade {
  background: linear-gradient(
    to top,
    rgb(12 12 12 / 0.82) 0%,
    rgb(12 12 12 / 0.48) 46%,
    rgb(12 12 12 / 0.08) 100%
  );
}

.domain-media-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 24px 22px;
}

.domain-num {
  display: block;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--on-surface-dark);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.domain-card .domain-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--on-surface-dark);
}

.domain-card.is-bright .domain-num,
.domain-card.is-bright .domain-title {
  text-shadow: 0 1px 18px rgb(12 12 12 / 0.55);
}

.domain-lede {
  margin: 0;
  color: var(--on-surface-muted);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.domain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.domain-list li {
  position: relative;
  padding-left: 16px;
  color: var(--on-surface-muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.domain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--secondary);
}

@media (max-width: 800px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }
}

.video-library {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr);
  width: 100%;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.video-feature .video-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.video-feature-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 32px;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 4px 10px 4px 8px;
  background: var(--primary-soft);
  color: var(--primary-stronger);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.video-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary);
  flex-shrink: 0;
}

.video-feature-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.video-feature-copy .lede {
  max-width: none;
  font-size: 16px;
  line-height: 1.5;
}

.video-feature-cta {
  justify-self: start;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-stronger);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.video-feature-cta:hover {
  color: var(--primary-strong);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 100%;
  overflow: hidden;
}

.video-card .video-media {
  width: calc(100% + 48px);
  margin: -24px -24px 0;
  border-radius: 0;
}

.video-body {
  display: grid;
  gap: 8px;
}

.video-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.video-body p {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 14px;
  line-height: 1.45;
}

.video-cat {
  margin: 0;
  color: var(--on-surface-subtle);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.video-media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  cursor: pointer;
}

.video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.video-play svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  box-sizing: border-box;
}

.video-media:hover .video-play svg,
.video-media:focus-visible .video-play svg {
  background: var(--primary-strong);
}

.video-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.video-dialog[open] {
  display: grid;
  place-items: center;
}

.video-dialog::backdrop {
  background: rgb(0 0 0 / 0.72);
}

.video-dialog-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-dialog-close:hover {
  background: rgb(255 255 255 / 0.22);
  transform: scale(1.05);
}

.video-dialog-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.video-dialog-close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.video-dialog-frame {
  width: min(calc(100vw - 96px), calc((100dvh - 112px) * 16 / 9));
  max-height: calc(100dvh - 112px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: #000;
}

.video-dialog-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .video-feature {
    grid-template-columns: 1fr;
  }

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

  .video-dialog-frame {
    width: min(calc(100vw - 48px), calc((100dvh - 80px) * 16 / 9));
    max-height: calc(100dvh - 80px);
  }
}

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

  .video-card {
    padding: 12px 12px 18px;
    gap: 14px;
  }

  .video-card .video-media {
    width: calc(100% + 24px);
    margin: -12px -12px 0;
  }

  .video-dialog-frame {
    width: min(calc(100vw - 32px), calc((100dvh - 72px) * 16 / 9));
    max-height: calc(100dvh - 72px);
  }

  .video-dialog-close {
    width: 40px;
    height: 40px;
  }
}

/* Podcast — episode list with the site's own audio player. */
.podcast-library {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.episode-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Artwork is square and carries the title: show it whole, inset from the card. */
.episode-feature-cover {
  width: 220px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  flex-shrink: 0;
}

.episode-feature-cover img,
.episode-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.episode-feature-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
  padding: 0;
}

.episode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 4px 10px 4px 8px;
  background: var(--primary-soft);
  color: var(--primary-stronger);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.episode-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary);
  flex-shrink: 0;
}

.episode-feature-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.episode-feature-copy .lede {
  max-width: none;
  font-size: 16px;
  line-height: 1.5;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--on-surface-subtle);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.episode-list-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.episode-list {
  display: grid;
  gap: 16px;
}

.episode-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.episode-cover {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.episode-body {
  display: grid;
  gap: 8px;
}

.episode-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.episode-body p {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 14px;
  line-height: 1.45;
}

.episode-serie {
  margin: 0;
  color: var(--on-surface-subtle);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.episode-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.episode-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.28s var(--ease);
}

.episode-play:hover {
  border-color: var(--border-strong);
}

.episode-play:active {
  transform: scale(0.94);
}

.episode-feature .episode-play {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.episode-feature .episode-play:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.episode-play-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.episode-play-icon .episode-icon-play,
.episode-play-icon .episode-icon-pause {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  transform-origin: center;
  transition:
    opacity 0.32s var(--ease),
    transform 0.32s var(--ease),
    visibility 0.32s;
}

/* Triangle sits a hair to the right so it reads centered in the circle. */
.episode-play-icon .episode-icon-play {
  opacity: 1;
  visibility: visible;
  transform: translateX(1px) scale(1) rotate(0deg);
}

.episode-play-icon .episode-icon-pause {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.55) rotate(-18deg);
}

.episode-player.is-playing .episode-icon-play {
  opacity: 0;
  visibility: hidden;
  transform: translateX(1px) scale(0.55) rotate(18deg);
}

.episode-player.is-playing .episode-icon-pause {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .episode-play,
  .episode-play-icon .episode-icon-play,
  .episode-play-icon .episode-icon-pause {
    transition: none;
  }
}

.episode-progress {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.episode-seek {
  width: 100%;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.episode-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.episode-time {
  display: flex;
  gap: 4px;
  margin: 0;
  color: var(--on-surface-subtle);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.episode-extra {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.episode-player.is-active .episode-extra {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.episode-back,
.episode-rate {
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  cursor: pointer;
}

/* Fixed width so 1× → 1.25× → 1.5× → 2× never shifts the time row. */
.episode-rate {
  min-width: 3.25rem;
  text-align: center;
}

.episode-back:hover,
.episode-rate:hover {
  border-color: var(--border-strong);
  color: var(--on-surface);
}

.episode-elsewhere {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.episode-elsewhere a {
  color: var(--primary-stronger);
  text-decoration: none;
}

.episode-elsewhere a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .episode-extra {
    transition: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .episode-feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .episode-feature-cover {
    width: min(220px, 70%);
  }

  .episode-feature-copy {
    justify-items: center;
  }

  .episode-feature-copy .lede {
    text-align: left;
  }

  .episode-player {
    width: 100%;
    text-align: left;
  }

  .episode-elsewhere {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .episode-feature {
    gap: 16px;
    padding: 16px;
  }

  .episode-feature-cover {
    width: min(200px, 64%);
  }

  .episode-feature-copy {
    gap: 8px;
  }

  .episode-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .episode-cover {
    width: 64px;
  }

  .episode-player {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
  }

  .episode-play {
    width: 40px;
    height: 40px;
  }
}

/* Decay Clock — Organizational Decay */

.decay-clock-head { margin-bottom: 32px; max-width: 720px; }
.decay-clock-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; }
.decay-clock-head .lede { margin: 16px 0 0; font-size: 16px; color: var(--on-surface-muted); }
.decay-clock-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.decay-clock-instrument { padding: 24px; color: var(--on-surface-dark); background: var(--surface-dark); }
.decay-clock-caption { display: flex; justify-content: space-between; gap: 16px; color: var(--on-surface-dark-subtle); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.decay-clock-dial { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 8px auto 0; }
.decay-clock-face { display: block; width: 100%; height: 100%; overflow: visible; }
.decay-clock-track, .decay-clock-inner-ring { fill: none; stroke: var(--border-dark); stroke-width: 1.5; }
.decay-clock-progress { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.decay-clock-tick { stroke: var(--secondary); stroke-width: 1.5; }
.decay-clock-tick.is-major { stroke: var(--on-surface-dark-muted); stroke-width: 2.5; }
.decay-clock-hand { fill: var(--primary); }
.decay-clock-hours { position: absolute; inset: 0; }
.decay-clock-hour { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; width: clamp(44px, 6vw, 56px); height: clamp(44px, 6vw, 56px); padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--on-surface-dark-muted); font: 400 clamp(20px, 2.6vw, 28px) / 1 var(--display); cursor: pointer; }
.decay-clock-hour[aria-pressed="true"] { background: var(--primary); color: var(--on-primary-dark); }
.decay-clock-hour:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--surface-dark-overlay); color: var(--on-surface-dark); }
.decay-clock-core { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 46%; max-width: 240px; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.decay-clock-feature { display: grid; gap: 8px; }
.decay-clock-eyebrow { margin: 0; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.decay-clock-total { color: var(--on-surface-dark-subtle); }
.decay-clock-feature h3 { margin: 0; color: var(--on-surface-dark); font: 400 clamp(16px, 2vw, 22px)/1.2 var(--display); letter-spacing: -.015em; }
.decay-clock-note { margin: 0; min-height: 1.2em; color: var(--on-surface-dark-subtle); font-size: 12px; }
.decay-clock-navigation { display: grid; gap: 10px; justify-items: center; margin-top: 20px; }
.decay-clock-navigation p { margin: 0; color: var(--on-surface-dark-subtle); font-size: 12px; letter-spacing: .04em; }
.decay-clock-navigation > div { display: flex; gap: 10px; }
.decay-clock-navigation button { width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--white); color: var(--on-surface); font-size: 22px; cursor: pointer; }
.decay-clock-navigation button:hover { background: var(--primary); color: var(--on-primary-dark); }
.decay-clock-content { display: flex; align-items: center; min-width: 0; padding: 24px 20px 24px 12px; background: var(--surface); }
.decay-clock-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 4px; width: 100%; margin: 0; padding: 0; }
.decay-clock-list li { margin: 0; }
.decay-clock-item { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--on-surface-muted); text-align: left; font: 400 16px/1.4 var(--sans); cursor: pointer; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }
.decay-clock-num { flex-shrink: 0; color: var(--on-surface-subtle); font-size: 13px; font-variant-numeric: tabular-nums; transition: color 0.4s ease; }
.decay-clock-item[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-stronger); }
.decay-clock-item[aria-pressed="true"] .decay-clock-num { color: var(--primary-stronger); }
.decay-clock-item:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--surface-subtle); }
.decay-clock-shell button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.decay-clock-shell button:disabled { cursor: default; opacity: 1; }
@media (max-width: 900px) {
  .decay-clock-shell { grid-template-columns: 1fr; }
  .decay-clock-instrument { padding: 20px 16px 24px; }
  .decay-clock-dial { width: min(480px, 100%); }
  .decay-clock-content { padding: 8px 12px 16px; }
}
