/* =========================================================================
   ARMORY FITNESS — Luxury Dark System
   ========================================================================= */

:root {
  /* Palette */
  --obsidian: #08080a;
  --ink:      #0f0f12;
  --carbon:   #16161a;
  --graphite: #242428;
  --steel:    #3a3a42;
  --fog:      #8a8a93;
  --bone:     #f2efe7;
  --paper:    #e6e1d4;
  --brass:    #B8333C;  /* Armory red — primary accent */
  --brass-lo: #8B252E;  /* Armory red darker */
  --ember:    #A23138;  /* deep crimson — from logo */

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", "Courier New", monospace;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: .01em;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 30; letter-spacing: -.02em; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(48px, 8vw, 140px); font-weight: 300; }
h2 { font-size: clamp(36px, 5.2vw, 84px); }
h3 { font-size: clamp(26px, 3vw, 44px); }
h4 { font-size: clamp(20px, 1.8vw, 28px); }
p  { margin: 0 0 1em; color: var(--paper); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px; background: var(--brass);
}

.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 300; }

a { color: inherit; text-decoration: none; }
a.arrow-link {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone); padding-bottom: .35rem;
  border-bottom: 1px solid var(--steel);
  transition: border-color .4s var(--ease), color .4s var(--ease), gap .4s var(--ease);
}
a.arrow-link:hover { border-color: var(--brass); color: var(--brass); gap: 1rem; }
a.arrow-link::after { content: "→"; font-size: 15px; transition: transform .4s var(--ease); }
a.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600;
  padding: 20px 42px;
  border: 1px solid var(--bone);
  background: var(--bone); color: var(--obsidian);
  cursor: pointer;
  transition: all .5s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: var(--obsidian); }
.btn--outline { background: transparent; color: var(--bone); }
.btn--outline:hover { background: var(--bone); color: var(--obsidian); }
.btn--dark { background: var(--obsidian); color: var(--bone); border-color: var(--obsidian); }
.btn--dark:hover { background: var(--brass); border-color: var(--brass); color: var(--obsidian); }

/* ---------- Container ---------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px clamp(28px, 4vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: rgba(8,8,10,.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--graphite);
  padding: 18px clamp(28px, 4vw, 72px);
}
.nav__brand {
  font-family: var(--serif); font-size: 22px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 400; color: var(--bone);
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 0;
}
.nav__brand .mark {
  width: 30px; height: 30px;
  border: 1px solid var(--brass);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0; color: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nav__brand .mark span { transform: rotate(-45deg); display: block; font-weight: 600; }
.nav__links {
  display: flex; align-items: center;
  gap: clamp(28px, 2.6vw, 44px);
  list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.nav__links a {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--bone);
  position: relative; padding: 6px 0;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--brass);
  transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--brass); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 14px 28px; font-size: 11px;
  flex-shrink: 0; margin-left: 6px;
  min-width: 110px; text-align: center; justify-content: center;
}

@media (max-width: 1180px){
  .nav__links{ gap: 22px; }
  .nav__brand{ letter-spacing: .22em; font-size: 20px; }
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--steel);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span { width: 18px; height: 1px; background: var(--bone); position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--bone);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
    position: fixed; inset: 68px 0 0 0; background: var(--obsidian);
    padding: 40px var(--gutter); z-index: 90;
  }
  .nav__links.open a { font-size: 18px; letter-spacing: .2em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; align-items: end;
  padding: 160px var(--gutter) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover; background-position: center;
  filter: brightness(.55) contrast(1.05) saturate(.85);
  transform: scale(1.04);
  animation: zoomIn 8s var(--ease-out) forwards;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(8,8,10,.55) 0%,
    rgba(8,8,10,.2) 40%,
    rgba(8,8,10,.85) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 70% 20%, rgba(184,152,90,.12), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 60px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-size: clamp(48px, 8vw, 140px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -.03em;
  text-transform: none;
  max-width: 1100px;
}
.hero__title em { font-style: italic; color: var(--brass); font-weight: 300; }
.hero__title .block {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise .9s var(--ease-out) forwards;
}
.hero__title .block:nth-child(1) { animation-delay: .15s; }
.hero__title .block:nth-child(2) { animation-delay: .35s; }
.hero__title .block:nth-child(3) { animation-delay: .55s; }
.hero__meta {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-end;
  min-width: 260px;
  opacity: 0; animation: rise 1s var(--ease-out) .9s forwards;
}
.hero__meta-text {
  font-size: 13px; color: var(--paper);
  line-height: 1.6;
  text-align: right;
  max-width: 320px;
}

.hero__chrome {
  position: absolute; top: 50%; left: 32px;
  transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fog);
  writing-mode: vertical-rl;
  z-index: 3;
}
@media (max-width: 1100px){
  .hero__chrome { left: 18px; font-size: 10px; }
}
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--fog);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 60px;
  background: linear-gradient(var(--fog), transparent);
  animation: pulseLine 2.4s ease-in-out infinite;
}

@keyframes zoomIn { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pulseLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vh, 160px) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 80px; align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head p { max-width: 46ch; color: var(--paper); font-size: 17px; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Pillars (3-col feature) ---------- */
.pillars { background: var(--obsidian); }
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}
.pillar {
  background: var(--obsidian);
  padding: 60px 48px;
  display: flex; flex-direction: column;
  min-height: 480px;
  position: relative;
  transition: background .6s var(--ease);
}
.pillar:hover { background: var(--ink); }
.pillar__num { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--brass); margin-bottom: 40px; }
.pillar__title { margin-bottom: 24px; }
.pillar__body { color: var(--paper); margin-bottom: auto; }
.pillar__link { margin-top: 36px; }
@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 360px; padding: 44px 28px; }
}

/* ---------- Manifesto / Editorial ---------- */
.manifesto {
  background: var(--ink);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.manifesto__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: center;
}
.manifesto__img {
  aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  position: relative;
}
.manifesto__img::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(184,152,90,.25);
  transform: translate(20px, 20px);
}
.manifesto__text h2 { margin-bottom: 30px; }
.manifesto__text p { font-size: 18px; line-height: 1.7; max-width: 52ch; }
.manifesto__text .pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35; color: var(--bone); margin: 40px 0; font-weight: 300;
  padding-left: 24px; border-left: 2px solid var(--brass);
}
@media (max-width: 900px) { .manifesto__grid { grid-template-columns: 1fr; gap: 50px; } }

/* ---------- Classes / Training List ---------- */
.list-rows { border-top: 1px solid var(--graphite); }
.list-row {
  display: grid; grid-template-columns: 100px 2fr 3fr 1fr auto;
  gap: 40px; align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--graphite);
  transition: background .4s var(--ease);
  position: relative;
}
.list-row:hover { background: rgba(184,152,90,.04); }
.list-row:hover .list-row__title { color: var(--brass); }
.list-row__num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--fog); }
.list-row__title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; transition: color .4s var(--ease); }
.list-row__desc { color: var(--paper); font-size: 14px; max-width: 52ch; }
.list-row__price { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--bone); }
.list-row__cta { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 900px) {
  .list-row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .list-row__num { display: none; }
}

/* ---------- Membership Cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  background: var(--ink);
  border: 1px solid var(--graphite);
  padding: 50px 40px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.tier:hover { transform: translateY(-6px); border-color: var(--brass); }
.tier--feature { border-color: var(--brass); background: linear-gradient(180deg, var(--carbon), var(--ink)); }
.tier__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--brass); color: var(--obsidian);
  padding: 6px 18px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
}
.tier__name { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-bottom: 28px; }
.tier__price { font-family: var(--serif); font-size: 72px; line-height: 1; font-weight: 300; }
.tier__price small { font-size: 16px; color: var(--fog); letter-spacing: .08em; font-family: var(--sans); }
.tier__kicker { color: var(--fog); font-size: 13px; margin: 8px 0 28px; letter-spacing: .02em; }
.tier__list { list-style: none; padding: 0; margin: 0 0 36px; font-size: 14px; }
.tier__list li {
  padding: 14px 0; border-top: 1px solid var(--graphite);
  color: var(--paper);
  display: flex; gap: 12px; align-items: baseline;
}
.tier__list li::before { content: "+"; color: var(--brass); font-family: var(--mono); }
.tier__cta { margin-top: auto; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Trainers ---------- */
.trainers { background: var(--ink); }
.trainers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.trainer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
.trainer__img {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  filter: grayscale(.2);
}
.trainer__name { font-family: var(--serif); font-size: 32px; font-weight: 300; }
.trainer__role { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin: 6px 0 20px; }
.trainer__bio { font-size: 14px; color: var(--paper); }
.trainer__certs { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trainer__certs li {
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
  border: 1px solid var(--graphite); padding: 6px 10px; color: var(--paper); text-transform: uppercase;
}
@media (max-width: 1100px) { .trainers__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .trainer { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Recovery / Wellness grid (info-only — no image slot) ---------- */
.wellness { background: var(--obsidian); }
.wellness__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.w-card {
  background: var(--ink);
  border: 1px solid var(--graphite);
  padding: 26px 28px;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
  min-height: 130px;
}
.w-card:hover { transform: translateY(-4px); border-color: var(--brass); }
.w-card__title {
  font-family: var(--serif); font-size: 24px; font-weight: 400; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  line-height: 1.2;
}
.w-card__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: #F5C97A; text-transform: uppercase; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.85);
  align-self: flex-start;
}
.w-card--lg { grid-column: span 3; min-height: 150px; }
.w-card--md { grid-column: span 2; min-height: 140px; }
.w-card--sm { grid-column: span 2; }
.w-card--bg { background-size: cover; background-position: center; color: var(--bone); }
.w-card--bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.35) 40%, rgba(8,8,10,.92) 100%),
    linear-gradient(0deg, rgba(8,8,10,.0), rgba(8,8,10,.0));
}
.w-card--bg .w-card__meta{
  background: rgba(8,8,10,.65);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245,201,122,.4);
}
.w-card--bg .w-card__title{
  text-shadow: 0 2px 12px rgba(0,0,0,.85);
}
.w-card--bg > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .wellness__grid { grid-template-columns: 1fr 1fr; }
  .w-card--lg, .w-card--md, .w-card--sm { grid-column: span 1; }
  .w-card--lg { grid-column: span 2; }
}

/* ---------- Stats / Proof ---------- */
.stats {
  background: var(--ink);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(56px, 6vw, 104px); font-weight: 300; color: var(--bone); line-height: 1; }
.stat__num small { font-size: .45em; color: var(--brass); vertical-align: top; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fog); margin-top: 16px; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 50px 20px; } }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--obsidian);
  position: relative; overflow: hidden;
}
.cta-strip__inner {
  text-align: center;
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-strip h2 { margin-bottom: 30px; font-size: clamp(40px, 6vw, 96px); }
.cta-strip p { font-size: 17px; color: var(--paper); margin-bottom: 50px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-strip__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.6) contrast(1.05);
}
.cta-strip__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,.35) 0%, rgba(8,8,10,.55) 40%, rgba(8,8,10,.8) 100%);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--obsidian);
  border-top: 1px solid var(--graphite);
  padding: 80px var(--gutter) 40px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; max-width: var(--container); margin: 0 auto;
}
.footer__brand { font-family: var(--serif); font-size: 32px; font-weight: 300; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 20px; }
.footer__tag { color: var(--fog); font-size: 13px; max-width: 34ch; }
.footer h5 { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--paper); font-size: 13px; transition: color .3s var(--ease); }
.footer ul a:hover { color: var(--brass); }
.footer__bar {
  max-width: var(--container); margin: 60px auto 0;
  border-top: 1px solid var(--graphite);
  padding-top: 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--fog); text-transform: uppercase;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page Headers (non-home) ---------- */
.page-head {
  padding: 200px var(--gutter) 120px;
  background: var(--obsidian);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(184,152,90,.1), transparent 60%);
}
.page-head__inner { max-width: var(--container); margin: 0 auto; position: relative; }
.page-head h1 { font-size: clamp(44px, 7vw, 112px); max-width: 16ch; font-weight: 300; }
.page-head p { max-width: 58ch; font-size: 17px; margin-top: 30px; color: var(--paper); }
.page-head .crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--brass); text-transform: uppercase; margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h3 { margin-bottom: 40px; }
.contact-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  padding: 20px 0; border-top: 1px solid var(--graphite);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: 1px solid var(--graphite); }
.contact-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.contact-row dd { margin: 0; color: var(--paper); font-size: 16px; }
.contact-row dd a:hover { color: var(--brass); }
.map-block {
  aspect-ratio: 4/5;
  background: var(--ink);
  border: 1px solid var(--graphite);
  overflow: hidden; position: relative;
}
.map-block iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.5); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Gallery marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 30px 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); }
.marquee__track {
  display: flex; gap: 60px;
  animation: scrollX 40s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee__item { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--fog); white-space: nowrap; }
.marquee__item::before { content: "✦"; color: var(--brass); margin-right: 60px; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .4s; }
.reveal-stagger.is-visible > *:nth-child(n+6) { opacity: 1; transform: translateY(0); transition-delay: .5s; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--graphite); margin: 0; }

::selection { background: var(--brass); color: var(--obsidian); }

/* ---------- Grain overlay (desktop only) ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
@media (max-width: 900px) { .grain { display: none; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .hero { min-height: 88vh; padding: 0 var(--gutter) 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .hero__meta { align-items: flex-start; }
  .hero__meta-text { text-align: left; max-width: 100%; }
  .hero__chrome { display: none; }
  .hero__title { font-size: clamp(48px, 12vw, 80px); line-height: 1; }
  .hero__scroll { display: none; }

  section { padding: 70px 0; }
  .page-head { padding: 140px var(--gutter) 70px; }
  .page-head h1 { font-size: clamp(40px, 10vw, 64px); }
  .section-head { margin-bottom: 40px; }

  .cta-strip__inner { padding: 80px var(--gutter); }
  .cta-strip h2 { font-size: clamp(36px, 10vw, 56px); }

  .marquee__item { font-size: 20px; }
  .marquee__item::before { margin-right: 40px; }

  .nav { padding: 14px var(--gutter); }
  .nav__brand { font-size: 17px; letter-spacing: .22em; }
  .nav__brand .mark { width: 24px; height: 24px; font-size: 10px; }

  .footer { padding: 60px var(--gutter) 30px; }
  .footer__grid { gap: 36px; }

  .btn { padding: 18px 28px; font-size: 11px; width: 100%; max-width: 360px; }
  .btn + .btn, .arrow-link { width: auto; }
  .pillar__link, .arrow-link { width: auto; }

  .tier { padding: 36px 26px; }
  .tier__price { font-size: 54px; }

  .trainer { gap: 18px; }
  .trainer__img { aspect-ratio: 4/4; }

  .stats__grid { gap: 40px 20px; }
  .list-row { gap: 6px; padding: 24px 0; }

  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8,8,10,.96); }

  .reveal, .reveal-stagger > * { transition-duration: .6s; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .nav__links.open { inset: 58px 0 0 0; padding: 28px var(--gutter); }
  .tiers, .pillars__grid, .wellness__grid { gap: 14px; }
  .tier__badge { font-size: 9px; padding: 5px 12px; }
}


/* ============================================================
   Inside the Armory - photo grid (placeholder-friendly)
   ============================================================ */
.gym-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  grid-auto-flow: dense;
  margin-top: 28px;
}
.gym-card{
  position: relative; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: #14181d;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden; cursor: pointer; display: block;
  text-decoration: none; color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.gym-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.gym-card::before{
  content:""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.0) 30%, rgba(0,0,0,.0) 55%, rgba(0,0,0,.92) 100%);
}
.gym-card.gym-card--tall{ grid-row: span 2; aspect-ratio: 3/4.6; }
.gym-card__label{
  position: absolute; left: 18px; bottom: 38px; z-index: 2;
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; color: #fff; line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}
.gym-card__caption{
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #F5C97A; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.gym-card--placeholder{
  background-color: #14181d;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%, transparent);
  background-size: 14px 14px;
  border: 1px dashed rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.gym-card--placeholder::before{ display: none; }
.gym-card--placeholder .gym-card__placeholder-icon{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -90%);
  font-family: 'Fraunces', serif; font-size: 48px; font-weight: 200;
  color: rgba(255,255,255,.22);
}
.gym-card--placeholder .gym-card__label{
  bottom: 38px; color: rgba(255,255,255,.7);
}
.gym-card--placeholder .gym-card__caption{ color: rgba(255,255,255,.4); }
@media (max-width: 900px){
  .gym-grid{ grid-template-columns: 1fr 1fr; }
  .gym-card.gym-card--lg{ grid-column: span 2; }
}
@media (max-width: 540px){
  .gym-grid{ grid-template-columns: 1fr; gap: 12px; }
  .gym-card, .gym-card.gym-card--lg{ grid-column: span 1; aspect-ratio: 4/3; }
  .gym-card__label{ font-size: 19px; bottom: 36px; }
  .gym-card__caption{ font-size: 9px; }
}

/* Blackbox credit footer line */
.footer__credit{
  text-align: center;
  padding: 18px 0 6px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 600;
  border-top: 1px solid var(--graphite);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.footer__credit a{
  color: var(--brass);
  font-weight: 700;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  text-decoration: none;
  transition: color .2s;
}
.footer__credit a:hover{ color: #F5C97A; border-bottom-color: #F5C97A; }

/* ========================= CONTACT FORM (footer) ========================= */
.contact-form {
  background: var(--ink);
  border-top: 1px solid var(--graphite);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.contact-form__inner { max-width: 880px; margin: 0 auto; }
.contact-form__inner h2 { font-size: clamp(28px, 3.5vw, 48px); color: var(--bone); margin: 0 0 12px; }
.contact-form__sub { color: var(--paper); font-size: 15px; margin: 0 0 32px; max-width: 540px; }
.cform { display: grid; gap: 18px; margin-top: 28px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .cform__row { grid-template-columns: 1fr; } }
.cform label { display: flex; flex-direction: column; gap: 8px; }
.cform label span { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fog); font-weight: 500; }
.cform input, .cform textarea {
  background: var(--carbon); border: 1px solid var(--steel); color: var(--bone);
  font-family: var(--sans); font-size: 15px; padding: 14px 16px; border-radius: 2px;
  transition: border-color .25s var(--ease), background .25s var(--ease); font-weight: 300;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brass); background: var(--graphite); }
.cform textarea { resize: vertical; min-height: 110px; font-family: var(--sans); }
.cform__full { width: 100%; }
.cform button[type="submit"] {
  background: var(--brass); color: var(--bone); border: 1px solid var(--brass);
  margin-top: 8px; justify-self: start; cursor: pointer;
}
.cform button[type="submit"]:hover { background: var(--brass-lo); border-color: var(--brass-lo); }
.nav__contact {
  padding: 14px 28px; font-size: 11px;
  flex-shrink: 0; margin-right: 0;
  min-width: 110px; text-align: center; justify-content: center;
}
@media (max-width: 900px) { .nav__contact { display: none; } }

/* tight Contact+Join button pair in nav */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav__actions .nav__contact, .nav__actions .nav__cta { margin: 0; }
@media (max-width: 900px) { .nav__actions .nav__contact { display: none; } }

/* ================== STATS BAR (count-up) ================== */
.stats-bar {
  background: linear-gradient(180deg, var(--ink) 0%, var(--obsidian) 100%);
  border-top: 1px solid rgba(184,51,60,.18);
  border-bottom: 1px solid rgba(184,51,60,.18);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(ellipse 800px 200px at 50% 50%, rgba(184,51,60,.08), transparent 70%);
  pointer-events:none;
}
.stats-bar__grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  text-align: center;
}
@media (max-width: 720px) { .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 0%, var(--brass) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.stat__suffix {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 60px);
  color: var(--brass);
  margin-left: 4px;
}
.stat__label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 14px;
  font-weight: 500;
}

/* ================== Magnetic + shimmer button effects ================== */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform: skewX(-22deg);
  transition: left .9s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 140%; }
@media (hover: hover) {
  .btn:active { transform: scale(.97); transition: transform .12s ease; }
}

/* Magnetic hover (set via JS via CSS vars --mx --my) */
@media (hover: hover) and (pointer: fine) {
  .btn[data-magnetic],
  .nav__cta[data-magnetic],
  .nav__contact[data-magnetic] {
    transform: translate3d(var(--mx,0), var(--my,0), 0);
    transition: transform .25s var(--ease), background .5s var(--ease), color .5s var(--ease);
  }
}

/* ================== Card tilt + glow ================== */
@media (hover: hover) and (pointer: fine) {
  .gym-card, .w-card, .trainer, .pillar, .tier {
    transform-style: preserve-3d;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    will-change: transform;
  }
  .gym-card:hover, .w-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 60px -20px rgba(184,51,60,.25), 0 0 0 1px rgba(184,51,60,.35) inset;
  }
  .pillar:hover, .tier:hover {
    transform: translateY(-3px);
    border-color: var(--brass);
  }
  .trainer:hover .trainer__img {
    transform: scale(1.04);
    transition: transform .9s var(--ease);
  }
  .trainer__img { transition: transform .6s var(--ease); }
}

/* ================== Soft glow ring on focus ================== */
.btn:focus-visible, .cform input:focus-visible, .cform textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,51,60,.35);
}

/* ================== Animated underline on nav links ================== */
@media (hover: hover) {
  .nav__links a { position: relative; }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease);
  }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ================== Scroll-progress bar ================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--ember) 100%);
  width: 0%;
  z-index: 200;
  transition: width .08s linear;
  pointer-events: none;
}

/* ================== Reveal upgrade (smoother + mobile-aware) ================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { transition: none; transform: none; opacity: 1; }
}

/* ================== Mobile polish ================== */
@media (max-width: 720px) {
  .btn { font-size: 11px; padding: 16px 24px; letter-spacing: .2em; }
  .nav__actions { gap: 8px; }
  .stat__num { font-size: clamp(44px, 14vw, 64px); }
  .stat__label { font-size: 10px; letter-spacing: .22em; }
}


/* ================== MOBILE NAV: Book button center-stage ================== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    justify-content: space-between;
  }
  /* Show the Book button only on mobile; hide contact */
  .nav__contact { display: none !important; }
  .nav__actions {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    gap: 0 !important;
  }
  .nav__cta {
    display: inline-flex !important;
    padding: 12px 24px;
    font-size: 11px;
    letter-spacing: .22em;
    min-width: 0;
    margin: 0 !important;
    background: var(--brass);
    color: var(--bone);
    border-color: var(--brass);
    box-shadow: 0 6px 18px -6px rgba(184,51,60,.55);
  }
  .nav__cta:hover, .nav__cta:active {
    background: var(--brass-lo);
    border-color: var(--brass-lo);
    color: var(--bone);
  }
  /* Tighten on very small screens */
  .nav__brand img { height: 48px !important; }
}
@media (max-width: 480px) {
  .nav__cta { padding: 10px 18px; font-size: 10px; letter-spacing: .2em; }
  .nav__brand img { height: 42px !important; }
}

/* ================== MANIFESTO MOBILE FIX (nutrition + home) ================== */
@media (max-width: 900px) {
  .manifesto__grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    align-items: stretch !important;
  }
  .manifesto__img {
    width: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
  }
  .manifesto__text h2 { font-size: clamp(28px, 7vw, 40px); }
  .manifesto__text p { font-size: 16px; max-width: 100%; }
}

/* ================== LOGO POP — drop shadow + subtle brightness lift ================== */
.nav__brand img {
  filter:
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.22))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45))
    brightness(1.08)
    contrast(1.05);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.nav__brand:hover img {
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.32))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5))
    brightness(1.12)
    contrast(1.08);
  transform: scale(1.02);
}
/* Slightly stronger pop on mobile since it sits over the hero photo */
@media (max-width: 900px) {
  .nav__brand img {
    filter:
      drop-shadow(0 0 16px rgba(255, 255, 255, 0.28))
      drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55))
      brightness(1.1)
      contrast(1.06);
  }
}

/* ================== MOBILE POLISH PASS — comprehensive ================== */

/* Gym grid: stack to 1 column on phones, kill the tall row span so Ferndale becomes a regular tile */
@media (max-width: 700px) {
  .gym-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gym-card.gym-card--tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
  /* On mobile, Ferndale should fit naturally — let the photo show top portion */
  .gym-card[style*="outside-logo"] {
    background-size: cover !important;
    background-position: center !important;
  }
  .gym-card__label { font-size: 18px; bottom: 32px; left: 14px; }
  .gym-card__caption { font-size: 10px; left: 14px; bottom: 12px; }
}

/* Schedule table: horizontal scroll wrapper on mobile so wide tables don't break layout */
.sched-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .sched-table { min-width: 640px; font-size: 13px; }
  .sched-table th, .sched-table td { padding: 12px 8px; }
  .sched-table .cell strong { font-size: 13px; }
  .sched-table .cell em { font-size: 11px; }
}

/* Manifesto: tighten on phones */
@media (max-width: 600px) {
  .manifesto__grid { gap: 24px !important; }
  .manifesto__img { min-height: 240px !important; }
  .manifesto__text .pull { font-size: 18px !important; padding-left: 16px; margin: 24px 0 !important; }
}

/* CTA strip: tighter padding + readable headline on tiny screens */
@media (max-width: 600px) {
  .cta-strip__inner { padding: 56px 20px !important; }
  .cta-strip h2 { font-size: clamp(28px, 9vw, 44px) !important; line-height: 1.05; }
  .cta-strip p { font-size: 15px !important; margin-bottom: 32px !important; }
}

/* Contact form: edge-to-edge on phones, larger tap targets */
@media (max-width: 600px) {
  .contact-form { padding: 48px 20px !important; }
  .contact-form__inner h2 { font-size: clamp(24px, 7vw, 36px) !important; }
  .cform input, .cform textarea { padding: 16px 14px; font-size: 16px; /* prevents iOS zoom on focus */ }
  .cform button[type="submit"] { width: 100%; padding: 18px 24px; }
}

/* Trainer cards: tighter on phones */
@media (max-width: 600px) {
  .trainer { padding: 0; gap: 16px; }
  .trainer__img { aspect-ratio: 4/4; }
  .trainer__name { font-size: 22px; }
  .trainer__bio { font-size: 14px; line-height: 1.6; }
  .trainer__certs { font-size: 11px; }
}

/* Hero meta + scroll cue: hide scroll hint on phones */
@media (max-width: 700px) {
  .hero__scroll { display: none; }
  .hero__chrome { font-size: 9px; letter-spacing: .2em; padding: 14px 18px; }
  .hero__meta-text { font-size: 14px; line-height: 1.55; }
}

/* Marquee: smaller items on mobile */
@media (max-width: 600px) {
  .marquee__item { font-size: 18px !important; }
  .marquee__item::before { margin-right: 28px !important; }
}

/* Tiers / pricing: full-width cards, comfortable padding */
@media (max-width: 600px) {
  .tier { padding: 28px 22px; }
  .tier__price { font-size: 40px; }
  .tier__name { font-size: 18px; }
}

/* List rows (classes page) — compact stack */
@media (max-width: 600px) {
  .list-row { grid-template-columns: 60px 1fr; gap: 8px 14px; }
  .list-row__num { font-size: 11px; }
  .list-row__title { font-size: 18px; }
  .list-row__desc { grid-column: 1 / -1; font-size: 13px; }
  .list-row__price, .list-row__cta { display: none; }
}

/* Section padding tightening on phones */
@media (max-width: 600px) {
  section { padding: 56px 0 !important; }
  .section-head { margin-bottom: 28px !important; }
}

/* Avoid horizontal scroll on the whole page */
html, body { overflow-x: hidden; }

/* iOS smooth scrolling */
html { -webkit-overflow-scrolling: touch; }

/* Tap highlight: subtle Armory-red */
* { -webkit-tap-highlight-color: rgba(184, 51, 60, .25); }
