@font-face {
  font-family: "Golos Text";
  src: url("golos-text.ttf") format("truetype");
  font-display: swap;
  font-weight: 400 900;
}

:root {
  --bg: #e7e8ea;
  --ink: #121315;
  --muted: #4d5158;
  --paper: #fff;
  --line: #cdd0d4;
  --accent: #d23624;
  --action: var(--ink);
  --gutter: clamp(14px, 3.35vw, 54px);
  --radius: clamp(18px, 2.2vw, 34px);
  --font-display: "Golos Text", Arial, sans-serif;
  --display-weight: 450;
  --display-tracking: -.035em;
  --t-h2: clamp(2.45rem, 6.4vw, 6.7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.48 var(--font-display); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }
button[hidden] { display: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
main:focus, section:focus { outline: none; }
section[id] { scroll-margin-top: 100px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1440px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  top: 0;
  padding: 12px 18px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e7e8eaf5;
  backdrop-filter: blur(12px);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.masthead--full { padding-inline: var(--gutter); }

.brand, .header-nav a, .text-link, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { width: fit-content; font-size: clamp(1.05rem, 1.55vw, 1.5rem); font-weight: 660; letter-spacing: -.055em; white-space: nowrap; }
.brand span, h1 span, .contact h2 span, .footer-wordmark span { color: var(--accent); }
.header-nav, .header-actions, .actions { display: flex; align-items: center; gap: 22px; }
.header-nav a, .text-link, .footer-links a { font-size: .9rem; font-weight: 500; gap: 9px; }
.header-nav a:hover, .text-link:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { justify-self: end; gap: 8px; }
.btn, .menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 17px;
  background: var(--action);
  color: white;
  font-size: .9rem;
  font-weight: 550;
  white-space: nowrap;
}

.menu-button { width: 46px; padding: 0; background: var(--paper); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.menu-button:hover { background: #d5d7da; }
.btn--red { --action: #be2c1c; }
.btn--secondary { background: transparent; border-color: currentColor; }
.site-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: white;
  overscroll-behavior: contain;
}

html:has(.site-menu[open], .booking-dialog[open], .document-viewer[open]) { overflow: hidden; }
.menu-inner { display: grid; align-content: start; justify-items: end; gap: clamp(24px, 8vh, 90px); padding-block: 16px 40px; }
.menu-inner nav { display: grid; width: 100%; border-bottom: 1px solid #626367; }
.menu-inner nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
  padding-block: .18em;
  border-top: 1px solid #626367;
  font-size: clamp(1.8rem, 6vw, 5.5rem);
  letter-spacing: -.07em;
}

.menu-inner nav a:hover { color: #ff968a; }
.menu-inner nav span { font-size: .5em; }
.hero { padding-top: clamp(34px, 6vh, 70px); }
.hero-copy {
  position: relative;
  z-index: 1;
  width: 52%;
  padding: 0 0 14px clamp(4px, 1.5vw, 22px);
  animation: opening-in .75s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 { font-size: clamp(4rem, 10.8vw, 7.1rem); line-height: .82; font-weight: 580; letter-spacing: -.075em; }
.hero-copy > p { color: var(--muted); margin-top: clamp(16px, 2.6vw, 27.3px); font-size: clamp(1rem, 1.6vw, 1.05rem); }
.hero-body {
  --step-height: 18%;
  --portrait-min-height: 445px;
  --portrait-height: 500px;
  --portrait-min-width: calc(var(--portrait-height) * 800 / 1068);
  --step-width: clamp(calc(100% - var(--portrait-height)), 54%, calc(100% - var(--portrait-min-width)));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--step-width) minmax(0, 1fr);
  align-items: end;
  min-height: var(--portrait-height);
  margin-top: -50px;
  overflow: clip;
  border-radius: var(--radius);
  color: white;
}

.hero-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(0 var(--step-height), var(--step-width) var(--step-height), var(--step-width) 0, 100% 0, 100% 100%, 0 100%);
  clip-path: shape(from 0 calc(var(--step-height) + var(--radius)),
    curve to var(--radius) var(--step-height) with 0 var(--step-height),
    hline to calc(var(--step-width) - var(--radius)),
    curve to var(--step-width) calc(var(--step-height) - var(--radius)) with var(--step-width) var(--step-height),
    vline to var(--radius),
    curve to calc(var(--step-width) + var(--radius)) 0 with var(--step-width) 0,
    hline to 100%, vline to 100%, hline to 0, close);
}

.hero-photo {
  position: absolute;
  inset: auto 0 0 var(--step-width);
  height: var(--portrait-height);
  min-height: var(--portrait-min-height);
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius) 0 0 0;
  background: #393d3b;
}

.hero-photo img { flex: none; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-info { padding: clamp(24px, 4vw, 58px); }
.hero-role p:first-child { font-size: clamp(1.7rem, 3.6vw, 3.95rem); line-height: 1.05; font-weight: 530; letter-spacing: -.06em; }
.hero-role p + p { margin-top: 8px; color: #bfc2c7; }
.actions { flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.actions .btn--secondary:hover { color: white; background: #343539; border-color: #a2a7ae; }
@keyframes opening-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.section { padding-block: clamp(66px, 9vw, 132px); }
h2 { font-size: var(--t-h2); line-height: .98; letter-spacing: -.075em; font-weight: 530; }
h3 { font-size: clamp(1.16rem, 2.25vw, 2.05rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 530; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: clamp(26px, 4vw, 54px); }
.section-heading > h2 { max-width: 15ch; }
.section-heading > p { color: var(--muted); max-width: 30ch; }
.lineup .section-heading {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.lineup .section-heading > h2 {
  max-width: none;
  font-size: min(var(--t-h2), 7.5vw);
  white-space: nowrap;
}
.topic-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-grid > li:nth-child(even) { margin-top: 32px; }

/* The scroll ranges and easing come from the Electric / 8B reviews scene. */
@keyframes topic-card-enter {
  from { translate: var(--topic-enter-x) var(--topic-enter-y); rotate: var(--topic-enter-rotation); }
  to { translate: 0px 0px; rotate: 0deg; }
}

@media (prefers-reduced-motion: no-preference) {
  #lineup .topic-grid[data-topic-motion] > li {
    animation-name: topic-card-enter;
    animation-duration: auto;
    animation-fill-mode: both;
  }
}

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  #lineup .topic-grid[data-topic-motion] {
    view-timeline: --topic-grid block;
    view-timeline-inset: 0;
  }

  #lineup .topic-grid[data-topic-motion] > li {
    --topic-enter-x: var(--topic-stack-x);
    --topic-enter-y: var(--topic-stack-y);
    --topic-enter-rotation: calc((var(--topic-index) - (var(--topic-count) - 1) / 2) * 3.2deg);
    animation-timeline: --topic-grid;
    animation-timing-function: linear(0, 0.0963, 0.1855, 0.2679, 0.3439, 0.4138, 0.478, 0.5367, 0.5904, 0.6392, 0.6836, 0.7237, 0.7599, 0.7924, 0.8215, 0.8474, 0.8704, 0.8907, 0.9085, 0.924, 0.9375, 0.9491, 0.959, 0.9674, 0.9744, 0.9802, 0.985, 0.9888, 0.9919, 0.9943, 0.9961, 0.9974, 0.9984, 0.9991, 0.9995, 0.9998, 0.9999, 1, 1, 1, 1);
    animation-range:
      cover calc(8vh - 0.4148vh * var(--topic-index) + 2.5926% * var(--topic-index))
      cover calc(37.037% + 2.5926% * var(--topic-index) + 2.0741vh - 0.4148vh * var(--topic-index));
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  #lineup:has(.topic-grid[data-topic-motion]) {
    overflow-x: clip;
    overflow-clip-margin: var(--gutter);
  }

  #lineup .topic-grid[data-topic-motion] > li {
    --topic-enter-x: -70%;
    --topic-enter-y: 0px;
    --topic-enter-rotation: -6deg;
    view-timeline: --topic-card block;
    view-timeline-inset: 0;
    animation-timeline: --topic-card;
    animation-range: cover 0% cover 38vh;
    animation-timing-function: cubic-bezier(0.3333, 1, 0.6667, 1);
  }

  #lineup .topic-grid[data-topic-motion] > li:nth-of-type(even) {
    --topic-enter-x: 70%;
    --topic-enter-rotation: 6deg;
  }
}

.topic-card, .reading-book, .reading-list a {
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 32px);
  transition: transform .22s ease, box-shadow .22s ease;
}

.topic-card {
  display: grid;
  gap: 22px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 8px 24px #1213150f;
}

.topic-card > p { font-size: clamp(1.19rem, 1.6vw, 1.4375rem); line-height: 1.3; letter-spacing: -.02em; }
.topic-card-footer { display: flex; align-items: center; gap: 12px; }
.topic-card-footer h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 580; }
.topic-card .round-arrow { width: 46px; height: 46px; border: 0; color: #ac2a1c; background: #f7eae6; }
.reading-list p, .book-copy p { margin-top: 9px; font-size: .9rem; }
.topic-card:is(:hover, :focus-visible), .reading-book:is(:hover, :focus-visible), .reading-list a:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 11px 25px #12131518;
}

.round-arrow { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.2rem; }
.about { background: var(--paper); }
.about-inner { display: grid; grid-template-columns: 1fr .8fr; align-items: start; gap: 28px 60px; padding-block: clamp(62px, 8vw, 115px); }
.about .mo-wh__text { font-size: clamp(1.28rem, 2.45vw, 2.5rem); line-height: 1.2; }
.about .actions { column-gap: 18px; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.reading-book, .reading-list a { background: var(--paper); }
.reading-book { display: flex; flex-direction: column; gap: 18px; }
.book-image { display: grid; place-items: center; min-height: clamp(210px, 22vw, 360px); background: #e1b8aa; border-radius: calc(var(--radius) * .55); padding: 18px; }
.book-image img { width: clamp(102px, 13vw, 180px); height: auto; box-shadow: 8px 8px 16px #16131543; }
.book-copy, .reading-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-copy p { color: var(--muted); margin: 0 0 8px; }
.reading-list { display: grid; gap: 12px; }
.reading-list p { color: var(--muted); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 50px; padding-bottom: clamp(62px, 8vw, 108px); }
.questions { border-top: 1px solid #bfc3c8; }
.questions details { border-bottom: 1px solid #bfc3c8; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 12px 1px; font-weight: 520; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-size: 1.3rem; color: #ac2a1c; }
.questions details[open] summary::after { content: "−"; }
.questions p { color: var(--muted); padding-bottom: 18px; }
.questions p a { text-decoration: underline; text-underline-offset: 3px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 24px 56px;
  padding: clamp(26px, 5.5vw, 82px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.contact-inner p { color: #c7c8cb; }
.contact h2 { font-size: clamp(2.3rem, 6vw, 6rem); }
.site-footer { margin-top: clamp(60px, 7vw, 94px); padding-block: 28px 10px; background: var(--ink); color: white; }
.footer-links, .footer-links nav, .footer-links > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; }
.footer-links { border-bottom: 1px solid #44464b; }
.footer-wordmark {
  display: block;
  color: #f6f6f6;
  text-align: center;
  font-size: clamp(2.25rem, 12.2vw, 12rem);
  font-weight: 630;
  line-height: 1.25;
  letter-spacing: -.095em;
  white-space: nowrap;
}

.header-nav a[aria-current], .menu-inner nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.subpage { padding-block: clamp(34px, 7vw, 100px) 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 22px; color: var(--muted); font-size: .9rem; }
.breadcrumb a, .prose p a { text-decoration: underline; text-underline-offset: .22em; }
.page-head { max-width: 67rem; margin-bottom: clamp(26px, 5vw, 64px); animation: opening-in .65s ease-out both; }
.page-head h1 { max-width: 17ch; font-size: clamp(2.35rem, 7vw, 7rem); font-weight: 550; line-height: .97; letter-spacing: -.07em; overflow-wrap: break-word; }
.page-head p { color: var(--muted); }
.page-head p.label { margin-bottom: 12px; }
.page-head p:not(.label) { max-width: 62ch; margin-top: 18px; font-size: clamp(1rem, 1.7vw, 1.27rem); }
.prose { max-width: 66ch; }
.prose h2, .inset h2, .book-panel h2 { font-size: clamp(1.45rem, 3.5vw, 2.7rem); letter-spacing: -.045em; line-height: 1.12; }
.prose h2 { margin-block: 26px 12px; }
.prose p, .reading-card p, .book-panel p { color: var(--muted); }
.about-layout, .consult-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(18px, 5vw, 68px); align-items: start; }
.consult-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.about-photo { margin: 0; width: min(100%, 380px); justify-self: end; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: auto; }
.education-title { margin-bottom: clamp(22px, 4vw, 52px); font-size: clamp(2.2rem, 5.5vw, 5.2rem); }
.credentials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; }
.credential { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 11px; height: 100%; padding: 8px 8px 14px; border-radius: 16px; background: var(--paper); }
.credential:hover .credential-name { text-decoration: underline; text-underline-offset: .2em; }
.credential img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 9px; background: #dfe1e4; }
.credential-name { padding-inline: 5px; overflow-wrap: anywhere; font-size: .95rem; font-weight: 550; line-height: 1.25; }
.document-viewer {
  width: min(940px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.document-viewer::backdrop { background: #121315bb; }
.viewer-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.viewer-head > div { flex: 1 1 210px; }
.viewer-head h2 { margin-top: 4px; font-size: clamp(1.1rem, 3vw, 1.55rem); font-weight: 550; line-height: 1.2; letter-spacing: -.025em; }
.viewer-meta { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.viewer-close { cursor: pointer; }
.viewer-scan { height: min(70dvh, 660px); min-height: 180px; border-radius: 10px; overflow: hidden; background: #dfe1e4; }
.viewer-scan img { width: 100%; height: 100%; object-fit: contain; }
.viewer-original { margin-top: 6px; }

@media (max-width: 1000px) {
  .credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-scan { height: min(60dvh, 460px); }
}

.inset { padding: clamp(20px, 4vw, 48px); border-radius: var(--radius); background: var(--ink); color: white; }
.inset .btn--primary { --action: #be2c1c; }
.inset p { margin-top: 12px; color: #c7c8cb; }
.consult-terms { display: grid; gap: 16px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #626367; }
.consult-terms dt { font-weight: 550; }
.consult-terms dd { margin: 4px 0 0; color: #c7c8cb; }
button[data-booking], .booking-dialog button { cursor: pointer; }
button.text-link[data-booking] { border: 0; padding: 0; background: transparent; }
.booking-dialog {
  width: min(36rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 2 * var(--gutter));
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.booking-dialog::backdrop { background: #12131599; }
.booking-dialog h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.08; letter-spacing: -.045em; }
.booking-dialog h2:focus { outline: none; }
.booking-dialog .consult-terms { gap: 12px; margin-top: 16px; padding-top: 16px; border-color: var(--line); font-size: .9375rem; line-height: 1.4; }
.booking-dialog .consult-terms dd { color: var(--muted); }
.booking-offer { text-decoration: underline; text-underline-offset: .2em; }
.booking-offer + form .booking-confirmation { margin-top: 8px; }
.booking-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.booking-confirmation input { width: 20px; height: 20px; margin: 0; accent-color: #be2c1c; cursor: pointer; }
.booking-dialog .actions { justify-content: flex-end; margin-top: 12px; }
.booking-dialog .btn { padding-inline: 14px; }
.booking-dialog .btn--secondary { color: var(--ink); }
.consult-layout .topic-copy { padding-block: 20px; border-block-start: 1px solid var(--line); }
.consult-layout .topic-copy:last-child { border-block-end: 1px solid var(--line); }
.consult-layout .topic-copy h2 { margin-top: 0; }
.reading-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(18px, 3vw, 38px); background: var(--paper); border-radius: var(--radius); transition: transform .22s ease; }
.reading-card:is(:hover, :focus-visible) { transform: translateY(-2px); }
.reading-card h2 { margin-block: 7px 10px; font-size: clamp(1.25rem, 2.8vw, 2.15rem); letter-spacing: -.045em; line-height: 1.13; }
.reading-card .label, .book-panel .label { font-size: .88rem; }
.book-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 20px clamp(24px, 5vw, 64px); margin-top: 28px; padding: clamp(18px, 3vw, 38px); border-radius: var(--radius); background: var(--paper); }
.book-panel .book-image { grid-row: span 2; }
.book-panel h2 { margin-top: 9px; }
.archive-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 25px; }
.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px #12131512;
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding-block: 14px max(14px, env(safe-area-inset-bottom));
}
.cookie-banner-copy h2 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -.025em; }
.cookie-banner-copy p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.cookie-banner-link { display: inline-flex; align-items: center; min-height: 32px; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner-actions .btn, [data-cookie-settings] { cursor: pointer; }
.cookie-banner-actions .btn--secondary { color: var(--ink); }

@media (max-width: 760px) {
  .cookie-banner-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner-actions .btn { min-height: 44px; padding-inline: 6px; font-size: .8rem; line-height: 1.15; text-align: center; white-space: normal; }
}

.video-head { margin-bottom: clamp(22px, 4vw, 40px); }
.video-head h1 { max-width: 21ch; font-size: clamp(2.2rem, 6.25vw, 5.5rem); }
.video-player-link { display: grid; gap: 16px; width: min(100%, 880px); }
.video-player-link .btn { justify-self: start; }
.video-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video-preview-fallback, .video-preview-still { position: absolute; inset: 0; }
.video-preview-fallback { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; color: white; }
.video-preview-fallback > span { padding: 0 clamp(18px, 5vw, 70px) 0 clamp(12px, 3vw, 42px); font-size: clamp(.85rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.video-preview-fallback img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 40%; }
.video-preview-still { background-position: center; background-size: cover; }
.video-preview-play { position: relative; display: grid; place-items: center; width: clamp(48px, 8vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: white; transition: background .2s ease; }
.video-preview-play::before { content: ''; width: 24%; aspect-ratio: 1; margin-inline-start: 4%; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-preview:is(:hover, :focus-visible) .video-preview-play { background: #be2c1c; }

@media (width > 1050px) {
  .hero {
    --hero-top: clamp(24px, 4svh, 44px);
    --hero-room: calc(100svh - 76px - var(--hero-top) - 24px);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: calc(var(--hero-top) + min(680px, var(--hero-room)));
    padding-top: var(--hero-top);
  }

  .hero-copy { grid-area: 1 / 1; }

  .hero-body {
    --portrait-height: clamp(var(--portrait-min-height), var(--hero-room), 500px);
    --step-width: calc(100% - var(--portrait-min-width));
    grid-area: 1 / 1 / 3 / 2;
    grid-template-rows: subgrid;
    min-height: 0;
    margin-top: 0;
  }

  .hero-background {
    position: relative;
    grid-area: 2 / 1 / 3 / 3;
    align-self: stretch;
    border-top-left-radius: var(--radius);
    clip-path: none;
  }

  .hero-background::before {
    content: '';
    position: absolute;
    right: var(--portrait-min-width);
    bottom: 100%;
    width: var(--radius);
    height: var(--radius);
    background: radial-gradient(circle var(--radius) at left top, transparent calc(var(--radius) - .5px), var(--ink) var(--radius));
  }

  .hero-photo {
    position: relative;
    inset: auto;
    grid-area: 1 / 2 / 3 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .hero-photo img { object-fit: contain; }
  .hero-info { grid-area: 2 / 1; padding-block: clamp(24px, 5svh, 58px); }
}

@media (max-width: 1050px) {
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-grid > li:nth-child(n) { margin-top: 0; }
  .topic-grid > li:nth-child(odd) { margin-right: 12%; }
  .topic-grid > li:nth-child(even) { margin-left: 12%; }
}

@media (600px < width <= 900px) {
  .hero-body { margin-top: 0; }
  .hero-info { overflow-wrap: anywhere; }
  .hero-info .btn { max-width: 100%; white-space: normal; }
}

@media (600px < width <= 700px) {
  .hero-info .btn { padding-inline: 10px; overflow-wrap: normal; }
  .hero-info .btn > span { display: none; }
}

@media (max-width: 800px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 64px; gap: 8px; }
  .header-nav { display: none; }
  .masthead .btn { min-height: 44px; padding-inline: 12px; }
  .menu-button { min-height: 44px; width: 44px; }
  .hero { padding-top: 32px; }
  .hero-body { --step-height: 15%; }
  .hero-info { padding: 18px 16px; }
  .about-inner, .faq { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-copy { width: 100%; padding-bottom: 16px; }
  .hero h1 { font-size: clamp(3.5rem, 15vw, 6rem); line-height: .85; }
  .hero-copy > p { margin-top: 15px; font-size: .93rem; }
  .hero-body { display: flex; flex-direction: column; align-items: stretch; min-height: auto; margin-top: 0; }
  .hero-background { clip-path: none; }
  .hero-photo {
    position: relative;
    inset: auto;
    height: auto;
    min-height: calc(var(--portrait-min-height) * .8);
    max-height: var(--portrait-height);
    aspect-ratio: 800 / calc(1068 * .8);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .hero-photo img {
    height: auto;
    /* When the frame reaches 500px, shift the portrait down by at most 10%. */
    translate: 0 clamp(0px, calc(80% - var(--portrait-height)), 10%);
  }
  .hero-info { padding: 18px 14px 14px; }
  .hero-role p + p { margin-top: 5px; font-size: .9rem; }
  .hero .actions { margin-top: 14px; }
  .actions .btn { padding-inline: 12px; font-size: .83rem; gap: 8px; }
  .reading-grid, .consult-layout, .about-layout, .book-panel { grid-template-columns: minmax(0, 1fr); }
  .about-photo { justify-self: start; }
  .book-panel .book-image { grid-row: auto; }
  .section { padding-block: 60px; }
  .reading-list a { min-height: 120px; }
}

@media (max-width: 400px) {
  .masthead .btn { font-size: .82rem; }
  .masthead .btn > span { display: none; }
}

@media (max-width: 360px) and (max-height: 650px) {
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .page-head { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
