@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Caveat:wght@400;500;600&display=swap');

:root {
  --black: #050505;
  --black2: #0d0d0d;
  --panel: #111;
  --white: #f4f4f0;
  --muted: #a7a7a7;
  --line: #292929;
  --accent: #fff;
  --max: 1180px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E")
}

a {
  color: inherit;
  text-decoration: none
}

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

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: auto
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 176px;
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.nav {
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .24em
}

.brand img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: invert(1)
}

.brand span {
  font-size: 14px
}

.navlinks {
  display: flex;
  gap: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.navlinks a {
  opacity: .78
}

.navlinks a:hover,
.navlinks a.active {
  opacity: 1
}

.navlinks a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 7px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  background: #fff;
  color: #070707;
  border: 1px solid #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.button.alt {
  background: transparent;
  color: #fff
}

.button:hover {
  transform: translateY(-1px)
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px
}

.hero {
  min-height: 720px;
  padding-top: 76px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .76) 42%, rgba(0, 0, 0, .25) 100%), var(--hero-image, url("../images/hero-placeholder.svg")) var(--hero-position, center)/cover;
  transform: scale(var(--hero-scale, 1))
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: 11px;
  font-weight: 700;
  color: #ddd;
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  flex: none
}

.display {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(64px, 6vw, 128px);
  line-height: .9;
  letter-spacing: .01em;
  margin: 18px 0
}

.script {
  font-family: 'Caveat', cursive;
  font-weight: 900;
  font-size: clamp(35px, 3.6vw, 55px);
  letter-spacing: .01em;
  transform: rotate(-2deg);
  display: inline-block;
  margin: 4px 0 28px
}

.hero-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .24em;
  margin-bottom: 28px
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.section {
  padding: 88px 0
}

.section.black {
  background: #050505
}

.section.panel {
  background: #0a0a0a
}

.section-head {
  text-align: center;
  margin-bottom: 34px
}

.section-head .eyebrow {
  margin-bottom: 10px
}

.section-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  text-transform: none;
  margin: 0
}

/* Safeguarding and Code of Conduct on the Club Standards page: tighter gap above each
   section, and the heading left-aligned while the boxes below stay centred (.policy
   itself handles that centring separately, so it's untouched by this). */
#safeguarding,
#conduct {
  padding-top: 40px
}

#safeguarding .section-head,
#conduct .section-head {
  text-align: left
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.card {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #101010
}

.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .9)), var(--card-image) var(--card-image-position, center)/cover;
  transform: scale(var(--card-image-scale, 1))
}

.card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 26px
}

.card h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 34px;
  margin: 0 0 8px;
  text-transform: uppercase
}

.card p {
  color: #ddd;
  max-width: 260px;
  font-size: 14px;
  margin: 0 0 18px
}

.arrow {
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em
}

.manifesto {
  position: relative;
  overflow: hidden;
  background: #111;
  padding: 60px 0
}

.manifesto:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7)), var(--manifesto-image, url("../images/hero-placeholder.svg")) var(--manifesto-position, center)/cover;
  transform: scale(var(--manifesto-scale, 1));
  opacity: .45
}

.manifesto .container {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center
}

.logo-large {
  width: 300px;
  filter: invert(1);
  opacity: .95
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px
}

.value {
  border-left: 1px solid #444;
  padding-left: 22px
}

.value strong {
  display: block;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 8px
}

.value p {
  margin: 0;
  color: #bbb;
  font-size: 13px
}

.timetable {
  background: #080808
}

.days {
  display: flex;
  gap: 4px;
  overflow: auto;
  margin-bottom: 14px
}

.day-btn {
  flex: 1;
  min-width: 90px;
  background: #161616;
  border: 1px solid #272727;
  color: #aaa;
  padding: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em
}

.day-btn.active {
  background: #fff;
  color: #000
}

.schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #2b2b2b;
  border: 1px solid #2b2b2b
}

.class {
  background: #101010;
  min-height: 120px;
  padding: 22px
}

.class .time {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 16px
}

.class .name {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px
}

.class-icon {
  display: inline-flex;
  flex: none
}

.class-icon svg {
  width: 17px;
  height: 17px
}

.class-icon svg * {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.schedule-empty {
  grid-column: 1/-1;
  padding: 40px;
  text-align: center;
  color: #999
}

.beginner {
  position: relative;
  overflow: hidden;
  background: #111
}

.beginner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .45)), var(--beginner-image, url("../images/beginners-placeholder.svg")) var(--beginner-position, center)/cover;
  transform: scale(var(--beginner-scale, 1))
}

.beginner .container {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center
}

.beginner-copy {
  max-width: 500px
}

.beginner h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: .95;
  margin: 8px 0 15px;
  text-transform: uppercase
}

.beginner p {
  color: #ddd
}

.ig-container {
  width: min(calc(100% - 48px), 1800px);
  margin: auto
}

.ig-grid {
  display: grid;
  /* --ig-cols is computed live in site.js from Instagram's actual rendered card
     width, so rows come out balanced (4 -> 2x2, 6 -> 3x3) instead of a lopsided
     leftover row. The fallback of 2 only applies for the brief moment before that
     measurement runs. */
  grid-template-columns: repeat(var(--ig-cols, 2), 1fr);
  gap: 20px;
  justify-content: center;
  justify-items: center;
  align-items: start;
  overflow-x: hidden
}

.ig-grid blockquote.instagram-media,
.ig-grid iframe.instagram-media {
  filter: grayscale(1);
  max-width: 100%
}

.ig-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 40px 0
}

.ig-empty a {
  color: var(--white);
  text-decoration: underline
}

.standards {
  background: #090909;
  position: relative;
  overflow: hidden
}

.standards:before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -18%;
  right: -12%;
  width: 520px;
  height: 520px;
  max-width: 55vw;
  max-height: 55vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  pointer-events: none
}

.standards:after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -14%;
  right: -8%;
  width: 440px;
  height: 440px;
  max-width: 46vw;
  max-height: 46vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .05);
  pointer-events: none
}

.standards .container {
  position: relative;
  z-index: 1
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.standard {
  border: 1px solid #292929;
  background: #101010;
  padding: 28px;
  min-height: 220px
}

.standard .icon {
  font-size: 28px;
  margin-bottom: 22px
}

.standard h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 25px;
  margin: 0 0 8px
}

.standard p {
  font-size: 13px;
  color: #aaa
}

.quote {
  padding: 26px 0;
  text-align: center;
  color: #bbb;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #242424;
  margin: 30px 0;
  font-size: 16px
}

.map {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  background: #060606
}

.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(90%) contrast(85%)
}

.map:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(6, 6, 6, .92) 0%, rgba(6, 6, 6, .6) 42%, rgba(6, 6, 6, .1) 100%)
}

.map:after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: -10%;
  bottom: -25%;
  width: 480px;
  height: 480px;
  max-width: 60vw;
  max-height: 60vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07)
}

.map .container {
  position: relative;
  z-index: 2
}

.map-card {
  position: relative;
  background: #0d0d0d;
  border: 1px solid #333;
  padding: 28px;
  max-width: 380px;
  margin-top: 50px
}

.map-card h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 38px;
  text-transform: uppercase;
  margin: 0 0 10px
}

.footer-cta {
  padding: 65px 0;
  background: #0a0a0a;
  position: relative;
  overflow: hidden
}

.footer-cta:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5)), var(--footer-cta-image, url("../images/gallery-6-placeholder.svg")) var(--footer-cta-position, center)/cover;
  transform: scale(var(--footer-cta-scale, 1));
  opacity: .65
}

.footer-cta .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.footer-cta h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 62px;
  line-height: .95;
  margin: 0;
  text-transform: uppercase
}

.footer {
  border-top: 1px solid #222;
  padding: 30px 0;
  color: #888;
  font-size: 12px
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px
}

.subhero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 80px;
  background: #000
}

.subhero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, var(--subhero-fade-left, 1)), rgba(0, 0, 0, var(--subhero-fade-right, .65))), var(--subhero-image, url("../images/hero-placeholder.svg")) var(--subhero-position, center)/cover;
  transform: scale(var(--subhero-scale, 1))
}

.subhero .container {
  position: relative;
  z-index: 1
}

.subhero h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 8vw, 96px);
  line-height: .9;
  margin: 10px 0;
  text-transform: uppercase
}

.prose {
  max-width: 820px;
  color: #ccc
}

.prose h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 38px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 10px
}

.prose p {
  font-size: 16px
}

.committee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.person {
  border: 1px solid #292929;
  background: #101010
}

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1)
}

.person-body {
  padding: 18px
}

.person h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 25px;
  margin: 0
}

.person .role {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #aaa;
  margin: 5px 0 12px
}

.person p {
  font-size: 13px;
  color: #aaa;
  text-align: justify
}

/* Coach cards — same visual base as .person, but rendered as real <button>s so they're
   keyboard and screen-reader accessible as an interactive element, not just styled divs. */
.person-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #101010;
  border: 1px solid #292929;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s ease, transform .2s ease
}

.person-card:hover,
.person-card:focus-visible {
  border-color: #555;
  transform: translateY(-2px)
}

.person-expand {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white)
}

/* Coach profile popup */
.coach-modal {
  border: 1px solid #333;
  background: #0d0d0d;
  color: var(--white);
  padding: 0;
  width: min(520px, calc(100% - 40px));
  max-height: min(720px, calc(100% - 40px));
  overflow: auto
}

.coach-modal::backdrop {
  background: rgba(0, 0, 0, .8)
}

.coach-modal img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
  display: block;
  opacity: 1;
  transition: opacity .15s ease
}

.coach-modal img.is-loading {
  opacity: 0
}

.coach-modal .modal-body {
  padding: 28px
}

.coach-modal h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 28px;
  margin: 0
}

.coach-modal .role {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #aaa;
  margin: 8px 0 16px
}

.coach-modal p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  text-align: justify
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #333;
  background: rgba(5, 5, 5, .8);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  z-index: 1
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: #666
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.policy {
  border: 1px solid #292929;
  padding: 30px;
  background: #101010;
  text-align: center
}

.policy h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 10px
}

.policy ul {
  padding-left: 18px;
  color: #aaa
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px
}

.form {
  display: grid;
  gap: 12px
}

.form input,
.form textarea {
  background: #101010;
  border: 1px solid #333;
  color: #fff;
  padding: 15px;
  font: inherit
}

.form textarea {
  min-height: 150px;
  resize: vertical
}

.form-status {
  font-size: 14px;
  margin-top: 4px
}

.form-status.ok {
  color: #8fd19e
}

.form-status.error {
  color: #e58a8a
}

@media(max-width:900px) {
  .navlinks {
    display: none
  }

  .navlinks.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid #292929;
    z-index: 60
  }

  .menu {
    display: block
  }

  .cards,
  .standard-grid,
  .committee,
  .policy-grid {
    grid-template-columns: 1fr 1fr
  }

  .coaches-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .manifesto .container {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .logo-large {
    width: 190px
  }

  .values {
    gap: 15px
  }

  .schedule {
    grid-template-columns: 1fr 1fr
  }

  .footer-cta .container {
    display: block
  }

  .footer-cta .button {
    margin-top: 25px
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {
  .container {
    width: min(calc(100% - 28px), var(--max))
  }

  .ig-container {
    width: min(calc(100% - 28px), 1800px)
  }

  .header,
  .nav {
    height: 106px
  }

  .brand img {
    width: 120px;
    height: 120px
  }

  .hero {
    padding-top: 66px;
    min-height: 650px
  }
  
  [data-subhero-page="contact"] {
  min-height: 298px;
}
  
  .hero:before {
  background-position: 70% center;
}

  .hero .container {
    padding-top: 50px
  }

  .subhero {
    padding: 100px 0 40px
  }

  .display {
    font-size: 65px
  }

 

  .section {
    padding: 65px 0
  }

  .cards,
  .standard-grid,
  .committee,
  .policy-grid {
    grid-template-columns: 1fr
  }

  .coaches-grid {
    grid-template-columns: 1fr
  }

  .values {
    grid-template-columns: 1fr
  }

  .value {
    border-left: 0;
    border-top: 1px solid #444;
    padding: 16px 0 0
  }

  .schedule {
    grid-template-columns: 1fr
  }

  .beginner h2 {
    font-size: 52px
  }

  .footer-cta h2 {
    font-size: 50px
  }

  .footer .container {
    display: block
  }

  .footer .container div+div {
    margin-top: 10px
  }
  
  
}