/* Professional MMA Institute — construct dojo · navy / gold · four anchors */

:root {
  --void: #07090f;
  --navy: #0e1626;
  --navy-mid: #131f33;
  --ink: #e8e6e1;
  --bright: #f5f2eb;
  --muted: #9a958c;
  --gold: #c4a35a;
  --gold-bright: #d4b86a;
  --gold-pale: #e8d5a3;
  --line: rgba(196, 163, 90, 0.22);
  --line-soft: rgba(232, 230, 225, 0.08);
  --max: 72rem;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  color: var(--gold-pale);
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Reveal on scroll ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.nav-brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  border-radius: 50%;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.09em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  color: var(--void) !important;
  background: var(--gold);
  padding: 0.45rem 1rem;
  border-radius: 0.2rem;
}

.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--void) !important;
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav-brand span {
    display: none;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 90% 60% at 75% -10%, rgba(196, 163, 90, 0.1), transparent 55%),
    var(--void);
}

#rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.h1-line {
  display: block;
  color: var(--bright);
}

.h1-charge {
  color: var(--gold);
  text-shadow: 0 0 42px rgba(196, 163, 90, 0.35);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--void);
  text-decoration: none;
  box-shadow: 0 0 28px rgba(196, 163, 90, 0.35);
}

.btn-secondary {
  background: rgba(7, 9, 15, 0.55);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  text-decoration: none;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
}

.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1;
}

.hero-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* B-roll / crest frame — construct target brackets */

.media-frame {
  position: relative;
  max-width: 19rem;
  width: 100%;
  margin-inline: auto;
  padding: 0.9rem;
}

@media (min-width: 880px) {
  .media-frame {
    max-width: 20rem;
  }
}

.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  width: 2.1rem;
  height: 2.1rem;
  pointer-events: none;
}

.media-frame::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.media-frame::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.media-frame img,
.media-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ── Marquee ─────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--navy);
  padding: 0.8rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 90s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.marquee i {
  font-style: normal;
  color: var(--muted);
  font-size: 1.05rem;
}

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

/* ── Sections ────────────────────────────────────────── */

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--bright);
}

.section .intro {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2.25rem;
}

/* ── Anchors — four flags ────────────────────────────── */

.anchor-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .anchor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .anchor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.anchor-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-soft);
  border-radius: 0.4rem;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.anchor-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

/* Flag banner — flat marks under a shared gloss so all four read as one set */

.anchor-flag {
  position: relative;
  height: 5.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.anchor-flag svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.82) brightness(0.9);
  transition: filter 0.25s ease;
}

.anchor-card:hover .anchor-flag svg {
  filter: saturate(1) brightness(1);
}

.anchor-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.05), rgba(7, 9, 15, 0.4));
  pointer-events: none;
}

.anchor-body {
  position: relative;
  padding: 1.25rem 1.25rem 1.3rem;
}

.anchor-glyph {
  position: absolute;
  top: -0.25rem;
  right: 0.25rem;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.09;
  user-select: none;
  transition: opacity 0.25s ease;
}

.anchor-glyph--word {
  font-family: var(--font-display);
  font-size: 3.2rem;
  top: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.anchor-card:hover .anchor-glyph {
  opacity: 0.18;
}

.anchor-nation {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.anchor-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  color: var(--gold-bright);
}

.anchor-card p:last-child {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ── Rank ladder ─────────────────────────────────────── */

.section-path {
  text-align: center;
}

.section-path .intro,
.section-path .ladder,
.section-path .ladder-note {
  margin-inline: auto;
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 38rem;
  text-align: left;
}

.ladder li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--navy);
  border: 1px solid var(--line-soft);
  border-radius: 0.3rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ladder li:hover {
  border-color: var(--line);
  transform: translateX(6px);
}

.swatch {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 0.85rem;
  border-radius: 2px;
  background: var(--belt);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ladder .dan .swatch {
  box-shadow: inset 0 0 0 1px var(--gold);
  /* Dan bars: one centered 3px gold band per dan, 3px apart, like a real belt */
  background-color: #101010;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 6px);
  background-repeat: no-repeat;
  background-position: center;
}

.ladder .dan-1 .swatch { background-size: 3px 100%; }
.ladder .dan-2 .swatch { background-size: 9px 100%; }
.ladder .dan-3 .swatch { background-size: 15px 100%; }
.ladder .dan-4 .swatch { background-size: 21px 100%; }
.ladder .dan-5 .swatch { background-size: 27px 100%; }

.ladder .rank {
  font-weight: 600;
  color: var(--bright);
}

.ladder .band {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.ladder-note {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ── Standards cards ─────────────────────────────────── */

.grid-4 {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-soft);
  border-radius: 0.4rem;
  padding: 1.4rem 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.card-num {
  position: absolute;
  top: -0.9rem;
  right: 0.4rem;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.1;
  user-select: none;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--gold-bright);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Brand strip ─────────────────────────────────────── */

.brand-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .brand-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.brand-card {
  background: #000;
  border: 1px solid var(--line-soft);
  border-radius: 0.4rem;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.25s ease;
}

.brand-card:hover {
  border-color: var(--line);
}

.brand-full {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11rem;
  background: #000;
  border-radius: 0.25rem;
  margin: 0 auto 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand-full:hover {
  opacity: 0.92;
  text-decoration: none;
}

.brand-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* The seal source is a tall frame with the medallion floating in black —
   center-crop it square and size it so its circle matches the logo's */
.brand-card .brand-img--seal {
  width: 8.4rem;
  height: 8.4rem;
  object-fit: cover;
}

.brand-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--gold-bright);
}

.brand-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.brand-open {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-decoration: none;
}

.brand-open:hover {
  color: var(--gold-pale);
  text-decoration: underline;
}

/* ── Contact ─────────────────────────────────────────── */

.contact-box {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.6rem 1.5rem;
  max-width: 40rem;
}

.contact-box p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.mail {
  font-weight: 600;
  font-size: 1.08rem;
}

.mail-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.contact-sig {
  font-size: 0.88rem;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--gold-bright);
}

/* ── Reduced motion ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .anchor-card,
  .card,
  .ladder li {
    transition: none;
  }
}
