/* Shared photo and demo layouts for the public coaching pages. */
.mf-editorial-figure,
.mf-home__coach-photo {
  margin: 0;
  min-width: 0;
}

.mf-editorial-figure img,
.mf-home__coach-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.mf-editorial-figure figcaption,
.mf-home__coach-photo figcaption {
  margin-top: 12px;
  color: #bdb6aa;
  font: 500 .73rem/1.5 var(--mf-font-body);
  letter-spacing: .07em;
}

.mf-home__section.mf-home__coaching {
  background: #181714;
  padding-block: clamp(54px, 6.5vw, 100px);
}

.mf-home__coaching-grid {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "photo intro" "photo details";
  column-gap: clamp(32px, 7vw, 100px);
  row-gap: 24px;
  align-items: center;
}

.mf-home__coaching-intro {
  grid-area: intro;
  align-self: end;
  scroll-margin-top: 90px;
}

.mf-home__coaching-details {
  grid-area: details;
  align-self: start;
}

.mf-home__coach-photo {
  grid-area: photo;
}

.mf-home__coach-photo img {
  border: 1px solid #4b4033;
}

.mf-home__coaching-intro .mf-home__coach-intro {
  margin-top: 20px;
  max-width: 59ch;
  color: #d0cbc1;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.6;
}

.mf-home__coach-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.mf-home__section.mf-home__hub-note {
  padding-block: clamp(38px, 5vw, 68px);
  background: #111110;
}

.mf-home__hub-note h2 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: none;
}

.mf-home__hub-note p {
  max-width: 63ch;
  margin-top: 12px;
  color: #d0cbc1;
  line-height: 1.6;
}

main .mf-coaching-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  min-height: 0;
}

.mf-coaching-hero__copy,
.mf-coaching-hero__photo {
  position: relative;
  z-index: 1;
}

.mf-coaching-hero__photo img {
  border: 1px solid #4b4033;
}

#start .route__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
}

#start .routes .route {
  padding-block: 20px;
  border-block: 1px solid #4b4033;
}

#judgement .rev,
#comms .comms {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

#review .split__media .mf-editorial-figure {
  max-width: 350px;
}

.mf-demo-panel {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 440px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(20px, 4vw, 46px);
  border-block: 1px solid #4b4033;
  background: #161513;
}

.mf-demo-panel h3 {
  color: #f6f3eb;
  font: 600 clamp(26px, 3vw, 40px)/1.1 var(--mf-font-display);
}

.mf-demo-panel p {
  margin-block: 14px 18px;
  color: #d0cbc1;
  line-height: 1.6;
}

#main .mf-standard-position {
  display: block;
}

#main .mf-standard-position .field {
  margin-top: 32px;
}

#main .mf-text-section {
  display: block;
}

.fhero__portrait > img {
  display: block;
  width: var(--fp-w, 100%);
  height: auto;
  margin-left: auto;
}

body .phero.mf-compact-hero {
  min-height: 0;
  padding-block: clamp(110px, 14vw, 175px) clamp(52px, 8vw, 96px);
}

@media (max-width: 760px) {
  main .mf-coaching-hero,
  .mf-home__coaching-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-home__coaching-grid {
    grid-template-areas: "intro" "photo" "details";
  }

  .mf-home__coach-photo,
  .mf-coaching-hero__photo {
    width: min(100%, 360px);
  }

  .fhero__portrait > img {
    margin-left: 0;
  }

  .mf-demo-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-demo-panel figure {
    width: min(100%, 255px);
  }

  .mf-demo-panel > div {
    grid-row: 1;
  }
}

.fhero__role::before { content: none; }
.nav__links .nav__desc .nav__sub {
  padding: 10px 0 0;
}

.menu-overlay__nav > a:has(+ .msub) {
  border-bottom-color: transparent;
}

.menu-overlay__nav > a.msub {
  padding-inline-start: clamp(20px, 4vw, 44px);
}

.menu-overlay__nav > a[aria-current="page"],
.menu-overlay__nav > a.msub[aria-current="page"] {
  color: #e6c794;
  background: #e6c79412;
  box-shadow: inset 3px 0 #c5a36d;
}

.menu-overlay__nav > a[aria-current="page"]:not(.msub) {
  padding-inline-start: 12px;
}

.menu-overlay__nav > a[aria-current="page"] .mdesc {
  color: var(--mf-fg-2);
}

.outputs .phasepop {
  position: static;
  flex: 0 1 auto;
  margin: 0 0 0 6px;
}

.outputs .phasepop__panel {
  top: 100%;
  right: 0;
  left: auto;
  width: min(100%, 640px);
}

#privacy .chapter__title + .priv {
  margin-top: clamp(16px, 2.4vw, 30px);
}

#privacy .priv .bearlink[href^="bear-"],
#privacy .priv__note .bearlink {
  padding-bottom: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: .2em;
}

#privacy .priv .bearlink[href^="bear-"]::after,
#privacy .priv__note .bearlink::after {
  display: none;
}

@media (max-width: 900px) {
  .fhero__portrait > img {
    margin-left: 0;
  }

  .fhero__cap {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .fhero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head portrait" "body portrait";
    column-gap: clamp(24px, 4vw, 38px);
    align-items: start;
  }

  .fhero__head {
    margin-bottom: 0;
  }

  .fhero__title {
    font-size: clamp(54px, 9.2vw, 82px);
  }

  .fhero__portrait {
    --fp-w: 100%;
    align-self: center;
  }
}

/* Keep the decorative marquee within the viewport, including reduced motion. */
.mq {
  overflow: hidden;
}

#hero .hero__figure {
  --figure-mask: linear-gradient(to bottom, #000 54%, rgba(0,0,0,.78) 59%, rgba(0,0,0,.27) 66%, transparent 74%);
  -webkit-mask-image: var(--figure-mask);
  mask-image: var(--figure-mask);
}

@media (min-width: 901px) {
  #hero .hero__figure {
    top: clamp(86px, 10vh, 132px);
    right: clamp(-128px, -8vw, -64px);
    width: clamp(510px, 51vw, 820px);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #hero .hero__figure {
    top: clamp(96px, 12vh, 140px);
    right: -32vw;
    width: clamp(460px, 74vw, 640px);
  }

  #hero .hero__figure img { opacity: .68; }
}

@media (max-width: 640px) {
  #hero .hero__figure {
    top: clamp(110px, 17vh, 150px);
    right: -45vw;
    width: min(132vw, 535px);
  }

  #hero .hero__figure img {
    filter: brightness(.56) saturate(.85);
    opacity: .58;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.18) 25%, #000 58%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.18) 25%, #000 58%);
  }
}

.mf-hub-download {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #4b4033;
}

.mf-hub-download h4 {
  margin: 0 0 12px;
  color: #f6f3eb;
  font: 700 1rem/1.4 var(--mf-font-body);
}

.mf-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mf-store-badges a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mf-store-badges img {
  display: block;
  max-width: none;
}

.mf-store-badges__play {
  /* The official badge file includes a transparent margin around its artwork. */
  margin: -10.25px;
}

.mf-founder-story,
.mf-free-workouts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(26px, 6vw, 88px);
  align-items: center;
}

.mf-founder-story .sec__head {
  margin-block: 0;
}

.mf-founder-story--reverse {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
}

.mf-founder-story--reverse .mf-founder-photo {
  grid-column: 1;
  grid-row: 1;
}

.mf-founder-photo {
  width: min(100%, 400px);
  justify-self: center;
}

.mf-founder-photo__empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border: 1px dashed #625746;
  background: #1d1b18;
  color: #c5bbad;
  font: 500 .72rem/1.5 var(--mf-font-mono);
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.mf-free-workouts {
  background: #181714;
}

.mf-free-workouts .mf-hub-download h3 {
  margin: 0 0 14px;
  color: #f6f3eb;
  font: 700 1rem/1.4 var(--mf-font-body);
}

.mf-free-workouts__features {
  margin: 0;
  border-bottom: 1px solid #4b4033;
}

.mf-free-workouts__features div {
  padding: 18px 0;
  border-top: 1px solid #4b4033;
}

.mf-free-workouts__features dt {
  margin-bottom: 6px;
  font-weight: 750;
  color: #f6f3eb;
}

.mf-free-workouts__features dd,
.mf-hub-gallery p {
  margin: 0;
  color: #d0cbc1;
  line-height: 1.6;
}

.mf-hub-gallery {
  margin-top: clamp(34px, 6vw, 78px);
}

.mf-hub-gallery h3 {
  margin: 0 0 10px;
  font: 600 clamp(26px, 3vw, 40px)/1.15 var(--mf-font-display);
  color: #f6f3eb;
}

.mf-hub-gallery__grid,
.mf-review-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 34px);
}

.mf-hub-gallery__grid {
  margin-top: 24px;
}

.mf-review-screens {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mf-hub-gallery img,
.mf-review-screens img {
  border: 1px solid #4b4033;
  border-radius: 8px;
}

.mf-review-screens__note {
  margin-top: 14px;
  color: #bdb6aa;
  font-size: .8rem;
}

@media (max-width: 820px) {
  .mf-founder-story,
  .mf-founder-story--reverse,
  .mf-free-workouts__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-founder-story--reverse .mf-founder-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .mf-founder-photo {
    justify-self: start;
  }

  .mf-hub-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the hero still while it is revealed, then restore normal scrolling. */
html.mf-intro-revealing { overflow: hidden; overscroll-behavior: none; }

.mf-hub-gallery__grid img, .mf-review-screens img {
  display: block; width: 100%; height: auto; object-fit: cover; object-position: top;
}
.mf-hub-gallery__grid img { aspect-ratio: 860 / 1680; }
.mf-review-screens img { aspect-ratio: 860 / 1300; }
.mf-free-workouts__grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.8fr) minmax(150px,.55fr); gap: clamp(24px, 3vw, 48px); }
.mf-free-workouts__screen { max-width: 250px; margin: 0; justify-self: center; }
.mf-free-workouts__screen img, .mf-bear-gallery img { display: block; width: 100%; height: auto; border: 1px solid #4b4033; border-radius: 8px; }
.mf-free-workouts__screen figcaption, .mf-bear-gallery figcaption { margin-top: 10px; color: #bdb6aa; font-size: .8rem; line-height: 1.45; }
.mf-bear-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 3vw, 34px); margin-top: 36px; }
.mf-bear-gallery figure { margin: 0; }
.mf-bear-gallery img { aspect-ratio: 1179 / 2200; object-fit: cover; object-position: center top; }
@media (max-width: 820px) {
  .mf-free-workouts__grid { grid-template-columns: minmax(0,1fr); }
  .mf-free-workouts__screen { justify-self: start; max-width: 240px; }
  .mf-bear-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.mf-context-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,290px); gap:clamp(32px,7vw,100px); align-items:start; }
.mf-context-shot { margin:0; max-width:290px; }
.mf-context-shot img { display:block; width:100%; height:auto; border:1px solid #4b4033; border-radius:8px; }
.mf-context-shot figcaption { margin-top:10px; color:#bdb6aa; font-size:.8rem; line-height:1.45; }
.mf-privacy-icon { width:22px; height:22px; vertical-align:middle; margin-right:10px; color:#bf9b63; }
@media(max-width:820px){.mf-context-layout{grid-template-columns:minmax(0,1fr)} .mf-context-shot{max-width:260px}}

.mf-home__section.mf-home__free-workouts {
  background: #181714;
  padding-block: clamp(42px, 6vw, 78px);
}

.mf-home__free-workouts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.mf-home__free-workouts h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  max-width: 16ch;
}

.mf-home__free-workouts p:not(.mf-home__label) {
  margin-top: 14px;
  max-width: 58ch;
  color: #d0cbc1;
  line-height: 1.65;
}

.mf-home__free-workouts .mf-store-badges {
  margin-top: 22px;
}

@media (max-width: 650px) {
  .mf-home__free-workouts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mf-founder-early-gallery { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-self:center; }
.mf-founder-early-gallery .mf-founder-photo img { width:100%; height:clamp(220px, 30vw, 440px); object-fit:cover; object-position:center; border:1px solid #4b4033; }
.mf-founder-photo img { display:block; width:100%; height:auto; border:1px solid #4b4033; }
.mf-home__traits { margin:calc(clamp(36px,5.5vw,76px) + clamp(142px,calc(266px - 9.25vw),230px)) 0 16px; }
.mf-founder-story#builder .mf-founder-photo img {
  width: 100%;
  height: clamp(420px, 52vw, 720px);
  object-fit: cover;
  object-position: center 30%;
}

.mf-founder-crop { overflow: hidden; border: 1px solid #4b4033; }
.mf-founder-crop--early img { transform: scale(1.3); transform-origin: 50% 8%; }
.mf-founder-crop--developed { aspect-ratio: 4 / 5; }
#builder .mf-founder-crop--developed img { width:100%; height:100%; object-fit:cover; transform:scale(1.85); transform-origin: 44% 50%; border:0; }

.mf-founder-crop--early img[src*="gokhan-early-portrait"] { transform:none; object-position: 56% top; }
.mf-stand-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,360px); gap:clamp(28px,6vw,80px); align-items:center; }
.mf-stand-image { margin:0; }
.mf-stand-image img { display:block; width:100%; height:auto; }
@media(max-width:820px) { .mf-stand-layout { grid-template-columns:minmax(0,1fr); } .mf-stand-image { width:min(100%,360px); } }

.mf-standard-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,340px); gap:clamp(28px,6vw,84px); align-items:center; }
.mf-standard-photo { margin:0; }
.mf-standard-photo img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center 48%; border:1px solid #4b4033; }
.mf-standard-photo--training img { aspect-ratio: 7 / 5; object-position: center 48%; }
.mf-scope-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,340px); gap:clamp(28px,6vw,84px); align-items:center; }
.mf-standard-photo--scope { margin:0; }
@media(max-width:820px) { .mf-standard-layout,.mf-scope-layout { grid-template-columns:minmax(0,1fr); } .mf-standard-photo { width:min(100%,340px); } .mf-standard-photo--training { width:min(100%,520px); } }

/* Coaching page: tighter chapters and visual cues for the weekly process. */
.mf-coaching-page .content > .ch:not(.hero) { padding-block: clamp(48px, 6vw, 78px); }
.mf-coaching-page #start { padding-bottom: clamp(40px, 5vw, 64px); }
.mf-coaching-page .ch__head { margin-bottom: clamp(28px, 4vw, 48px); }
.mf-coaching-page .wkst__k { display: inline-flex; align-items: center; gap: 10px; }
.mf-coaching-page .wkst__k { transform: translateY(2px); }
.mf-step-icon { width: 23px; height: 23px; flex: 0 0 23px; color: #c6a16a; }
.mf-coaching-page #judgement .rev { grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); max-width: 860px; align-items: start; }
.mf-review-example { margin: 0; }
.mf-review-example img { display: block; width: 100%; max-height: 390px; object-fit: cover; object-position: top; border: 1px solid #4b4033; }
.mf-review-example figcaption { margin-top: 10px; color: #bdb6aa; font-size: .75rem; line-height: 1.4; }
@media (max-width: 700px) {
  .mf-coaching-page #judgement .rev { grid-template-columns: 1fr; }
  .mf-review-example { max-width: 230px; }
}

.mf-home__hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.mf-home__hub-copy { max-width: 38rem; }
.mf-home__hub-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(8px, 1.2vw, 16px);
}
.mf-home__hub-gallery figure { margin: 0; min-width: 0; }
.mf-home__hub-gallery a { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 19; border: 1px solid #4b4033; background: #0b0b0b; overflow: hidden; }
.mf-home__hub-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mf-home__hub-gallery figcaption { margin-top: 9px; color: #bdb6aa; font-size: .75rem; line-height: 1.4; }
.mf-frame-standard-link { display: inline-block; margin-top: 12px; }
@media (max-width: 800px) {
  .mf-home__hub-layout { grid-template-columns: 1fr; }
  .mf-home__hub-gallery { max-width: 450px; }
}
