/* ============================================================
   YOGAL · Founder page styles
   Editorial profile · paper + ink · classical timeline
   ============================================================ */

.page-founder { background: var(--paper); }


/* ===== Hero ===== */

.f-hero {
  position: relative;
  padding: 180px 0 120px;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(216,175,111,0.18), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.f-hero::before {
  /* Faint hairline at bottom edge — separates hero from lineage section. */
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--line-light);
}

.f-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.f-hero-text { padding-top: 8px; }

.f-hero-kicker {
  display: block;
  margin-bottom: 56px;
  color: var(--bronze);
}

.f-hero-name {
  font-size: clamp(72px, 9.5vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 200;
  margin-bottom: 48px;
}

.f-hero-name em {
  display: inline-block;
}

.f-hero-sig {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 36px;
}

.f-hero-sig strong { font-weight: 500; }

/* ===== Bold treatment inside body copy =====
   Inter at the body weight (300) makes <strong>'s browser-default "bolder"
   resolve to 400 — visually nothing. Lift to 600 with full ink color so the
   emphasis actually reads through the dimmed paragraph opacity. */
.f-hero-bio strong,
.tl-detail strong,
.inst-role strong {
  font-weight: 600;
  color: var(--ink);
  /* opacity inherits from parent; bump letter-spacing slightly for clarity */
  letter-spacing: -0.005em;
}

.f-hero-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-3);
  margin-top: -28px;
  margin-bottom: 40px;
}

.f-hero-bio {
  max-width: 56ch;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 56px;
}

.f-hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  max-width: 540px;
}

.f-hero-meta-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-3);
  margin-bottom: 6px;
}

.f-hero-meta-v {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}


/* Portrait — tall vertical figure with sober caption */
.f-hero-portrait {
  position: relative;
  margin-top: 12px;
}

.f-hero-portrait image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  box-shadow:
    0 1px 0 rgba(22,17,11,0.08),
    0 30px 80px -30px rgba(22,17,11,0.4);
}
.f-hero-portrait image-slot img {
  /* Chandra portraits are vertical 3:5 — shift focus up so the practitioner's
     upper body is in frame at our 3:4 aspect ratio. */
  object-fit: cover;
  object-position: center 30%;
}

.f-hero-portrait figcaption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-hero-portrait-cap-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.f-hero-portrait-cap-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-3);
}


/* ===== Lineage / Timeline ===== */

.lineage {
  padding: var(--space-7) 0;
  background: var(--paper);
}

.lineage .section-head {
  /* Editorial 2-col: section-num as margin annotation on the left,
     h2 + meta stacked in the main reading column on the right. Cleaner
     than the homepage 3-side-by-side pattern when copy is this long. */
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 32px 80px;
  max-width: 1080px;
  margin-bottom: 96px;
}

.lineage .section-head .section-num {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  padding-top: 18px;
  align-self: start;
}

.lineage .section-head h2 {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
}

.lineage .section-head-meta {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 56ch;
  margin-top: 8px;
}

.timeline {
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
}

.tl-row {
  display: grid;
  grid-template-columns: 120px 56px 1fr;
  gap: 0 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line-light);
}

.tl-row:last-child {
  border-bottom: 1px solid var(--line-light);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bronze-3);
  padding-top: 10px;
}

.tl-rule {
  position: relative;
  align-self: stretch;
}

.tl-rule::before {
  /* Vertical hairline inside the rule column */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -36px;
  width: 1px;
  background: var(--line-light);
}

.tl-rule::after {
  /* Dot at start of each row */
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--bronze);
  transform: translateX(-50%);
}

.tl-row--current .tl-rule::after {
  background: var(--bronze);
  box-shadow: 0 0 0 4px rgba(184,145,90,0.18);
}

.tl-row:last-child .tl-rule::before {
  bottom: 0;
}

.tl-body { padding-top: 4px; }

.tl-name {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--ink);
}

.tl-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bronze-3);
  margin-bottom: 16px;
}

.tl-detail {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.78;
  max-width: 56ch;
}


/* ===== Words — full-bleed pull quote ===== */

.f-words {
  position: relative;
  padding: var(--space-8) 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.f-words-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.f-words-bg .bg-fill,
.f-words-bg img,
.f-words-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) sepia(0.20) brightness(0.42) contrast(1.10);
}

/* Slideshow JS sets opacity inline. Match the dark editorial treatment
   and shift focus to upper-third so figures stay in frame through ken-burns. */
.f-words-bg .bg-slide {
  filter: saturate(0.55) sepia(0.20) brightness(0.42) contrast(1.10);
  object-position: center 30%;
  will-change: opacity, transform;
}

.f-words-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 40% at 30% 30%, rgba(216,175,111,0.16), transparent 65%),
    linear-gradient(180deg, rgba(22,17,11,0.45) 0%, rgba(22,17,11,0.78) 100%);
}

.f-words-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.f-words-kicker {
  display: block;
  margin-bottom: 48px;
}

.f-words-quote { color: var(--paper); }

.f-words-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: pretty;
}

.f-words-quote em {
  color: var(--bronze-2);
}

.f-words-attr {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}

.f-words-attr-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--paper);
  letter-spacing: 0.005em;
}

.f-words-attr-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-2);
}


/* ===== Institutions grid ===== */

.institutions {
  padding: var(--space-7) 0;
  background: var(--paper);
}

.institutions .section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 32px 80px;
  max-width: 1080px;
  margin-bottom: 80px;
}

.institutions .section-head .section-num {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  padding-top: 18px;
  align-self: start;
}

.institutions .section-head h2 {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
}

.institutions .section-head-meta {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 56ch;
  margin-top: 8px;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.inst-card {
  background: var(--paper);
  padding: 36px 32px 32px;
  transition: background 0.25s ease;
}

.inst-card:hover {
  background: #fbf6ec;
}

.inst-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  padding: 4px 10px;
  border: 1px solid var(--bronze);
  border-radius: 2px;
  margin-bottom: 24px;
}

.inst-card h4 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
  text-wrap: balance;
}

.inst-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bronze-3);
  margin-bottom: 18px;
}

.inst-role {
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.75;
}

.inst-foot {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-3);
  text-align: center;
}


/* ===== Honors / Competitions ===== */

.honors {
  padding: var(--space-7) 0;
  background: var(--paper);
  border-top: 1px solid var(--line-light);
}

.honors .section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 32px 64px;
  max-width: 1080px;
  margin-bottom: 80px;
}

.honors .section-head .section-num {
  grid-column: 1; grid-row: 1;
  white-space: nowrap;
  padding-top: 18px;
  align-self: start;
}
.honors .section-head h2 {
  grid-column: 2; grid-row: 1;
  max-width: none;
  margin: 0;
}
.honors .section-head-meta {
  grid-column: 2; grid-row: 2;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 56ch;
  margin-top: 8px;
}

.honors-list {
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
}

.hon-row {
  display: grid;
  grid-template-columns: 120px 56px 1fr;
  gap: 0 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.hon-row:last-child { border-bottom: 1px solid var(--line-light); }

.hon-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bronze-3);
}

.hon-rule {
  position: relative;
  height: 1px;
  background: var(--line-light);
}

.hon-body {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  align-items: baseline;
  gap: 24px;
}

.hon-rank {
  font-size: clamp(20px, 2.0vw, 26px);
  font-weight: 200;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hon-rank strong {
  font-weight: 400;
  color: var(--ink);
}
.hon-rank em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--bronze);
}

.hon-where {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.75;
}


/* ===== Teaching at YOGAL ===== */

.f-teaching {
  padding: var(--space-7) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line-light);
}

.f-teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.f-teaching-text .section-num {
  margin-bottom: 24px;
  display: block;
}

.f-teaching-text h2 {
  margin-bottom: 32px;
}

.f-teaching-lede {
  max-width: 38ch;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 40px;
}

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

.f-teaching-list {
  list-style: none;
  margin-top: 4px;
}

.f-teaching-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}

.f-teaching-list li:last-child {
  border-bottom: 1px solid var(--line-light);
}

.f-tl-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.f-tl-body {
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.78;
}


/* ===== Final CTA ===== */

.f-cta {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}

.f-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(216,175,111,0.20), transparent 65%),
    radial-gradient(40% 30% at 80% 100%, rgba(139,106,61,0.18), transparent 70%);
  pointer-events: none;
}

.f-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.f-cta-inner .eyebrow {
  display: block;
  margin-bottom: 32px;
}

.f-cta-inner h2 {
  color: var(--paper);
  margin-bottom: 32px;
}

.f-cta-inner .lede {
  color: var(--muted-dark);
  margin-bottom: 48px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.f-cta-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.f-cta-ctas .btn {
  flex: 0 1 320px;
  min-width: 280px;
  justify-content: space-between;
  padding: 20px 24px;
  min-height: 60px;
  box-sizing: border-box;
  line-height: 1.2;
}


/* ===== Responsive ===== */

@media (max-width: 1000px) {
  .f-hero { padding: 130px 0 80px; }
  .f-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .f-hero-portrait { order: -1; max-width: 480px; }
  .f-hero-portrait image-slot { aspect-ratio: 4 / 5; }

  .inst-grid { grid-template-columns: repeat(2, 1fr); }

  .f-teaching-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 720px) {
  .f-hero-name { font-size: clamp(56px, 14vw, 84px); }
  .f-hero-meta { grid-template-columns: 1fr; gap: 18px; }

  .honors .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
  .honors .section-head .section-num,
  .honors .section-head h2,
  .honors .section-head-meta { grid-column: 1; }
  .honors .section-head .section-num { padding-top: 0; }

  .hon-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .hon-rule { display: none; }
  .hon-body { grid-template-columns: 1fr; gap: 4px; }

  /* Collapse the 220px / 1fr editorial grid on phones — at <720px the
     headline column has no room and overflows horizontally. Mirror the
     pattern already used for .honors above. */
  .lineage .section-head,
  .institutions .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 56px;
  }
  .lineage .section-head .section-num,
  .lineage .section-head h2,
  .lineage .section-head-meta,
  .institutions .section-head .section-num,
  .institutions .section-head h2,
  .institutions .section-head-meta {
    grid-column: 1;
  }
  .lineage .section-head .section-num,
  .institutions .section-head .section-num { padding-top: 0; }

  .tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .tl-rule { display: none; }
  .tl-year { padding-top: 0; }
  .tl-body { padding-top: 0; }

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

  .f-teaching-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .f-words-quote p {
    max-width: 18ch;
  }
}


/* ===== Dark video-background variant ===== */
.f-hero--video {
  background: var(--ink) !important;
  color: var(--paper);
  overflow: hidden;
  padding: 220px 0 140px;
}
.f-hero--video::before { display: none; }

.f-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.f-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.55) sepia(0.20) brightness(0.42) contrast(1.10);
  transform: scale(1.04);
  animation: f-hero-zoom 26s ease-in-out infinite alternate;
}
@keyframes f-hero-zoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.f-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 50% at 15% 30%, rgba(216,175,111,0.16), transparent 60%),
    linear-gradient(180deg, rgba(22,17,11,0.45) 0%, rgba(22,17,11,0.80) 100%);
  pointer-events: none;
}

.f-hero--video .f-hero-grid {
  position: relative;
  z-index: 2;
}

.f-hero--video .f-hero-name { color: var(--paper); }
.f-hero--video .f-hero-name em { color: var(--bronze-2); }
.f-hero--video .f-hero-kicker { color: var(--bronze-2); }
.f-hero--video .f-hero-role { color: var(--bronze-2); }
.f-hero--video .f-hero-sig { color: var(--paper); }
.f-hero--video .f-hero-sig strong { color: var(--paper); }
.f-hero--video .f-hero-sig em.italic-accent { color: var(--bronze-2); }
.f-hero--video .f-hero-bio { color: var(--muted-dark); }
.f-hero--video .f-hero-bio strong { color: var(--paper); }
.f-hero--video .f-hero-meta li {
  border-top-color: rgba(247,243,234,0.18);
}
.f-hero--video .f-hero-meta-k { color: var(--bronze-2); }
.f-hero--video .f-hero-meta-v { color: var(--paper); }
.f-hero--video .f-hero-portrait image-slot {
  box-shadow:
    0 1px 0 rgba(247,243,234,0.08),
    0 40px 100px -30px rgba(0,0,0,0.6);
}
.f-hero--video .f-hero-portrait-cap-name { color: var(--paper); }
.f-hero--video .f-hero-portrait-cap-role { color: var(--bronze-2); }


/* ===== Tablet + phone — CTA buttons stack with equal heights ===== */
@media (max-width: 720px) {
  .f-cta-ctas, .f-teaching-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
  }
  .f-cta-ctas .btn, .f-teaching-ctas .btn {
    justify-content: space-between;
    padding: 20px 24px;
    min-height: 60px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

/* ===== Phone portrait — additive overrides for the lineage page ===== */
@media (max-width: 480px) {
  .f-hero { padding: 130px 0 64px; }
  .f-hero--video { padding: 140px 0 72px; }
  .f-hero-name { font-size: clamp(48px, 13vw, 64px); margin-bottom: 32px; }
  .f-hero-role { margin-top: -16px; margin-bottom: 28px; }
  .f-hero-sig { font-size: 19px; margin-bottom: 28px; }
  .f-hero-portrait { max-width: 100%; }

  .lineage { padding: 64px 0; }
  .lineage .section-head { margin-bottom: 40px; }
  .institutions, .honors, .f-teaching { padding: 64px 0; }
  .inst-card { padding: 28px 22px 24px; }
}

/* ===== Desktop alignment refinement (dark video hero) ===== */
@media (min-width: 1001px) {
  .f-hero--video .f-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: clamp(56px, 7vw, 112px);
    align-items: center;       /* center portrait vertically against text block */
  }
  .f-hero--video .f-hero-text { padding-top: 0; }
  .f-hero--video .f-hero-portrait { margin-top: 0; }

  /* Tighten the rhythm a bit — the dark hero reads denser than the paper one,
     so 56px after the kicker was too airy. */
  .f-hero--video .f-hero-kicker { margin-bottom: 36px; }

  /* Slightly smaller name on this variant so the headline sits inside the
     portrait's vertical span instead of overflowing it. */
  .f-hero--video .f-hero-name {
    font-size: clamp(64px, 7.4vw, 132px);
    line-height: 0.96;
  }

  /* Add a touch of breathing room before the meta block — it was running
     into the bio paragraph. */
  .f-hero--video .f-hero-meta { margin-top: 8px; }

  /* Portrait: cap height so it stays in proportion to the text column and
     keeps the figcaption visible above the fold. */
  .f-hero--video .f-hero-portrait image-slot {
    aspect-ratio: 3 / 5;
    max-height: 760px;
  }
}
