/* hero.css */
/* Current RAKK styles; unused study selectors and superseded declarations removed. */
.split {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 810px;
  background: var(--rakk-black);
  color: var(--rakk-white);
}

.black-panel {
  padding: 54px clamp(28px, 3.75vw, 72px) 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.split .logo {
  width: 156px;
  flex-shrink: 0;
}

.split-copy {
  margin: auto 0;
  padding: 64px 0 72px;
  width: 100%;
}

.split h1 {
  font-family: Adieu, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.95vw, 94px);
  letter-spacing: normal;
  word-spacing: normal;
  margin: 0 0 30px;
  font-kerning: normal;
  font-synthesis: none;
}

.split .hero-description {
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 26px);
  margin-bottom: 34px;
  max-width: none;
}

.split-photo {
  position: relative;
  min-width: 0;
  border-left: 8px solid var(--rakk-detail-accent);
  overflow: hidden;
}

.split-photo > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
  display: block;
  max-width: none;
}

.split-photo figcaption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  background: var(--rakk-black);
  color: var(--rakk-white);
  padding: 9px 13px;
}

.panel-foot {
  font-size: 10px;
  color: var(--rakk-metadata);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header colorway: use the selected artwork's exact alpha, with a white-image
   fallback. The selected site accent owns the ink; letter geometry is unchanged. */
@supports (mask-image: url("assets/rakk-wordmark.png")) or (-webkit-mask-image: url("assets/rakk-wordmark.png")) {
  .split .logo {
    position: relative;
  }

  .split .logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rakk-accent);
    -webkit-mask: url("assets/rakk-wordmark.png") center / contain no-repeat;
    mask: url("assets/rakk-wordmark.png") center / contain no-repeat;
  }

  .split .logo img {
    opacity: 0;
  }
}

@media (min-width: 1800px) {
  .split {
    min-height: 1000px;
  }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .split {
    min-height: 660px;
  }

  .black-panel {
    padding-top: 40px;
  }

  .split h1 {
    font-size: 4.95vw;
  }

  .split .hero-description {
    font-size: 18px;
  }

  .split .logo {
    width: 132px;
  }
}

@media (max-width: 760px) {
  .split {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .black-panel {
    padding: 30px 24px 24px;
  }

  .split .logo {
    width: 126px;
  }

  .split-copy {
    padding: 50px 0 32px;
  }

  .split h1 {
    font-size: clamp(34px, calc(13.333vw - 6.4px), 88px);
    line-height: 0.9625;
    margin-bottom: 24px;
  }

  .split .hero-description {
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 320px;
  }

  .split-photo {
    aspect-ratio: 1.18;
    border-left: 0;
    border-top: 6px solid var(--rakk-detail-accent);
  }

  .split-photo > img {
    object-position: 40% 50%;
  }

  .split-photo figcaption {
    font-size: 10px;
    right: 18px;
    bottom: 18px;
    padding: 7px 10px;
  }

  .panel-foot {
    font-size: 9px;
  }
}

@font-face {
  font-family: "DIN Alternate";
  src: local("DIN Alternate Bold");
  font-weight: 700;
  font-display: swap;
}

.split-photo .coach-nameplate {
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  padding: 0;
  letter-spacing: normal;
  isolation: isolate;
}

.coach-nameplate .coach-role {
  display: block;
  margin-left: 14px;
  background: var(--rakk-accent);
  padding: 8px 17px 9px;
  font-family: Barlow, Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.coach-nameplate .coach-name {
  position: relative;
  display: block;
  background: var(--rakk-accent);
  color: var(--rakk-black);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 14px 100%);
  padding: 14px 32px 16px;
  font-family: "DIN Alternate", Barlow, Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.coach-nameplate .coach-name::before {
  content: "";
  position: absolute;
  inset: 0 8px;
  background: var(--rakk-white);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 14px 100%);
  z-index: -1;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .split-photo .coach-nameplate {
    right: 24px;
    bottom: 24px;
  }

  .coach-nameplate .coach-name {
    font-size: 28px;
    padding: 13px 28px 15px;
  }
}

@media (max-width: 760px) {
  .split-photo .coach-nameplate {
    right: 18px;
    bottom: 18px;
    padding: 0;
  }

  .coach-nameplate .coach-role {
    font-size: 10px;
    padding: 7px 13px 8px;
    margin-left: 11px;
  }

  .coach-nameplate .coach-name {
    font-size: 24px;
    padding: 12px 25px 14px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 11px 100%);
  }

  .coach-nameplate .coach-name::before {
    inset: 0 6px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 11px 100%);
  }
}

.split h1 {
  /* Guide reference: font size 68.5714, cap height 48, baseline step 66.
     66 / 68.5714 = .9625. Preserve shaped spacing; no stretch or kerning hacks. */
  line-height: 0.9625;
  padding: 0;
}

.coach-nameplate .coach-role {
  color: var(--rakk-black);
}

body {
  background: var(--rakk-black);
  color: var(--rakk-paper);
}

.review-footer {
  border-color: var(--rakk-rule);
  color: var(--rakk-metadata);
}

.primary-link:focus-visible {
  outline: 3px solid var(--rakk-accent);
  outline-offset: 6px;
}

.logo:focus-visible {
  outline: 3px solid var(--rakk-accent);
  outline-offset: 6px;
}
