/* ==========================================================================
   Black Spor Kulübü — site stylesheet
   Palette is taken from the club's own posts: true black, panther gold.
   The track (tartan + lane lines) is the recurring structural device.
   ========================================================================== */

:root {
  --black: #000000;
  --gold: #e9af06;
  --gold-deep: #c99400;
  --chalk: #f3f2ec;
  --ash: #9c9a92;
  --tartan: #b3432e;
  --tartan-dark: #8f3322;
  --line: rgba(243, 242, 236, 0.18);
  --line-dark: rgba(0, 0, 0, 0.16);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Type scale: 1.25 ratio for body, display sizes are fluid */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.5rem);
  --step-4: clamp(3rem, 7vw, 5.5rem);
  --step-5: clamp(4rem, 12.5vw, 11rem);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

body {
  background: var(--black);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--gold); color: var(--black);
  padding: 0.75rem 1rem; font-weight: 600; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.on-gold :focus-visible,
.btn--gold:focus-visible { outline-color: var(--chalk); }
.on-gold :focus-visible { outline-color: var(--black); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.95; }
h2 { font-size: var(--step-4); text-wrap: balance; }
h3 { font-size: var(--step-2); line-height: 1.05; font-weight: 700; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; }
.muted { color: var(--ash); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7em 1.4em;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--chalk); }
.btn--line { border-color: currentColor; color: var(--chalk); }
.btn--line:hover { background: var(--chalk); color: var(--black); border-color: var(--chalk); }
.btn--black { background: var(--black); color: var(--chalk); }
.btn--black:hover { background: var(--tartan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.1875rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__list { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.1875rem;
  text-decoration: none;
  color: var(--chalk);
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav .btn { min-height: 44px; padding-block: 0.45em; font-size: 1.0625rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
  width: 48px; height: 48px;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--chalk); margin: 6px 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--black);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 0.28s ease; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block; padding-block: 0.9rem;
    font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1;
  }
  .nav__link::after { display: none; }
  .nav .btn { justify-content: center; min-height: 56px; font-size: 1.25rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--gold { background: var(--gold); color: var(--black); }
.section--chalk { background: var(--chalk); color: var(--black); }
.section--chalk .muted,
.section--gold .muted { color: rgba(0, 0, 0, 0.66); }

/* Diagonal top edge, echoing the split layout of the club's posts */
.slant-top {
  clip-path: polygon(0 clamp(2rem, 5vw, 5rem), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-y) + clamp(2rem, 5vw, 5rem));
  margin-top: -1px;
}

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 48rem; }

/* ---------- Chevrons (brand device from posts) ---------- */
.chevrons { display: flex; gap: 0.2em; color: var(--gold); }
.chevrons svg { width: 0.7em; height: 1em; }
.chevrons--dark { color: var(--black); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 0 2rem;
}
.hero__copy { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; z-index: 2; }
.hero .chevrons { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.25rem; }
.hero__title { font-size: var(--step-5); margin-bottom: 1.75rem; padding-top: 0.14em; }
.hero__title span { display: block; }
.hero__title .t-gold { color: var(--gold); }
.hero__lead { margin-bottom: 2rem; color: #d9d8d1; }

.hero__figure {
  position: relative;
  align-self: end;
  margin-right: calc(var(--gutter) * -1);
}
.hero__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%), linear-gradient(to top, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 24%), linear-gradient(to top, transparent 0%, #000 16%);
  mask-composite: intersect;
}
.hero__caption {
  position: absolute; right: var(--gutter); bottom: 1.5rem;
  text-align: right;
  font-family: var(--font-cond); font-weight: 500; font-size: 1rem; line-height: 1.3;
  color: var(--chalk);
}
.hero__caption strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--gold); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; margin-inline: calc(var(--gutter) * -1); max-width: none; }
  .hero__figure img {
    max-height: 52vh; object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 35%);
    mask-image: linear-gradient(to top, transparent 0%, #000 35%);
  }
  .hero__copy { margin-top: -5rem; }
  .hero__caption { display: none; }
}

/* Load moment: chevrons sprint in, then the headline lines rise. */
@media (prefers-reduced-motion: no-preference) {
  .hero .chevrons svg { animation: sprint 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .chevrons svg:nth-child(2) { animation-delay: 0.08s; }
  .hero .chevrons svg:nth-child(3) { animation-delay: 0.16s; }
  .hero__title span { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero__title span:nth-child(1) { animation-delay: 0.25s; }
  .hero__title span:nth-child(2) { animation-delay: 0.35s; }
  .hero__title span:nth-child(3) { animation-delay: 0.45s; }
  .float-contact { animation: slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; }
}
@keyframes sprint {
  from { transform: translateX(-120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes rise {
  from { transform: translateY(0.3em); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes slide-in {
  from { transform: translateX(140%); }
  to { transform: none; }
}

/* ---------- The track strip ---------- */
.track {
  --lanes: 4;
  --lane-h: clamp(46px, 6vw, 64px);
  position: relative;
  height: calc(var(--lane-h) * var(--lanes));
  background:
    repeating-linear-gradient(
      to bottom,
      var(--chalk) 0 3px,
      transparent 3px var(--lane-h)
    ),
    linear-gradient(var(--tartan), var(--tartan-dark));
  border-bottom: 3px solid var(--chalk);
  overflow: hidden;
}
.track::before {
  /* start line */
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: clamp(4.5rem, 9vw, 7rem);
  width: 8px; background: var(--chalk);
}
.track__lane {
  position: absolute; left: 0; right: 0;
  height: var(--lane-h);
  display: flex; align-items: center;
  white-space: nowrap;
}
.track__lane:nth-child(1) { top: 0; }
.track__lane:nth-child(2) { top: var(--lane-h); }
.track__lane:nth-child(3) { top: calc(var(--lane-h) * 2); }
.track__lane:nth-child(4) { top: calc(var(--lane-h) * 3); }
.track__num {
  width: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: calc(var(--lane-h) * 0.62);
  line-height: 1;
  color: var(--chalk);
}
.track__paint {
  font-family: var(--font-display); font-weight: 800;
  font-size: calc(var(--lane-h) * 0.52);
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(243, 242, 236, 0.92);
  padding-left: var(--x, 2rem);
}

/* ---------- Olympic path (timeline) ---------- */
.olympics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.olympics__intro { display: grid; gap: 1.5rem; }
.games { list-style: none; padding: 0; margin: 0; }
.games li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0 1.5rem;
  padding-block: 1.1rem;
  border-top: 3px solid var(--black);
}
.games li:last-child { border-bottom: 3px solid var(--black); }
.games__year {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.games__city { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1; }
.games__city small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; margin-top: 0.35rem; color: rgba(0, 0, 0, 0.66); }

@media (max-width: 860px) {
  .olympics__grid { grid-template-columns: 1fr; }
}

/* ---------- Lanes list (qualities, services) ---------- */
.lanes { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--chalk); }
.lanes > li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.5rem 3rem;
  align-items: center;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 3px solid var(--chalk);
}
.lanes__word {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.75rem, 7.5vw, 6.25rem); line-height: 0.9;
  color: var(--chalk);
}
.lanes > li:hover .lanes__word { color: var(--gold); }
.lanes__text { max-width: 36ch; color: #d4d3cc; font-size: var(--step-1); line-height: 1.45; }

@media (max-width: 700px) {
  .lanes > li { grid-template-columns: 1fr; }
}

/* ---------- Registration band ---------- */
.register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 4rem;
  align-items: end;
}
.register__phone {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9;
  text-decoration: none; color: var(--black);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.register__phone:hover { color: var(--tartan); }
.register .btn-row { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .register { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .chevrons { font-size: 2.25rem; margin-bottom: 1rem; }
.page-hero__title { font-size: var(--step-5); margin-bottom: 1.5rem; padding-top: 0.14em; }
.page-hero .lead { color: #d9d8d1; }

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
}

.portrait {
  position: relative;
  background: var(--black);
}
.portrait img { width: 100%; aspect-ratio: 7 / 11; object-fit: cover; object-position: top; border-bottom: 6px solid var(--gold); }

.portrait-wrap { position: relative; z-index: 0; }
.portrait-caption {
  margin-top: 1.75rem; font-family: var(--font-cond); font-weight: 500; color: var(--ash);
}

.vision {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-3); line-height: 1;
  text-wrap: balance;
  max-width: 22ch;
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.5rem; border-top: 3px solid currentColor; }
.facts > div { padding: 1.25rem 1.25rem 0 0; }
.facts dt { font-family: var(--font-cond); font-weight: 600; font-size: 1rem; }
.facts dd { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; margin-top: 0.25rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Results board */
.board {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.board caption { text-align: left; margin-bottom: 1.25rem; }
.board th, .board td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.board thead th { font-family: var(--font-cond); font-weight: 600; font-size: 1rem; color: var(--ash); border-bottom: 3px solid var(--chalk); }
.board td:first-child { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; width: 5.5rem; color: var(--gold); }
.board td:last-child { font-family: var(--font-cond); font-weight: 600; font-size: 1.1875rem; white-space: nowrap; text-align: right; padding-right: 0; }
.board th:last-child { text-align: right; padding-right: 0; }
.board tr.is-games td:nth-child(2) { font-weight: 600; }
.board-note { margin-top: 1.5rem; font-family: var(--font-cond); font-weight: 500; font-size: 1.1875rem; }
.board-note strong { color: var(--gold); font-weight: 700; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.principles > div { border-top: 3px solid var(--black); padding-top: 1.25rem; }
.principles h3 { margin-bottom: 0.75rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--black); }
.events > div { padding: 1.5rem 1.5rem 0 0; }
.events > div + div { border-left: 1px solid var(--line-dark); padding-left: 1.5rem; }
.events h3 { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 900; line-height: 0.9; margin-bottom: 1rem; }
.events p { max-width: 30ch; }
@media (max-width: 760px) {
  .events { grid-template-columns: 1fr; }
  .events > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); margin-top: 1.5rem; }
}

.program { list-style: none; padding: 0; margin: 0; }
.program li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.5rem 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.program li:last-child { border-bottom: 1px solid var(--line); }
.program h3 { font-size: var(--step-2); }
.program p { color: #d4d3cc; max-width: 46ch; }
@media (max-width: 700px) { .program li { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.steps li { counter-increment: step; border-top: 3px solid var(--black); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; line-height: 1;
  margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.poster { max-width: 420px; }
.poster img { width: 100%; box-shadow: 14px 14px 0 var(--gold); }
.poster figcaption { margin-top: 1.5rem; color: var(--ash); font-size: var(--step--1); }

.faq { border-top: 3px solid var(--black); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 18px; height: 18px;
  border-right: 4px solid currentColor; border-bottom: 4px solid currentColor;
  transform: rotate(45deg) translate(-4px, -4px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq details p { padding-bottom: 1.5rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.channels { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--chalk); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a, .channels .channel {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: center;
  padding-block: 1.25rem;
  text-decoration: none;
}
.channels svg { width: 28px; height: 28px; color: var(--gold); }
.channels .channel__label { display: block; font-family: var(--font-cond); font-weight: 500; color: var(--ash); font-size: 1rem; }
.channels .channel__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.05; }
.channels a:hover .channel__value { color: var(--gold); }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--chalk);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  min-height: 52px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.field__error { font-weight: 600; font-size: var(--step--1); color: #6e1a0c; }
.field__error:empty { display: none; }
.form__note { font-size: var(--step--1); color: rgba(0, 0, 0, 0.66); }

.map {
  position: relative;
  border: 3px solid var(--chalk);
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; padding-block: var(--section-y); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 6rem; font-size: 1rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.site-footer img { height: 72px; width: auto; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-cond); font-weight: 600; font-size: 1rem; color: var(--ash); margin-bottom: 0.75rem; line-height: 1.3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ash); font-size: var(--step--1); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Floating contact buttons ---------- */
.float-contact {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
  list-style: none; margin: 0; padding: 0;
}
.float-btn {
  display: flex; align-items: center; justify-content: flex-end;
  height: 58px;
  min-width: 58px;
  border-radius: 29px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.float-btn svg { width: 30px; height: 30px; margin: 0 14px; flex: none; }
.float-btn__label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem;
  transition: max-width 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.float-btn:hover .float-btn__label,
.float-btn:focus-visible .float-btn__label { max-width: 12rem; opacity: 1; padding-left: 1.25rem; }
.float-btn--wa { background: #1fae54; }
.float-btn--ig { background: radial-gradient(circle at 30% 110%, #fdd56b 0%, #f9783c 30%, #e2336f 55%, #b02fc1 80%, #5b51d8 100%); }
.float-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 520px) {
  .float-btn { height: 52px; min-width: 52px; }
  .float-btn svg { width: 26px; height: 26px; margin: 0 13px; }
}

/* ---------- Basics + training reel (home) ---------- */
.basics {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.basics .lanes > li { grid-template-columns: 1fr; }
.basics .lanes__word { font-size: clamp(2.75rem, 5.5vw, 5rem); }

.reel { position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0; }
.reel__frame {
  position: relative;
  width: min(100%, calc((100svh - var(--header-h) - 10rem) * 9 / 16));
  border-bottom: 6px solid var(--gold);
  background: #161616;
}
.reel__video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.reel__toggle {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: var(--chalk);
  cursor: pointer;
}
.reel__toggle svg { width: 20px; height: 20px; }
.reel__toggle .i-play { display: none; }
.reel__toggle[aria-pressed="true"] .i-play { display: block; }
.reel__toggle[aria-pressed="true"] .i-pause { display: none; }
.reel__caption { display: grid; justify-items: start; gap: 0.6rem; margin-top: 1.25rem; }
.reel__meta { font-family: var(--font-cond); font-weight: 500; color: var(--ash); }

@media (max-width: 860px) {
  .basics { grid-template-columns: 1fr; }
  .reel { position: static; order: 1; justify-self: center; }
  .reel__frame { width: min(100%, calc(70svh * 9 / 16)); }
  .reel__caption { justify-items: center; text-align: center; }
}

/* ---------- Gallery carousel ---------- */
.gallery__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery__head .section-head { margin-bottom: 0; }
.gallery__controls { display: flex; align-items: center; gap: 1rem; }
.gallery__btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--black); color: var(--gold);
  border: 0; border-radius: 2px; cursor: pointer;
  transition: background-color 0.18s ease;
}
.gallery__btn svg { width: 16px; height: 24px; }
.gallery__btn:hover { background: var(--tartan); color: var(--chalk); }
.gallery__btn:disabled { opacity: 0.3; cursor: default; background: var(--black); color: var(--gold); }
.gallery__count {
  min-width: 4.5rem; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gallery__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(270px, 38vw, 540px);
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 0 var(--edge) 0.75rem;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--black); outline-offset: -3px; }
.gallery__slide { margin: 0; scroll-snap-align: start; }
.gallery__slide img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #d8d6cd;
  border-bottom: 6px solid var(--black);
}
.gallery__slide figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.125rem;
}
@media (max-width: 520px) {
  .gallery__track { grid-auto-columns: 84%; }
}

/* Gold section that follows a chalk one: draw the slant instead of clipping */
.slant-top--chalk {
  clip-path: none;
  background:
    linear-gradient(to bottom right, var(--chalk) calc(50% - 1px), var(--gold) 50%) top / 100% clamp(2rem, 5vw, 5rem) no-repeat,
    var(--gold);
}

/* ---------- Full video dialog ---------- */
.video-dialog {
  padding: 0; border: 0; background: transparent;
  max-width: none; max-height: none;
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(0, 0, 0, 0.9); }
.video-dialog__inner { position: relative; }
.video-dialog__video {
  display: block;
  height: min(90svh, calc(94vw * 16 / 9));
  aspect-ratio: 9 / 16;
  background: #000;
}
.video-dialog__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); color: var(--chalk);
  cursor: pointer;
}
.video-dialog__close svg { width: 22px; height: 22px; }

/* ---------- Wide photo band (inner pages) ---------- */
.photo-band { margin: 0; }
.photo-band img { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; object-fit: cover; }
.photo-band figcaption {
  padding-top: 1rem;
  font-family: var(--font-cond); font-weight: 500; color: var(--ash);
}

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