.ecma-about-page {
  --ecma-ink: #111515;
  --ecma-muted: #56605f;
  --ecma-paper: #f7f3ec;
  --ecma-panel: #ffffff;
  --ecma-charcoal: #0b1113;
  --ecma-gold: #f5c85b;
  --ecma-line: rgba(17, 21, 21, .14);
  --ecma-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  color: var(--ecma-ink);
  background: var(--ecma-paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

.ecma-about-page * {
  box-sizing: border-box;
}

.ecma-about-page img {
  display: block;
  max-width: 100%;
}

.ecma-about-page a {
  color: inherit;
}

.ecma-topbar {
  background: var(--ecma-charcoal);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ecma-topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ecma-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: white;
  text-decoration: none;
}

.ecma-brand img {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

.ecma-brand-title {
  display: grid;
  gap: 2px;
}

.ecma-brand-title strong {
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ecma-brand-title span {
  color: rgba(255, 255, 255, .76);
  font-size: .88rem;
}

.ecma-topnav {
  display: flex;
  gap: 20px;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  font-weight: 600;
}

.ecma-topnav a {
  color: inherit;
  text-decoration: none;
}

.ecma-hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: var(--ecma-charcoal);
}

.ecma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .42) 50%, rgba(0, 0, 0, .25)),
    linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .05) 42%);
  z-index: -1;
}

.ecma-hero > img {
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  bottom: 0;
  width: 100%;
  height: calc(100% + 150px);
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

.ecma-hero-content,
.ecma-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.ecma-hero-content {
  width: min(1180px, calc(100% - 40px));
  padding: 90px 0 80px;
}

.ecma-eyebrow {
  margin: 0 0 14px;
  color: var(--ecma-gold);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .86rem;
}

.ecma-hero-content .ecma-eyebrow {
  transform: translateY(-64px);
}

.ecma-about-page h1,
.ecma-about-page h2,
.ecma-about-page h3,
.ecma-about-page p {
  margin-top: 0;
}

.ecma-about-page h1 {
  max-width: 1180px;
  margin-bottom: 6px;
  font-size: clamp(3rem, 6.4vw, 5.7rem);
  line-height: .98;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-64px);
}

.ecma-japanese {
  margin: 0 0 18px;
  color: var(--ecma-gold);
  font-family: "Yuji Boku", "Yu Mincho", serif;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .65);
}

.ecma-slogan {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
}

.ecma-hero-lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.12rem;
}

.ecma-button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ecma-centered {
  justify-content: center;
}

.ecma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.ecma-button.ecma-primary {
  color: #111;
  background: var(--ecma-gold);
}

.ecma-button.ecma-secondary {
  color: white;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
}

.ecma-button.ecma-secondary-dark {
  color: var(--ecma-ink);
  border-color: rgba(17, 21, 21, .25);
  background: rgba(17, 21, 21, .04);
}

.ecma-discipline-page .ecma-hero > img {
  top: -90px;
  height: calc(100% + 90px);
  object-position: center top;
}

.ecma-discipline-page .ecma-hero h1 {
  max-width: 1120px;
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
}

.ecma-dragon-page .ecma-hero > img {
  top: 0;
  height: 100%;
  object-position: center center;
}

.ecma-goju-page .ecma-hero > img {
  top: 0;
  height: 100%;
  object-position: center center;
}

.ecma-goju-page .ecma-hero::after {
  background:
    linear-gradient(90deg, rgba(8, 11, 11, .88) 0%, rgba(8, 11, 11, .68) 46%, rgba(8, 11, 11, .24) 100%),
    linear-gradient(0deg, rgba(8, 11, 11, .72) 0%, rgba(8, 11, 11, .04) 58%);
}

.ecma-goju-page .ecma-hero-content {
  max-width: 860px;
}

.ecma-discipline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ecma-discipline-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ecma-ink);
  background: rgba(245, 200, 91, .28);
  border: 1px solid rgba(17, 21, 21, .12);
  font-size: .9rem;
  font-weight: 800;
}

.ecma-four-cards {
  grid-template-columns: repeat(4, 1fr);
}

.ecma-section {
  padding: 82px 0;
}

.ecma-section.ecma-dark {
  color: white;
  background: var(--ecma-charcoal);
}

.ecma-section.ecma-white {
  background: white;
}

.ecma-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 56px;
  align-items: center;
}

.ecma-split.ecma-reverse {
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1fr);
}

.ecma-about-page h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.ecma-about-page h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.ecma-lead {
  color: var(--ecma-muted);
  font-size: 1.14rem;
}

.ecma-dark .ecma-lead,
.ecma-dark p {
  color: rgba(255, 255, 255, .78);
}

.ecma-photo {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--ecma-shadow);
  background: #ddd;
  margin: 0;
}

.ecma-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ecma-photo.ecma-tall img {
  aspect-ratio: 3 / 4;
}

.ecma-photo.ecma-full-context,
.ecma-photo.ecma-portrait-context {
  background: #101518;
}

.ecma-photo.ecma-full-context img,
.ecma-photo.ecma-portrait-context img {
  object-fit: contain;
  object-position: center center;
  background: #101518;
}

.ecma-photo.ecma-full-context img {
  aspect-ratio: 4 / 3;
}

.ecma-photo.ecma-portrait-context img {
  aspect-ratio: 3 / 4;
}

.ecma-photo figcaption {
  padding: 12px 14px;
  background: #fff;
  color: var(--ecma-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.ecma-mission-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 26px;
  margin-top: 26px;
  border: 1px solid var(--ecma-line);
  border-radius: 10px;
  background: var(--ecma-panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .07);
}

.ecma-mission-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.ecma-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.ecma-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--ecma-line);
}

.ecma-card p {
  color: var(--ecma-muted);
  font-size: .95rem;
}

.ecma-culture-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  margin-top: 34px;
}

.ecma-culture-grid .ecma-photo:first-child {
  grid-row: span 2;
}

.ecma-culture-grid .ecma-photo img {
  height: 100%;
  aspect-ratio: auto;
}

.ecma-community-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.ecma-community-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--ecma-shadow);
}

.ecma-cta {
  text-align: center;
  padding: 86px 0;
  color: white;
  background: var(--ecma-charcoal);
}

.ecma-cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, .82);
  font-size: 1.1rem;
}

@media (max-width: 940px) {
  .ecma-topbar-inner {
    min-height: 78px;
  }

  .ecma-topnav {
    display: none;
  }

  .ecma-about-page h1 {
    white-space: normal;
    transform: none;
  }

  .ecma-hero-content .ecma-eyebrow {
    transform: none;
  }

  .ecma-split,
  .ecma-split.ecma-reverse,
  .ecma-culture-grid,
  .ecma-community-strip {
    grid-template-columns: 1fr;
  }

  .ecma-cards {
    grid-template-columns: 1fr 1fr;
  }

  .ecma-four-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ecma-topbar-inner,
  .ecma-hero-content,
  .ecma-container {
    width: min(100% - 28px, 1120px);
  }

  .ecma-hero {
    min-height: 720px;
  }

  .ecma-brand-title span {
    display: none;
  }

  .ecma-brand img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
  }

  .ecma-brand-title strong {
    font-size: .9rem;
  }

  .ecma-mission-card {
    grid-template-columns: 1fr;
  }

  .ecma-cards {
    grid-template-columns: 1fr;
  }

  .ecma-four-cards {
    grid-template-columns: 1fr;
  }

  .ecma-section {
    padding: 62px 0;
  }
}

/* WordPress/Astra preview adjustments for the ECMA shortcode page. */
body:has(.ecma-about-page) .entry-header,
body:has(.ecma-about-page) .entry-title,
body:has(.ecma-about-page) .page-title {
  display: none !important;
}

body:has(.ecma-about-page) #masthead,
body:has(.ecma-about-page) .site-header,
body:has(.ecma-about-page) .main-header-bar,
body:has(.ecma-about-page) .ast-primary-header-bar,
body:has(.ecma-about-page) .ast-mobile-header-wrap {
  display: none !important;
}

body:has(.ecma-about-page) .site-content,
body:has(.ecma-about-page) .content-area,
body:has(.ecma-about-page) .site-main,
body:has(.ecma-about-page) article,
body:has(.ecma-about-page) .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.ecma-about-page) .ecma-about-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ecma-about-page .ecma-hero h1,
.ecma-about-page .ecma-hero .ecma-slogan {
  color: #fff !important;
}

.ecma-about-page .ecma-hero .ecma-eyebrow,
.ecma-about-page .ecma-hero .ecma-japanese {
  color: var(--ecma-gold) !important;
}

.ecma-about-page .ecma-hero .ecma-eyebrow {
  transform: translateY(-64px) !important;
}

.ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-eyebrow,
.ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-eyebrow {
  display: none !important;
}

.ecma-about-page .ecma-hero h1 {
  max-width: 1180px !important;
  white-space: nowrap !important;
  transform: translateY(-64px) !important;
}

.ecma-about-page .ecma-hero .ecma-japanese {
  display: block !important;
  margin-top: clamp(34px, 3.6vw, 46px) !important;
}

.ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-japanese,
.ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-japanese {
  margin-top: clamp(-26px, -1.4vw, -14px) !important;
  margin-bottom: 4px !important;
}

.ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-slogan,
.ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-slogan {
  margin-top: clamp(100px, 7.7vw, 126px) !important;
  transform: none !important;
  margin-bottom: 4px !important;
}

.ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-hero-lede,
.ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-hero-lede {
  margin-top: clamp(58px, 4.5vw, 74px) !important;
  transform: none !important;
}

.ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-button-row,
.ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-button-row {
  margin-top: clamp(20px, 1.6vw, 28px) !important;
  transform: none !important;
}

.ecma-discipline-page .ecma-hero h1 {
  max-width: 1050px !important;
  white-space: normal !important;
}

.ecma-yang-tai-chi-page .ecma-hero > img {
  top: 0;
  height: 100%;
  object-position: center center;
}

.ecma-yang-tai-chi-page .ecma-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 14, 12, .88) 0%, rgba(5, 14, 12, .58) 42%, rgba(5, 14, 12, .34) 100%),
    linear-gradient(180deg, rgba(5, 14, 12, .18) 0%, rgba(5, 14, 12, .70) 100%);
}

.ecma-yang-tai-chi-page .ecma-hero-content {
  max-width: 890px;
}

.ecma-yang-tai-chi-page .ecma-japanese {
  font-size: clamp(2.4rem, 5.1vw, 5.1rem);
}

@media (max-width: 940px) {
  .ecma-about-page .ecma-hero .ecma-eyebrow,
  .ecma-about-page .ecma-hero h1 {
    transform: none !important;
  }

  .ecma-about-page .ecma-hero h1 {
    white-space: normal !important;
  }

  .ecma-about-page .ecma-hero .ecma-japanese {
    margin-top: 20px !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-japanese,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-japanese {
    margin-top: 24px !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-slogan,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-slogan,
  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-hero-lede,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-hero-lede,
  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-button-row,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-button-row {
    transform: none !important;
  }

}

@media (max-width: 620px) {
  .ecma-topbar-inner {
    min-height: 84px;
    align-items: center;
    gap: 10px;
    justify-content: flex-start !important;
    width: min(100% - 24px, 1120px) !important;
  }

  .ecma-brand {
    gap: 10px;
    min-width: 0;
  }

  .ecma-brand img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
  }

  .ecma-brand-title strong {
    max-width: 92px;
    font-size: .76rem;
    line-height: 1.2;
    letter-spacing: .06em;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-topnav,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-topnav {
    display: none !important;
  }

  .ecma-about-page .ecma-hero h1 {
    max-width: 330px !important;
    font-size: clamp(2.35rem, 13vw, 3.15rem) !important;
    line-height: 1.02 !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero h1,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero h1 {
    transform: translateY(-72px) !important;
    text-shadow:
      0 2px 2px rgba(0, 0, 0, .9),
      0 0 12px rgba(0, 0, 0, .78),
      0 0 26px rgba(0, 0, 0, .62) !important;
    -webkit-text-stroke: .55px rgba(0, 0, 0, .72);
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-japanese,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-japanese {
    margin-top: 14px !important;
    font-size: clamp(2rem, 10.5vw, 2.55rem) !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-slogan,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-slogan {
    margin-top: 36px !important;
    font-size: clamp(1.45rem, 7.3vw, 1.85rem) !important;
    line-height: 1.18 !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-hero-lede,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-hero-lede {
    margin-top: 30px !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-button-row,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-button-row {
    gap: 12px;
    margin-top: 24px !important;
  }

  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-button,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-button {
    width: min(100%, 260px);
  }
}


/* Goshin Ryu multi-school training slider. */
.ecma-training-slider {
  position: relative;
  overflow: hidden;
  background: #101518;
}

.ecma-training-slider-track {
  display: flex;
  width: calc(var(--ecma-slide-count) * 200%);
  animation: ecma-training-slider-scroll 66s linear infinite;
}

.ecma-training-slider:hover .ecma-training-slider-track {
  animation-play-state: paused;
}

.ecma-training-slide {
  position: relative;
  flex: 0 0 calc(100% / (var(--ecma-slide-count) * 2));
  width: calc(100% / (var(--ecma-slide-count) * 2));
}

.ecma-training-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ecma-training-slide span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(11, 17, 19, .76);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

@keyframes ecma-training-slider-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecma-training-slider-track {
    animation: none;
  }
}


/* Approved desktop hero composition: keep the kanji above the standing students. */
@media (min-width: 941px) {
  .ecma-home-page:not(.ecma-discipline-page) .ecma-hero .ecma-japanese,
  .ecma-about-page:not(.ecma-discipline-page):not(.ecma-home-page) .ecma-hero .ecma-japanese {
    transform: translateY(-56px) !important;
  }
}
