@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format("woff2-variations");
}

:root {
  --black: #000000;
  --paper: #ffffff;
  --crest: #ec3237;      /* red sampled from the SBJJNF crest */
  --crest-text: #c8161d; /* crest red, darkened for text on white */
  --tatami: #f6dfe2;     /* the pale pink of the competition mats */
  --ash: #595959;
  --rule-dark: #2a2a2a;
  --rule-light: #e2e2e2;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--crest); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Display type: condensed, heavy, uppercase — the stencil voice of the crest */
.display, h1, h2 {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin: 0;
}
h2 { font-size: clamp(36px, 5.2vw, 64px); }
h3 { font-size: 21px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span { font-stretch: 62%; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--crest); }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang a { text-decoration: none; padding: 4px 7px; color: #9a9a9a; }
.lang a[aria-current="true"] { color: var(--paper); background: var(--rule-dark); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #444; color: var(--paper); font: inherit; font-weight: 700; padding: 8px 12px; cursor: pointer; }

@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--black); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--rule-dark); }
  .lang { order: 3; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--paper); position: relative; overflow: hidden; }
/* The crossed X from the crest, drawn full-bleed behind the headline */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 160vmax; height: 1px; background: rgba(255,255,255,0.13);
  transform-origin: center;
}
.hero::before { transform: translate(-50%, -50%) rotate(34deg); }
.hero::after  { transform: translate(-50%, -50%) rotate(-34deg); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(58px, 11.5vw, 156px); }
.hero h1 .line { display: block; }
.hero h1 .ribbon {
  display: inline-block; margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 28px); font-stretch: 75%; font-weight: 750; letter-spacing: 0.04em;
  background: var(--paper); color: var(--black); padding: 6px 16px 5px;
  transform: rotate(-2deg);
}
.hero .crest { width: clamp(180px, 24vw, 330px); filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6)); }
.hero .lede { font-size: 19px; color: #d0d0d0; margin-top: 28px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .crest { order: -1; width: 150px; }
}

.btn { display: inline-block; text-decoration: none; font-weight: 750; font-size: 16px; padding: 14px 22px; border: 2px solid currentColor; line-height: 1; }
.btn-red { background: var(--crest); border-color: var(--crest); color: var(--paper); }
.btn-red:hover { background: #d4222a; border-color: #d4222a; }
.btn-ghost:hover { background: var(--paper); color: var(--black); }
.btn-dark { background: var(--black); color: var(--paper); border-color: var(--black); }
.btn-dark:hover { background: #222; }

/* Photo strip under the hero */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--black); gap: 3px; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip img:nth-child(n+4) { display: none; } }

/* ---------- Next event band ---------- */
.next { background: var(--crest); color: var(--paper); }
.next .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.next .label { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.next .title { font-size: clamp(34px, 5vw, 58px); }
.next .meta { margin-top: 10px; font-size: 18px; }
@media (max-width: 720px) { .next .wrap { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--ash); }
.more { font-weight: 700; color: var(--crest-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tatami { background: var(--tatami); }
.dark { background: var(--black); color: var(--paper); }
.dark .section-head p { color: #a8a8a8; }

/* Event list, IBJJF-style rows */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.event-list li { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule-light); }
.event-list .when { font-weight: 750; }
.event-list .name { font-stretch: 75%; font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.event-list .where { color: var(--ash); }
.event-list .tag { font-size: 14px; font-weight: 700; padding: 4px 10px; background: var(--black); color: var(--paper); white-space: nowrap; }
@media (max-width: 720px) { .event-list li { grid-template-columns: 1fr; } .event-list .tag { justify-self: start; } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--rule-light); white-space: nowrap; }
th { font-size: 14px; font-weight: 700; color: var(--ash); border-bottom: 2px solid var(--black); }
td.num, th.num { text-align: right; }
td.rank { font-stretch: 62%; font-weight: 850; font-size: 26px; width: 56px; line-height: 1; }
td.club { font-weight: 650; white-space: normal; min-width: 180px; }
tr.top td.rank { color: var(--crest-text); }
.medal { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.medal.g { background: #d4a72c; } .medal.s { background: #a7a9ac; } .medal.b { background: #b06b38; }
.dark th { color: #a8a8a8; border-bottom-color: var(--paper); }
.dark td { border-bottom-color: var(--rule-dark); }
.dark tr.top td.rank { color: var(--crest); }
.note { font-size: 15px; color: var(--ash); margin-top: 20px; }
.dark .note { color: #a8a8a8; }

/* Two-up callouts (Rules / About), bordered blocks */
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--black); }
.callouts > div { padding: 36px; }
.callouts > div + div { border-left: 2px solid var(--black); }
.callouts h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
@media (max-width: 720px) { .callouts { grid-template-columns: 1fr; } .callouts > div + div { border-left: 0; border-top: 2px solid var(--black); } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.gallery.preview { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .gallery.preview { grid-template-columns: repeat(2, 1fr); } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,0.92); }
dialog.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; }
dialog.lightbox form { text-align: right; }
dialog.lightbox button { background: var(--paper); border: 0; font: inherit; font-weight: 700; padding: 8px 14px; margin-bottom: 8px; cursor: pointer; }

/* Page header for inner pages */
.page-head { background: var(--black); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(52px, 9vw, 120px); }
.page-head p { color: #c8c8c8; font-size: 19px; margin-top: 18px; }

/* Prose pages */
.prose h2 { font-size: clamp(32px, 4vw, 48px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; max-width: 68ch; }
.prose li { margin-bottom: 8px; }
.contact-card { border: 2px solid var(--black); padding: 28px; max-width: 520px; }
.contact-card a { font-weight: 700; font-size: 20px; }

/* Footer */
.site-footer { background: var(--black); color: #bdbdbd; padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr; gap: 32px 56px; }
.site-footer img { width: 72px; }
.site-footer h3 { color: var(--paper); font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 20px; font-size: 13px; color: #8a8a8a; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* One orchestrated moment: the hero headline settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .line:nth-child(2) { animation-delay: 90ms; }
  .hero h1 .line:nth-child(3) { animation-delay: 180ms; }
  .hero h1 .ribbon { animation: rise 700ms 320ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
}

/* Mobile refinements */
.hero .crest { height: auto; }
@media (max-width: 880px) {
  .lang { margin-left: auto; order: 0; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 600px) {
  th.medal-col, td.medal-col { display: none; }
  td.club { min-width: 0; }
}
.site-footer .legal { max-width: none; }

/* Hero background video: blurred, darkened match footage */
.hero.has-video { background: #000 url(/video/hero-wide.jpg) center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-video .wrap::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.18) 100%);
}
.hero.has-video::before, .hero.has-video::after { z-index: 1; background: rgba(255,255,255,0.10); }
.hero.has-video .wrap { z-index: 2; }
.hero.has-video .lede { color: #e4e4e4; }
@media (max-aspect-ratio: 4/5) {
  .hero.has-video { background-image: url(/video/hero-tall.jpg); }
  .hero.has-video .wrap::before { background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.72) 100%); }
}

/* ---------- v2 components ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hide-m { }
@media (max-width: 720px) { .hide-m { display: none; } }
.wrapcell { white-space: normal; }
.narrow { max-width: 560px; }
.intro { font-size: 19px; max-width: 60ch; margin-bottom: 28px; }
h3.sub { margin-top: 44px; }

/* Event list: 4 columns with CTA */
.event-list li { grid-template-columns: 170px 1fr auto auto; }
.ev-cta { justify-self: end; }
.btn-disabled { background: #efefef; border-color: #efefef; color: var(--ash); cursor: default; }
.dark .btn-disabled { background: var(--rule-dark); border-color: var(--rule-dark); color: #a8a8a8; }
@media (max-width: 720px) { .event-list li { grid-template-columns: 1fr; } .ev-cta { justify-self: start; } }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--black); border: 2px solid var(--black); }
.news-card { background: var(--paper); padding: 26px 24px 28px; }
.news-card time { display: block; font-weight: 700; font-size: 14px; color: var(--crest-text); margin-bottom: 10px; }
.news-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.news-card p { margin: 0; color: var(--ash); font-size: 16px; }
.tatami .news-card { background: var(--paper); }
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; } }

/* Rankings grid on home */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rank-grid h3 { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 24px; margin-bottom: 8px; }
.dark h3 { color: var(--paper); }
@media (max-width: 880px) { .rank-grid { grid-template-columns: 1fr; } }

/* Newsletter band */
.next .wrap.nl-wrap { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 24px 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.next h2 { font-size: clamp(32px, 4.4vw, 52px); }
.next p { margin: 10px 0 0; max-width: 46ch; }
form.nl { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
form.nl input[type=email] { font: inherit; font-size: 17px; padding: 13px 14px; border: 2px solid var(--black); background: var(--paper); color: var(--black); min-width: 0; }
form.nl .form-msg { grid-column: 1 / -1; margin: 4px 0 0; font-weight: 600; min-height: 1.4em; }
.next form.nl input[type=email] { border-color: var(--paper); }
.next form.nl .btn-red { background: var(--black); border-color: var(--black); }
.next form.nl .btn-red:hover { background: #222; }
.form-msg.err { color: var(--crest-text); } .next .form-msg.err { color: var(--paper); text-decoration: underline; }
@media (max-width: 720px) { .next .wrap.nl-wrap { grid-template-columns: 1fr; } form.nl { grid-template-columns: 1fr; } }

/* Notify box on events page */
.notify-box { margin-top: 36px; border: 2px solid var(--black); padding: 28px; max-width: 640px; }
.notify-box h3 { margin-bottom: 14px; }

/* Membership */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--black); }
.types > div { padding: 32px 28px; }
.types > div + div { border-left: 2px solid var(--black); }
.types h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.types p { margin: 0; color: var(--ash); }
@media (max-width: 880px) { .types { grid-template-columns: 1fr; } .types > div + div { border-left: 0; border-top: 2px solid var(--black); } }
.member-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 760px; margin-top: 24px; }
.member-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.member-form .full { grid-column: 1 / -1; }
.member-form input, .member-form select, .member-form textarea { font: inherit; font-size: 17px; font-weight: 400; padding: 12px 14px; border: 2px solid var(--black); background: var(--paper); color: var(--black); width: 100%; }
.member-form textarea { resize: vertical; }
.member-form .form-msg { margin: 12px 0 0; font-weight: 600; }
.form-msg.ok { color: #117a3a; }
@media (max-width: 720px) { .member-form { grid-template-columns: 1fr; } }

/* About */
ul.board { list-style: none; padding: 0; }
ul.board li { padding: 10px 0; border-bottom: 1px solid var(--rule-light); max-width: 420px; }

/* Footer 4 columns */
.site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer .fbrand p { margin: 14px 0 0; font-size: 13px; color: #8a8a8a; max-width: 28ch; }
@media (max-width: 880px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .fbrand { grid-column: 1 / -1; } }
@media (max-width: 880px) { .nav a { font-size: 15px; } }
@media (min-width: 881px) and (max-width: 1100px) { .nav { gap: 14px; } .nav a { font-size: 14px; } }
.rank-grid > div { min-width: 0; }
.rank-grid .medal-col { display: none; }
.rank-grid td.club { min-width: 0; }

/* Event detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px 56px; margin-top: 40px; }
.detail-grid > div { min-width: 0; }
.detail-grid h3 { margin-top: 28px; }
.detail-grid h3:first-child { margin-top: 0; }
table.plain td { padding: 8px 12px 8px 0; white-space: normal; vertical-align: top; }
table.plain td:first-child { font-weight: 700; width: 45%; }
table.plain small { color: var(--ash); }
th small { font-weight: 600; color: var(--ash); }
td small { color: var(--ash); font-weight: 400; }
.prose ol { padding-left: 1.2em; max-width: 68ch; }
.prose ol li { margin-bottom: 8px; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------- Pro Zürich ---------- */
.pro-hero { background: var(--black); color: var(--paper); padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.pro-hero::before { content: ""; position: absolute; right: -10vw; top: -20%; width: 60vw; height: 140%; background: var(--crest); transform: skewX(-14deg); opacity: 0.92; }
.pro-hero .wrap { position: relative; z-index: 1; }
.pro-kicker { font-weight: 700; font-size: 15px; color: #c8c8c8; margin: 0 0 18px; }
.pro-hero h1 { font-size: clamp(60px, 12vw, 168px); }
.pro-hero h1 .pro-red { color: var(--paper); -webkit-text-stroke: 2px var(--paper); color: transparent; }
.pro-tag { font-stretch: 75%; font-weight: 750; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 32px); margin: 26px 0 14px; letter-spacing: 0.02em; }
.pro-hero .lede { color: #e4e4e4; font-size: 19px; max-width: 52ch; margin: 0; }
.pro-body .prose p { color: #d6d6d6; }
.pro-body .note { color: #a8a8a8; }
.pro-body a { color: var(--paper); }
.academy-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--rule-dark); max-width: 620px; }
.academy-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
.academy-list li span { color: #a8a8a8; }
.academy-list li.tba { justify-content: flex-start; font-style: normal; }
.format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--rule-dark); border: 1px solid var(--rule-dark); max-width: 900px; }
.format-grid > div { background: var(--black); padding: 24px; }
.format-grid h3 { color: var(--paper); font-size: 20px; }
.format-grid p { margin: 0; font-size: 16px; }
ol.phases { list-style: none; padding: 0; margin: 0; max-width: 720px; }
ol.phases li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-dark); align-items: start; }
ol.phases .ph { font-stretch: 62%; font-weight: 850; font-size: 44px; line-height: 1; color: var(--crest); }
ol.phases h3 { color: var(--paper); margin-bottom: 4px; }
ol.phases p { margin: 0; }
.pro-form input, .pro-form select, .pro-form textarea { background: var(--black); color: var(--paper); border-color: var(--paper); }
.pro-form label { color: var(--paper); }
.pro-form .form-msg.ok { color: #7fd69a; }
.pro-teaser { background: var(--paper); border-top: 6px solid var(--crest); }
.pro-teaser .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.pro-teaser .pro-kicker { color: var(--crest-text); margin-bottom: 8px; }
.pro-teaser h2 { font-size: clamp(34px, 5vw, 60px); }
.pro-teaser p { margin: 10px 0 0; max-width: 60ch; color: var(--ash); }
@media (max-width: 720px) { .pro-teaser .wrap { grid-template-columns: 1fr; } .format-grid { grid-template-columns: 1fr; } .pro-hero::before { display: none; } }
@media (min-width: 881px) and (max-width: 1180px) { .nav { gap: 12px; } .nav a { font-size: 13.5px; } }
.pro-hero h1 .line { display: block; }
.pro-hero::before { right: -14vw; width: 46vw; }
.hero h1 .ribbon { transform: none; }

/* Invitation popup */
dialog.invite { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%; }
dialog.invite::backdrop { background: rgba(0,0,0,0.78); backdrop-filter: blur(2px); }
.invite-card { position: relative; background: var(--black); color: var(--paper); padding: 40px 36px 36px; border: 2px solid var(--paper); outline: 10px solid var(--black); }
.invite-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.25); pointer-events: none; }
.invite-card img { width: 72px; margin-bottom: 18px; }
.invite-card h2 { font-size: clamp(40px, 7vw, 64px); }
.invite-card h2 span { display: block; }
.invite-card h2 .red { color: var(--crest); }
.invite-card .pro-tag { font-size: 18px; margin: 18px 0 10px; }
.invite-card p { color: #d6d6d6; margin: 0; }
.invite-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.invite-card .btn-ghost { background: none; font: inherit; font-weight: 750; color: var(--paper); cursor: pointer; }
.invite-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #a8a8a8; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px 10px; }
.invite-close:hover { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { dialog.invite[open] .invite-card { animation: rise 500ms cubic-bezier(.2,.7,.2,1) both; } }
@media (max-width: 480px) { .invite-card { padding: 32px 22px 26px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.actions { align-items: stretch; }
.hero h1 { font-size: clamp(48px, 9.4vw, 124px); }
.hero h1 .line:nth-child(4) { animation-delay: 270ms; }
.hero h1 .line:nth-child(5) { animation-delay: 360ms; }
.hero .lede { margin-top: 24px; }

/* ---------- Social ---------- */
.social { display: flex; gap: 6px; }
.sicon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #3a3a3a; color: var(--paper); }
.sicon svg { width: 18px; height: 18px; fill: currentColor; }
.sicon.ig:hover { background: #FF0069; border-color: #FF0069; }
.sicon.yt:hover { background: #FF0000; border-color: #FF0000; }
.site-header .social { margin-left: 4px; }
@media (max-width: 880px) { .site-header .social { margin-left: auto; } .lang { margin-left: 0; } }
@media (max-width: 420px) { .brand span { display: none; } .site-header .wrap { gap: 10px; } }

.social-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sbtn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; text-decoration: none; background: var(--paper); color: var(--black); border: 2px solid var(--paper); min-width: 240px; }
.sbtn svg { width: 32px; height: 32px; flex: none; }
.sbtn.ig svg { fill: #FF0069; }
.sbtn.yt svg { fill: #FF0000; }
.sbtn span { display: flex; flex-direction: column; line-height: 1.2; }
.sbtn strong { font-size: 16px; }
.sbtn small { font-size: 14px; color: var(--ash); }
.sbtn:hover { background: #f1f1f1; }
.sbtn.ig:hover { border-color: #FF0069; } .sbtn.yt:hover { border-color: #FF0000; }

.follow-band { background: var(--black); color: var(--paper); border-top: 1px solid var(--rule-dark); }
.follow-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.follow-band h2 { font-size: clamp(34px, 4.6vw, 56px); }
.follow-band p { margin: 10px 0 0; color: #c8c8c8; max-width: 46ch; }
@media (max-width: 880px) { .follow-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sbtn { min-width: 0; width: 100%; } }

/* light-background variant (About page) */
.prose .social-btns { margin-top: 20px; }
.prose .sbtn, section:not(.dark):not(.follow-band) .sbtn { border-color: var(--black); }
.pro-body .social-btns { margin-top: 16px; }
.site-footer .social-btns { flex-direction: column; gap: 8px; }
.site-footer .sbtn { min-width: 0; padding: 10px 14px 10px 12px; }
.site-footer .sbtn svg { width: 24px; height: 24px; }
.site-footer .sbtn strong { font-size: 14px; }
.site-footer .sbtn small { font-size: 12px; }
.site-footer .fmail { margin: 12px 0 0; }
.hero.has-video .actions { margin-top: 32px; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4.5vw, 56px); }

/* ---------- v6: rankings tabs, belt sections, nav dropdown, rules links ---------- */
.tabs { display: flex; gap: 4px; margin-top: 28px; }
.tabs a { text-decoration: none; font-weight: 750; font-size: 17px; padding: 12px 22px; border: 2px solid #3a3a3a; color: #c8c8c8; }
.tabs a[aria-current="page"] { background: var(--paper); color: var(--black); border-color: var(--paper); }
.tabs a:hover { border-color: var(--paper); color: var(--paper); }
.tabs a[aria-current="page"]:hover { color: var(--black); }
.belt-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.belt-nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 8px 14px; border: 2px solid var(--black); }
.belt-nav a:hover { background: var(--black); color: var(--paper); }
.belt-chip { display: inline-block; width: 26px; height: 10px; border: 1px solid #000; flex: none; }
.belt-chip.white { background: #fff; } .belt-chip.blue { background: #1e4fbf; } .belt-chip.purple { background: #6b2fa3; }
.belt-chip.brown { background: #6b3e1f; } .belt-chip.black { background: #000; box-shadow: inset 6px 0 0 #ec3237; }
.belt-block { padding: 8px 0 48px; scroll-margin-top: 90px; }
.belt-block + .belt-block { border-top: 2px solid var(--black); padding-top: 40px; }
.belt-block h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.belt-block h2 .belt-chip { width: 48px; height: 16px; }
.belt-block .rank-grid h3 { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 22px; margin-bottom: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
h3.sub0 { margin: 0 0 8px; }

.dd { position: relative; display: flex; }
.dd-menu { display: none; position: absolute; top: 100%; left: -14px; background: var(--black); border: 1px solid var(--rule-dark); padding: 6px 0; min-width: 170px; z-index: 30; }
.dd-menu a { display: block; padding: 10px 14px; border-bottom: 0 !important; white-space: nowrap; }
.dd-menu a:hover { background: #1a1a1a; }
@media (min-width: 881px) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; } }
@media (max-width: 880px) {
  .dd { flex-direction: column; }
  .dd-menu { display: block; position: static; border: 0; padding: 0 0 0 18px; min-width: 0; }
  .dd-menu a { font-size: 16px; color: #c8c8c8; padding: 10px 0; border-bottom: 1px solid var(--rule-dark) !important; }
}

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 900px; margin-top: 28px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border: 2px solid var(--black); text-decoration: none; }
.link-card strong { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.link-card span { color: var(--ash); }
.link-card small { color: var(--crest-text); font-weight: 700; margin-top: 6px; }
.link-card:hover { background: var(--black); color: var(--paper); }
.link-card:hover span { color: #c8c8c8; }
.pro-hero h1 { font-size: clamp(54px, 10.5vw, 150px); }
.format-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .format-grid { grid-template-columns: 1fr; } }
.pro-body .prose a.sbtn, .pro-body a.sbtn { color: var(--black); }
.news-grid { background: transparent; border: 0; gap: 16px; }
.news-card { border: 2px solid var(--black); }
