/* ==========================================================================
   PRANA INTEGRITY — design system
   Tokens: cream / cream-deep / terracotta / teal / ink / ink-soft
   Type:   Newsreader (display/serif) · IBM Plex Sans (body) · IBM Plex Mono (data/eyebrow)
   ========================================================================== */

:root {
  /* color */
  --cream:          #faf9f6;
  --cream-deep:     #f1ebe1;
  --terracotta:     #d97757;
  --terracotta-600: #c1623f;
  --terracotta-100: #f3ded3;
  --teal:           #4a7c6f;
  --teal-600:       #3a6358;
  --teal-100:       #dde9e4;
  --ink:            #23271f;
  --ink-soft:       #5d6058;
  --line:           rgba(35, 39, 31, 0.12);

  /* type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --fs-h1: clamp(2.3rem, 1.4rem + 4.2vw, 4.25rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1rem + 0.6vw, 1.4rem);
  --fs-body: clamp(1rem, 0.95rem + 0.15vw, 1.08rem);
  --fs-small: 0.86rem;
  --fs-eyebrow: 0.78rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  /* layout */
  --container: 1240px;
  --container-narrow: 720px;
  --gap: 1.5rem;
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* visible keyboard focus */
a:focus-visible, button:focus-visible, .lang-btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 600; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
.lede { font-size: 1.15rem; line-height: var(--lh-snug); color: var(--ink-soft); }
em.accent { font-style: italic; color: var(--terracotta-600); }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--tint { background: var(--cream-deep); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow { display: block; margin-bottom: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-600); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.btn--invert { background: var(--cream); color: var(--ink); }
.btn--invert:hover { background: var(--ink); color: var(--cream); }
.btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo span.dim { color: var(--ink-soft); font-weight: 400; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.5rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { color: var(--cream); background: var(--ink); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
}
.menu-toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (min-width: 880px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
.hero__copy { max-width: 620px; }
.hero__copy .eyebrow { display: block; margin-bottom: 1.1rem; }
.hero__copy h1 { margin-bottom: 1.3rem; }
.hero__copy .lede { margin-bottom: 1.8rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.breathline { position: relative; }
.breathline svg { width: 100%; height: auto; }
.breathline__caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  padding-inline: 0.2rem;
}

.wave-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wave-line--a { stroke: var(--terracotta); }
.wave-line--b { stroke: var(--teal); stroke-dasharray: 1 7; opacity: 0.9; }
.breath-anim { transform-origin: center; animation: breathe 7s var(--ease) infinite; }
@keyframes breathe {
  0%, 100% { transform: scaleY(1); }
  35% { transform: scaleY(1.06); }
  55% { transform: scaleY(1.06); }
  85% { transform: scaleY(0.97); }
}

@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* ---------- intro ---------- */
.intro { text-align: left; }
.intro__inner { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1.5rem; }
.intro h2 { margin-bottom: 1.1rem; }
.intro p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- cards (four pillars) ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}
.pillar__icon { width: 34px; height: 34px; color: var(--terracotta); flex-shrink: 0; margin-top: 0.15rem; }
.pillar:nth-child(2n) .pillar__icon { color: var(--teal); }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; max-width: 38ch; }

@media (min-width: 700px) {
  .pillars { grid-template-columns: 1fr 1fr; border-top: none; }
  .pillar { border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 2.4rem 2.2rem; }
  .pillar:nth-child(2n) { border-right: none; }
}
@media (min-width: 1080px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillar:nth-child(2n) { border-right: 1px solid var(--line); }
  .pillar:nth-child(4n) { border-right: none; }
}

/* ---------- topics ---------- */
.topics-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic-card { background: var(--cream); padding: 1.5rem 1.6rem; border-left: 3px solid var(--terracotta); }
.topic-card:nth-child(2n) { border-left-color: var(--teal); }
.topic-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.topic-card p { color: var(--ink-soft); font-size: 0.9rem; }
@media (min-width: 700px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .topics-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band .eyebrow { color: var(--terracotta); }
.cta-band h2 { color: var(--cream); margin-block: 1rem 0.9rem; }
.cta-band p { color: rgba(250, 249, 246, 0.75); max-width: 520px; margin-inline: auto 1.8rem; margin-bottom: 1.8rem; }
.cta-band__inner { max-width: 640px; margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.footer__brand .logo { margin-bottom: 0.6rem; }
.footer__tagline { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { font-size: 0.92rem; color: var(--ink-soft); }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--ink-soft); }
.footer__lang { display: flex; align-items: center; gap: 0.6rem; }
.footer__lang span.label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

@media (min-width: 880px) {
  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ---------- page hero (sub-pages) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2rem); }
.page-hero__inner { max-width: 720px; }
.page-hero .eyebrow { display: block; margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(1.8rem, 2rem + 1.5vw, 2.8rem); }
.page-hero .lede { max-width: 560px; }

/* ---------- course list (sequential, numbered) ---------- */
.course-list { border-top: 1px solid var(--line); }
.course-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.course-item__index {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.5;
  line-height: 1.3;
}
.course-item__body h3 { margin-bottom: 0.6rem; }
.course-item__quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta-600);
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--terracotta);
}
.course-item:nth-child(2n) .course-item__quote { color: var(--teal-600); border-left-color: var(--teal); }
.course-item__desc { color: var(--ink-soft); font-size: 0.96rem; max-width: 58ch; }

@media (min-width: 700px) {
  .course-item { grid-template-columns: 3.2rem 1fr; }
  .course-item__index { font-size: 1.6rem; }
}

/* ---------- technique cards ---------- */
.tech-grid { display: grid; gap: 1.1rem; }
.tech-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tag-row { display: flex; gap: 0.5rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.tech-card h3 { font-size: 1.15rem; }
.tech-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.tech-card__desc { color: var(--ink-soft); font-size: 0.92rem; }

@media (min-width: 700px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pitfalls ---------- */
.pitfalls { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pitfall { background: var(--cream-deep); padding: 1.5rem 1.7rem; }
.pitfall h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.pitfall p { color: var(--ink-soft); font-size: 0.92rem; }
@media (min-width: 880px) { .pitfalls { grid-template-columns: repeat(3, 1fr); } }

/* ============ TECHNIQUE DETAIL PAGE ============ */

/* back link */
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.back-link:hover { color: var(--teal-600); }

/* technique hero extras */
.technique-meaning {
  max-width: 560px;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.technique-hero .tag-row { margin-top: 1.3rem; }

/* video block */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--terracotta-100), transparent 60%),
    linear-gradient(135deg, var(--teal-100), var(--cream-deep));
  display: grid;
  place-items: center;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame__overlay { text-align: center; display: grid; gap: 0.9rem; justify-items: center; padding: 1rem; }
.video-frame__play {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(35,39,31,0.12);
}
.video-frame__play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--terracotta); }
.video-frame__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.video-caption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--ink-soft); }

/* readable prose column */
.rich { max-width: 64ch; }
.rich p { margin-bottom: 1rem; }
.rich p:last-child { margin-bottom: 0; }

/* steps */
.steps { list-style: none; counter-reset: step; max-width: 64ch; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.05rem 2.6rem;
  color: var(--ink-soft);
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -0.1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* breath / lock diagram */
.diagram-figure { margin-top: 1.8rem; }
.diagram-figure > figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.diagram-grid { display: grid; gap: 1.4rem; }
.diagram-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  text-align: center;
}
.diagram-panel svg { width: 92px; height: auto; display: block; margin: 0 auto 0.8rem; }
.diagram-panel h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.diagram-panel p { font-size: 0.86rem; color: var(--ink-soft); }

@media (min-width: 720px) {
  .diagram-grid { grid-template-columns: repeat(3, 1fr); }
}

/* contraindications callout */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  max-width: 64ch;
}
.callout > p { color: var(--ink); margin-bottom: 0.9rem; }
.contra-list { list-style: none; }
.contra-list li {
  position: relative;
  padding: 0 0 0.55rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contra-list li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--terracotta);
}
.contra-note { margin-top: 0.6rem; font-style: italic; font-size: 0.9rem; color: var(--ink-soft); }

/* anatomical illustration block (rich duotone) */
.illus { display: flex; justify-content: center; margin: 0 0 2.2rem; }
.illus svg { width: 100%; max-width: 320px; height: auto; }
@media (min-width: 720px) { .illus svg { max-width: 340px; } }

/* ============ MISSION PAGE ============ */
.manifesto { max-width: 72ch; font-size: 1.04rem; line-height: 1.78; margin-inline: auto; }
.manifesto p { margin-bottom: 1.3rem; color: var(--ink); }
.manifesto p:last-child { margin-bottom: 0; }

.manifesto-close {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  color: var(--ink);
  text-align: center;
  max-width: 40ch;
  margin: 3.4rem auto 0;
  line-height: 1.4;
  padding-top: 2rem;
  position: relative;
}
.manifesto-close::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 2px;
  background: var(--terracotta);
}

/* mission page — two-column layout with illustration */
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.mission-illus { order: -1; display: flex; justify-content: center; }
.mission-illus svg { width: 100%; max-width: 230px; height: auto; }
@media (min-width: 960px) {
  .mission-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 3.5rem; }
  .mission-illus { order: 0; position: sticky; top: 6.5rem; justify-content: flex-end; }
  .mission-illus svg { max-width: 300px; }
}

/* ============ HOMEPAGE RECONSTRUCTION ============ */

/* knowledge map */
.km-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.km-card {
  background: var(--cream);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
a.km-card { color: inherit; }
a.km-card:hover { background: var(--cream-deep); }
.km-card--soon { opacity: 0.62; }
.km-card h3 { font-size: 1.05rem; }
.km-card p { font-size: 0.88rem; color: var(--ink-soft); }
.km-badge {
  position: absolute; top: 1.2rem; right: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.5rem;
}
@media (min-width: 700px) { .km-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .km-grid { grid-template-columns: repeat(4, 1fr); } }

/* start learning */
.start-grid { display: grid; gap: 1.1rem; }
.start-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.start-card h3 { font-size: 1.1rem; }
.start-card p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }
.start-card .btn { align-self: flex-start; margin-top: 0.4rem; }
@media (min-width: 760px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }

/* library material cards (priority: title > category/level > desc > author) */
.lib-grid { display: grid; gap: 1.1rem; }
.lib-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: inherit;
}
.lib-card:hover { border-color: var(--terracotta); }
.lib-card__meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.lib-card__meta span:last-child { color: var(--ink-soft); }
.lib-card h3 { font-size: 1.08rem; }
.lib-card p.lib-card__desc { font-size: 0.9rem; color: var(--ink-soft); flex-grow: 1; }
.lib-card__author { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; }
@media (min-width: 700px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }

/* methodology principle block */
.method-block {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.method-block p { color: var(--ink-soft); font-size: 1rem; margin-top: 0.8rem; }

/* ============ ARCHIVE LAYER: nav account link, knowledge map, library, methodology, dashboard ============ */

.account-link {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.account-link:hover { color: var(--cream); background: var(--ink); }

/* ---------- knowledge map (connected) ---------- */
.map-canvas { padding-block: clamp(2rem, 5vw, 3.5rem); }
.map-core {
  max-width: 280px;
  margin: 0 auto 2.4rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--cream-deep);
}
.map-core span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.map-core strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.map-core small { font-size: 0.78rem; color: var(--ink-soft); }
.map-domains { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.map-domains a, .map-domains > div {
  background: var(--cream);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: inherit;
}
.map-domains a:hover { background: var(--cream-deep); }
.map-domains span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terracotta); }
.map-domains h2 { font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; }
.map-domains p { font-size: 0.86rem; color: var(--ink-soft); }
.map-domains small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.map-domains .is-soon { opacity: 0.6; }
@media (min-width: 700px) { .map-domains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .map-domains { grid-template-columns: repeat(4, 1fr); } }

.path-grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.path-grid article { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.path-grid span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.06em; }
.path-grid h3 { font-size: 1.05rem; }
.path-grid p { font-size: 0.88rem; color: var(--ink-soft); }
@media (min-width: 760px) { .path-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- library catalog (filters + search) ---------- */
.catalog-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
.archive-search {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 1rem; background: var(--cream);
}
.archive-search input { border: none; background: none; outline: none; flex: 1; font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); }
.archive-search kbd { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0.1rem 0.4rem; }
.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  font-family: var(--font-mono); font-size: 0.74rem;
  padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--ink-soft); cursor: pointer;
}
.filter-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.catalog-grid { display: grid; gap: 1.1rem; }
.catalog-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; color: inherit;
}
.catalog-card:hover { border-color: var(--terracotta); }
.catalog-card__id { font-family: var(--font-mono); font-size: 0.66rem; color: var(--terracotta); letter-spacing: 0.06em; }
.catalog-card__type { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.catalog-card h2 { font-size: 1.1rem; font-family: var(--font-display); font-weight: 600; }
.catalog-card p { font-size: 0.9rem; color: var(--ink-soft); flex-grow: 1; }
.catalog-card__meta { display: flex; gap: 0.9rem; font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); }
@media (min-width: 700px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.empty-state { text-align: center; color: var(--ink-soft); padding: 2rem 0; font-size: 0.92rem; }

/* ---------- methodology page ---------- */
.method-topics { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-topics article { background: var(--cream); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.method-topics span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--terracotta); }
.method-topics h2 { font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; }
.method-topics p { font-size: 0.88rem; color: var(--ink-soft); }
.method-topics a { font-size: 0.84rem; color: var(--teal-600); margin-top: 0.3rem; }
@media (min-width: 700px) { .method-topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .method-topics { grid-template-columns: repeat(3, 1fr); } }

.method-manifesto { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--cream-deep); }
.method-cycle { display: grid; gap: 1.2rem; align-items: center; margin-top: 1.6rem; }
.method-cycle > div { text-align: center; }
.method-cycle b { display: block; font-family: var(--font-mono); color: var(--terracotta); font-size: 0.9rem; margin-bottom: 0.3rem; }
.method-cycle strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.method-cycle p { font-size: 0.86rem; color: var(--ink-soft); }
.method-cycle i { display: none; font-style: normal; text-align: center; color: var(--ink-soft); }
@media (min-width: 760px) {
  .method-cycle { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .method-cycle i { display: block; }
}

/* ---------- about page ---------- */
.about-grid { display: grid; gap: 2rem; }
.about-grid > aside {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 860px) { .about-grid { grid-template-columns: 220px 1fr; } }
.about-grid dl {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  text-align: left;
}
.about-grid dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.about-grid dd {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
  padding: 0;
}
.about-grid dd:last-child { margin-bottom: 0; }

/* ---------- dashboard (static prototype) ---------- */
.dashboard-shell { display: grid; gap: 2rem; padding-block: clamp(2rem, 4vw, 3.5rem); }
.dashboard-main { min-width: 0; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 1.4rem; }
.dashboard-sidebar nav { display: flex; flex-direction: column; gap: 0.2rem; }
.dashboard-sidebar nav a {
  padding: 0.55rem 0.7rem; border-radius: var(--radius); font-size: 0.92rem;
  color: var(--ink-soft); display: flex; justify-content: space-between;
}
.dashboard-sidebar nav a.is-active { background: var(--cream-deep); color: var(--ink); font-weight: 500; }
.dashboard-sidebar nav a span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); }
.sidebar-profile { display: flex; align-items: center; gap: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar-profile span { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; }
.sidebar-profile small { color: var(--ink-soft); font-size: 0.78rem; }
.dashboard-welcome { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.dashboard-search { font-family: var(--font-mono); font-size: 0.84rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 1rem; background: var(--cream); color: var(--ink-soft); }
.continue-card { background: var(--cream-deep); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.6rem; display: grid; gap: 1.2rem; }
.continue-card__copy { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.continue-card__copy h2 { font-size: 1.2rem; }
@media (min-width: 700px) { .continue-card { grid-template-columns: 240px 1fr; align-items: center; } }
.continue-card__mark svg { width: 100%; height: auto; }
.continue-card__mark svg path { fill: none; stroke: var(--terracotta); stroke-width: 2; }
.meta-line { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); }
.dashboard-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dashboard-shell { grid-template-columns: 240px 1fr; } }

.text-link { color: var(--teal-600); font-size: 0.92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; }
.text-link:hover { color: var(--terracotta-600); }
.text-link span { transition: transform 0.15s ease; }
.text-link:hover span { transform: translateX(2px); }

/* ============ MEDIA SYSTEM ============ */

/* --- photo slot (placeholder until real photo provided) --- */
.photo-slot {
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-slot img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-slot__hint {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 1rem;
  opacity: 0.7;
}
/* hide hint once real image is loaded */
.photo-slot:has(img) .photo-slot__hint { display: none; }

/* technique hero: side-by-side on wide screens */
.technique-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .technique-hero-grid { grid-template-columns: 1fr 420px; }
  .technique-hero-grid .page-hero__inner { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2rem); }
}

/* --- video frame states --- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-100), var(--cream-deep), var(--terra-100));
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-frame__overlay {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.video-frame__inner {
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  padding: 1rem;
}
.video-frame__play {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(35,39,31,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-frame__play:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(35,39,31,0.18); }
.video-frame__play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--terracotta); }
.video-frame__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* locked state (requires purchase) */
.video-frame--locked .video-frame__overlay { background: rgba(35,39,31,0.55); }
.video-frame--locked .video-frame__label { color: var(--cream); }
.video-lock-icon { color: var(--cream); opacity: 0.75; }
.video-lock-icon svg { width: 36px; height: 36px; }

/* source label (YouTube / Bunny) */
.video-source-badge {
  position: absolute;
  bottom: 0.7rem; right: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  background: rgba(35,39,31,0.5);
  color: rgba(250,249,246,0.85);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  pointer-events: none;
}

.video-caption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* about: portrait */
.about-portrait {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 1rem;
  border: none;
}

/* ============ FOUR DIRECTIONS ============ */
.dir-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px)  { .dir-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .dir-grid { grid-template-columns: repeat(4, 1fr); } }

.dir-card {
  background: var(--cream);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: inherit;
  position: relative;
}
a.dir-card:hover { background: var(--cream-deep); }

.dir-card__tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.dir-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.dir-card__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.45;
}
.dir-card__text {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  line-height: 1.6;
}

/* direction page */
.dir-page-results { margin-top: 2rem; }
.dir-page-results h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.dir-result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.dir-result-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}
.dir-result-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.8rem;
}

/* ── four directions ── */
.dir-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dir-card {
  background: var(--cream);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: inherit;
  position: relative;
}
a.dir-card:hover { background: var(--cream-deep); }
.dir-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.dir-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}
.dir-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 44ch;
}
.dir-card__arrow {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-600);
}
@media (min-width: 720px)  { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dir-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   MOBILE FIRST — responsive phone layer
   Target breakpoints: < 480px (iPhone), < 640px (Android)
   ============================================================ */

/* --- container on small screens --- */
@media (max-width: 640px) {
  :root { --container: 100%; }
  .container { padding-inline: 1.1rem; }
}

/* --- header: hide account-link, keep burger and language switcher --- */
@media (max-width: 879px) {
  .account-link { display: none; }
  .header-tools { gap: 0.6rem; }
  .lang-switch .lang-btn { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
}

/* --- hero: tighter spacing and phone-safe headings --- */
@media (max-width: 640px) {
  .hero { padding-block: 2.2rem 1.8rem; }
  .page-hero { padding-block: 2rem 1.5rem; }
  .page-hero__inner h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .lede { font-size: 1rem; }
}

/* --- technique hero: one column on phones --- */
@media (max-width: 959px) {
  .technique-hero-grid { grid-template-columns: 1fr; }
  .technique-hero-grid .photo-slot { display: none; }
}

/* --- sections: smaller vertical padding --- */
@media (max-width: 640px) {
  .section { padding-block: clamp(2rem, 6vw, 3rem); }
  .section-head { margin-bottom: 1.4rem; }
}

/* --- knowledge map: one column on mobile --- */
@media (max-width: 699px) {
  .km-grid { grid-template-columns: 1fr; }
  .km-card { padding: 1.2rem; }
}

/* --- direction cards: one column on mobile --- */
@media (max-width: 719px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card { padding: 1.4rem 1.2rem; }
}

/* --- library catalog: one column --- */
@media (max-width: 699px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: 1fr; }
}

/* --- start-grid (levels): one column --- */
@media (max-width: 759px) {
  .start-grid { grid-template-columns: 1fr; }
  .start-card { padding: 1.3rem; }
}

/* --- method topics: one column --- */
@media (max-width: 699px) {
  .method-topics { grid-template-columns: 1fr; }
}

/* --- about: one column, centered photo --- */
@media (max-width: 859px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > aside { max-width: 280px; margin-inline: auto; }
}

/* --- manifesto text: full width --- */
@media (max-width: 640px) {
  .manifesto { max-width: 100%; }
  .manifesto-close { font-size: 1.25rem; }
}

/* --- mission grid: remove two-column layout --- */
@media (max-width: 959px) {
  .mission-grid { grid-template-columns: 1fr; }
  .mission-illus { display: none; }
}

/* --- dashboard: one column --- */
@media (max-width: 1079px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .dashboard-sidebar nav a { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
}

/* --- CTA band: smaller padding --- */
@media (max-width: 640px) {
  .cta-band { padding-block: 2.5rem; }
  .cta-band h2 { font-size: 1.4rem; }
}

/* --- buttons: comfortable touch targets --- */
@media (max-width: 640px) {
  .btn { min-height: 44px; padding: 0.7rem 1.2rem; font-size: 0.95rem; }
  .auth-submit { min-height: 48px; font-size: 1rem; }
  .google-btn { min-height: 48px; }
}

/* --- footer: more compact --- */
@media (max-width: 640px) {
  .footer__top { flex-direction: column; gap: 1.5rem; }
  .footer__nav ul { flex-wrap: wrap; gap: 0.8rem 1.4rem; }
  .footer__bottom { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
}

/* --- map canvas (knowledge map page) --- */
@media (max-width: 699px) {
  .map-domains { grid-template-columns: 1fr; }
  .map-core { max-width: 200px; }
  .path-grid { grid-template-columns: 1fr; }
}

/* --- auth page --- */
@media (max-width: 480px) {
  .auth-box { padding: 1.8rem 1.1rem; margin: 0 0.5rem; }
  .auth-page { padding-top: 80px; }
}

/* --- video frame --- */
@media (max-width: 640px) {
  .video-frame { border-radius: var(--radius); }
}

/* --- diagram grid (technique pages) --- */
@media (max-width: 640px) {
  .diagram-grid { grid-template-columns: 1fr; }
  .diagram-figure { margin-top: 1.6rem; }
}

/* --- technique steps --- */
@media (max-width: 640px) {
  .steps li { padding: 0.9rem 0 0.9rem 1.1rem; font-size: 0.96rem; }
}

/* ── page photo banner ── */
.page-photo {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.page-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 640px) {
  .page-photo img { height: 280px; }
}

/* ── hero photo on index ── */
.hero-photo {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
@media (max-width: 640px) {
  .hero-photo img { height: 260px; }
}

/* ── direction illustrations ── */
.dir-illustration {
  width: 100%;
  max-width: 480px;
  margin: 2rem auto 0;
  display: block;
}
.dir-illustration svg {
  width: 100%;
  height: auto;
}
@media (min-width: 860px) {
  .dir-illus-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: center;
  }
  .dir-illustration { margin: 0; }
}

/* ── gallery page ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-deep);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(35,39,31,0.93);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem;
  color: var(--cream); font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* ── editorial photo card (text + photo side by side) ── */
.editorial-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.editorial-grid .photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(35,39,31,0.1);
}
.editorial-grid .photo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
@media (min-width: 860px) {
  .editorial-grid { grid-template-columns: 1fr 420px; }
}
@media (max-width: 859px) {
  .editorial-grid .photo-card { max-width: 480px; margin-inline: auto; }
}


/* ============ v29 editorial homepage hero ============ */
.hero--editorial {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 6rem) clamp(2.8rem, 6vw, 5rem);
  background:
    radial-gradient(900px 520px at 12% 12%, rgba(217,119,87,0.10), transparent 60%),
    radial-gradient(840px 520px at 88% 22%, rgba(74,124,111,0.10), transparent 62%),
    linear-gradient(180deg, #fbfaf7 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero--editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250,249,246,0.98) 0%, rgba(250,249,246,0.82) 44%, rgba(250,249,246,0.08) 74%);
  z-index: 1;
}
.hero--editorial .container { position: relative; z-index: 2; }
.hero--editorial .hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero--editorial .hero__copy { max-width: 620px; }
.hero--editorial .eyebrow {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--teal-600);
}
.hero--editorial h1 {
  max-width: 10.5ch;
  margin-bottom: 1.55rem;
  font-size: clamp(3rem, 7.5vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero--editorial h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 1.45rem;
  background: var(--terracotta);
}
.hero--editorial .lede {
  max-width: 560px;
  font-size: clamp(1.02rem, 0.95rem + 0.38vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink);
}
.hero--editorial .hero__actions { margin-block: 2rem 2.4rem; }
.hero--editorial .btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 12px 26px rgba(35,39,31,0.12);
}
.hero--editorial .btn--primary:hover { background: var(--teal-600); border-color: var(--teal-600); }
.hero--editorial .btn--ghost { background: rgba(250,249,246,0.72); backdrop-filter: blur(8px); }
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  max-width: 620px;
  margin-top: 0.5rem;
}
.hero-feature {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}
.hero-feature__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--teal-600);
  background: rgba(221,233,228,0.75);
}
.hero-feature:nth-child(2n) .hero-feature__icon { color: var(--terracotta-600); background: rgba(243,222,211,0.72); }
.hero-feature svg { width: 26px; height: 26px; }
.hero__visual {
  margin: 0;
  position: relative;
  min-height: clamp(360px, 46vw, 640px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(35,39,31,0.11);
  background: var(--cream-deep);
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250,249,246,0.92) 0%, rgba(250,249,246,0.52) 18%, rgba(250,249,246,0.0) 42%),
    linear-gradient(180deg, rgba(250,249,246,0.08), rgba(35,39,31,0.05));
}
.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
}
.hero--editorial + .intro {
  padding-top: clamp(3.2rem, 5vw, 5rem);
}
.intro__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(2.2rem, 4vw, 3rem);
}
.km-card, .lib-card, .start-card, .dir-card, .path-grid article {
  box-shadow: 0 10px 34px rgba(35,39,31,0.04);
}
.lib-card, .start-card, .dir-card, .km-card {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lib-card:hover, .start-card:hover, .dir-card:hover, a.km-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(35,39,31,0.08);
}
@media (min-width: 960px) {
  .hero--editorial .hero__grid { grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr); }
  .hero--editorial .container { max-width: 1440px; }
  .hero--editorial .hero__visual { margin-right: calc((100vw - min(1440px, 100vw)) / -2); }
}
@media (max-width: 959px) {
  .hero--editorial::before { background: linear-gradient(180deg, rgba(250,249,246,0.98) 0%, rgba(250,249,246,0.94) 45%, rgba(250,249,246,0.65) 100%); }
  .hero--editorial h1 { max-width: 12ch; }
  .hero__visual { min-height: 420px; }
  .hero__visual::before { background: linear-gradient(180deg, rgba(250,249,246,0.25), rgba(35,39,31,0.04)); }
}
@media (max-width: 640px) {
  .hero--editorial { padding-block: 2.7rem 3.2rem; }
  .hero--editorial h1 { font-size: clamp(2.65rem, 16vw, 4.2rem); }
  .hero-features { grid-template-columns: 1fr; gap: 0.85rem; }
  .hero-feature { grid-template-columns: 34px 1fr; }
  .hero-feature__icon { width: 34px; height: 34px; border-radius: 12px; }
  .hero-feature svg { width: 23px; height: 23px; }
  .hero__visual { min-height: 340px; }
  .hero__visual img { object-position: center center; }
}


/* ============ v31 content/media balance ============ */
/* Direction pages: prevent small portrait photos from dominating the text. */
.editorial-grid {
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.editorial-grid > div:first-child {
  max-width: 720px;
}
.editorial-grid .rich p + p {
  margin-top: 1rem;
}
.editorial-grid .photo-card {
  align-self: center;
  max-width: 420px;
  margin-inline: auto;
}
.editorial-grid .photo-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 860px) {
  .editorial-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
}
@media (min-width: 1180px) {
  .editorial-grid { grid-template-columns: minmax(0, 1.15fr) 380px; }
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
}
.insight-card {
  border: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.72);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(35,39,31,0.04);
}
.insight-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 0.45rem;
}
.insight-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .insight-list { grid-template-columns: 1fr; }
}

.photo-ribbon-section {
  padding-block: clamp(2.5rem, 4.6vw, 4.2rem);
  background: linear-gradient(180deg, var(--cream) 0%, #fbfaf7 100%);
}
.photo-ribbon-head {
  max-width: 680px;
  margin-bottom: 1.25rem;
}
.photo-ribbon-head h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem);
}
.photo-ribbon {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 0.75rem;
}
.photo-ribbon figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  min-height: 210px;
  box-shadow: 0 10px 28px rgba(35,39,31,0.08);
}
.photo-ribbon img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease);
}
.photo-ribbon figure:hover img { transform: scale(1.025); }
.photo-ribbon figure:first-child { grid-row: span 2; min-height: 430px; }
.photo-ribbon figure:first-child img { min-height: 430px; }
@media (max-width: 860px) {
  .photo-ribbon { grid-template-columns: 1fr 1fr; }
  .photo-ribbon figure:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .photo-ribbon figure:first-child img { min-height: 280px; }
}
@media (max-width: 560px) {
  .photo-ribbon { grid-template-columns: 1fr; }
}

.technique-hero-grid .photo-slot {
  box-shadow: 0 10px 30px rgba(35,39,31,0.08);
  background: var(--cream-deep);
}
.technique-hero-grid .photo-slot img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 960px) {
  .technique-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; }
}

/* ============ v32 premium system polish ============ */
.hero--editorial {
  background:
    radial-gradient(760px 460px at 14% 10%, rgba(217,119,87,0.09), transparent 64%),
    radial-gradient(760px 500px at 90% 26%, rgba(74,124,111,0.11), transparent 64%),
    linear-gradient(180deg, #fbfaf7 0%, var(--cream) 100%);
}
.hero--editorial::before {
  background: linear-gradient(90deg, rgba(250,249,246,0.98) 0%, rgba(250,249,246,0.86) 42%, rgba(250,249,246,0.18) 72%);
}
.hero--editorial .hero__copy {
  max-width: 660px;
  min-width: 0;
}
.hero--editorial h1 {
  max-width: 11.8ch;
  font-size: clamp(2.75rem, 5.6vw, 5.3rem);
  line-height: 1.02;
  overflow-wrap: normal;
}
.hero__visual {
  border-radius: 22px 0 0 22px;
}
.hero__visual img {
  object-position: center 38%;
}
@media (min-width: 960px) {
  .hero--editorial .hero__grid {
    grid-template-columns: minmax(380px, 0.95fr) minmax(440px, 1.05fr);
  }
}
@media (max-width: 959px) {
  .hero--editorial .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero--editorial h1 {
    max-width: 14ch;
    font-size: clamp(2.45rem, 8vw, 4.2rem);
  }
  .hero__visual {
    min-height: 0;
    border-radius: 22px;
  }
  .hero__visual img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--cream-deep);
  }
}
@media (max-width: 640px) {
  .hero--editorial h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3.35rem);
    line-height: 1.04;
  }
  .hero--editorial .hero__actions {
    margin-block: 1.45rem 1.65rem;
  }
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(35,39,31,0.08);
  background: #efe8dc;
}
.gallery-item img {
  object-fit: cover;
  object-position: center 38%;
  transform: none;
}
.gallery-item:hover img {
  transform: scale(1.018);
}
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16 / 11; }
}

.technique-hero-grid .photo-slot {
  border-radius: 22px;
  overflow: hidden;
}
.technique-hero-grid .photo-slot img {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  background: #efe8dc;
}
.technique-hero-grid .photo-slot img[src*="taysp-uddiyana"] {
  object-fit: cover;
  object-position: center 46%;
  padding: 0;
}
.technique-hero-grid .photo-slot img[src*="teaching-chest-belly"] {
  object-fit: contain;
}
.technique-hero-grid .photo-slot img[src*="dreadlocks-row"] {
  object-fit: contain;
}
@media (min-width: 960px) {
  .technique-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(1.6rem, 4vw, 3rem);
  }
}
@media (max-width: 640px) {
  .technique-hero-grid .photo-slot img {
    max-height: none;
  }
}

.practice-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.focus-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250,249,246,0.72);
  padding: 1.15rem;
  box-shadow: 0 10px 30px rgba(35,39,31,0.045);
}
.focus-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 0.45rem;
}
.focus-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.58;
}
@media (max-width: 760px) {
  .practice-focus { grid-template-columns: 1fr; }
}

/* ============ v33 semantic media system ============ */
.gallery-grid,
.photo-ribbon {
  align-items: stretch;
}
.gallery-item,
.photo-ribbon figure,
.editorial-grid .photo-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(250,249,246,0.72), rgba(241,235,225,0.92));
  border: 1px solid rgba(35,39,31,0.07);
}
.gallery-item,
.photo-ribbon figure {
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
}
.gallery-item img,
.photo-ribbon img,
.editorial-grid .photo-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0.35rem;
}
.photo-ribbon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.photo-ribbon figure:first-child {
  grid-row: auto;
  min-height: 0;
}
.photo-ribbon figure:first-child img {
  min-height: 0;
}
.gallery-item:hover img,
.photo-ribbon figure:hover img {
  transform: none;
}
.editorial-grid .photo-card {
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(35,39,31,0.07);
}
.editorial-grid .photo-card img {
  aspect-ratio: 4 / 3;
  display: block;
}
@media (max-width: 860px) {
  .photo-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-ribbon figure:first-child {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .photo-ribbon {
    grid-template-columns: 1fr;
  }
  .gallery-item,
  .photo-ribbon figure,
  .editorial-grid .photo-card img {
    aspect-ratio: 16 / 11;
  }
}

/* ============ v34 editorial image rhythm ============ */
.section {
  padding-block: clamp(2.4rem, 4.3vw, 4.25rem);
}
.page-hero {
  padding-block: clamp(2.2rem, 4.6vw, 3.9rem) clamp(1.1rem, 2.2vw, 1.7rem);
}
.section-head {
  margin-bottom: clamp(1.35rem, 2.6vw, 2.25rem);
}
.photo-ribbon-section {
  padding-block: clamp(1.9rem, 3.4vw, 3.1rem);
}
.cta-band {
  padding-block: clamp(2.4rem, 4.2vw, 4rem);
}
.site-footer {
  padding-block: 2.35rem 1.65rem;
}

.editorial-grid {
  align-items: start;
}
.editorial-grid .photo-card {
  width: min(340px, 100%);
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 18px 42px rgba(35,39,31,0.09);
}
.editorial-grid .photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  object-fit: unset;
  border-radius: 18px;
}
@media (min-width: 860px) {
  .editorial-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }
}

.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}
.photo-ribbon figure {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 36px rgba(35,39,31,0.08);
}
.photo-ribbon figure:first-child,
.photo-ribbon figure:first-child img {
  grid-row: auto;
  min-height: 0;
}
.photo-ribbon img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  object-fit: unset;
  border-radius: 18px;
}
@media (max-width: 860px) {
  .photo-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-ribbon figure:first-child {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .photo-ribbon {
    grid-template-columns: 1fr;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
}
.gallery-item {
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(35,39,31,0.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}
.gallery-item:hover img {
  transform: scale(1.018);
}
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ v35 stable gallery cards + preview ============ */
.gallery-grid {
  align-items: stretch;
}
.gallery-item,
.photo-ribbon figure {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--cream-deep);
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 18px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border-radius: 18px;
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.03) contrast(1.02);
}
.photo-ribbon {
  align-items: stretch;
}
.photo-ribbon figure {
  aspect-ratio: 3 / 4;
  min-height: 0;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(35,39,31,0.08);
}
.photo-ribbon figure:first-child {
  grid-row: auto;
  min-height: 0;
}
.photo-ribbon img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.photo-ribbon figure:hover img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.02);
}
.photo-ribbon img[src*="beach-yoga-child"] { object-position: center 48%; }
.photo-ribbon img[src*="class-child-family"] { object-position: center 42%; }
.photo-ribbon img[src*="family-child"] { object-position: center 45%; }
.photo-ribbon img[src*="performance-group"],
.photo-ribbon img[src*="recovery-dreadlocks2"],
.photo-ribbon img[src*="class-meditation-group"] { object-position: center 38%; }

.hero-visual img,
.about-portrait,
.editorial-grid .photo-card img,
.technique-hero-grid .photo-slot img {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(35,39,31,0.9);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.34);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(250,249,246,0.12);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(250,249,246,0.2);
}
@media (max-width: 860px) {
  .photo-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .photo-ribbon {
    grid-template-columns: 1fr;
  }
  .photo-ribbon figure {
    aspect-ratio: 4 / 5;
  }
}

/* ============ v36 technique media pass ============ */
.technique-hero {
  padding-block: clamp(2rem, 4.2vw, 3.6rem);
}
.technique-hero-grid {
  align-items: center;
  gap: clamp(1.4rem, 3.4vw, 3rem);
}
.technique-hero-grid .page-hero__inner {
  max-width: 760px;
}
.technique-hero-grid .photo-slot {
  display: block;
  justify-self: end;
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 22px 54px rgba(35,39,31,0.12);
}
.technique-hero-grid .photo-slot img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  padding: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.technique-hero-grid .photo-slot:hover img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.02);
}
.technique-hero-grid .photo-slot img[src*="teaching-chest-belly"] {
  object-fit: cover;
  object-position: center 43%;
}
.technique-hero-grid .photo-slot img[src*="taysp-uddiyana"] {
  object-fit: cover;
  object-position: center 48%;
}
.technique-hero-grid .photo-slot img[src*="dreadlocks-row"] {
  object-fit: cover;
  object-position: center 44%;
}
@media (min-width: 960px) {
  .technique-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  }
  .technique-hero-grid .page-hero__inner {
    padding-block: 0;
  }
}
@media (max-width: 959px) {
  .technique-hero-grid {
    grid-template-columns: 1fr;
  }
  .technique-hero-grid .photo-slot {
    justify-self: start;
    width: min(100%, 420px);
  }
}
@media (max-width: 640px) {
  .technique-hero-grid .photo-slot {
    display: block;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
}

/* ============ v37 cache-proof media correction ============ */
.photo-ribbon figure {
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  max-height: none !important;
}
.photo-ribbon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  padding: 0 !important;
  border-radius: 18px;
}
.photo-ribbon img[src*="pranayama-group"] { object-position: center 44%; }
.photo-ribbon img[src*="teaching-breathing"] { object-position: center 46%; }
.photo-ribbon img[src*="community-two-women"] { object-position: center 42%; }
.photo-ribbon img[src*="coconut-child"] { object-position: center 44%; }
.photo-ribbon img[src*="class-overview-alt"] { object-position: center 42%; }

/* legacy hero rules removed in v71 — единое правило ниже */

@media (max-width: 640px) {
  .photo-ribbon figure {
    aspect-ratio: 4 / 3 !important;
  }
  .technique-hero-grid > .photo-slot {
    width: 100% !important;
    max-width: 420px !important;
    margin-inline: auto !important;
  }
}

/* ============ v38 lecture publication system ============ */
.course-item--link {
  color: inherit;
  position: relative;
  transition: background-color 0.22s var(--ease), padding-inline 0.22s var(--ease), border-color 0.22s var(--ease);
}
.course-item--link:hover {
  background: rgba(241,235,225,0.55);
  padding-inline: 1rem;
}
.course-item__label,
.course-item__action {
  display: inline-flex;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.course-item__label {
  margin-bottom: 0.55rem;
}
.course-item__action {
  margin-top: 0.9rem;
  color: var(--terracotta-600);
}
.lecture-hero {
  background:
    radial-gradient(900px 440px at 80% 18%, rgba(221,233,228,0.5), transparent 62%),
    linear-gradient(180deg, rgba(250,249,246,1), rgba(241,235,225,0.36));
}
.lecture-hero__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: end;
}
@media (min-width: 920px) {
  .lecture-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }
}
.lecture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}
.lecture-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(250,249,246,0.75);
  padding: 0.38rem 0.62rem;
}
.lecture-card {
  border: 1px solid var(--line);
  background: rgba(250,249,246,0.82);
  border-radius: 22px;
  padding: 1.45rem;
  box-shadow: 0 18px 46px rgba(35,39,31,0.08);
}
.lecture-card h2 {
  font-size: 1.35rem;
  margin-block: 0.7rem 0.55rem;
}
.lecture-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}
.lecture-media-grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 960px) {
  .lecture-media-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    align-items: stretch;
  }
}
.media-panel {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 16px 44px rgba(35,39,31,0.07);
}
.media-panel .section-head {
  margin-bottom: 1rem;
}
.media-panel .section-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}
.lecture-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink);
}
.lecture-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-panel--audio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.media-panel audio {
  width: 100%;
}
.lecture-resource-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.lecture-study-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 980px) {
  .lecture-study-grid {
    grid-template-columns: 240px minmax(0, 760px);
  }
}
.lecture-toc {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(250,249,246,0.72);
  border-radius: 20px;
  padding: 1rem;
  position: sticky;
  top: 96px;
}
.lecture-toc nav {
  display: grid;
  gap: 0.65rem;
}
.lecture-toc a {
  color: var(--ink-soft);
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
}
.lecture-toc a:hover {
  color: var(--terracotta-600);
}
.lecture-body {
  max-width: 760px;
}
.lecture-body > .eyebrow {
  display: block;
  margin-bottom: 0.9rem;
}
.lecture-body h2 {
  margin-block: 1.9rem 0.85rem;
}
.lecture-body h2:first-of-type {
  margin-top: 0;
}
.lecture-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 1rem;
}
.lecture-prompt {
  border-left: 3px solid var(--terracotta);
  background: rgba(250,249,246,0.76);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.lecture-prompt span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 0.45rem;
}
.lecture-prompt p {
  color: var(--ink);
  margin: 0;
}
.lecture-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.lecture-next span {
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .course-item--link:hover {
    padding-inline: 0;
  }
  .lecture-toc {
    position: static;
  }
}

/* Kapalabhati anatomy: larger desktop diagrams with clear medical structure. */
.anatomy-section .section-head {
  margin-bottom: 1.35rem;
  max-width: none;
}
.anatomy-layout {
  align-items: center;
  display: grid;
  gap: clamp(2.2rem, 5vw, 5rem);
}
.anatomy-copy {
  max-width: 690px;
}
.anatomy-copy .rich {
  max-width: 680px;
}
.anatomy-plate {
  background: rgba(250, 249, 246, 0.78);
  border: 1px solid rgba(35, 39, 31, 0.1);
  border-radius: clamp(22px, 3vw, 36px);
  box-shadow: 0 24px 70px rgba(54, 48, 39, 0.08);
  padding: clamp(0.85rem, 2.2vw, 1.65rem);
}
.anatomy-plate svg {
  display: block;
  height: auto;
  margin-inline: auto;
  max-width: 680px;
  width: 100%;
}
.airway-label,
.diagram-label {
  fill: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.airway-label--major {
  fill: var(--deep-green);
  font-size: 14px;
  font-weight: 600;
}
.diaphragm-figure {
  margin-top: clamp(2.5rem, 5vw, 4.6rem);
}
.diaphragm-figure .diagram-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
.diaphragm-panel {
  padding: clamp(1.15rem, 2vw, 1.65rem);
}
.diaphragm-panel svg {
  display: block;
  height: auto;
  margin: 0 auto 1rem;
  max-width: 330px;
  width: min(100%, 330px);
}
@media (min-width: 820px) {
  .anatomy-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  }
  .diaphragm-figure .diagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .anatomy-plate {
    padding: 1.9rem;
  }
  .diaphragm-panel svg {
    max-width: 360px;
    width: min(100%, 360px);
  }
}
@media (max-width: 560px) {
  .anatomy-plate {
    margin-inline: -0.2rem;
  }
  .airway-label,
  .diagram-label {
    font-size: 12px;
  }
}

.anatomy-image-card {
  overflow: hidden;
  padding: 0;
}
.anatomy-image-card picture {
  display: block;
}
.anatomy-image-card img {
  display: block;
  height: auto;
  width: 100%;
}
.diaphragm-image-card {
  background: rgba(250, 249, 246, 0.78);
  border: 1px solid rgba(35, 39, 31, 0.1);
  border-radius: clamp(22px, 3vw, 36px);
  box-shadow: 0 24px 70px rgba(54, 48, 39, 0.08);
  margin-top: 1.15rem;
}
.diaphragm-figure > .diagram-grid {
  display: none;
}
.diaphragm-note-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.1rem;
}
.diaphragm-note {
  background: rgba(250, 249, 246, 0.78);
  border: 1px solid rgba(35, 39, 31, 0.1);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}
.diaphragm-note span {
  color: var(--terracotta-600);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.diaphragm-note h4 {
  margin: 0 0 0.35rem;
}
.diaphragm-note p {
  color: var(--ink-soft);
  margin: 0;
}
@media (min-width: 820px) {
  .diaphragm-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- technique pages: reading rhythm + media fit (v50) ---------- */

/* Centre the reading column instead of pinning everything to the left edge. */
.page-technique .section > .container > .section-head,
.page-technique .section > .container > .rich,
.page-technique .section > .container > .steps,
.page-technique .section > .container > .lede,
.page-technique .section > .container > .note,
.page-technique .section > .container > .callout,
.page-technique .section > .container > .catalog-grid,
.page-technique .section > .container > .diaphragm-note {
  margin-inline: auto;
}
.page-technique .section > .container > .rich,
.page-technique .section > .container > .steps,
.page-technique .section > .container > .lede,
.page-technique .section > .container > .note {
  max-width: 68ch;
}
.page-technique .section > .container > .callout,
.page-technique .section > .container > .catalog-grid,
.page-technique .section > .container > .diaphragm-note {
  max-width: 900px;
}
.page-technique .section > .container > .note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 1.4rem;
}

/* Anatomy artwork must never exceed the viewport height. */
.page-technique .anatomy-image-card img,
.page-technique .diaphragm-image-card img {
  max-height: 72vh;
  object-fit: contain;
  width: 100%;
}
.page-technique .diaphragm-figure {
  margin-inline: auto;
  max-width: 1000px;
}
.page-technique .diaphragm-figure figcaption {
  text-align: center;
}
.page-technique .diaphragm-note-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}
@media (min-width: 720px) {
  .page-technique .diaphragm-note-grid { grid-template-columns: 1fr 1fr; }
}

/* Contraindication lists read as a checklist, not a wall. */
.page-technique .contra-list { display: grid; gap: 0.45rem; }
.page-technique .callout h3 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 1.6rem 0 0.7rem;
}
.page-technique .callout h3:first-of-type { margin-top: 1.2rem; }

/* Lecture cards */
.page-technique .catalog-card__meta {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.page-technique .catalog-card__price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: auto;
  padding-top: 0.6rem;
}
.page-technique .catalog-card .btn { margin-top: 0.7rem; text-align: center; }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .page-technique .anatomy-image-card img,
  .page-technique .diaphragm-image-card img { max-height: 62vh; }

  .page-technique .section > .container > .rich,
  .page-technique .section > .container > .steps,
  .page-technique .section > .container > .lede { max-width: 100%; }

  .page-technique .rich p { font-size: 1rem; line-height: 1.7; }
  .page-technique .steps li { font-size: 1rem; line-height: 1.65; }
  .page-technique .contra-list li { font-size: 0.95rem; line-height: 1.6; }

  .page-technique .callout { padding-inline: 1.1rem; }
  .page-technique .catalog-card { padding: 1.25rem; }
  .page-technique .catalog-card .btn { display: block; width: 100%; padding-block: 0.85rem; }
  .page-technique .catalog-card__price { font-size: 1.5rem; }

  .page-technique .technique-hero-grid { gap: 1.4rem; }
  .page-technique .diaphragm-figure { margin-top: 2rem; }
}

/* ---------- technique pages: vertical alignment + tight media cards (v51) ---------- */

/* Hero: photo and copy share the same optical centre. */
@media (min-width: 960px) {
  .page-technique .technique-hero-grid { align-items: center; }
  .page-technique .technique-hero-grid .page-hero__inner { padding-block: 0; }
  .page-technique .technique-hero-grid .photo-slot img {
    max-height: 76vh;
    object-fit: cover;
    width: 100%;
  }
}

/* Anatomy block: copy and artwork centred against each other. */
@media (min-width: 820px) {
  .page-technique .anatomy-layout { align-items: center; }
  .page-technique .anatomy-copy { align-self: center; }
}

/* Media cards hug the artwork instead of letterboxing it. */
.page-technique .anatomy-image-card,
.page-technique .diaphragm-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-technique .anatomy-image-card picture,
.page-technique .diaphragm-image-card picture {
  display: flex;
  justify-content: center;
  width: 100%;
}
.page-technique .anatomy-image-card img,
.page-technique .diaphragm-image-card img {
  display: block;
  height: auto;
  margin-inline: auto;
  max-height: 74vh;
  max-width: 100%;
  object-fit: initial;
  width: auto;
}

/* The two-panel diaphragm plate: no side gutters, caption above. */
.page-technique .diaphragm-image-card { padding: 0; overflow: hidden; }
.page-technique .diaphragm-figure figcaption { margin-bottom: 0.9rem; }

@media (max-width: 700px) {
  .page-technique .anatomy-image-card img,
  .page-technique .diaphragm-image-card img { max-height: none; width: 100%; }
  .page-technique .technique-hero-grid .photo-slot img { max-height: 46vh; object-fit: cover; }
}

/* ---------- technique pages: decisive media sizing (v53) ---------- */

/* Hero photo: fixed proportion, capped height — the row stops being a tower. */
.page-technique .technique-hero-grid .photo-slot { align-self: center; }
.page-technique .technique-hero-grid .photo-slot img {
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}
@media (min-width: 960px) {
  .page-technique .technique-hero-grid { align-items: center !important; }
  .page-technique .technique-hero-grid .page-hero__inner { padding-block: 0 !important; align-self: center; }
}

/* Anatomy artwork: a sane column, centred, never taller than the copy needs. */
.page-technique .anatomy-plate,
.page-technique .anatomy-image-card {
  align-self: center;
  margin-inline: auto;
  max-width: 560px;
  width: 100%;
}
.page-technique .anatomy-image-card img {
  max-height: 620px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Two-panel plate: edge to edge inside its card, no side gutters. */
.page-technique .diaphragm-figure { max-width: 980px; margin-inline: auto; }
.page-technique .diaphragm-image-card { padding: 0; }
.page-technique .diaphragm-image-card picture,
.page-technique .diaphragm-image-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: cover;
  margin: 0;
}

@media (max-width: 700px) {
  .page-technique .technique-hero-grid .photo-slot img { aspect-ratio: 3 / 2; max-height: 320px; }
  .page-technique .anatomy-plate,
  .page-technique .anatomy-image-card { max-width: 100%; }
  .page-technique .anatomy-image-card img { max-height: none; }
}

/* ---------- airway figure: how much air leaves on the exhale (v54) ---------- */
.page-technique .airway-figure {
  margin: clamp(2rem, 4vw, 3.2rem) auto 0;
  max-width: 980px;
}
.page-technique .airway-figure figcaption {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  text-align: center;
  text-transform: uppercase;
}
.page-technique .airway-figure__layout {
  align-items: center;
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .page-technique .airway-figure__layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr); }
}
.page-technique .airway-figure__plate {
  background: rgba(250, 249, 246, 0.78);
  border: 1px solid rgba(35, 39, 31, 0.1);
  border-radius: clamp(22px, 3vw, 36px);
  box-shadow: 0 24px 70px rgba(54, 48, 39, 0.08);
  max-width: 100%;
  overflow: hidden;
  padding: 0;
}
.page-technique .airway-figure__plate img {
  display: block;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  width: 100%;
}
.page-technique .airway-num {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.1;
}
.page-technique .airway-num__label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0.4rem 0 1.4rem;
  max-width: 34ch;
}
.page-technique .airway-legend {
  border-left: 3px solid var(--line);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin-bottom: 1.1rem;
}
.page-technique .airway-legend--on { border-left-color: var(--teal); }
.page-technique .airway-legend h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.page-technique .airway-legend p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }
.page-technique .airway-figure__caption {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 1.3rem auto 0;
  max-width: 62ch;
  text-align: center;
}
@media (max-width: 700px) {
  .page-technique .airway-figure__plate img { max-height: none; }
  .page-technique .airway-num { font-size: 2rem; }
}

/* ---------- physiology section without artwork: no empty column (v55) ---------- */
.page-technique .anatomy-layout > .anatomy-copy:only-child {
  grid-column: 1 / -1;
  margin-inline: auto;
  max-width: 68ch;
  width: 100%;
}
.page-technique .anatomy-layout > .anatomy-copy:only-child .rich,
.page-technique .anatomy-layout > .anatomy-copy:only-child .section-head {
  margin-inline: auto;
  max-width: 68ch;
}

/* ---------- hero: copy sits high, photo no longer sets the height (v56) ---------- */
@media (min-width: 960px) {
  .page-technique .technique-hero-grid { align-items: start !important; }
  .page-technique .technique-hero-grid .page-hero__inner {
    align-self: start;
    padding-block: clamp(1.5rem, 3vw, 2.6rem) 0 !important;
  }
  .page-technique .technique-hero-grid .photo-slot { align-self: start; }
  .page-technique .technique-hero-grid .photo-slot img {
    aspect-ratio: 4 / 5;
    max-height: 480px;
  }
}

/* ---------- video never taller than the viewport (v61) ---------- */
.lecture-video {
  margin-inline: auto;
  max-width: calc((100vh - 300px) * 16 / 9);
  width: 100%;
}
@media (max-width: 959px) {
  .lecture-video { max-width: 100%; }
}

/* ================================================================
   ЕДИНОЕ ПРАВИЛО ДЛЯ ВСЕХ ПЛЕЕРОВ И ВИДЕОБЛОКОВ (v62)
   Один потолок высоты на всей платформе: видео всегда помещается
   в экран целиком — и верх кадра, и панель управления.
   ================================================================ */

:root {
  /* запас по вертикали: шапка сайта + заголовок блока + подпись */
  --video-vertical-chrome: 300px;
  --video-max-width: 880px;
}

.lecture-video,
.video-frame,
.media-panel .lecture-video {
  margin-inline: auto;
  max-width: min(var(--video-max-width), calc((100vh - var(--video-vertical-chrome)) * 16 / 9));
  width: 100%;
}

/* страницы техник: блок-заглушка не должен доминировать над текстом */
.page-technique .video-frame {
  --video-max-width: 720px;
}

/* страницы лекций: видео в паре с аудио, ему можно чуть больше */
.lecture-media-grid .lecture-video {
  --video-max-width: 960px;
}

@media (max-width: 959px) {
  .lecture-video,
  .video-frame,
  .page-technique .video-frame,
  .lecture-media-grid .lecture-video {
    max-width: 100%;
  }
}

/* ================================================================
   ГЛАВНАЯ, МОБИЛЬНАЯ ВЕРСИЯ: фото перестаёт быть вставленной
   картинкой и становится частью полосы, как на десктопе (v64)
   ================================================================ */
@media (max-width: 959px) {
  .hero--editorial .hero__visual {
    /* во всю ширину экрана, без полей и скруглений */
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
    /* пропорция вместо жёсткой высоты — кадр не сплющивается */
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .hero--editorial .hero__visual img {
    height: 100%;
    min-height: 0;
    object-position: center 42%;
    transform: none;
  }
  /* мягкий переход сверху и снизу — фото «растворяется» в фоне */
  .hero--editorial .hero__visual::before {
    background:
      linear-gradient(180deg,
        rgba(250, 249, 246, 0.96) 0%,
        rgba(250, 249, 246, 0.45) 12%,
        rgba(250, 249, 246, 0) 32%,
        rgba(250, 249, 246, 0) 74%,
        rgba(250, 249, 246, 0.82) 96%,
        rgba(250, 249, 246, 1) 100%);
  }
}

@media (max-width: 640px) {
  .hero--editorial .hero__visual { aspect-ratio: 1 / 1; }
  .hero--editorial .hero__visual img { object-position: center 45%; }
}

/* ---------- вложенное меню (v67) ---------- */
.main-nav li.has-children { position: relative; }
.main-nav .subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background: var(--cream, #faf9f6);
  border: 1px solid var(--line, #d8d4ca);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(35, 39, 31, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.main-nav li.has-children:hover .subnav,
.main-nav li.has-children:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .subnav a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.92rem;
}
.main-nav .subnav a:hover { background: rgba(35, 39, 31, 0.05); }
.main-nav a.is-active { color: var(--terracotta, #d97757); }

.mobile-nav .mobile-nav__child {
  padding-left: 1.6rem;
  font-size: 0.95rem;
  opacity: 0.78;
}
.mobile-nav .mobile-nav__account { margin-top: 0.8rem; font-weight: 600; }
.mobile-nav a.is-active { color: var(--terracotta, #d97757); }

/* подменю раскрывается вертикально, а не в строку (v68) */
.main-nav .subnav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
.main-nav .subnav li { display: block; width: 100%; }

/* ================================================================
   Шапка страницы техники: фото ровно по высоте текста (v69).
   Снимает накопившийся конфликт правил из v32 / v56.
   ================================================================ */
@media (min-width: 960px) {
  .page-technique .technique-hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: stretch !important;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .page-technique .technique-hero-grid .page-hero__inner {
    align-self: center;
    padding-block: clamp(2rem, 4vw, 3rem) !important;
  }
  .page-technique .technique-hero-grid .photo-slot {
    align-self: stretch;
    height: 100%;
    min-height: 380px;
  }
  .page-technique .technique-hero-grid .photo-slot img {
    aspect-ratio: auto !important;
    width: 100%;
    height: 100%;
    max-height: none !important;
    object-fit: cover;
    object-position: center 35%;
  }
}

/* ---------- вертикальное демо-видео + заметки рядом (v70) ---------- */
.demo-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
  margin-inline: auto;
  max-width: 900px;
}
@media (min-width: 820px) {
  .demo-grid { grid-template-columns: 340px minmax(0, 1fr); }
}
.demo-video {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 74vh;
  margin-inline: auto;
  width: 100%;
  max-width: 340px;
  border-radius: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  background: var(--cream-deep, #f3f1ea);
  box-shadow: 0 18px 46px rgba(35, 39, 31, 0.12);
}
.demo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-notes h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}
.demo-note {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.6rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.demo-note:first-of-type { border-top: 0; padding-top: 0; }
.demo-note__n {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--teal);
  padding-top: 0.2rem;
}
.demo-note p { margin: 0; line-height: 1.6; }
.demo-notes .video-caption { margin-top: 1.2rem; }

/* ================================================================
   ШАПКА СТРАНИЦЫ ТЕХНИКИ (v72)
   Фото вертикальное по природе (562x1000) — работаем с его
   собственной пропорцией, без кадрирования.
   ================================================================ */
.page-technique .page-hero.technique-hero {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 960px) {
  .page-technique .technique-hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    align-items: center !important;
    gap: clamp(2.5rem, 5vw, 4.5rem) !important;
  }
  .page-technique .technique-hero-grid .page-hero__inner {
    padding-block: 0 !important;
    align-self: center !important;
  }
  .page-technique .technique-hero-grid > .photo-slot {
    width: 100% !important;
    max-width: 300px !important;
    aspect-ratio: 562 / 1000 !important;
    max-height: 530px !important;
    height: auto !important;
    align-self: center !important;
    justify-self: end !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 22px 54px rgba(35, 39, 31, 0.12) !important;
  }
  .page-technique .technique-hero-grid > .photo-slot img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 562 / 1000 !important;
    object-fit: cover !important;
    object-position: center 45% !important;
  }
}
@media (max-width: 959px) {
  .page-technique .technique-hero-grid > .photo-slot {
    display: block !important;
    max-width: 260px;
    margin-inline: auto;
    aspect-ratio: 562 / 1000;
    border-radius: 20px;
    overflow: hidden;
  }
  .page-technique .technique-hero-grid > .photo-slot img {
    width: 100%; height: 100%; object-fit: cover;
  }
}

/* ---------- анатомическая петля (v73) ---------- */
.anatomy-loop { margin-inline: auto; max-width: 760px; text-align: center; }
.anatomy-loop figcaption {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.anatomy-loop video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 20px 50px rgba(35, 39, 31, 0.12);
  background: #0d1014;
}
.anatomy-loop .video-caption { margin-top: 1rem; }

/* ---------- нумерованные уровни / вариации (v74) ---------- */
.level-list {
  display: grid;
  gap: 1.2rem;
  margin-inline: auto;
  max-width: 900px;
  margin-top: 1.4rem;
}
.level-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.6rem 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.level-item:first-child { border-top: 0; padding-top: 0; }
.level-item__n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terracotta);
  padding-top: 0.25rem;
}
.level-item h3 {
  grid-column: 2;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.level-item p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .level-item { grid-template-columns: 2rem minmax(0, 1fr); }
}

/* ---------- единый блок «что это даёт» на страницах направлений (v78) ---------- */
.benefits-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.benefit-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
}
@media (min-width: 700px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit-card {
  background: rgba(250, 249, 246, 0.72);
  border: 1px solid rgba(35, 39, 31, 0.09);
  border-radius: 18px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.benefit-card__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}
.benefit-card h3 { font-size: 1.02rem; margin: 0; }
.benefit-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: 0.96rem; }

/* ---------- шапка техники: убрать провал между текстом и фото (v79) ---------- */
@media (min-width: 960px) {
  .page-technique .technique-hero-grid {
    max-width: 1120px !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: clamp(2rem, 3.5vw, 3rem) !important;
    align-items: center !important;
  }
  .page-technique .technique-hero-grid > .photo-slot {
    max-width: 340px !important;
    justify-self: start !important;
  }
  .page-technique .technique-hero-grid .page-hero__inner .lede,
  .page-technique .technique-hero-grid .page-hero__inner p {
    max-width: 100% !important;
  }
}

/* ================================================================
   Страницы техник: единая колонка чтения (v80)
   Все блоки — заголовки, абзацы, списки, врезки — по одной левой
   границе. Смещений и центровок больше нет.
   ================================================================ */
.page-technique .section > .container > .section-head,
.page-technique .section > .container > .rich,
.page-technique .section > .container > .steps,
.page-technique .section > .container > .bonus-list,
.page-technique .section > .container > .level-list,
.page-technique .section > .container > .lede,
.page-technique .section > .container > .note,
.page-technique .section > .container > .callout,
.page-technique .section > .container > .diaphragm-note,
.page-technique .section > .container > .catalog-grid,
.page-technique .section > .container > figure {
  margin-inline: auto !important;
  max-width: 820px !important;
  width: 100%;
}
.page-technique .section > .container > .section-head { text-align: left !important; }
.page-technique .section > .container > .section-head .eyebrow { display: block; }

/* внутри блоков ничего не сужается отдельно — иначе снова «лесенка» */
.page-technique .section > .container > .rich,
.page-technique .section > .container > .rich > p,
.page-technique .section > .container > .steps,
.page-technique .section > .container > .bonus-list,
.page-technique .section > .container > .note {
  max-width: 820px !important;
}
.page-technique .bonus-list { padding-left: 1.2rem; }
.page-technique .bonus-list li { margin-bottom: 0.6rem; line-height: 1.7; }

/* ================================================================
   КНИГИ (v85)
   ================================================================ */
.books-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.book-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  background: rgba(250, 249, 246, 0.7);
  border: 1px solid rgba(35, 39, 31, 0.09);
  border-radius: 20px;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
}
@media (min-width: 600px) { .book-card { grid-template-columns: 170px minmax(0, 1fr); } }

.book-card__cover img {
  display: block; width: 100%; height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(35, 39, 31, 0.18);
}
.book-card__cover--empty {
  aspect-ratio: 2 / 3;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(35, 39, 31, 0.03);
}
.book-card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.book-card__body h2 { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); margin: 0; }
.book-card__subtitle {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracotta); margin: 0;
}
.book-card__hook { font-size: 1.02rem; line-height: 1.6; margin: 0.4rem 0 0; }
.book-card__about { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.book-card__meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-soft); margin: 0.6rem 0 0;
}
.book-card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.book-card__actions .btn { flex: 1 1 auto; text-align: center; }
.book-card__sample { margin-top: 0.7rem; display: inline-block; }
.book-card--soon { opacity: 0.9; }
.book-card__notify { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.book-card__notify input {
  flex: 1 1 200px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; font-size: 0.95rem;
}

/* фрагменты книг */
.sample-body { margin-inline: auto; max-width: 68ch; }
.sample-body p { line-height: 1.8; margin-bottom: 1.1rem; }
.sample__h { margin: 2rem 0 1rem; font-size: 1.3rem; }
.sample-cta {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 68ch;
  padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center;
}
.sample-cta p { color: var(--ink-soft); margin-bottom: 1rem; }

@media (max-width: 599px) {
  .book-card__cover { max-width: 190px; }
}
.book-card__price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0.8rem 0 0;
}
