/* ===========================================================
   The Deliberate Pause — shared design system
   Used by every page. Page-specific styles stay inline per page.
   =========================================================== */

:root {
  /* Color */
  --bg-dark:       #1F1E19;
  --bg-cream:      #F7F3E8;
  --bg-taupe:      #8A8372;
  --bg-clay:       #66594F;
  --bg-mocha:      #332A24;
  --text-cream:    #FFFFF6;
  --text-dark:     #111100;
  --text-muted-dark:  rgba(255, 255, 246, 0.70);
  --text-muted-light: #6B6258;
  --accent-amber:   #BDAA8E;
  --accent-amber-bright: #E4D0AE;
  --accent-rust:    #B87556;
  --cta:            #6A4E40;
  --cta-hover:      #1F1E19;
  --border-on-dark:  rgba(255, 255, 246, 0.18);
  --border-on-cream: rgba(17, 17, 0, 0.12);

  /* Type */
  --font-serif: "Satoshi", Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:  "Satoshi", Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width:           1280px;
  --gutter:              32px;
  --section-pad-y:       120px;
  --section-pad-y-mob:   72px;

  /* Motion */
  --ease:        cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@font-face {
  font-family: "Satoshi";
  src: url("https://cdn.prod.website-files.com/66f6a474c8b21aa4209bc790/6879f28393f66670f9fdfa9f_Satoshi-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("https://cdn.prod.website-files.com/66f6a474c8b21aa4209bc790/6879f2af4b31105ab85a65ec_Satoshi-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("https://cdn.prod.website-files.com/66f6a474c8b21aa4209bc790/6879f2efd2fb3c86955039e4_Satoshi-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("https://cdn.prod.website-files.com/66f6a474c8b21aa4209bc790/6879f2d56c34b38991cdb901_Satoshi-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ====== reset ====== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari: prevent horizontal page-shift from off-screen elements */
  overflow-x: clip; /* clip = same as hidden but doesn't break position:sticky */
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* iOS Safari: ensure native styling doesn't override ours */
  -webkit-appearance: none;
  appearance: none;
}
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
/* iOS Safari: any input ≤16px triggers zoom-in on focus. Lock to 16px. */
input[type="email"],
input[type="text"],
input[type="search"],
textarea {
  font-size: 16px !important;
}

::selection { background: var(--accent-amber); color: var(--bg-dark); }

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

section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
@media (max-width: 768px) {
  section { padding-top: var(--section-pad-y-mob); padding-bottom: var(--section-pad-y-mob); }
  :root { --gutter: 20px; }
}

/* Theme classes */
.theme-dark  { background: var(--bg-dark);  color: var(--text-cream); }
.theme-cream { background: var(--bg-cream); color: var(--text-dark); }

/* ====== type ====== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 24px;
  /* iOS Safari font-rendering refinement */
  text-rendering: optimizeLegibility;
  text-wrap: balance;
  overflow-wrap: normal;
}
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: 0; }
h2 { font-size: clamp(30px, 4.5vw, 56px); letter-spacing: 0; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: 0; }
h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; letter-spacing: 0; }

/* Improved muted text contrast — was washing out on bright screens */
:root {
  --text-muted-dark:  rgba(255, 255, 246, 0.72);
  --text-muted-light: #6F6A61;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

[class*="grid"] > *,
[class*="row"] > *,
[class*="card"] > *,
.wrap > * {
  min-width: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin: 0 0 32px;
  display: inline-block;
}
.theme-cream .eyebrow { color: var(--text-muted-light); }

/* Mobile-only type tightening */
@media (max-width: 600px) {
  h1 { letter-spacing: -0.028em; line-height: 1; }
  h2 { letter-spacing: -0.022em; line-height: 1.05; }
  h3, h4 { letter-spacing: -0.014em; line-height: 1.2; }
  .lead { font-size: 16px; line-height: 1.55; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 24px; }
}

/* ====== buttons ======
   Audit notes:
   - Min-height 48px (above iOS 44px tap-target floor with breathing room)
   - 16px base font matches form-row inputs so they line up at the same x-height
   - 0.01em letter-spacing for editorial confidence (was tracking 0)
   - 12px arrow gap (was 10px — read as too crammed at small sizes)
   - 18px / 26px padding distributes weight evenly
   - 600 weight on text (was 500 — read as too thin against the bold serif headlines) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 4px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
  will-change: transform;
  text-decoration: none;
  /* Button itself shouldn't shrink — but can flex-shrink when really tight */
  flex-shrink: 0;
}
/* Buttons inside form-rows can shrink if needed (text stays nowrap, padding compresses) */
.form-row .btn { flex-shrink: 1; min-width: 0; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(197, 107, 69, 0.55);
}
.btn:active { transform: translateY(0); }
.btn .arrow {
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-top: -1px; /* optical centering against text */
}
.btn:hover .arrow { transform: translateX(4px); }

/* Compact variant — nav, mid-essay subscribe, tight spaces */
.btn-sm {
  font-size: 14px;
  min-height: 40px;
  padding: 10px 18px;
  gap: 10px;
}
.btn-sm .arrow { font-size: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-on-cream);
}
.theme-dark .btn-ghost {
  color: var(--text-cream);
  border-color: var(--border-on-dark);
}
.btn-ghost:hover { background: rgba(26,26,26,0.05); transform: translateY(-2px); box-shadow: none; }
.theme-dark .btn-ghost:hover { background: rgba(245,239,229,0.06); }

/* ====== forms ====== */
.form-row {
  display: flex;
  gap: 0;
  max-width: 580px; /* keeps longer CTA labels from crowding the email field */
  align-items: stretch;
}
.form-row input[type="email"] {
  flex: 1;
  min-width: 0; /* CRITICAL: without this, flex defaults to min-width:auto and refuses to shrink, blowing out the row */
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.005em;
  line-height: 1.2;
  padding: 14px 18px;
  min-height: 48px; /* matches .btn min-height for clean alignment */
  border: 1px solid var(--border-on-dark);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: rgba(245, 239, 229, 0.04);
  color: var(--text-cream);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-cream .form-row input[type="email"] {
  background: #fff;
  border: 1px solid var(--border-on-cream);
  border-right: none;
  color: var(--text-dark);
}
.form-row input[type="email"]::placeholder { color: var(--text-muted-dark); }
.theme-cream .form-row input[type="email"]::placeholder { color: var(--text-muted-light); }
.form-row input[type="email"]:focus {
  border-color: var(--accent-amber);
  background: rgba(245, 239, 229, 0.07);
}
.theme-cream .form-row input[type="email"]:focus {
  background: #fff;
}
.form-row .btn { border-radius: 0 4px 4px 0; }

.subscribe-inline {
  width: min(100%, 680px);
}

.subscribe-inline input[type="email"] {
  min-height: 58px;
  padding: 16px 24px;
  font-size: clamp(17px, 1.4vw, 22px);
  background: rgba(255, 255, 246, 0.035);
  border-color: rgba(255, 255, 246, 0.16);
}

.subscribe-inline .btn {
  min-height: 58px;
  padding-inline: clamp(24px, 3.2vw, 42px);
  font-size: clamp(16px, 1.25vw, 20px);
  white-space: nowrap;
}

.theme-cream .subscribe-inline input[type="email"] {
  background: rgba(17, 17, 0, 0.035);
}

.form-disclaimer {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted-dark);
  margin: 14px 0 0;
}
.theme-cream .form-disclaimer { color: var(--text-muted-light); }

@media (max-width: 600px) {
  .form-row { flex-direction: column; max-width: 100%; }
  .form-row input[type="email"] { border-right: 1px solid; border-radius: 4px; }
  .form-row .btn { border-radius: 4px; margin-top: 8px; justify-content: center; }
}

/* ====== nav ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 19, 19, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--text-cream);
  border-bottom: 1px solid var(--border-on-dark);
  transition: background 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(19, 19, 19, 0.92); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.3s var(--ease);
  min-width: 0;
}
.nav-logo:hover { letter-spacing: -0.01em; }
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-logo-text { display: none; min-width: 0; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-muted-dark);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  /* nav uses the compact button variant */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
  min-height: 40px;
  padding: 10px 18px;
  gap: 8px;
}
.nav-cta .arrow { font-size: 15px; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  color: var(--text-cream);
  width: 44px; height: 44px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-logo {
    flex: 1 1 auto;
  }
  .nav-logo-text {
    max-width: min(52vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-cta .label-long { display: none; }
  .nav-cta .label-short { display: inline; }
  .nav-mobile-toggle { display: inline-flex; }
}
.nav-cta .label-short { display: none; }

@media (max-width: 380px) {
  .nav-cta {
    width: 58px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ====== mobile slide-in menu ====== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  pointer-events: none;
  visibility: hidden;
  overflow: clip;
  contain: paint;
}
.mobile-menu.is-open { display: block; pointer-events: auto; visibility: visible; }
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 19, 0);
  -webkit-backdrop-filter: blur(0);
          backdrop-filter: blur(0);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.mobile-menu.is-open .mobile-menu-overlay {
  background: rgba(19, 19, 19, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(85vw, 380px);
  min-height: 100%;
  background: var(--bg-dark);
  color: var(--text-cream);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--border-on-dark);
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }

@media (max-width: 600px) {
  .mobile-menu-panel {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) clamp(22px, 7vw, 32px) calc(28px + env(safe-area-inset-bottom));
    border-left: 0;
  }
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu-top .brand {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mobile-menu-close {
  background: transparent;
  border: 1px solid var(--border-on-dark);
  color: var(--text-cream);
  width: 40px; height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu-list > li > a,
.mobile-menu-list > li > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.018em;
  color: var(--text-cream);
  border-bottom: 1px solid var(--border-on-dark);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  list-style: none;
}
.mobile-menu-list > li > details > summary::-webkit-details-marker { display: none; }
.mobile-menu-list > li > details > summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--accent-amber);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.mobile-menu-list > li > details[open] > summary::after { transform: rotate(45deg); }
.mobile-menu-sub {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-on-dark);
}
.mobile-menu-sub a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted-dark);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.mobile-menu-sub a:hover { color: var(--accent-amber); }

.mobile-menu-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
}
.mobile-menu-cta .micro {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  text-align: center;
  margin: 0;
}

/* When mobile menu is open, lock body scroll */
body.menu-open { overflow: hidden; }

/* ====== scroll progress bar ====== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-amber), var(--cta));
  z-index: 200;
  transition: width 0.06s linear;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(214, 168, 110, 0.5);
}

/* ====== footer (dark) ====== */
.footer {
  padding-top: 72px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border-on-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.46fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  width: min(260px, 76vw);
  margin: 0 0 18px;
}
.footer-brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.94;
}
.footer-brand .tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 600;
  color: var(--text-cream);
  margin: 0 0 12px;
  letter-spacing: 0;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted-dark);
  max-width: 540px;
  line-height: 1.58;
  margin: 0;
}
.footer-newsletter {
  justify-self: end;
  width: min(100%, 340px);
}
.footer-newsletter h4 {
  font-family: var(--font-serif);
  color: var(--text-cream);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}
.footer-newsletter .sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted-dark);
  margin: 0 0 18px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: 42px 0;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-cols h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols a {
  color: var(--text-muted-dark);
  font-size: 14px;
  line-height: 1.42;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  display: inline-block;
}
.footer-cols a:hover { color: var(--text-cream); transform: translateX(3px); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted-dark);
}
.footer-bottom ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}
.footer-bottom a { transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--text-cream); }
.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  opacity: 0.78;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-socials img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-newsletter { justify-self: stretch; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-brand-mark { width: min(230px, 82vw); }
  .footer-bottom { align-items: flex-start; }
}

/* ====== utilities ====== */
.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;
}

/* ===========================================================
   PRACTICE PAGES — shared
   =========================================================== */

/* Crumb above hero */
.practice-crumb {
  background: var(--bg-cream);
  color: var(--text-muted-light);
  border-bottom: 1px solid var(--border-on-cream);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.practice-crumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.practice-crumb a { color: var(--text-muted-light); transition: color 0.2s var(--ease); }
.practice-crumb a:hover { color: var(--cta); }
.practice-crumb .sep { color: var(--text-muted-light); opacity: 0.5; }
.practice-crumb .here { color: var(--text-dark); font-weight: 600; }

/* Practice hero (dark or cream variant) */
.practice-hero {
  padding: 112px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.practice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(214,168,110,0.10), transparent 60%);
  pointer-events: none;
}
.practice-hero .wrap { max-width: 980px; position: relative; }
.practice-hero .pkey {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 600;
  margin: 0 0 32px;
  display: inline-block;
}
.practice-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.8vw, 84px);
  letter-spacing: -0.028em;
  line-height: 1;
  font-weight: 600;
  margin: 0 auto 28px;
  max-width: min(20ch, 100%);
}
.practice-hero h1 em { color: var(--accent-amber); font-style: normal; font-weight: 500; }
.practice-hero h1 .keep-together { white-space: nowrap; }
.theme-dark.practice-hero h1 { color: var(--text-cream); }
.practice-hero .sub {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  margin: 0 auto 56px;
  max-width: 640px;
}
.theme-dark.practice-hero .sub { color: var(--text-muted-dark); }
.theme-cream.practice-hero .sub { color: var(--text-muted-light); }

/* Origin band (cream) */
.origin {
  padding: 96px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-on-cream);
}
.origin .wrap { max-width: 1080px; }
.origin-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 64px;
  align-items: start;
}
.origin .label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 600;
  margin: 0 0 12px;
  display: block;
}
.origin h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 12px;
}
.origin .credentials {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  font-weight: 500;
}
.origin blockquote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.origin blockquote::before { content: "\201C"; }
.origin blockquote::after  { content: "\201D"; }
.origin p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin: 0;
  max-width: 640px;
}
@media (max-width: 768px) {
  .practice-hero { padding: 80px 0 72px; }
  .practice-hero h1 { font-size: clamp(34px, 9vw, 52px); max-width: 100%; }
  .origin-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* When-to-use grid (cream) */
.when-to-use {
  padding: 96px 0 120px;
  background: #FCFAF5;
  border-top: 1px solid var(--border-on-cream);
}
.when-to-use .wrap { max-width: 1080px; }
.when-to-use .label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 600;
  margin: 0 0 16px;
  display: block;
}
.when-to-use h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 18ch;
}
.when-to-use h2 em { color: var(--accent-amber); font-style: normal; font-weight: 500; }
.when-to-use h2 ~ hr {
  margin: 0 0 56px;
  border: none;
  border-top: 1px solid var(--text-dark);
  width: 100%;
}
.situation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.situation {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-on-cream);
  align-items: start;
}
.situation:first-child, .situation:nth-child(2) { border-top: none; }
.situation .num {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 18px;
  color: var(--accent-amber);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.situation h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 0 0 8px;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--text-dark);
}
.situation p {
  font-size: 14px;
  color: var(--text-muted-light);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 768px) {
  .situation-grid { grid-template-columns: 1fr; }
  .situation:nth-child(2) { border-top: 1px solid var(--border-on-cream); }
}

/* Essays-about-this-practice band */
.related-essays {
  padding: 120px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-on-cream);
}
.related-essays .header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 16px;
}
.related-essays h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  margin: 0;
}
.related-essays .all {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.related-essays .all:hover { gap: 14px; color: var(--cta); border-color: var(--cta); }
.related-list { display: flex; flex-direction: column; }
.related-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: start;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-on-cream);
  transition: padding 0.3s var(--ease);
}
.related-row:hover { padding-left: 8px; }
.related-row .date {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  font-weight: 500;
}
.related-row h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
  font-style: normal;
  color: var(--accent-amber);
  font-weight: 500;
}
.related-row h3 a { transition: color 0.2s var(--ease); }
.related-row h3 a:hover { color: var(--cta); }
.related-row .tag {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 600;
  text-align: right;
}
@media (max-width: 768px) {
  .related-row { grid-template-columns: 1fr; gap: 8px; }
  .related-row .tag { text-align: left; }
}

/* ===========================================================
   SCROLL FX — animation classes
   Triggered by data-scroll-fx="..." + IntersectionObserver
   =========================================================== */

/* Fade up — default reveal */
[data-scroll-fx] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--fx-delay, 0s);
  will-change: opacity, transform;
}
[data-scroll-fx].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll-fx="fade"] { transform: translateY(0); }
[data-scroll-fx="fade-up-lg"] { transform: translateY(56px); }
[data-scroll-fx="fade-left"],
[data-scroll-fx="fade-right"] {
  transform: translateY(32px);
}
[data-scroll-fx="fade-left"].is-visible,
[data-scroll-fx="fade-right"].is-visible {
  transform: translateY(0);
}
[data-scroll-fx="zoom"]       { transform: scale(0.96); opacity: 0; }
[data-scroll-fx="zoom"].is-visible { transform: scale(1); opacity: 1; }

/* Word-by-word reveal — used on the big amber moment */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(2deg);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--word-i, 0) * 0.08s);
}
.reveal-words.is-visible .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Parallax photo wrapper */
.parallax-wrap { overflow: hidden; }
.parallax-img  {
  transform: translateY(var(--parallax-y, 0px)) scale(1.04);
  transition: transform 0.06s linear;
  will-change: transform;
}

/* Marquee — infinite logo scroll */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Counter — for animated 9 etc. */
.counter { font-variant-numeric: tabular-nums; }

/* ===========================================================
   LIVE-SITE ALIGNMENT — typography, color, popup
   Mirrors the current Webflow palette and strict Satoshi hierarchy.
   =========================================================== */
body {
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-cream);
}

body h1,
.hero-headline,
.publication-hero h1,
.newsletter-copy h1,
.about-hero h1,
.practice-hero h1,
.article-header h1,
.title-h1 {
  font-family: var(--font-sans) !important;
  font-size: clamp(36px, 5.2vw, 64px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

body h2,
.pain-opener h2,
.reading h2,
.pause-left h2,
.definition h2,
.avi-intro h2,
.newsletter-form-card h2,
.conversion-box h2,
.latest-intro h2,
.paths-header h2,
.section-intro h2,
.supporting_rich-text h2 {
  font-family: var(--font-sans) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

body h3,
body h4,
.protocol-card h4,
.testimonial blockquote,
.reading-featured h3,
.reading-card h4,
.essay-card h3,
.path-card h3,
.latest-row h3,
.footer h4,
.related-row h3 {
  font-family: var(--font-sans) !important;
  font-size: clamp(19px, 2vw, 26px) !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

.hero-headline {
  color: var(--text-cream) !important;
  max-width: 12ch;
}

.pain-opener {
  max-width: 760px !important;
}

.pain-opener .small {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.pain-opener h2 {
  color: var(--text-dark) !important;
}

.pain-opener .sub {
  font-family: var(--font-sans) !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.22 !important;
  font-weight: 500 !important;
}

.pain-opener .sub em {
  color: var(--text-dark) !important;
  display: inline !important;
  font-weight: 700 !important;
}

.pain-proof-card {
  background: var(--bg-dark) !important;
  color: var(--text-cream) !important;
  border-color: var(--bg-dark) !important;
  text-align: left !important;
}

.pain-proof-card p {
  color: var(--text-cream) !important;
  font-family: var(--font-sans) !important;
  font-size: clamp(17px, 1.6vw, 21px) !important;
  line-height: 1.55 !important;
}

.proof-strip {
  border-color: var(--border-on-dark) !important;
}

.proof-strip span,
.pain-proof-card .proof-kicker {
  color: var(--accent-amber) !important;
}

.reading h2 {
  max-width: 640px !important;
}

.reading-featured .thumb,
.reading-card .thumb-sm {
  background: rgba(17, 17, 0, 0.04) !important;
}

.reading-featured h3,
.reading-card h4,
.footer-newsletter h4 {
  letter-spacing: 0 !important;
}

.footer {
  padding-top: 64px;
}

.footer-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.footer-newsletter {
  justify-self: end;
  width: auto;
  min-width: 260px;
}

.footer-cols {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-newsletter {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tdp-popup__panel {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.tdp-popup__copy p {
  color: var(--text-muted-light);
}

.tdp-popup__image {
  background:
    radial-gradient(circle at 50% 28%, rgba(193, 181, 159, 0.42), transparent 34%),
    linear-gradient(145deg, #FFFFF6, #D9C8AD 52%, #111100);
}

p,
li,
.lead,
.dek,
.sub,
.article-body,
.article-body p,
.pain-proof-card p,
.poup-descripton {
  font-family: var(--font-sans) !important;
  letter-spacing: 0 !important;
  font-style: normal !important;
}

em,
i,
blockquote,
.signature,
.pain-opener .sub em,
.about-hero h1 em,
.identity-stack span,
.practice-hero h1 em,
.when-to-use h2 em,
.resume-band h2 em,
.related-row h3,
.pause-left .micro {
  font-style: normal !important;
}

.theme-dark {
  background: var(--bg-dark);
  color: var(--text-cream);
}

.theme-cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}

body.popup-open {
  overflow: hidden;
}

.btn,
.button,
.nav-cta,
.popup-primary,
.popup-secondary {
  border-radius: 232px !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

.btn,
.nav-cta,
.popup-primary {
  background: var(--bg-dark);
  color: var(--text-cream);
  border-color: transparent;
}

.theme-dark .btn,
.theme-dark .nav-cta,
.popup-primary {
  background: var(--text-cream);
  color: var(--text-dark);
}

.btn:hover,
.nav-cta:hover,
.popup-primary:hover {
  background: var(--accent-amber);
  color: var(--text-dark);
}

.eyebrow,
.reading-tag,
.meta,
.proof-kicker,
.athlete,
.label,
.tag {
  font-family: var(--font-sans) !important;
  letter-spacing: 0.18em !important;
  font-weight: 700 !important;
}

.tdp-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.tdp-popup.is-open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.tdp-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.68);
}

.tdp-popup__panel {
  position: relative;
  width: min(920px, 100%);
  background: #F7F7F6;
  color: var(--text-dark);
  border-radius: 24px;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.28);
  transform: scale(0.96);
  transition: transform 0.24s var(--ease-out);
}

.tdp-popup.is-open .tdp-popup__panel {
  transform: scale(1);
}

.tdp-popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 25, 23, 0.08);
  color: var(--text-dark);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.tdp-popup__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.8fr);
  min-height: 430px;
}

.tdp-popup__copy {
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.tdp-popup__copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.05 !important;
}

.tdp-popup__copy p {
  color: #87817A;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  margin: 0;
}

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

.popup-primary,
.popup-secondary {
  min-height: 54px;
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.popup-primary {
  background: var(--bg-dark);
  color: var(--text-cream);
  min-width: min(100%, 250px);
}

.popup-secondary {
  border: 1px solid #CBC8C4;
  color: var(--text-dark);
}

.tdp-popup__image {
  background:
    radial-gradient(circle at 55% 28%, rgba(193, 181, 159, 0.5), transparent 32%),
    linear-gradient(135deg, #F4E7D4, #C1B59F 55%, #5C3B2E);
  min-height: 100%;
}

.tdp-popup__panel {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.tdp-popup__copy p {
  color: var(--text-muted-light);
}

.tdp-popup__image {
  background:
    radial-gradient(circle at 50% 28%, rgba(193, 181, 159, 0.42), transparent 34%),
    linear-gradient(145deg, #FFFFF6, #D9C8AD 52%, #111100);
}

/* Brand-guide refinement pass: restrained hierarchy, more palette, smaller popup */
.theme-dark,
.nav,
.mobile-menu-panel {
  background-color: var(--bg-dark);
}

.theme-cream,
.pain,
.reading,
.testimonials,
.definition,
.avi-intro {
  background-color: var(--bg-cream);
}

.pain {
  background:
    radial-gradient(circle at 50% 0%, rgba(193, 181, 159, 0.16), transparent 34%),
    linear-gradient(180deg, var(--bg-cream) 0%, #F8F1E4 100%);
}

.pain-opener {
  max-width: 880px !important;
  margin-bottom: 40px !important;
}

.pain-opener .small {
  font-size: clamp(38px, 4.2vw, 62px) !important;
  line-height: 1.04 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.pain-opener .small .counter {
  color: inherit !important;
  font-size: 1.18em !important;
  font-weight: 700 !important;
}

.pain-opener h2 {
  font-size: clamp(26px, 2.5vw, 38px) !important;
  line-height: 1.02 !important;
  margin-bottom: 30px !important;
  color: var(--text-dark) !important;
  text-align: center !important;
}

.pain-opener h2 .line {
  display: inline !important;
  white-space: normal !important;
}

.pain-opener h2 .line + .line::before {
  content: " ";
}

.pain-opener .accent-word {
  color: var(--accent-rust);
}

.pain-opener .sub {
  max-width: 660px !important;
  font-size: clamp(18px, 1.55vw, 23px) !important;
  line-height: 1.34 !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.pain-opener .sub em {
  display: block !important;
  margin-top: 4px !important;
  color: var(--text-dark) !important;
  font-size: 1em !important;
  font-weight: 500 !important;
}

.pain-proof-card {
  max-width: 820px !important;
  padding: clamp(24px, 3vw, 34px) !important;
  background:
    linear-gradient(135deg, rgba(193, 181, 159, 0.12), transparent 52%),
    var(--bg-dark) !important;
  border-color: rgba(193, 181, 159, 0.36) !important;
  border-radius: 14px !important;
}

.pain-proof-card .proof-kicker {
  color: var(--accent-rust) !important;
}

.tdp-popup {
  padding: 16px;
}

.tdp-popup__panel {
  width: min(680px, calc(100vw - 32px));
  border-radius: 18px;
}

.tdp-popup__content {
  grid-template-columns: minmax(0, 1fr) 180px;
  min-height: 320px;
}

.tdp-popup__copy {
  padding: clamp(28px, 4vw, 44px);
  gap: 18px;
}

.tdp-popup__copy h2 {
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.06 !important;
}

.tdp-popup__copy p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.48;
}

.tdp-popup__actions {
  gap: 10px;
}

.popup-primary,
.popup-secondary {
  min-height: 46px;
  padding: 12px 18px;
}

.tdp-popup__close {
  width: 36px;
  height: 36px;
  top: 12px;
  right: 12px;
  font-size: 20px;
}

@media (max-width: 760px) {
  .tdp-popup__content {
    grid-template-columns: 1fr;
  }
  .tdp-popup__image {
    min-height: 150px;
    order: -1;
  }
  .tdp-popup__panel {
    border-radius: 18px;
  }
  .tdp-popup__actions {
    flex-direction: column;
  }
  .popup-primary,
  .popup-secondary {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .tdp-popup__image {
    min-height: 96px;
  }
}

@media (max-width: 520px) {
  .pain-opener .small {
    font-size: 34px !important;
    margin-bottom: 16px !important;
  }

  .pain-opener h2 {
    font-size: 28px !important;
    line-height: 1.04 !important;
    margin-bottom: 24px !important;
  }

  .pain-opener .sub {
    font-size: 19px !important;
  }
}

/* Old-site palette pass: warmer taupe, clay, and mocha from the live brand world. */
.nav {
  background: rgba(31, 30, 25, 0.78);
}

.nav.is-scrolled {
  background: rgba(31, 30, 25, 0.94);
}

.hero-video-bg {
  background:
    radial-gradient(ellipse 62% 46% at 50% 34%, rgba(189, 170, 142, 0.10), transparent 70%),
    linear-gradient(135deg, var(--bg-mocha), var(--bg-dark) 58%, #0f0f0b);
}

.hero-video-bg > img {
  width: min(54vw, 980px);
  height: calc(100% - 80px);
  left: auto;
  right: clamp(24px, 6vw, 120px);
  top: 52%;
  bottom: auto;
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center center;
  opacity: 0.9;
  filter: saturate(0.86) contrast(0.94);
}

@media (max-width: 760px) {
  .hero-video-bg > img {
    width: 100%;
    height: 100%;
    right: 0;
    object-fit: cover;
    object-position: 58% 50%;
    opacity: 0.62;
  }
}

.logobar,
.footer {
  background: var(--bg-dark);
}

.pain {
  background:
    radial-gradient(circle at 50% 0%, rgba(189, 170, 142, 0.20), transparent 34%),
    linear-gradient(180deg, var(--bg-cream) 0%, #EEE5D5 100%) !important;
}

.reading,
.avi-intro {
  background: #F2EBDD !important;
}

.pause {
  background:
    linear-gradient(90deg, rgba(31, 30, 25, 0.26), transparent 44%),
    var(--bg-clay) !important;
}

.protocol-card {
  background: rgba(31, 30, 25, 0.18) !important;
  border-color: rgba(255, 255, 246, 0.18) !important;
}

.protocol-card:hover {
  background: rgba(31, 30, 25, 0.26) !important;
}

.testimonials {
  background: #EDE4D5 !important;
}

.testimonial {
  background: #FFFBF1 !important;
}

.definition {
  background: var(--bg-taupe) !important;
  color: var(--text-cream) !important;
}

.definition p,
.definition .lead {
  color: rgba(255, 255, 246, 0.82) !important;
}

.definition p:last-child {
  color: var(--text-cream) !important;
}

.pain-proof-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(189, 170, 142, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(189, 170, 142, 0.10), transparent 52%),
    var(--bg-clay) !important;
  border-color: rgba(255, 255, 246, 0.18) !important;
}

.pain-proof-card .proof-kicker {
  color: var(--accent-amber-bright) !important;
}

.tdp-popup__panel {
  width: min(780px, calc(100vw - 32px));
  background: var(--bg-cream) !important;
}

.tdp-popup__content {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
  min-height: 360px;
}

.tdp-popup__image {
  background:
    linear-gradient(180deg, rgba(31, 30, 25, 0.02), rgba(31, 30, 25, 0.16)),
    url("images/avi/avi-portrait-warm.png") center center / cover no-repeat,
    radial-gradient(circle at 50% 28%, rgba(189, 170, 142, 0.42), transparent 34%),
  linear-gradient(145deg, var(--bg-cream), var(--bg-taupe) 52%, var(--bg-mocha)) !important;
  background-position:
    center center,
    center 38%,
    center 28%,
    center center !important;
  background-size:
    auto,
    cover,
    auto,
    auto !important;
}

@media (max-width: 760px) {
  .tdp-popup {
    align-items: center;
    padding: 14px;
  }

  .tdp-popup__panel {
    width: min(430px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    overflow: auto;
    border-radius: 20px;
  }

  .tdp-popup__content {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .tdp-popup__image {
    order: 0;
    min-height: clamp(155px, 40vw, 190px);
    background-position:
      center center,
      center 30%,
      center 28%,
      center center !important;
  }

  .tdp-popup__copy {
    order: 1;
    padding: 28px 28px 30px;
    gap: 18px;
  }

  .tdp-popup__copy h2 {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.03 !important;
  }

  .tdp-popup__copy p {
    font-size: 18px;
    line-height: 1.42;
  }

  .tdp-popup__actions {
    gap: 12px;
  }

  .popup-primary,
  .popup-secondary {
    min-height: 54px;
    font-size: 17px;
  }

  .tdp-popup__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 246, 0.82);
    box-shadow: 0 8px 28px rgba(17, 17, 0, 0.14);
  }
}

@media (max-width: 420px) {
  .nav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-logo-img {
    height: 50px;
  }

  .nav-cta {
    width: 56px;
    min-height: 46px;
  }

  .nav-mobile-toggle {
    width: 46px;
    height: 46px;
  }

  .tdp-popup {
    padding: 12px;
  }

  .tdp-popup__panel {
    width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .tdp-popup__image {
    min-height: 150px;
  }

  .tdp-popup__copy {
    padding: 24px 24px 26px;
  }
}

/* Mobile popup final override: keeps the image attached to the top of the card. */
@media (max-width: 760px) {
  .tdp-popup.is-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tdp-popup__panel {
    width: min(430px, calc(100vw - 28px)) !important;
    max-height: min(720px, calc(100dvh - 28px)) !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  .tdp-popup__content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 220px auto !important;
    min-height: 0 !important;
  }

  .tdp-popup__image {
    order: initial !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 220px !important;
    height: 220px !important;
    background-position:
      center center,
      center top,
      center 28%,
      center center !important;
  }

  .tdp-popup__copy {
    grid-row: 2 !important;
    padding: 28px 28px 30px !important;
    gap: 17px !important;
  }

  .tdp-popup__copy h2 {
    font-size: clamp(30px, 8.4vw, 38px) !important;
    line-height: 1.04 !important;
  }

  .tdp-popup__copy p {
    font-size: 17px !important;
    line-height: 1.42 !important;
  }

  .tdp-popup__close {
    top: 16px !important;
    right: 16px !important;
    background: rgba(255, 255, 246, 0.88) !important;
    color: var(--text-dark) !important;
  }
}

@media (max-width: 380px) {
  .tdp-popup__panel {
    width: calc(100vw - 24px) !important;
  }

  .tdp-popup__image {
    height: 190px !important;
    min-height: 190px !important;
    background-position:
      center center,
      center top,
      center 28%,
      center center !important;
  }

  .tdp-popup__copy {
    padding: 22px 22px 24px !important;
  }

  .popup-primary,
  .popup-secondary {
    min-height: 50px !important;
  }
}

/* Reduce motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-scroll-fx] { opacity: 1 !important; transform: none !important; }
  .reveal-words .word { opacity: 1 !important; transform: none !important; }
  .parallax-img { transform: none !important; }
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
