/* Studio City Boxing and Fitness — landing page
   Palette, type and rhythm carried over from the Claude Design source
   ("Studio City Boxing.dc.html"). */

:root {
  --ink: #0a0a0a;
  --paper: #f4f1ec;
  --red: #ff3b1f;
  --red-deep: #b92c12;

  --muted: #8e887f;
  --muted-bright: #b9b4ac;
  --muted-on-paper: #5f5a53;

  --rule: #1e1d1b;
  --rule-on-paper: #d8d3ca;
  --edge: #2a2823;
  --edge-bright: #3a3833;

  --row-hover: #111110;
  --ticker-ink: #45403a;
  --slot-bg: #0f0f0e;
  --slot-stripe: #141413;

  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body: Barlow, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x: clamp(16px, 4vw, 56px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--red);
}

::selection {
  background: var(--red);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --- shared type ---------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--tight {
  letter-spacing: 0.16em;
}

.eyebrow--dark {
  color: var(--muted-on-paper);
}

.h1 {
  margin: clamp(20px, 3vw, 40px) 0 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(48px, 11.4vw, 178px);
  line-height: 0.85;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2 {
  margin: 14px 0 clamp(28px, 4vw, 52px);
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.h2--mid {
  margin: 0 0 clamp(24px, 3.4vw, 44px);
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: 0.9;
  max-width: 20ch;
}

.h2--narrow {
  margin-bottom: clamp(30px, 4vw, 56px);
  max-width: 16ch;
}

.h2--wide {
  font-size: clamp(38px, 7.4vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  max-width: 19ch;
}

.dot {
  color: var(--red);
}

.section {
  padding: clamp(56px, 8vw, 120px) var(--pad-x);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head--tight {
  margin-bottom: 18px;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn__arrow {
  font-size: 16px;
}

.btn--sm {
  gap: 8px;
  padding: 11px 14px;
}

.btn--sm .btn__arrow {
  font-size: 15px;
}

.btn--red {
  background: var(--red);
  color: var(--ink);
}

.btn--red:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--red);
  color: var(--ink);
}

.btn--ghost {
  border: 1px solid var(--edge-bright);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

/* --- nav ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px var(--pad-x);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.wordmark__sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav__links a:hover {
  color: var(--paper);
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
}

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

.hero {
  padding: clamp(56px, 9vw, 132px) var(--pad-x) 0;
}

.hero__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__dot {
  color: var(--red);
}

.hero__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}

.hero__lede {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.35;
  font-weight: 500;
  max-width: 22ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- ticker --------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: sccreep 34s linear infinite;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ticker-ink);
}

.ticker__item,
.ticker__slash {
  padding-right: 28px;
}

.ticker__slash {
  color: var(--red);
}

@keyframes sccreep {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

/* --- programs ------------------------------------------------------- */

.programs {
  border-top: 1px solid var(--rule);
}

.program {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr) 210px;
  gap: clamp(12px, 2vw, 32px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
}

.program:hover {
  background: var(--row-hover);
}

.program__num {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--red);
}

.program__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.005em;
}

.program__line {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--muted-bright);
  text-wrap: pretty;
}

.program__tag {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .program {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px 16px;
  }

  .program__num,
  .program__name {
    grid-row: 1;
  }

  .program__line,
  .program__tag {
    grid-column: 2;
  }
}

/* --- the gym -------------------------------------------------------- */

.section--gym {
  padding-top: 0;
}

.gym__frame {
  position: relative;
  max-width: 360px;
  border: 1px solid var(--edge);
  background: var(--slot-bg);
}

.gym__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center 45%;
  background: var(--slot-bg);
}

/* The source is 720x1280 portrait; on desktop it is cropped to a wide band. */
@media (min-width: 900px) {
  .gym__frame {
    max-width: none;
  }

  .gym__video {
    aspect-ratio: 16 / 9;
    object-position: center 46%;
  }
}

/* --- coaches -------------------------------------------------------- */

.section--trainers {
  padding-block: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--rule);
}

.section--trainers .h2 {
  margin-bottom: clamp(30px, 4vw, 56px);
}

.coaches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.coach {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portrait__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--edge);
  background: var(--paper);
}

.coach__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.coach__role {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.coach__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 0.95;
}

.coach__bio {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-bright);
  text-wrap: pretty;
}

/* --- philosophy ----------------------------------------------------- */

.section--philosophy {
  background: var(--paper);
  color: var(--ink);
}

.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--rule-on-paper);
}

.tenet {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px) clamp(0px, 1.4vw, 20px) clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--rule-on-paper);
}

.tenet__num {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--red-deep);
}

.tenet__text {
  margin: 0;
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.3;
  font-weight: 600;
  text-wrap: pretty;
}

/* --- contact -------------------------------------------------------- */

.section--contact {
  padding-block: clamp(60px, 9vw, 132px);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--rule);
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__col--book {
  gap: 12px;
  align-items: flex-start;
}

.contact__value {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 36px);
  text-transform: uppercase;
  line-height: 1;
}

.contact__value--email {
  font-size: clamp(20px, 2.2vw, 32px);
  word-break: break-word;
}

/* --- location ------------------------------------------------------- */

.section--location {
  padding-top: 0;
  padding-bottom: clamp(56px, 8vw, 110px);
}

.location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.location__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location__address {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 0.92;
  max-width: 16ch;
}

.location__link {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--edge-bright);
  padding-bottom: 4px;
}

.location__map {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 1px solid var(--edge);
  background: var(--row-hover);
}

/* Leaflet divIcon: Leaflet positions and sizes the element itself, so this
   rule is looks-only. It sits outside the tile pane and dodges the invert
   filter, which is why the stock OSM marker isn't used. */
.location__pin {
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 4px rgba(10, 10, 10, 0.92),
    0 0 0 15px rgba(255, 59, 31, 0.2);
  pointer-events: none;
}

#location-map {
  width: 100%;
  height: 100%;
  background: var(--row-hover);
}

/* Darken the tiles only — controls and the pin keep their true colors. */
.location__map .leaflet-tile-pane {
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(1.05);
}

.location__map .leaflet-control-attribution {
  background: rgba(10, 10, 10, 0.8);
  color: var(--muted);
}

.location__map .leaflet-control-attribution a {
  color: var(--muted-bright);
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- small screens: keep the hero meta row from crowding ------------- */

@media (max-width: 560px) {
  .hero__meta {
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
  }

  .hero__rule {
    display: none;
  }
}

/* --- desktop: gym banner behind the hero ----------------------------- */

@media (min-width: 900px) {
  .hero {
    background-color: var(--ink);
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.22) 28%,
        rgba(10, 10, 10, 0.72) 74%,
        var(--ink) 100%
      ),
      linear-gradient(
        90deg,
        var(--ink) 0%,
        rgba(10, 10, 10, 0.9) 32%,
        rgba(10, 10, 10, 0.5) 62%,
        rgba(10, 10, 10, 0.3) 100%
      ),
      url("assets/gym-banner.webp");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
  }
}
