/* ============================================================================
   Carlson Gracie Jiu Jitsu Maui

   Black, white, and Carlson Gracie red. The page is dark so the photographs
   — which are mostly bright blue mats — are the colour; red is kept for the
   things you press and the one closing band.

   House rules:
   - One typeface (Archivo). Display headings are uppercase, at the heaviest
     weight and the wide end of the width axis. Everything else is sentence
     case at the normal width.
   - Grounds: black (--bg), a lifted black (--surface) for alternate bands,
     one light band, one red band.
   - Red means "press this" or "this is the headline fact". It is not used
     for decoration.
   - Photos and bands run to the edge of the screen and stay square. Buttons,
     tags, cards and schedule slots are rounded.
   - No shadows. The one drawn ornament is the professor's belt bar.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1e1e23;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.5);

  --text: #f5f5f6;
  --text-2: rgba(245, 245, 246, 0.8);
  --text-3: rgba(245, 245, 246, 0.62);   /* contrast floor on black — no lower */

  --accent: #dc1528;          /* fills: white text passes on it */
  --accent-deep: #b40e1e;
  --accent-text: #ff4a5c;     /* red as TEXT on black, lightened to stay legible */

  --light: #f4f3ef;           /* the one light band */
  --ink: #0a0a0b;

  --belt-red: #d3121f;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(60px, 8vw, 116px);
  --header-h: 77px;
  --r: 14px;
}

/* ------------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
/* Display: uppercase, as heavy and as wide as the font goes. */
h1, h2, .display {
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.95;
}
h2 { font-size: clamp(28px, 5.6vw, 84px); }
h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }

a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { color: var(--accent-text); }

:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.band--light :focus-visible { outline-color: var(--ink); }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-120%);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus-visible { transform: translateY(0); }

.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- layout */

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

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--flush-bottom { padding-bottom: 0; }

.band--surface { background: var(--surface); }

/* The one light band: black on off-white. */
.band--light { background: var(--light); color: rgba(10, 10, 11, 0.82); }
.band--light h2, .band--light h3 { color: var(--ink); }

/* The one red band. */
.band--accent {
  background:
    radial-gradient(110% 150% at 0% 0%, #ee2a3c 0%, rgba(238, 42, 60, 0) 55%),
    linear-gradient(160deg, #d51326 0%, #a80c1b 100%);
  color: rgba(255, 255, 255, 0.94);
}
.band--accent a:not(.btn) { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); }

.section-head { margin-bottom: clamp(26px, 3.6vw, 52px); }
.section-head__sub {
  margin-top: 16px;
  font-size: 19px;
  color: var(--text-3);
}
.section-head--split,
.section-head--tag {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.section-head--tag { justify-content: flex-start; align-items: center; gap: 14px 24px; }

/* A rounded label that sits beside a heading. */
.tag {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* The small line above some headings. Sentence case, no tracking. */
.eyebrow {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-text);
}
.band--light .eyebrow { color: var(--accent-deep); }

.prose > * + * { margin-top: 1em; }
.prose { max-width: 62ch; }
.prose__strong { color: #fff; font-weight: 700; }

.arrow-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--accent-text);
}
.arrow-link:hover { color: #fff; }

/* Photos: a ratio box with the image covering it, nothing drawn around it. */
.photo { position: relative; overflow: hidden; background: var(--surface-2); }
.photo img, .strip__item img, .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-4x5 { aspect-ratio: 4 / 5; }

/* Per-photo crops, so faces survive the frame. */
.pos-kids2  { object-position: center 45%; }
.pos-kids3  { object-position: center 60%; }
.pos-champ1 { object-position: center 30%; }
.pos-team   { object-position: center 55%; }
.pos-nogi   { object-position: center 6%; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 12px 20px; font-size: 13px; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #f02539; border-color: #f02539; color: #fff; }

.btn--outline { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* On the red band. */
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------- kids enrolment promo */

/* The dot that says "this is happening now". */
.pulse {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; opacity: 0; }
}

/* A red bar above the header. One link, edge to edge. */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px var(--gutter);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.announce:hover { background: #ee2236; color: #fff; }
.announce:focus-visible { outline-offset: -4px; outline-color: #fff; }
.announce__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.announce__cta {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* The band under the hero: the same offer, larger, with the button. */
.enroll { padding-block: clamp(34px, 4.4vw, 60px); }
.enroll__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.enroll__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.enroll .enroll__title { font-size: clamp(26px, 3.5vw, 50px); }
.enroll__sub { margin-top: 14px; max-width: 56ch; font-size: 18px; }
.enroll__btn { flex: none; padding: 21px 36px; font-size: 16px; white-space: nowrap; }
.btn__arrow { margin-left: 10px; transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 11, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* Runs the full width, to line up with the edge-to-edge hero beneath it. */
.site-header__inner {
  padding: 14px max(var(--gutter), 4vw);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  flex: none;
}
.brand:hover { color: #fff; }
.brand__mark { width: 48px; height: 48px; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-size: 18px;
  font-weight: 900;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.brand__meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-3);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}
.site-nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.header-cta { flex: none; }

/* ------------------------------------------------------------------ hero */

/* Phone and tablet: the whole photo on top, fading into the black page at
   its (empty mat) bottom edge, and the words pulled up over the fade. */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero__stage { position: relative; }
.hero__photo {
  position: relative;
  aspect-ratio: 2000 / 1550;   /* the whole photo, never cropped, on a phone */
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.55) 0%,
      rgba(10, 10, 11, 0) 22%,
      rgba(10, 10, 11, 0) 66%,
      rgba(10, 10, 11, 0.55) 84%,
      rgba(10, 10, 11, 0.94) 96%,
      var(--bg) 100%
    ),
    rgba(8, 14, 30, 0.14);     /* a faint cool wash over the whole photo */
}
.hero__content {
  position: relative;
  margin-top: -8vw;
  padding: 0 var(--gutter) 52px;
}
.hero__kicker {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-text);
}
.hero h1 { font-size: clamp(29px, 8.4vw, 64px); }
.hero__claim {
  text-wrap: balance;
  margin-top: 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.25;
}
.hero__claim + .hero__lede { margin-top: 12px; }
.hero__lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.55;
}
.hero__lede strong { color: #fff; font-weight: 700; }
.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tablets and small laptops: still stacked, but the photo is capped so it
   cannot fill the whole screen. The crop comes off the wall, not the people. */
@media (min-width: 761px) and (max-width: 1099px) {
  .hero__photo { aspect-ratio: auto; height: min(64vh, 77.5vw); }
  .hero__photo img { object-position: 50% 82%; }
  .hero__content { margin-top: -72px; padding-bottom: 68px; }
  .hero h1 { max-width: 15ch; }
}

/* Desktop: the whole photo, edge to edge. The wall above the team is taken
   down to near-black and the words are set across it — headline to the left
   of the team mark, the pitch to its right — so nobody in the photo is
   covered. The wall is the top third of the photo and the mark sits between
   43% and 53% across, so everything here is positioned and sized as a
   fraction of the photo's width (cqw). If the hero photo is ever replaced
   with one that does not have empty wall across the top, delete this block
   and raise the max-width above so the stacked layout is used at every size. */
@media (min-width: 1100px) {
  .hero__stage {
    max-width: 1760px;
    margin: 0 auto;
    container-type: inline-size;
  }
  .hero__photo::after {
    background:
      linear-gradient(
        180deg,
        rgba(10, 10, 11, 0.97) 0%,
        rgba(10, 10, 11, 0.9) 20%,
        rgba(10, 10, 11, 0.66) 30%,
        rgba(10, 10, 11, 0.18) 39%,
        rgba(10, 10, 11, 0) 46%,
        rgba(10, 10, 11, 0) 82%,
        rgba(10, 10, 11, 0.8) 96%,
        var(--bg) 100%
      ),
      rgba(8, 14, 30, 0.14);
  }
  .hero__content {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .hero__headline,
  .hero__pitch { position: absolute; pointer-events: auto; }

  .hero__headline { left: 4vw; left: 4cqw; top: 3.4vw; top: 3.4cqw; width: 38.5cqw; }
  .hero__kicker {
    margin-bottom: 1.1cqw;
    font-size: clamp(14px, 1.15cqw, 21px);
  }
  .hero h1 {
    font-size: 3.6vw;
    font-size: 3.6cqw;
    line-height: 0.96;
  }

  .hero__pitch { left: 56cqw; right: 4cqw; top: 5.2cqw; }
  .hero__claim {
    margin: 0 0 0.9cqw;
    font-size: clamp(16px, 1.55cqw, 28px);
  }
  .hero__lede {
    margin: 0;
    max-width: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(15px, 1.32cqw, 24px);
    line-height: 1.5;
  }
  .hero__actions { margin-top: 1.8cqw; }
  .hero .btn { font-size: clamp(13px, 1cqw, 18px); padding: 1.05cqw 2cqw; }
}
@media (min-width: 1761px) {
  .hero__photo img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}

/* ------------------------------------------------------------------ kids */

/* Three portrait photos, edge to edge, straight under the heading. */
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.strip__item { aspect-ratio: 5 / 6; overflow: hidden; background: var(--surface-2); }

.kids-intro {
  margin-top: clamp(40px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.statement {
  color: #fff;
  font-size: clamp(27px, 3.6vw, 48px);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.statement + p { margin-top: 1.4em; }

.ticks { margin-top: 1.6em !important; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-weight: 600;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 22px;
  width: 16px;
  height: 8px;
  border-left: 3px solid var(--accent-text);
  border-bottom: 3px solid var(--accent-text);
  transform: rotate(-45deg);
}

.times-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.times-card__title { font-size: 24px; text-transform: uppercase; font-weight: 900; font-stretch: 122%; letter-spacing: 0; }
.times-list { margin-top: 20px; border-top: 1px solid var(--line); }
.times-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.times-list dt { color: #fff; font-weight: 700; font-size: 20px; }
.times-list__level { font-weight: 400; font-size: 15px; color: var(--text-3); white-space: nowrap; }
.times-list__level::before { content: "· "; }
.times-list dd { margin-top: 2px; font-size: 19px; font-variant-numeric: tabular-nums; }
.times-card__note { margin: 20px 0 24px; color: #fff; font-weight: 700; }

/* A big heading on the left, its copy on the right. */
.aside-row {
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 88px);
}
.aside-row h3 {
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.96;
}
/* For a title with a long word in it, so it stays inside its column. */
.aside-row .aside-row__title--long { font-size: clamp(26px, 3.1vw, 44px); }
.aside-row .prose__strong {
  margin-top: 1.1em;
  text-wrap: balance;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

/* ------------------------------------------------------- competition team */

.team-lede {
  margin-top: 18px;
  max-width: 40ch;
  color: #fff;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
/* Three facts across, each under a red rule. */
.team-points {
  margin-top: clamp(28px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 44px);
}
.team-points > div { padding-top: 16px; border-top: 4px solid var(--accent); }
.team-points dt { color: var(--text-3); font-size: 15px; font-weight: 700; }
.team-points dd { margin-top: 6px; color: #fff; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.3; }
/* The year's target tournaments: a numbered list, one line each. */
.events { list-style: none; counter-reset: event; border-top: 1px solid var(--line-strong); }
.events li {
  counter-increment: event;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.events li::before {
  content: counter(event, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 900;
  font-stretch: 122%;
  line-height: 1.5;
}
.events__name { color: #fff; font-size: clamp(18px, 1.7vw, 23px); font-weight: 800; line-height: 1.25; }
.events__where { grid-column: 2; color: var(--text-3); font-size: 16px; }
.events__note { margin-top: 16px; color: var(--text-3); font-size: 16px; }
.team-body {
  margin-top: clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px clamp(32px, 6vw, 88px);
  align-items: start;
}
.team-proof {
  padding-left: clamp(20px, 2.6vw, 36px);
  border-left: 6px solid var(--accent);
}
.team-proof p:first-child {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.team-proof__after { margin-top: 1em; color: var(--accent-text); font-weight: 700; }

/* Edge to edge. Each photo's flex-grow is its own aspect ratio, so the
   photos in a row share a height with nothing cropped. */
.gallery { margin-top: clamp(40px, 5vw, 76px); display: grid; gap: 4px; }
.gallery__row { display: flex; gap: 4px; }
.gallery__item { position: relative; overflow: hidden; flex-basis: 0; min-width: 0; background: var(--surface-2); }
.gallery__item.ar-4x3 { aspect-ratio: 4 / 3; flex-grow: 1.3333; }
.gallery__item.ar-3x4 { aspect-ratio: 3 / 4; flex-grow: 0.75; }
.gallery__item.ar-2x3 { aspect-ratio: 2 / 3; flex-grow: 0.6667; }
.gallery__item.ar-3x2 { aspect-ratio: 3 / 2; flex-grow: 1.5; }
.gallery figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.86);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
#team { padding-bottom: 0; }

/* ------------------------------------------------------------ family notes */

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.note {
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.note h3 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 32px); }
.note p + p { margin-top: 1em; }

/* ---------------------------------------------------------------- adults */

/* Two photos sharing the full width, each with its title set on it. */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4px;
}
.pair__photo { aspect-ratio: 7 / 5; }
.pair__photo::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 0%, rgba(10, 10, 11, 0.88) 100%);
}
.pair__photo h3 {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 44px);
  bottom: clamp(16px, 2.4vw, 34px);
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.012em;
}
.pair__body { padding: clamp(22px, 2.6vw, 36px) clamp(20px, 3vw, 44px) clamp(44px, 5.4vw, 80px); }
.pair__body p { max-width: 50ch; }
.when {
  margin-top: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- etiquette */

.etiquette {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: end;
}
.etiquette h2 { margin-bottom: 28px; font-size: clamp(28px, 4.8vw, 70px); }
.rules { border-top: 3px solid var(--ink); }
.rules > div { padding: 20px 0; border-bottom: 1px solid rgba(10, 10, 11, 0.25); }
.rules dt {
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.rules dd { margin-top: 4px; }

/* ------------------------------------------------------------ will wilson */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 88px);
  align-items: center;
}
/* The source file has a 4px black strip baked into its right edge; the
   frame is 346 wide against the image's 350 so that strip is cropped off. */
.feature__photo { aspect-ratio: 346 / 600; overflow: hidden; border-radius: var(--r); }
.feature__photo img { width: 101.16%; max-width: none; height: auto; }
.feature__body h2 { font-size: clamp(28px, 4.8vw, 70px); margin-bottom: 24px; }
.feature__body p:last-child { max-width: 56ch; font-size: 20px; }

/* -------------------------------------------------------------- schedule */

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.day__name {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 3px solid #fff;
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}
.is-today .day__name { border-bottom-color: var(--accent); }
.day__today {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
/* Four fixed rows, so a class sits at the same height in every column. */
.day__slots {
  display: grid;
  grid-template-rows: repeat(4, 88px);
  gap: 10px;
}
.slot--r1 { grid-row: 1; }
.slot--r2 { grid-row: 2; }
.slot--r3 { grid-row: 3; }
.slot--r4 { grid-row: 4; }
.slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: #fff;
  line-height: 1.3;
}
/* Kids classes are the white ones. */
.slot--kids { background: #fff; color: var(--ink); }
.slot__time { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot__label { font-size: 15px; opacity: 0.8; }

.legend {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
}
.legend > span { display: inline-flex; align-items: center; gap: 9px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.swatch--kids { background: #fff; }
.swatch--adult { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.legend__closed { margin-left: auto; font-weight: 700; color: #fff; }

/* ------------------------------------------------------------ instructor */

.instructor {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: start;
}
.instructor__photo { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r); }
.instructor__body h2 { font-size: clamp(30px, 4.9vw, 72px); max-width: 11ch; }

.rank {
  margin: 28px 0 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.rank__text { color: #fff; font-weight: 800; font-size: 21px; }
/* A black belt's rank bar: red, capped in white, one white stripe a degree.
   The belt is black on a black page, so it carries a hairline to hold its
   edge. */
.belt {
  display: flex;
  width: 190px;
  height: 22px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  flex: none;
}
.belt__bar {
  display: flex;
  justify-content: space-evenly;
  width: 104px;
  margin-left: auto;
  margin-right: 18px;
  background: var(--belt-red);
  border-inline: 5px solid #fff;
}
.belt__bar i { width: 4px; background: #fff; }

.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--text-3); }
.facts dd { color: #fff; font-weight: 700; }
.facts--roomy { margin-top: 0; border-top: 1px solid var(--line-strong); }
.facts--roomy > div { grid-template-columns: 120px minmax(0, 1fr); padding: 18px 0; }
.facts--roomy dd { font-weight: 400; color: var(--text-2); }
.facts--roomy dt { color: #fff; font-weight: 800; }

/* --------------------------------------------------------------- pricing */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 88px);
  align-items: start;
}
.pricing__intro h2 { font-size: clamp(28px, 3.9vw, 54px); }
.start { margin-top: clamp(28px, 4vw, 52px); max-width: 36ch; }
.start__title {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.start .btn { margin-top: 24px; }

.prices { border-top: 1px solid var(--line-strong); }
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name amount" "note amount";
  align-items: center;
  column-gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.price dt {
  grid-area: name;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1.1;
}
.price__note { grid-area: note; margin-top: 6px; max-width: 34ch; }
.price__amount { grid-area: amount; text-align: right; color: var(--text-3); white-space: nowrap; }
.price__amount strong {
  color: #fff;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fineprint { margin-top: 18px; font-size: 15px; color: var(--text-3); }

/* -------------------------------------------------------------- visiting */

.visiting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: start;
}
.visiting h2 { font-size: clamp(28px, 4vw, 56px); }
.visiting__lede { margin: 22px 0 30px; max-width: 46ch; font-size: 20px; }

/* --------------------------------------------------------------- closing */

.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(32px, 6vw, 88px);
  align-items: start;
}
.closing__title { font-size: clamp(40px, 7.6vw, 116px); line-height: 0.9; letter-spacing: -0.02em; }
.closing__lede { margin: 28px 0 32px; max-width: 38ch; font-size: clamp(19px, 1.7vw, 23px); color: #fff; }

.contact { display: grid; gap: 26px; }
.contact > div { padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, 0.55); }
.contact__label {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
  text-transform: none;
}
.contact__value {
  display: block;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.band--accent a.contact__value { text-decoration: none; }
.band--accent a.contact__value:hover { text-decoration: underline; color: #fff; }
.contact__note { margin: 10px 0 12px; max-width: 38ch; font-size: 16px; }
.band--accent .arrow-link { color: #fff; text-decoration: none; }
.band--accent .arrow-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--bg); color: var(--text-3); font-size: 15px; }
.site-footer__inner {
  padding-block: 40px;
  display: flex;
  align-items: center;
  gap: 20px 24px;
  flex-wrap: wrap;
}
.site-footer__inner img { width: 72px; height: 72px; flex: none; }
.site-footer__wordmark { color: #fff; font-weight: 700; font-stretch: 112%; }
.site-footer__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__links a { color: var(--text-2); text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------ responsive */

/* Not enough room for the brand's second line beside the full nav. The
   block below turns it back on once the nav drops to its own row. */
@media (max-width: 1240px) {
  .site-header__inner { gap: 20px; }
  .site-nav { gap: 14px; font-size: 14px; }
  .brand__name { font-size: 16px; }
  .brand__meta { display: none; }
  .header-cta { padding: 12px 16px; }
}

@media (max-width: 1099px) {
  /* Header: mark, the stacked brand lines, and the sign-up button on one
     row; the section links scroll sideways underneath. Not sticky at
     this size, where it would cost too much of the screen. */
  .site-header { position: static; background: var(--bg); }
  html { scroll-padding-top: 12px; }
  .site-header__inner { flex-wrap: wrap; gap: 10px 12px; padding: 12px var(--gutter) 0; }
  .brand { flex: 1 1 0; min-width: 0; gap: 10px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 13px; font-stretch: 116%; }
  /* Client's order: professor, then Lahaina, then the year, one per line. */
  .brand__meta { display: block; font-size: 12px; margin-top: 3px; }
  .brand__meta-line { display: block; line-height: 1.35; }
  .brand__meta-sep { display: none; }
  .header-cta { padding: 10px 14px; font-size: 11px; }
  .site-nav {
    order: 3;
    flex: 0 0 calc(100% + 2 * var(--gutter));
    margin: 2px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
    gap: 24px;
    font-size: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 12px 0; }
}

@media (max-width: 900px) {
  .kids-intro,
  .aside-row,
  .team-body,
  .etiquette,
  .instructor,
  .pricing,
  .visiting,
  .closing__grid { grid-template-columns: minmax(0, 1fr); }

  .times-card, .instructor__photo { position: static; }
  .instructor__photo { max-width: 460px; }
  .etiquette { align-items: start; }

  /* The week becomes a plain list of days. */
  .week { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .day {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .day:last-child { border-bottom: 1px solid var(--line); }
  .day__name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 0;
    margin: 0;
    border: 0;
    font-size: 17px;
  }
  .day__slots { grid-template-rows: none; gap: 6px; }
  .slot--r1, .slot--r2, .slot--r3, .slot--r4 { grid-row: auto; }
  .slot { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; }
  .legend__closed { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 760px) {
  .team-points { grid-template-columns: 1fr; gap: 16px; }
  .enroll__inner { flex-direction: column; align-items: stretch; }
  .enroll__btn { white-space: normal; }
  .announce { font-size: 14px; gap: 3px 12px; padding: 9px 14px; }
  .announce__live { font-size: 12px; }

  body { font-size: 17px; }

  .hero__content { padding-bottom: 48px; }
  .hero__lede { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 auto; }

  /* Kids photos: a swipeable strip that runs off the edge of the screen, so
     it is obvious there is more — and sized so one photo never fills it. */
  .strip {
    display: flex;
    gap: 8px;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--r); }

  .gallery__row--three { flex-wrap: wrap; }
  .gallery__row--three .ar-2x3 { flex: 1 1 40%; }
  .gallery__row--three .ar-3x2 { flex: 1 1 100%; }
  .gallery figcaption { left: 10px; bottom: 10px; font-size: 12px; padding: 5px 11px; }

  .notes, .pair { grid-template-columns: minmax(0, 1fr); }
  .pair__body { padding-bottom: 40px; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__photo { max-width: 240px; }

  .facts > div { grid-template-columns: 124px minmax(0, 1fr); }
  .facts--roomy > div { grid-template-columns: 92px minmax(0, 1fr); }
  .belt { width: 150px; height: 18px; }
  .belt__bar { width: 84px; }
  .belt__bar i { width: 3px; }

  .site-footer__links { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 560px) {
  /* The note runs the full width under the name and the price. */
  .price { grid-template-areas: "name amount" "note note"; align-items: end; }
  .price__note { margin-top: 8px; max-width: none; }
  .price dt { font-size: 19px; }
  .price__amount strong { font-size: 40px; }
  .price__amount { font-size: 15px; }
}

@media (max-width: 420px) {
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day__name { flex-direction: row; align-items: center; padding: 0; }
  .price { column-gap: 14px; }
}
