/*
 * Ryoku-Do homepage campaign direction
 * Cinematic photography, editorial typography and one recurring red signature.
 */
:root {
  --campaign-black: #090b0d;
  --campaign-charcoal: #15181b;
  --campaign-paper: #eee9df;
  --campaign-red: #cf1d25;
  --campaign-line: rgba(255, 255, 255, .18);
}

body .hero {
  min-height: 820px;
  height: 100svh;
  padding: clamp(198px, 19vh, 235px) 8vw 110px;
  isolation: isolate;
  background-color: var(--campaign-black);
  background-image: url("assets/karate-hero-poster.webp");
  background-position: center 58%;
  background-size: cover;
  background-attachment: scroll;
}

body .hero .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  filter: saturate(.82) contrast(1.08) brightness(.88);
  transform: scale(1.035);
  transition: opacity .7s ease;
  pointer-events: none;
}

body .hero .hero-video.is-ready {
  opacity: 1;
  animation: cinematicDrift 12s ease-in-out infinite alternate;
}

body .hero .hero-sound-toggle {
  position: absolute;
  z-index: 6;
  left: clamp(28px, 6vw, 92px);
  bottom: 130px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 15px 8px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(8, 10, 11, .55);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

body .hero .hero-sound-toggle:hover,
body .hero .hero-sound-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .75);
  background: rgba(8, 10, 11, .78);
}

body .hero .hero-sound-toggle .sound-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 15px;
}

body .hero .hero-sound-toggle.is-audible .sound-icon {
  background: var(--campaign-red);
  box-shadow: 0 0 0 5px rgba(207, 29, 37, .14);
}

body .hero .hero-sound-toggle .sound-copy { display: grid; gap: 1px; text-align: left; }
body .hero .hero-sound-toggle small { color: rgba(255, 255, 255, .55); font: 650 8px var(--font-brand); letter-spacing: .16em; }
body .hero .hero-sound-toggle b { color: #fff; font: 800 11px var(--font-brand); letter-spacing: .12em; }

@keyframes cinematicDrift {
  from { transform: scale(1.035); }
  to { transform: scale(1.085); }
}

body .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 9, 10, .06) 0 30%, rgba(7, 9, 10, .72) 62%, rgba(7, 9, 10, .98) 100%),
    linear-gradient(0deg, rgba(7, 9, 10, .98) 0, rgba(7, 9, 10, .2) 48%, rgba(7, 9, 10, .42) 100%);
  pointer-events: none;
}

html[dir="ltr"] body .hero::before {
  background:
    linear-gradient(270deg, rgba(7, 9, 10, .08) 0 34%, rgba(7, 9, 10, .78) 62%, rgba(7, 9, 10, .97) 100%),
    linear-gradient(0deg, rgba(7, 9, 10, .96) 0, rgba(7, 9, 10, .18) 43%, rgba(7, 9, 10, .3) 100%);
}

body .hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, transparent 0 8%, var(--campaign-red) 8% 36%, #fff 36% 37%, transparent 37% 100%);
  pointer-events: none;
}

body .hero .kanji {
  top: auto;
  right: 1.2vw;
  bottom: 8%;
  color: rgba(255, 255, 255, .045);
  font-size: clamp(120px, 15vw, 245px);
  line-height: .72;
  z-index: 2;
}

body .hero .hero-copy {
  width: min(58%, 800px);
  margin-right: 0 !important;
  margin-left: auto !important;
  align-items: flex-start;
  text-align: start;
  text-shadow: 0 14px 42px rgba(0, 0, 0, .72);
}

body .hero .hero-copy > * {
  opacity: 0;
  animation: heroElementIn .72s cubic-bezier(.2,.78,.25,1) both;
}

body .hero .hero-copy > :nth-child(1) { animation-delay: .08s; }
body .hero .hero-copy > :nth-child(2) { animation-delay: .18s; }
body .hero .hero-copy > :nth-child(3) { animation-delay: .32s; }
body .hero .hero-copy > :nth-child(4) { animation-delay: .43s; }
body .hero .hero-copy > :nth-child(5) { animation-delay: .54s; }
body .hero .hero-copy > :nth-child(6) { animation-delay: .65s; }

@keyframes heroElementIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body .hero .hero-edition {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .78);
  background: rgba(8, 10, 11, .28);
  font: 700 12px/1 var(--font-brand);
  letter-spacing: .19em;
  backdrop-filter: blur(5px);
}

body .hero .hero-academy-title {
  display: grid;
  gap: 2px;
  max-width: 820px;
  margin: 0 0 20px;
  padding-inline-start: 22px;
  border-inline-start: 5px solid var(--campaign-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.9vw, 92px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body .hero .hero-academy-title span {
  display: block;
  text-shadow: 0 16px 48px rgba(0, 0, 0, .8);
}

body .hero .hero-academy-title small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .86);
  font-family: var(--font-display);
  font-size: .34em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .015em;
}

body .hero .hero-message {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .96);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

body .hero .hero-message em {
  position: relative;
  display: inline-block;
  color: #fff;
  font-style: normal;
}

body .hero .hero-message em::after {
  content: "";
  position: absolute;
  inset-inline: 1% 0;
  bottom: -.14em;
  height: .09em;
  background: var(--campaign-red);
  transform: scaleX(0) skewX(-18deg);
  transform-origin: right center;
  animation: signatureDraw .7s .92s cubic-bezier(.2,.8,.2,1) forwards;
  box-shadow: 0 0 28px rgba(207, 29, 37, .4);
}

@keyframes signatureDraw {
  to { transform: scaleX(1) skewX(-18deg); }
}

@keyframes academyBrandIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

body .hero h1 {
  max-width: 730px;
  margin: 0;
  color: #fff;
  font-size: clamp(68px, 7vw, 112px);
  font-weight: 850;
  line-height: .88;
  letter-spacing: -.065em;
}

body .hero h1 em {
  display: inline-block;
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  position: relative;
}

body .hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 2% 0;
  bottom: -.11em;
  height: .075em;
  background: var(--campaign-red);
  transform: skewX(-18deg);
  box-shadow: 0 0 34px rgba(207, 29, 37, .42);
}

body .hero .hero-copy > p {
  max-width: 625px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
}

body .hero .hero-actions {
  margin-top: 34px;
  gap: 28px;
}

body .hero .primary {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 24px;
  border: 1px solid #e53a42;
  border-radius: 0;
  background: var(--campaign-red);
  box-shadow: 0 18px 45px rgba(140, 5, 12, .44);
}

body .hero .text-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 0;
  background: rgba(8, 10, 11, .22);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  backdrop-filter: blur(7px);
  transition: border-color .2s, background .2s, transform .2s;
}

body .hero .text-link:is(:hover, :focus-visible) {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  transform: translateY(-3px);
}

body .hero .hero-proof {
  margin-top: 29px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.hero-brand-code {
  position: absolute;
  z-index: 4;
  left: 3.1vw;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .62);
  writing-mode: vertical-rl;
  font: 700 11px/1 var(--font-brand);
  letter-spacing: .2em;
}

html[dir="ltr"] body .hero .hero-copy {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="ltr"] .hero-brand-code {
  right: 3.1vw;
  left: auto;
}

.hero-brand-code span {
  color: rgba(255, 255, 255, .42);
  font-family: serif;
  font-size: 15px;
}

.hero-brand-code i {
  width: 1px;
  height: 48px;
  background: var(--campaign-red);
}

body .trust-strip {
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #090b0d;
}

body .wow-trust-strip {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body .trust-strip > :is(div, a) {
  min-height: 98px;
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
  border-left: 0;
}

/* A quieter primary navigation lets the brand and trial action lead. */
body .nav .primary-nav {
  gap: clamp(15px, 1.35vw, 23px);
}

body .nav .nav-more {
  position: relative;
}

body .nav .nav-more summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

body .nav .nav-more summary::-webkit-details-marker { display: none; }
body .nav .nav-more summary i { color: var(--campaign-red); font-size: 18px; font-style: normal; transition: transform .2s; }
body .nav .nav-more[open] summary i { transform: rotate(45deg); }

body .nav .nav-more-menu {
  position: absolute;
  inset-block-start: calc(100% + 20px);
  inset-inline-end: -18px;
  width: 230px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(11, 13, 15, .97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
  backdrop-filter: blur(16px);
}

body .nav .nav-more-menu a {
  display: flex;
  min-height: 45px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: 13px;
}

body .nav .nav-more-menu a:last-child { border-bottom: 0; }

@media (max-width: 1050px) {
  body .nav .nav-more {
    width: 100%;
  }

  body .nav .nav-more summary {
    min-height: 58px;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 19px;
  }

  body .nav .nav-more-menu {
    position: static;
    width: 100%;
    padding: 0 16px;
    border: 0;
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
  }

  body .nav .nav-more-menu a {
    min-height: 52px;
    font-size: 16px !important;
  }
}

body .trust-strip b {
  font-family: var(--font-brand);
  font-size: 27px;
  letter-spacing: .02em;
}

/* Keep the nonprofit visible without adding clutter back to the main header. */
body .association-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(38px, 5vw, 70px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(17, 19, 21, .16);
  border-inline-start: 4px solid var(--campaign-red);
  background: rgba(255, 255, 255, .5);
  color: #111315;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

body .association-home-link:hover,
body .association-home-link:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 20px 48px rgba(25, 20, 15, .11);
}

body .association-home-link > span { display: grid; gap: 9px; }
body .association-home-link small { color: #67645f; font-size: 13px; font-weight: 650; }
body .association-home-link strong { font-size: clamp(19px, 2vw, 28px); line-height: 1.3; }
body .association-home-link > b { flex: 0 0 auto; font-size: 14px; }

body footer .footer-discover > b {
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
}

body footer .footer-discover > a:first-of-type { color: #fff; font-weight: 750; }

@media (max-width: 700px) {
  body .association-home-link { align-items: flex-start; flex-direction: column; }
}

/* Recurring campaign signature */
body .campaign-section {
  position: relative;
  overflow: hidden;
}

body .campaign-section::after {
  content: attr(data-campaign);
  position: absolute;
  top: 70px;
  inset-inline-end: 8vw;
  color: rgba(255, 255, 255, .38);
  font: 700 12px/1 var(--font-brand);
  letter-spacing: .2em;
}

body .academy-team.campaign-section::after {
  color: rgba(15, 17, 18, .42);
}

body .campaign-section > .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

body .campaign-section > .section-tag::before {
  content: "";
  width: 44px;
  height: 3px;
  background: var(--campaign-red);
  transform: skewX(-20deg);
}

/* Training paths as photographic campaign posters */
body .programs {
  padding: 118px 8vw 126px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 16%, rgba(207, 29, 37, .14), transparent 26%),
    var(--campaign-black);
}

body .programs .program-head {
  margin-bottom: 54px;
  align-items: end;
}

body .programs .program-head h2 {
  font-size: clamp(54px, 6vw, 88px);
  line-height: .92;
}

body .programs .program-head p {
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
}

body .program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  border: 0;
  perspective: none;
}

body .program-list .program-poster {
  --poster-position: center;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px !important;
  border: 1px solid rgba(255, 255, 255, .17);
  background: #141719 !important;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

body .program-list .program-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--program-image);
  background-position: var(--poster-position);
  background-size: cover;
  filter: saturate(.6) contrast(1.1) brightness(.73);
  transform: scale(1.015);
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), filter .45s ease;
}

body .program-list .program-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(4, 6, 7, .98) 0, rgba(4, 6, 7, .68) 46%, rgba(4, 6, 7, .08) 83%),
    linear-gradient(90deg, transparent 55%, rgba(207, 29, 37, .14));
}

body .program-list .program-young { --poster-position: center 42%; }
body .program-list .program-youth { --poster-position: center 54%; }
body .program-list .program-team { --poster-position: center 35%; }
body .program-list .program-adults { --poster-position: center 42%; }

body .program-list .program-poster:hover,
body .program-list .program-poster:focus-visible {
  z-index: 1;
  padding: 36px !important;
  border-color: var(--campaign-red);
  background: #141719 !important;
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .48);
  outline: none;
}

body .program-list .program-poster:hover::before,
body .program-list .program-poster:focus-visible::before {
  transform: scale(1.07);
  filter: saturate(.82) contrast(1.12) brightness(.78);
}

body .program-list .program-poster > span {
  position: absolute;
  inset-inline-end: 27px;
  top: 24px;
  color: #fff;
  font: 800 44px/1 var(--font-brand);
  opacity: .72;
}

body .program-list .program-poster > div {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
}

body .program-list .program-poster small {
  display: block;
  color: #f05b61;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

body .program-list .program-poster h3 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1;
  transform: none;
}

body .program-list .program-poster p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.65;
}

body .program-list .program-poster a {
  display: inline-flex;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--campaign-red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

body .program-list .program-poster > b {
  position: absolute;
  z-index: 2;
  inset-inline-start: 28px;
  top: 27px;
  color: #fff;
  font-size: 24px;
}

body .program-list .program-poster:hover :is(small, p, span) {
  color: inherit;
}

/* Coaching team as a single cinematic portrait system */
body .academy-team {
  padding: 118px 8vw 126px;
  background: var(--campaign-paper);
}

body .academy-team .team-heading h2 {
  max-width: 780px;
  font-size: clamp(52px, 6vw, 86px);
  line-height: .92;
}

body .academy-team .staff-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 58px;
}

body .academy-team .staff-preview article {
  min-height: 540px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(17, 19, 20, .22);
  border-radius: 0 !important;
  background: var(--campaign-charcoal);
  box-shadow: none;
}

body .academy-team .staff-preview article::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 8, 9, .98) 0, rgba(6, 8, 9, .72) 28%, transparent 67%),
    linear-gradient(90deg, rgba(207, 29, 37, .12), transparent 42%);
  pointer-events: none;
}

body .academy-team .staff-preview article::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 4px;
  background: var(--campaign-red);
  transform: scaleX(.24);
  transform-origin: right;
  transition: transform .4s ease;
}

body .academy-team .staff-preview article:hover,
body .academy-team .staff-preview article:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(55, 46, 35, .28);
}

body .academy-team .staff-preview article:hover::before {
  transform: scaleX(1);
}

body .academy-team .staff-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.66) contrast(1.08) brightness(.82);
  transform: scale(1.01);
  transition: transform .7s ease, filter .45s ease;
}

body .academy-team .staff-preview article:hover .staff-photo {
  transform: scale(1.055);
  filter: saturate(.85) contrast(1.08) brightness(.85);
}

body .academy-team .staff-photo[src$="team-raphy.jpg"] { object-position: 58% 25%; }
body .academy-team .staff-photo[src$="team-bobby.jpg"] { object-position: 53% 18%; }
body .academy-team .staff-photo[src$="team-shagi.jpg"] { object-position: 50% 23%; }
body .academy-team .staff-photo[src$="team-erez.jpg"] { object-position: 48% 24%; }
body .academy-team .staff-photo[src$="team-tamir.jpg"] { object-position: 48% 19%; }

body .academy-team .staff-card-copy {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  min-height: 185px;
  padding: 70px 29px 29px;
  color: #fff;
  background: linear-gradient(0deg, rgba(7, 9, 10, .98), transparent);
}

body .academy-team .staff-card-copy small {
  color: #f05b61;
  font-size: 12px !important;
  letter-spacing: .11em;
}

body .academy-team .staff-card-copy h3 {
  margin: 13px 0 8px;
  color: #fff;
  font-size: clamp(26px, 2.3vw, 35px);
  line-height: 1;
}

body .academy-team .staff-card-copy p {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

body .academy-team .team-page-link {
  min-height: 58px;
  margin-top: 15px;
  border-color: #bfb7aa;
  background: #121416;
  color: #fff;
}

/* Achievements: editorial photography plus clear proof */
body .achievements {
  padding: 118px 8vw 128px;
  grid-template-columns: .72fr 1.28fr;
  gap: 7vw;
  color: #fff;
  background:
    radial-gradient(circle at 14% 12%, rgba(207, 29, 37, .12), transparent 28%),
    var(--campaign-black);
}

body .achievements .achievement-intro {
  align-self: start;
  position: sticky;
  top: 110px;
}

body .achievements .achievement-intro h2 {
  font-size: clamp(52px, 5.7vw, 82px);
  line-height: .92;
}

body .achievements .achievement-intro p {
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
}

body .achievements .achievement-grid {
  gap: 14px;
}

body .achievements .achievement-grid article {
  min-height: 320px;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-top: 3px solid rgba(255, 255, 255, .34);
  border-radius: 0;
  background: #171a1d;
  color: #fff;
  box-shadow: none;
}

body .achievements .achievement-grid article:hover {
  border-color: rgba(255, 255, 255, .28);
  border-top-color: var(--campaign-red);
  background: #1c1f22;
  box-shadow: 0 26px 65px rgba(0, 0, 0, .42);
}

body .achievements .achievement-grid .achievement-main {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  border-top-color: var(--campaign-red);
  background: transparent;
}

body .achievements .achievement-main::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/home-team.webp") center 42% / cover no-repeat;
  filter: saturate(.72) contrast(1.08) brightness(.8);
  transition: transform .75s ease, filter .45s ease;
}

body .achievements .achievement-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 8, .98) 0, rgba(5, 7, 8, .77) 42%, rgba(5, 7, 8, .05) 82%);
}

body .achievements .achievement-main:hover::before {
  transform: scale(1.045);
  filter: saturate(.92) contrast(1.08) brightness(.82);
}

body .achievements .achievement-grid small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px !important;
}

body .achievements .achievement-number {
  margin: 22px 0 12px;
  color: #f0444b;
  font-size: clamp(74px, 8vw, 118px);
  line-height: .72;
}

body .achievements .achievement-grid h3 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 37px);
  line-height: 1.08;
}

body .achievements .achievement-grid p {
  max-width: 620px;
  color: rgba(255, 255, 255, .64);
  font-size: 14px;
}

.achievement-link {
  align-self: flex-start;
  margin-top: 17px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--campaign-red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

body .achievements .achievement-harish {
  background: linear-gradient(145deg, #171a1d, #1d2023);
}

body .achievements .achievement-standard {
  background: linear-gradient(145deg, #1a1d20, #111315);
}

@media (max-width: 1050px) {
  body .campaign-section::after {
    display: none;
  }

  body .academy-team .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .academy-team .staff-preview article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body .hero {
    min-height: 790px;
    height: auto;
    padding: 178px 7vw 104px;
    background-position: 32% center;
  }

  body .hero .hero-video { display: none; }
  body .hero .hero-sound-toggle { display: none; }

  body .wow-trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  body .hero::before,
  html[dir="ltr"] body .hero::before {
    background:
      linear-gradient(0deg, rgba(7, 9, 10, .98) 0, rgba(7, 9, 10, .78) 50%, rgba(7, 9, 10, .2) 100%),
      linear-gradient(90deg, rgba(7, 9, 10, .2), rgba(7, 9, 10, .56));
  }

  body .hero .hero-copy {
    width: 100%;
    margin: 0 !important;
  }

  body .hero h1 {
    max-width: 680px;
    font-size: clamp(60px, 11vw, 88px);
  }

  body .hero .hero-academy-title {
    max-width: 720px;
    font-size: clamp(46px, 9vw, 66px);
  }

  body .hero .hero-message {
    font-size: clamp(34px, 6.5vw, 49px);
  }

  .hero-brand-code {
    display: none;
  }

  body .programs,
  body .academy-team,
  body .achievements {
    padding: 84px 7vw 92px;
  }

  body .program-list .program-poster {
    min-height: 370px;
  }

  body .academy-team .staff-grid {
    grid-template-columns: 1fr 1fr;
  }

  body .achievements {
    grid-template-columns: 1fr;
  }

  body .achievements .achievement-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  body .hero {
    min-height: 720px;
    padding: 156px 6vw 88px;
    background-position: 35% center;
  }

  body .hero .hero-edition {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: .13em;
  }

  body .hero h1 {
    font-size: clamp(52px, 16vw, 70px);
    letter-spacing: -.055em;
  }

  body .hero .hero-academy-title {
    margin-bottom: 16px;
    padding-inline-start: 14px;
    border-inline-start-width: 4px;
    font-size: clamp(39px, 11.7vw, 53px);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  body .hero .hero-academy-title small {
    margin-top: 7px;
    font-size: .45em;
  }

  body .hero .hero-message {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  body .hero .hero-copy > p {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.65;
  }

  body .hero .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 14px;
  }

  body .hero .primary {
    width: 100%;
  }

  body .hero .text-link {
    width: 100%;
    min-height: 54px;
  }

  body .wow-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .wow-trust-strip > :last-child { grid-column: 1 / -1; }

  body .hero .hero-proof {
    font-size: 12px !important;
    line-height: 1.55;
  }

  body .program-list {
    grid-template-columns: 1fr;
  }

  body .program-list .program-poster {
    min-height: 350px;
    padding: 27px !important;
  }

  body .program-list .program-poster:hover,
  body .program-list .program-poster:focus-visible {
    padding: 27px !important;
    transform: translateY(-3px);
  }

  body .program-list .program-poster p {
    display: block !important;
    font-size: 14px;
  }

  body .program-list .program-poster > span {
    inset-inline-end: 21px;
    top: 20px;
    font-size: 36px;
  }

  body .program-list .program-poster > b {
    inset-inline-start: 21px;
    top: 21px;
  }

  body .academy-team .staff-grid {
    grid-template-columns: 1fr;
  }

  body .academy-team .staff-preview article:first-child {
    grid-column: auto;
  }

  body .academy-team .staff-preview article:last-child {
    grid-column: auto;
  }

  body .academy-team .staff-preview article {
    min-height: 455px;
  }

  body .academy-team .staff-card-copy {
    padding: 64px 23px 24px;
  }

  body .achievements .achievement-grid {
    grid-template-columns: 1fr;
  }

  body .achievements .achievement-grid .achievement-main {
    grid-column: auto;
    min-height: 430px;
  }

  body .achievements .achievement-grid article {
    min-height: 275px;
    padding: 26px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hero .hero-video { display: none; }
  body .hero .hero-sound-toggle { display: none; }
  body .hero .hero-copy > * { opacity: 1; transform: none; }
  body .hero .hero-message em::after { transform: scaleX(1) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  body .program-list .program-poster::before,
  body .academy-team .staff-photo,
  body .achievements .achievement-main::before {
    transition: none;
  }
}

/* Phase 3: shorter conversion journey, local proof and lighter rendering. */
body .local-branches {
  grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr);
  grid-template-areas: "copy branches" "proof proof";
  gap: 46px 6vw;
  padding-block: 88px;
  align-items: start;
}

body .local-branches .quick-branches-copy { grid-area: copy; position: sticky; top: 105px; }
body .local-branches .quick-branches-copy .section-tag { margin-bottom: 24px; }
body .local-branches .quick-branches-copy p { margin-top: 24px; }

.local-branch-grid {
  grid-area: branches;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.local-branch-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #d8d1c6;
  border-top: 3px solid #171819;
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.local-branch-card:hover,
.local-branch-card:focus-within {
  transform: translateY(-4px);
  border-top-color: var(--campaign-red);
  box-shadow: 0 22px 48px rgba(71, 61, 48, .18);
}

.local-branch-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04);
}

.local-branch-duo {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  background: #171819;
}

.local-branch-duo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04);
}

.local-branch-duo img:first-child { object-position: 50% 22%; }
.local-branch-duo img:last-child { object-position: 48% 20%; border-top: 2px solid #fff; }

.local-branch-card:nth-child(1) > img { object-position: 58% 26%; }
.local-branch-card:nth-child(2) > img { object-position: 50% 23%; }
.local-branch-card:nth-child(3) > img { object-position: 50% 24%; }
.local-branch-card:nth-child(4) > img { object-position: 53% 18%; }

.local-branch-card > div { min-width: 0; padding: 22px 20px 18px; display: flex; flex-direction: column; }
.local-branch-card small { color: var(--campaign-red); font-weight: 850; letter-spacing: .04em; }
.local-branch-card h3 { margin: 8px 0 5px; font-size: 21px; line-height: 1.1; }
.local-branch-card p { margin: 0; color: #45423e; font-size: 13px; font-weight: 750; line-height: 1.45; }
.local-branch-card address { margin-top: 12px; color: #716c65; font-size: 12px; font-style: normal; }
.local-branch-card > div > span { margin-top: 7px; color: #77716a; font-size: 11px; line-height: 1.5; }
.local-branch-card nav { display: flex; gap: 7px; margin-top: auto; padding-top: 16px; }
.local-branch-card nav a { min-height: 42px; padding: 10px 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #171819; color: #171819; text-decoration: none; font-size: 11px; font-weight: 850; }
.local-branch-card nav a:last-child { border-color: var(--campaign-red); background: var(--campaign-red); color: #fff; }

.local-trust-note {
  grid-area: proof;
  min-height: 72px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: #171819;
  color: #fff;
}

.local-trust-note b { color: #ffbd25; font-size: 17px; direction: ltr; }
.local-trust-note span { color: rgba(255,255,255,.72); font-size: 12px; }
.local-trust-note a { color: #fff; font-size: 12px; font-weight: 850; text-decoration: none; border-bottom: 2px solid var(--campaign-red); padding-bottom: 5px; }

.results-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  margin: -12px 0 36px;
  border: 1px solid #d9d2c8;
  background: #fff;
}

.results-proof > * { min-height: 112px; padding: 22px 24px; border-inline-end: 1px solid #ded7cd; }
.results-proof article { display: flex; align-items: center; gap: 18px; }
.results-proof strong { color: var(--campaign-red); font: 850 46px/1 var(--font-brand); }
.results-proof span { display: grid; gap: 5px; }
.results-proof b { font-size: 14px; line-height: 1.35; }
.results-proof small { color: #77716a; font-size: 11px; line-height: 1.4; }
.results-proof > a { display: flex; flex-direction: column; justify-content: center; gap: 9px; border: 0; background: #171819; color: #fff; text-decoration: none; }
.results-proof > a span { color: rgba(255,255,255,.62); font-size: 11px; }
.results-proof > a b { color: #fff; }

body .why-ryokudo,
body .academy-team { padding-block: 92px; }
body .programs { padding-block: 92px 98px; }
body .program-list .program-poster { min-height: 330px; }
body .academy-team .staff-preview article { min-height: 440px; }
body .academy-team .staff-grid { margin-top: 42px; }

body :is(.why-ryokudo, .first-visit, .programs, .academy-team, .google-proof, .faq, .trial-registration) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

@media (max-width: 1100px) {
  body .local-branches { grid-template-columns: 1fr; grid-template-areas: "copy" "branches" "proof"; }
  body .local-branches .quick-branches-copy { position: static; }
}

@media (max-width: 760px) {
  body .local-branches { padding: 68px 5vw; gap: 30px; }
  .local-branch-grid { grid-template-columns: 1fr; }
  .local-branch-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 245px; }
  .local-branch-card > div { padding: 19px 16px 16px; }
  .local-branch-card nav { flex-direction: column; }
  .local-branch-card nav a { width: 100%; }
  .local-trust-note { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .results-proof { grid-template-columns: 1fr; margin-bottom: 28px; }
  .results-proof > * { min-height: 94px; border-inline-end: 0; border-bottom: 1px solid #ded7cd; }
  body .program-list .program-poster { min-height: 310px; }
  body .academy-team .staff-preview article { min-height: 410px; }
}

@media (max-width: 410px) {
  .local-branch-card { grid-template-columns: 94px minmax(0, 1fr); }
  .local-branch-card h3 { font-size: 19px; }
  .local-branch-card > div > span { display: none; }
}

/* Phase 4: one-second opening choreography and editorial movement. */
body .nav .brand-logo {
  opacity: 0;
  animation: heroLogoFade .52s .04s ease-out both;
}

body .hero .hero-video {
  transition-duration: .45s;
}

body .hero .hero-copy > * {
  opacity: 0;
  animation: heroCopyRise .44s cubic-bezier(.2,.78,.25,1) both;
}

body .hero .hero-edition { animation-name: heroTagFade; animation-delay: .08s; }
body .hero .hero-academy-title {
  overflow: hidden;
  animation: heroTitleReveal .56s .17s cubic-bezier(.18,.8,.2,1) both;
}
body .hero .hero-message { animation-delay: .34s; }
body .hero .hero-copy > p { animation-delay: .42s; }
body .hero .hero-copy > .hero-actions { opacity: 1; animation: none; transform: none; }
body .hero .hero-actions > a {
  opacity: 0;
  animation: heroButtonRise .4s cubic-bezier(.2,.78,.25,1) both;
}
body .hero .hero-actions > a:first-child { animation-delay: .52s; }
body .hero .hero-actions > a:last-child { animation-delay: .61s; }
body .hero .hero-message em::after { animation-duration: .44s; animation-delay: .44s; }

@keyframes heroLogoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroTagFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroTitleReveal {
  from { opacity: 0; transform: translateY(34px); clip-path: inset(100% 0 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes heroCopyRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroButtonRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust becomes part of the hero image instead of a separate small line. */
body .wow-trust-strip {
  min-height: 104px;
  margin-top: -104px;
  padding-inline: 5vw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(7, 9, 10, .74);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

body .wow-trust-strip > :is(div, a) {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 20px 22px;
  border-inline-start: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #fff;
  text-decoration: none;
}

body .wow-trust-strip b {
  min-width: max-content;
  color: #fff;
  font-size: clamp(25px,2.3vw,37px);
  transition: transform .18s ease;
}

body .wow-trust-strip b.is-counting { transform: translateY(-2px); }
body .wow-trust-strip span { color: rgba(255,255,255,.68); }

/* An image-led transition breaks the card rhythm and creates breathing room. */
body .movement-interlude {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 9vw, 148px) 8vw clamp(112px, 10vw, 158px);
  color: #fff;
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.055), transparent 28%),
    #0b0d0f;
}

body .movement-interlude::before {
  content: "";
  position: absolute;
  inset: 0 8vw auto;
  height: 1px;
  background: rgba(255,255,255,.14);
}

body .movement-interlude-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .62fr);
  grid-template-areas: "tag tag" "title text" "title link";
  gap: 14px 8vw;
  align-items: end;
  margin-bottom: 72px;
}

body .movement-interlude-copy .section-tag { grid-area: tag; margin: 0 0 18px; color: rgba(255,255,255,.56); }
body .movement-interlude-copy h2 { grid-area: title; margin: 0; font-size: clamp(50px,6vw,88px); line-height: .94; letter-spacing: -.045em; }
body .movement-interlude-copy h2 span { color: #fff; }
body .movement-interlude-copy p { grid-area: text; margin: 0; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.75; }
body .movement-interlude-copy > a { grid-area: link; justify-self: start; padding-bottom: 7px; border-bottom: 2px solid var(--campaign-red); color: #fff; font-weight: 850; text-decoration: none; }

body .movement-interlude-frames {
  display: grid;
  grid-template-columns: .82fr 1.26fr .9fr;
  gap: clamp(12px,1.5vw,22px);
  align-items: end;
}

body .movement-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #17191b;
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}

body .movement-frame-tall { height: clamp(470px,43vw,690px); }
body .movement-frame-wide { height: clamp(320px,29vw,470px); }
body .movement-frame-focus { height: clamp(405px,36vw,580px); }
body .movement-frame:nth-child(2) { transition-delay: .09s; }
body .movement-frame:nth-child(3) { transition-delay: .17s; }

body .movement-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.84);
  transform: scale(1.025);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .5s;
}

body .movement-frame-tall img { object-position: 50% 28%; }
body .movement-frame-wide img { object-position: 58% 50%; }
body .movement-frame-focus img { object-position: 50% 22%; }
body .movement-frame:hover img { transform: scale(1.07); filter: saturate(.9) contrast(1.06) brightness(.88); }

body .movement-frame::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(5,6,7,.84));
  pointer-events: none;
}

body .movement-frame figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 24px 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* One strong, real Google recommendation replaces a dense card carousel. */
body .review-carousel,
body .reviews-footer { display: none; }

body .featured-google-review {
  position: relative;
  z-index: 1;
  min-height: 450px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid #d9d2c8;
  background: #fff;
  box-shadow: 0 24px 70px rgba(58,49,38,.12);
}

body .featured-review-copy {
  padding: clamp(38px,5vw,72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body .featured-review-kicker { display: flex; align-items: center; gap: 18px; }
body .featured-review-copy blockquote {
  max-width: 760px;
  margin: 28px 0 30px;
  color: #1a1c1e;
  font-family: var(--font-quote);
  font-size: clamp(25px,2.35vw,36px);
  font-weight: 650;
  line-height: 1.48;
}

body .featured-review-author { display: flex; align-items: center; gap: 13px; }
body .featured-review-author > div { display: grid; gap: 3px; }
body .featured-review-author strong { font-size: 15px; }
body .featured-review-author small { color: #77716a; }
body .featured-review-copy .google-review-link { align-self: flex-start; margin-top: 34px; }

body .featured-review-photo { position: relative; min-height: 450px; margin: 0; overflow: hidden; }
body .featured-review-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(5,6,7,.82)); }
body .featured-review-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 45%; filter: saturate(.72) contrast(1.05); transition: transform .9s ease; }
body .featured-google-review:hover .featured-review-photo img { transform: scale(1.045); }
body .featured-review-photo figcaption { position: absolute; z-index: 2; inset: auto 26px 24px; color: #fff; font-size: 13px; font-weight: 800; }

/* Keep red for action, brush strokes and key lines. */
body .why-head h2 span,
body .google-proof .reviews-intro h2 span { color: inherit; }
body .why-grid span,
body .local-branch-card small { color: #706b64; }
body .program-list .program-poster small,
body .academy-team .staff-card-copy small { color: rgba(255,255,255,.7); }
body .results-proof strong { color: #17191b; }

body .local-branches,
body .why-ryokudo,
body .first-visit,
body .programs,
body .academy-team,
body .google-proof { padding-block: clamp(96px,8.5vw,136px); }

body .movement-interlude { content-visibility: auto; contain-intrinsic-size: 1px 880px; }

@media (max-width: 900px) {
  body .hero .hero-copy { animation: mobileHeroFade .46s .08s ease-out both; }
  body .hero .hero-copy > *,
  body .hero .hero-actions > a { opacity: 1; transform: none; animation: none; clip-path: none; }
  body .hero .hero-message em::after { transform: scaleX(1) skewX(-18deg); animation: none; }

  body .wow-trust-strip {
    margin-top: 0;
    padding-inline: 5vw;
    grid-template-columns: repeat(2,minmax(0,1fr));
    background: #090b0d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body .wow-trust-strip > :is(div,a) { min-height: 88px; padding: 16px 14px; }

  body .movement-interlude-copy { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "text" "link"; gap: 20px; margin-bottom: 48px; }
  body .movement-interlude-copy h2 { font-size: clamp(46px,10vw,68px); }
  body .movement-interlude-copy p { max-width: 640px; }
  body .movement-interlude-frames { grid-template-columns: 1fr 1fr; }
  body .movement-frame-tall { height: 540px; }
  body .movement-frame-wide { height: 330px; }
  body .movement-frame-focus { height: 450px; }

  body .featured-google-review { grid-template-columns: 1fr; }
  body .featured-review-photo { min-height: 330px; }
}

@keyframes mobileHeroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  body .movement-interlude { padding: 82px 6vw 90px; }
  body .movement-interlude-frames {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-inline: -6vw;
    padding-inline: 6vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body .movement-interlude-frames::-webkit-scrollbar { display: none; }
  body .movement-frame { flex: 0 0 78vw; scroll-snap-align: center; }
  body .movement-frame-tall { height: 430px; }
  body .movement-frame-wide { height: 295px; }
  body .movement-frame-focus { height: 365px; }
  body .featured-review-copy { padding: 36px 24px 42px; }
  body .featured-review-copy blockquote { font-size: 24px; }
  body .featured-review-photo { min-height: 260px; }
  body .local-branches,
  body .why-ryokudo,
  body .first-visit,
  body .programs,
  body .academy-team,
  body .google-proof { padding-block: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  body .nav .brand-logo,
  body .hero .hero-copy,
  body .hero .hero-copy > *,
  body .hero .hero-actions > a { opacity: 1; transform: none; animation: none; clip-path: none; }
  body .hero .hero-message em::after { transform: scaleX(1) skewX(-18deg); animation: none; }
  body .movement-frame img,
  body .featured-review-photo img { transform: none; transition: none; }
}
