/* Max Weisenthal — site styles. Hero "B": full-bleed footage, Provider-style type. */

:root {
  /* Max's palette */
  --green: #003B2F;
  --moss: #5C6F4A;
  --cream: #F2E3CF;
  --espresso: #3B2F2F;
  /* mixes of it, for quieter text: espresso into cream (5.2:1 on cream),
     cream into green (6.6:1 on green). Moss is decorative or large only:
     4.4:1 on cream is under the 4.5:1 small-text minimum. */
  --espresso-soft: #675A55;
  --cream-soft: #BDBEAC;
  --rule: var(--moss);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font: 400 clamp(19px, 1.45vw, 21px)/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; }
em { font-style: italic; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--green); color: var(--cream);
  font: 600 15px var(--sans);
}
.skip-link:focus { top: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--green);
  color: var(--cream);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img,
video.hero__media {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.02) brightness(0.98) contrast(1.04);
}

/* soft shade behind the nav and name so cream stays readable on a bright frame */
.hero__shade {
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(20, 16, 14, 0.42), rgba(20, 16, 14, 0));
}

/* progressive blur behind the statement */
.hero__blur {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
  background: linear-gradient(to top, rgba(0, 59, 47, 0.94) 0%, rgba(0, 59, 47, 0.78) 35%, rgba(0, 59, 47, 0.25) 75%, rgba(0, 59, 47, 0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 14px var(--gutter) 20px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 15px/1 var(--sans);
}
.nav__group { margin: 0; display: flex; align-items: center; }
.nav__group a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none;
}
.nav__group a:hover,
.nav__group a.is-current {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.nav__long { display: none; }

.wordmark {
  margin: 2px 0 0;
  text-align: center;
  white-space: nowrap;
  font: 700 min(calc((100vw - 2 * var(--gutter)) / 9.3), 150px)/0.9 var(--sans);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-bottom: clamp(8px, 2vh, 24px);
  text-align: center;
}
.hero__statement {
  margin: 0;
  max-width: 22em;
  font: 400 clamp(23px, 2.15vw, 32px)/1.28 var(--serif);
  text-shadow: 0 1px 24px rgba(0, 20, 15, 0.4);
  text-wrap: balance;
}

/* the one call to action, same everywhere */
.btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.panel .btn { color: var(--green); }

/* Floating Book button: appears once the hero's button has scrolled away and
   steps aside again when the Book panel is on screen (main.js). */
.btn--float {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20;
  min-height: 50px; padding: 0 28px;
  background: var(--green); color: var(--cream);
  box-shadow: 0 0 0 1.5px rgba(242, 227, 207, 0.55), 0 8px 24px rgba(0, 30, 23, 0.28);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s;
}
.btn--float.is-shown { transform: translate(-50%, 0); opacity: 1; }
.btn--float:hover { filter: brightness(1.15); }
/* Over green panels a cream copy takes over, clipped to the panel, so the
   colours swap exactly where a panel edge crosses the button. */
.panel:not(.panel--book) .panel__inner { position: relative; z-index: 21; clip-path: inset(0); }
.btn--float-on-green { background: var(--cream); color: var(--green); box-shadow: 0 8px 24px rgba(0, 20, 15, 0.35); }
.panel .btn--float-on-green { color: var(--green); }
.btn--float-letters {
  z-index: 22; pointer-events: none; box-shadow: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.panel .btn--float-letters:not(.btn--float-on-green) { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .btn--float { transition: opacity 0.2s; transform: translate(-50%, 0); } }

.mark { width: 112px; height: auto; overflow: visible; }
.mark__bar { fill: var(--cream); }
.mark__letter { fill: var(--cream-soft); }

/* "Racked": the three bars drop into place one after another and settle like
   plates on a rack, then the M and W come in. main.js adds .mark--ready only
   when motion is allowed, and .is-in once the panel scrolls into view. */
.mark--ready .mark__bar,
.mark--ready .mark__letter { opacity: 0; }
.mark--ready.is-in .mark__bar { animation: mark-rack 620ms cubic-bezier(0.5, 0, 0.75, 0) both; }
.mark--ready.is-in .mark__bar--mid { animation-delay: 150ms; }
.mark--ready.is-in .mark__bar--right { animation-delay: 300ms; }
.mark--ready.is-in .mark__letter { animation: mark-fill 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mark--ready.is-in .mark__letter--m { animation-delay: 760ms; }
.mark--ready.is-in .mark__letter--w { animation-delay: 860ms; }
@keyframes mark-rack {
  0%   { opacity: 0; transform: translateY(-70px); }
  12%  { opacity: 1; }
  62%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  76%  { transform: translateY(-7px); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  88%  { transform: translateY(0); }
  94%  { transform: translateY(-1.5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes mark-fill {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__pause {
  position: absolute; right: var(--gutter); bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  background: transparent; border: 0; color: var(--cream);
  font: 600 12px var(--sans); cursor: pointer;
}
.hero__pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero__pause[hidden] { display: none; }

@media (min-width: 768px) {
  .hero__media img, video.hero__media { object-position: 50% 30%; }
  .hero__shade { height: 34%; background: linear-gradient(to bottom, rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0)); }
  .hero__blur {
    height: 58%;
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    -webkit-mask-image: linear-gradient(to top, #000 50%, transparent);
    mask-image: linear-gradient(to top, #000 50%, transparent);
  }
  .hero__inner { padding: 16px var(--gutter) 20px; }
  .nav__long { display: inline; }
}

/* Desktop: statement and button sit in the bottom corners, on the same gutters
   as the nav and the name, leaving his torso clear. */
@media (min-width: 900px) {
  .hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
  }
  .hero__statement {
    max-width: 20em;
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.22;
    text-wrap: pretty;
  }
  .hero__pause { right: auto; left: 50%; transform: translateX(-50%); }
}

/* Wide screens: the portrait is square, so stretching it across a landscape window
   zooms in on his face. Keep him at natural scale, bottom-anchored, and extend the
   studio backdrop to the sides instead. */
@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
  .hero { background: radial-gradient(ellipse 60% 90% at 50% 55%, #AE9F9F 0%, #9F9191 55%, #8B7F7F 100%); }
  .hero__media {
    display: block;
    inset: auto;
    left: 50%;
    bottom: 0;
    width: auto;
    height: 84%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  }
  .hero__media img { object-position: 50% 50%; }
}

/* ---------- Sections ---------- */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
/* section breaks: a running band of the MW mark, dumbbells shared between letters */
.section::before {
  content: "";
  align-self: stretch;
  height: 16px;
  margin-bottom: clamp(36px, 6vw, 68px);
  background: url("../assets/img/mw-band.svg") center / auto 16px;
  background-repeat: round no-repeat;
}
/* With JavaScript, main.js draws the band as whole units that start and end on
   a dumbbell (.band) and the background version above steps aside. */
.has-band .section::before { display: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.band { align-self: stretch; display: flex; justify-content: center; height: 16px; margin-bottom: clamp(36px, 6vw, 68px); }
.band svg { height: 16px; width: auto; fill: var(--moss); }

.label { margin: 0; font: 600 14px/1.3 var(--sans); color: var(--espresso-soft); }

.title {
  margin: 0;
  max-width: 20em;
  font: 400 clamp(28px, 2.9vw, 42px)/1.22 var(--serif);
  color: var(--green);
  text-wrap: balance;
}
.title--short { max-width: 14em; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; }

h3 { margin: 0; font-weight: 400; color: var(--espresso); }
p { margin: 0; }

/* Green panels */
.panel { padding: clamp(112px, 12vw, 184px) var(--gutter) 0; }
.panel__inner {
  background: var(--green); color: var(--cream);
  padding: clamp(80px, 10vw, 152px) clamp(24px, 6vw, 96px);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.panel__quote { margin: 0; }
.panel__quote p,
.panel__quote--title {
  margin: 0; max-width: 18em;
  font: 400 clamp(30px, 3.6vw, 52px)/1.16 var(--serif);
  color: var(--cream);
  text-wrap: balance;
}
.panel__quote footer { margin-top: 24px; font-style: italic; font-size: 22px; color: var(--cream-soft); }
.panel__text { max-width: 30em; color: var(--cream-soft); }
.panel__small { font: 400 14px var(--sans); color: var(--cream-soft); }
.panel a { color: var(--cream); }
.email { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.copy {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--cream-soft); cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.copy:hover { background: rgba(242, 227, 207, 0.12); color: var(--cream); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.copy__done { display: none; }
.copy.is-done .copy__icon { display: none; }
.copy.is-done .copy__done { display: inline; }
.copy.is-done { color: var(--cream); }
.copy__label {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  padding: 3px 8px; border-radius: 6px; background: var(--cream); color: var(--green);
  font: 600 11px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.copy.is-done .copy__label { opacity: 1; }

/* Approach rows */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; width: 100%; max-width: 640px; }
.timeline li {
  padding: 26px 0; border-top: 1px dotted var(--rule);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.timeline li:last-child { border-bottom: 1px dotted var(--rule); }
.timeline h3 { font-size: 26px; line-height: 1.2; color: var(--green); }

/* Coaching */
.offers {
  margin-top: 36px; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 72px 64px;
}
.offer {
  flex: 1 1 380px; max-width: 480px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.offer__kicker { font: 400 13px var(--sans); color: var(--espresso-soft); }
.offer h3 { font-size: 32px; line-height: 1.15; }
.offer__cta {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px;
  font: 600 15px/1.3 var(--sans); color: var(--green);
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.offer__cta span { display: inline-block; margin-left: 0.3em; text-decoration: none; transition: transform 0.15s; }
.offer__cta:hover { text-decoration-style: solid; }
.offer__cta:hover span { transform: translateX(3px); }
.included {
  width: 100%; max-width: 640px; padding-top: 28px;
  border-top: 1px dotted var(--rule);
  display: flex; flex-direction: column; gap: 10px;
}
.included h3 { font-size: 26px; line-height: 1.2; }

/* Results (placeholders until client photos and words arrive) */
.results {
  list-style: none; margin: 24px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 32px;
}
.result { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 999px) {
  /* phones and tablets: swipe through results instead of stacking them */
  .results {
    display: flex; gap: 16px;
    width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .results::-webkit-scrollbar { display: none; }
  .result { flex: 0 0 min(78%, 340px); scroll-snap-align: center; }
}
.result__photo,
.book__cover {
  display: grid; place-items: center;
  border: 1px dotted var(--rule);
  background: rgba(92, 111, 74, 0.08);
  font: 400 14px var(--sans); color: var(--espresso-soft);
}
.result__photo { aspect-ratio: 9 / 16; }
/* a client clip: plays silently on a loop while on screen; tap for sound */
.result__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--green); }
.result__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result__sound,
.result__play {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgba(0, 43, 34, 0.72); color: var(--cream);
  font: 600 12px var(--sans); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.result__sound svg,
.result__play svg { width: 14px; height: 14px; fill: currentColor; }
.result__play { right: auto; left: 10px; width: 36px; padding: 0; justify-content: center; }
.result__play .result__icon-play,
.result__play.is-paused .result__icon-pause { display: none; }
.result__play.is-paused .result__icon-play { display: inline; }
.result__sound { width: 36px; padding: 0; justify-content: center; }
.result__sound[aria-pressed="false"] .result__icon-waves,
.result__sound[aria-pressed="true"] .result__icon-slash { display: none; }
.result__caption { margin: 0; font-size: 19px; line-height: 1.4; color: var(--espresso); text-wrap: pretty; }

/* About */
.mat {
  margin: 0 0 24px; width: 100%; max-width: 520px;
  padding: clamp(48px, 6vw, 80px) clamp(36px, 5vw, 64px);
  background: var(--moss);
  display: flex; justify-content: center;
}
.mat picture { display: block; width: 100%; max-width: 340px; padding: 10px; background: var(--cream); }
.mat img { width: 100%; height: auto; aspect-ratio: 1; }
.letter { max-width: 34em; margin-top: 24px; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.signature { margin-top: 6px; font-style: italic; font-size: 46px; line-height: 1; color: var(--green); }

/* Reviews: full Google reviews in a row you swipe (phones) or step through (arrows) */
.reviews-wrap { width: 100%; min-width: 0; }
.reviews {
  list-style: none; margin: 0; padding: 4px 0 8px;
  display: flex; align-items: flex-start; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; text-align: left;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.review { flex: 0 0 min(84%, 420px); scroll-snap-align: start; display: flex; }
.review figure {
  margin: 0; flex: 1; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 2.4vw, 32px);
  background: #F7EEDF; border: 1px dotted var(--rule); border-radius: 4px;
}
.review__stars { margin: 0; display: flex; gap: 3px; }
.review__stars svg { width: 15px; height: 15px; fill: var(--moss); }
.review__text { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; line-height: 1.55; color: var(--espresso); }
.review__name { margin-top: auto; padding-top: 8px; font: 600 14px/1.4 var(--sans); color: var(--green); display: flex; flex-direction: column; }
.review__name span { font-weight: 400; font-size: 12.5px; color: var(--espresso-soft); }
.reviews__rating { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font: 400 14px var(--sans); color: var(--espresso-soft); }
.reviews__rating strong { font-weight: 600; color: var(--green); }
.reviews__rating .review__stars svg { width: 16px; height: 16px; }
@media (max-width: 999px) { .reviews__rating { justify-content: center; } }
.reviews__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reviews__nav { display: none; gap: 8px; }
.reviews__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(0, 59, 47, 0.35); border-radius: 50%; background: transparent; color: var(--green); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}
.reviews__btn:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.reviews__btn:disabled { opacity: 0.3; cursor: default; }
.reviews__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 999px) {
  .reviews { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .reviews__foot { justify-content: center; }
}
@media (min-width: 1000px) {
  .reviews__nav { display: flex; }
  .reviews { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .review { flex-basis: calc((100% - 32px - var(--gutter)) / 2.4); }
}
@media (prefers-reduced-motion: reduce) { .reviews { scroll-behavior: auto; } }

/* Research and books */
.work {
  margin-top: 48px; width: 100%; padding-top: 32px;
  border-top: 1px dotted var(--rule);
  display: flex; flex-direction: column; gap: 48px;
}
.work h3 { font-size: 26px; line-height: 1.2; color: var(--green); }
.work__research, .work__books { display: flex; flex-direction: column; gap: 14px; }
.books {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.book { display: flex; flex-direction: column; gap: 8px; }
.paper { font-size: 19px; line-height: 1.4; }
.paper a { color: var(--espresso); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.paper a:hover { text-decoration-style: solid; color: var(--green); }
.paper__meta { font: 400 13px/1.5 var(--sans); color: var(--espresso-soft); }
.paper__meta cite { font-style: italic; }
.book__cover { aspect-ratio: 535 / 717; }
.book__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.book__img { display: block; }
.book__img img { display: block; width: 100%; height: auto; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.book__link:hover .book__img img { transform: translateY(-5px); }

.book__link:hover .book__title { text-decoration: underline dotted; text-underline-offset: 0.25em; }
.book__title { font-size: 18px; line-height: 1.3; color: var(--espresso); }
.book__role { font: 400 13px/1.4 var(--sans); color: var(--espresso-soft); }

/* Footer */
.site-footer { padding: clamp(64px, 7vw, 112px) var(--gutter) 10px; color: var(--green); }
.site-footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font: 600 15px var(--sans);
}
.site-footer__meta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--espresso-soft); }
.wordmark--footer { margin-top: 8px; text-shadow: none; }

/* "Work" lines: a few of Max's lines set like the name, heavy and uppercase,
   each line stretched to the full width (main.js fits them). Everything around
   them stays quiet Garamond: work, then rest. */
.work-line {
  display: block; width: 100%; margin: 0;
  font: 700 clamp(44px, 9vw, 140px)/0.88 var(--sans);
  letter-spacing: -0.015em; text-transform: uppercase; text-align: left;
  color: var(--green);
}
.work-line > span { display: block; }
.work-line.is-fit > span { width: max-content; white-space: nowrap; }
.work-line > span.has-tail { padding-bottom: 0.11em; }
.section > .work-line { margin: 8px 0 clamp(40px, 5vw, 72px); }

.panel__quote:has(.quote-set) { width: 100%; }
.panel__quote p.quote-set { max-width: none; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.quote-set__rest { font: 400 clamp(24px, 2.6vw, 38px)/1.2 var(--serif); color: var(--cream); }
em.quote-set__rest { font-style: italic; }
.work-line--panel { color: var(--cream); text-align: center; }
.work-line--panel.is-fit > span { margin: 0 auto; }

/* ---------- Desktop grid ----------
   Below the hero, sections sit on the same gutters as the nav, the hero corners
   and the footer: a dotted rule, the label in a left rail, and the content
   left-aligned on a 12-column grid. Phones keep the centered stack above. */
@media (min-width: 1000px) {
  .section {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(24px, 2.4vw, 40px);
    row-gap: 0;
    align-items: start;
    padding-top: clamp(80px, 7vw, 112px);
    text-align: left;
  }
  .section::before {
    content: "";
    grid-row: 1; grid-column: 1 / -1;
    margin-bottom: 28px;
  }
  .section > .band { grid-row: 1; grid-column: 1 / -1; margin-bottom: 28px; }
  #approach > .work-line { grid-row: 3; grid-column: 1 / -1; }
  #approach > .timeline { grid-row: 4; }
  .section > * { grid-column: 4 / -1; }
  .section > .label { grid-row: 2; grid-column: 1 / 4; padding-top: 0.5em; }
  .section > .title { grid-row: 2; grid-column: 4 / 12; margin-bottom: clamp(48px, 4.4vw, 72px); }

  .title,
  .title--short {
    max-width: 17em;
    font-size: clamp(36px, 3.1vw, 48px);
    line-height: 1.12;
    text-wrap: balance;
  }

  /* Approach: heading | text */
  .timeline { margin: 0; max-width: none; }
  .timeline li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 9fr);
    column-gap: clamp(24px, 2.4vw, 40px);
    align-items: baseline;
    padding: 22px 0;
  }
  .timeline h3 { font-size: 25px; }
  .timeline p { max-width: 34em; }
  .timeline--style li { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); }

  /* Coaching */
  .offers {
    margin: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 3.6vw, 64px);
  }
  .offer { max-width: none; align-items: stretch; }
  .offer__cta { align-self: flex-start; margin-top: auto; padding-top: 8px; }
  .offer > p { max-width: 30em; }
  .included {
    grid-column: 1 / -1; max-width: none; margin-top: 56px;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    column-gap: clamp(24px, 2.4vw, 40px); align-items: baseline;
  }
  .included p { max-width: 34em; }

  /* Results */
  .results { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 2.4vw, 40px); }

  /* About: portrait beside the letter */
  #about > .mat { grid-row: 3 / span 2; grid-column: 4 / 8; margin: 0; max-width: none; }
  #about > .letter { grid-row: 3; grid-column: 8 / -1; margin: 0; max-width: 34em; }
  #about > .work {
    grid-row: 5; margin-top: clamp(64px, 6vw, 96px);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    column-gap: clamp(24px, 2.4vw, 40px);
  }
  .work__research p { max-width: 24em; }

}
@media (min-width: 1000px) and (max-width: 1279px) {
  .section > * { grid-column: 3 / -1; }
  .section > .label { grid-column: 1 / 3; }
  .section > .title { grid-column: 3 / 12; }
  #about > .mat { grid-column: 3 / 7; }
  #about > .letter { grid-column: 7 / -1; }
}

/* ---------- Privacy & Terms page ---------- */
.site-footer__meta a { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.site-footer__meta a:hover { text-decoration-style: solid; }
.legal-top { padding: 16px var(--gutter); border-bottom: 1px dotted var(--rule); }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px var(--sans); color: var(--green); text-decoration: none; }
.legal-back:hover { text-decoration: underline dotted; text-underline-offset: 0.3em; }
.legal { max-width: 40em; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.legal .title { margin: 10px 0 8px; text-align: left; max-width: none; }
.legal__date { margin: 0 0 24px; font: 400 13px var(--sans); color: var(--espresso-soft); }
.legal__toc { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px dotted var(--rule); font: 600 14px var(--sans); color: var(--espresso-soft); }
.legal__toc a { color: var(--green); }
.legal section { scroll-margin-top: 24px; margin-bottom: 48px; }
.legal h2 { margin: 0 0 14px; font: 400 clamp(28px, 3vw, 36px)/1.15 var(--serif); color: var(--green); }
.legal h3 { margin: 26px 0 8px; font: 600 15px/1.4 var(--sans); color: var(--espresso); }
.legal p, .legal li { font-size: 18px; line-height: 1.6; color: var(--espresso); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); }
