/*
 * Elements Jiu-Jitsu homepage system.
 */

:root {
  --ejj-black: #050505;
  --ejj-ink: #111113;
  --ejj-graphite: #19191c;
  --ejj-panel: #ffffff;
  --ejj-paper: #f7f7f4;
  --ejj-muted: #686a70;
  --ejj-soft: #a4a7ae;
  --ejj-white: #ffffff;
  --ejj-red: #d71920;
  --ejj-red-dark: #a90f15;
  --ejj-red-soft: rgba(215, 25, 32, 0.1);
  --ejj-line: rgba(17, 17, 19, 0.1);
  --ejj-line-invert: rgba(255, 255, 255, 0.14);
  --ejj-shadow: 0 28px 80px rgba(7, 7, 9, 0.16);
  --ejj-container: min(100% - 32px, 1180px);
  --ejj-radius-sm: 12px;
  --ejj-radius-md: 18px;
  --ejj-radius-lg: 28px;
  --ejj-radius-xl: 42px;
}

body.elements-coded-page {
  margin: 0;
  background: var(--ejj-black);
  color: var(--ejj-ink);
  text-rendering: geometricPrecision;
}

body.elements-coded-page .site-content,
body.elements-coded-page .ast-container {
  max-width: none;
  padding: 0;
}

body.elements-coded-page .entry-header,
body.elements-coded-page .site-header,
body.elements-coded-page .site-footer {
  display: none;
}

body.elements-coded-page a:focus-visible,
body.elements-coded-page button:focus-visible {
  outline: 3px solid var(--ejj-red);
  outline-offset: 4px;
}

.ejj-page {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 50% -10%, rgba(215, 25, 32, 0.28), transparent 30rem),
    linear-gradient(180deg, #050505 0, #0c0c0e 48rem, var(--ejj-paper) 48rem, var(--ejj-paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ejj-container {
  width: var(--ejj-container);
  margin: 0 auto;
}

.ejj-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(24px);
}

.ejj-nav.is-scrolled {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.ejj-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
}

.ejj-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: var(--ejj-white);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.ejj-brand span {
  color: rgba(255, 255, 255, 0.56);
  font-weight: 700;
  letter-spacing: 0;
}

.ejj-brand strong {
  margin-top: 3px;
  color: var(--ejj-white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.ejj-menu {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  margin: 0 -16px;
  padding: 0 16px 14px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.ejj-menu::-webkit-scrollbar {
  display: none;
}

.ejj-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ejj-menu a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ejj-white);
}

.ejj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ejj-red);
  border-radius: 999px;
  background: var(--ejj-red);
  color: var(--ejj-white);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(215, 25, 32, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ejj-button:hover {
  transform: translateY(-2px);
  border-color: var(--ejj-red-dark);
  background: var(--ejj-red-dark);
  color: var(--ejj-white);
  box-shadow: 0 24px 52px rgba(215, 25, 32, 0.32);
}

.ejj-button--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ejj-button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.ejj-button--ghost {
  border-color: var(--ejj-line);
  background: transparent;
  color: var(--ejj-ink);
  box-shadow: none;
}

.ejj-button--ghost:hover {
  border-color: rgba(17, 17, 19, 0.22);
  background: var(--ejj-white);
  color: var(--ejj-ink);
  box-shadow: 0 14px 34px rgba(17, 17, 19, 0.08);
}

.ejj-button--nav {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.ejj-hero {
  color: var(--ejj-white);
  padding: 70px 0 84px;
}

.ejj-hero__grid {
  display: grid;
  gap: 42px;
}

.ejj-hero__copy {
  max-width: 900px;
}

.ejj-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: rgba(215, 25, 32, 0.92);
  background: rgba(215, 25, 32, 0.08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.ejj-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ejj-white);
  font-size: clamp(56px, 15vw, 132px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.ejj-hero p {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 4.8vw, 23px);
  line-height: 1.55;
}

.ejj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ejj-image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(215, 25, 32, 0.14), transparent 42%),
    #171719;
}

.ejj-image-frame picture,
.ejj-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.ejj-image-frame img {
  object-fit: cover;
}

.ejj-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.3));
}

.ejj-image-frame.is-waiting-for-asset::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}

.ejj-image-frame.is-waiting-for-asset img {
  visibility: hidden;
}

.ejj-hero-visual {
  display: grid;
  gap: 14px;
}

.ejj-hero-visual__main {
  min-height: 430px;
  border: 1px solid var(--ejj-line-invert);
  border-radius: var(--ejj-radius-xl);
  box-shadow: var(--ejj-shadow);
}

.ejj-hero-visual__stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ejj-hero-visual__small,
.ejj-hero-visual__stat {
  min-height: 190px;
  border: 1px solid var(--ejj-line-invert);
  border-radius: var(--ejj-radius-lg);
}

.ejj-hero-visual__stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 25, 32, 0.3), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.ejj-hero-visual__stat strong,
.ejj-hero-visual__stat span {
  display: block;
}

.ejj-hero-visual__stat strong {
  color: var(--ejj-white);
  font-size: 54px;
  font-weight: 900;
  line-height: 0.9;
}

.ejj-hero-visual__stat span {
  max-width: 220px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 850;
  line-height: 1.35;
}

.ejj-image-frame img[src$=".jpg"] {
  background: transparent;
}

.ejj-image-frame img:not([src]),
.ejj-image-frame img[src=""] {
  visibility: hidden;
}

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

.ejj-section--white {
  background: var(--ejj-paper);
}

.ejj-section--ink {
  color: var(--ejj-white);
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 25, 32, 0.22), transparent 24rem),
    linear-gradient(180deg, #050505, #111113);
}

.ejj-section-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.ejj-section-header--dark {
  color: var(--ejj-white);
}

.ejj-section-header h2,
.ejj-cta h2,
.ejj-about h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(38px, 10vw, 78px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.ejj-section-header p,
.ejj-cta p,
.ejj-about p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--ejj-muted);
  font-size: 18px;
  line-height: 1.65;
}

.ejj-section-header--dark p,
.ejj-cta p {
  color: rgba(255, 255, 255, 0.68);
}

.ejj-sport-grid {
  display: grid;
  gap: 14px;
}

.ejj-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--ejj-line);
  border-radius: var(--ejj-radius-lg);
  background: var(--ejj-white);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ejj-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--ejj-red-soft), transparent 44%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.ejj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.26);
  box-shadow: 0 24px 60px rgba(17, 17, 19, 0.1);
}

.ejj-card:hover::before {
  opacity: 1;
}

.ejj-card > * {
  position: relative;
}

.ejj-card span {
  color: var(--ejj-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ejj-card h3 {
  margin: 58px 0 0;
  color: var(--ejj-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.ejj-card p {
  margin: 14px 0 0;
  color: var(--ejj-muted);
  line-height: 1.62;
}

.ejj-card a {
  margin-top: 24px;
  color: var(--ejj-ink);
  font-weight: 900;
  text-decoration: none;
}

.ejj-card a:hover {
  color: var(--ejj-red);
}

.ejj-location-grid {
  display: grid;
  gap: 14px;
}

.ejj-card--location {
  min-height: 300px;
  border-color: var(--ejj-line-invert);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #121214;
}

.ejj-card--location h3,
.ejj-card--location a {
  color: var(--ejj-white);
}

.ejj-card--location p {
  color: rgba(255, 255, 255, 0.68);
}

.ejj-card--location a:hover {
  color: var(--ejj-red);
}

.ejj-community {
  padding: 82px 0 34px;
  color: var(--ejj-ink);
  background: var(--ejj-paper);
}

.ejj-community__grid {
  display: grid;
  gap: 34px;
}

.ejj-community__copy {
  max-width: 760px;
}

.ejj-community h2 {
  margin: 0;
  font-size: clamp(40px, 10vw, 86px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
}

.ejj-community p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ejj-muted);
  font-size: 18px;
  line-height: 1.65;
}

.ejj-community__media {
  display: grid;
  gap: 14px;
}

.ejj-community__image {
  border: 1px solid var(--ejj-line);
  border-radius: var(--ejj-radius-xl);
  box-shadow: var(--ejj-shadow);
}

.ejj-community__image--large {
  min-height: 440px;
}

.ejj-community__image--small {
  min-height: 280px;
  border-radius: var(--ejj-radius-lg);
}

.ejj-cta {
  padding: 34px 0;
  color: var(--ejj-white);
  background: var(--ejj-paper);
}

.ejj-cta__panel {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: var(--ejj-radius-xl);
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 25, 32, 0.3), transparent 22rem),
    linear-gradient(135deg, #080809, #171719);
  box-shadow: var(--ejj-shadow);
}

.ejj-cta__panel .ejj-button {
  justify-self: start;
}

.ejj-about {
  display: grid;
  gap: 28px;
}

.ejj-about__content {
  max-width: 680px;
}

.ejj-about__content p:first-child {
  margin-top: 0;
}

.ejj-about__content .ejj-button {
  margin-top: 24px;
}

.ejj-footer {
  padding: 58px 0;
  background: var(--ejj-black);
  color: rgba(255, 255, 255, 0.68);
}

.ejj-footer__grid {
  display: grid;
  gap: 34px;
}

.ejj-brand--footer {
  margin-bottom: 18px;
}

.ejj-footer p {
  max-width: 440px;
  margin: 0;
  line-height: 1.65;
}

.ejj-footer__links {
  display: grid;
  gap: 12px;
}

.ejj-footer__links a {
  color: var(--ejj-white);
  font-weight: 800;
  text-decoration: none;
}

.ejj-footer__links a:hover {
  color: var(--ejj-red);
}

[data-ejj-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-ejj-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  :root {
    --ejj-container: min(100% - 48px, 1180px);
  }

  .ejj-nav__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 78px;
  }

  .ejj-menu {
    grid-column: auto;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .ejj-menu a {
    border-color: transparent;
    background: transparent;
  }

  .ejj-hero {
    padding: 92px 0 112px;
  }

  .ejj-hero-visual__stack {
    grid-template-columns: minmax(0, 0.9fr) minmax(180px, 0.72fr);
  }

  .ejj-section {
    padding: 112px 0;
  }

  .ejj-community {
    padding: 112px 0 42px;
  }

  .ejj-sport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ejj-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ejj-cta__panel {
    grid-template-columns: 1fr auto;
    padding: 46px;
  }

  .ejj-about {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
    align-items: start;
  }

  .ejj-footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (min-width: 1020px) {
  .ejj-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
    align-items: center;
  }

  .ejj-hero-visual {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.48fr);
    align-items: stretch;
  }

  .ejj-hero-visual__main {
    min-height: 590px;
  }

  .ejj-hero-visual__stack {
    grid-template-columns: 1fr;
  }

  .ejj-community__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
    align-items: center;
  }

  .ejj-community__media {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.48fr);
    align-items: end;
  }

  .ejj-community__image--large {
    min-height: 620px;
  }

  .ejj-community__image--small {
    min-height: 360px;
  }

  .ejj-sport-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ejj-card--sport {
    min-height: 360px;
  }
}

@media (max-width: 390px) {
  .ejj-button {
    width: 100%;
  }

  .ejj-button--nav {
    width: auto;
  }

  .ejj-hero h1 {
    font-size: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  [data-ejj-reveal] {
    opacity: 1;
    transform: none;
  }
}
