/* IRONFIT — static export stylesheet. Design tokens first, then layout, then components. */
:root {
  --ink: #0f0e0d;
  --charcoal: #1b1a18;
  --raise: #24221f;
  --bone: #f2eee6;
  --muted: #b3ada4;
  --dim: #3a3733;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #f2541b;
  --on-orange: #0f0e0d;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1440px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Type */
.display {
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.045em;
  line-height: 0.86; text-transform: uppercase;
}
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-tag { display: inline-block; border: 1px solid currentColor; padding: 0.4rem 0.75rem; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(6rem, 12vw, 10rem) 0; }
.section--alt { background: var(--charcoal); border-top: 1px solid var(--line); }
.grid12 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid12 { grid-template-columns: repeat(12, 1fr); } }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 60; background: var(--orange); color: var(--on-orange); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
}
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.5s, border-color 0.5s; border-bottom: 1px solid transparent; }
.header.is-solid { background: rgba(15, 14, 13, 0.9); backdrop-filter: blur(12px); border-color: var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .header__bar { height: 5rem; } }
.logo { font-size: 1.5rem; }
.nav { display: none; }
.nav ul { display: flex; gap: 2rem; }
.nav a { color: var(--muted); transition: color 0.3s; }
.nav a:hover { color: var(--bone); }
.header__cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1024px) {
  .nav, .header__cta { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}
.mobile-nav { height: calc(100dvh - 4rem); background: var(--ink); padding: 0 var(--gutter) 2.5rem; overflow-y: auto; }
.mobile-nav ul { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; }
.mobile-nav .display { font-size: 3rem; }
.mobile-nav .btn { margin-top: 2rem; width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; animation: zoom 18s var(--ease) forwards; }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--ink) 6%, rgba(15,14,13,0.55) 48%, transparent 80%),
  linear-gradient(0deg, var(--ink) 0%, transparent 38%); }
.hero__content { position: relative; width: 100%; padding-top: 8rem; padding-bottom: clamp(3rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(4rem, 13vw, 11.5rem); margin-top: 1.5rem; }
.hero__foot { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 2rem; }
.hero__foot p { max-width: 28rem; font-size: 1.125rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 768px) {
  .hero__foot { grid-template-columns: 1fr auto; align-items: start; }
}
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.light-bar { animation: flicker 6s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 0.6; } 94% { opacity: 1; } 96% { opacity: 0.75; } }

/* Marquee */
.marquee { background: var(--orange); color: var(--on-orange); padding: 1.25rem 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; flex-shrink: 0; }
.marquee__row span.display { font-size: clamp(3rem, 6vw, 4.5rem); padding: 0 2rem; }
.marquee__row i { width: 0.75rem; height: 0.75rem; background: var(--on-orange); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section head */
.shead { margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.shead h2 { font-size: clamp(3.5rem, 9vw, 8rem); }
.shead .lede { font-size: 1.125rem; color: var(--muted); }
@media (min-width: 768px) {
  .shead > .eyebrow { grid-column: 1 / span 3; }
  .shead h2 { grid-column: 4 / span 9; }
  .shead .lede { grid-column: 4 / span 5; }
}

/* Method */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--ink); padding: clamp(2rem, 3vw, 2.5rem); transition: background 0.4s; }
.pillar:hover { background: var(--charcoal); }
.pillar__n { font-size: 6rem; color: var(--dim); transition: color 0.4s; }
.pillar:hover .pillar__n { color: var(--orange); }
.pillar h3 { font-size: 2.25rem; margin-top: 2.5rem; }
.pillar p { margin-top: 1rem; color: var(--muted); }

/* Programs */
.programs { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .programs { grid-template-columns: repeat(12, 1fr); }
  .programs .feature { grid-column: 1 / -1; }
  .span5 { grid-column: span 5; } .span7 { grid-column: span 7; }
}
.feature { position: relative; overflow: hidden; height: clamp(18rem, 55vh, 34rem); background: var(--ink); }
.feature svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.feature:hover svg { transform: scale(1.04); }
.feature figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(15,14,13,0.85); padding: 0.5rem 0.75rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  min-height: 18rem; padding: 2rem; background: var(--ink); border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.4s;
}
.pcard:hover { border-color: var(--orange); }
.pcard__top { display: flex; justify-content: space-between; color: var(--muted); }
.pcard__top svg { width: 1.5rem; height: 1.5rem; transition: transform 0.5s var(--ease), color 0.3s; }
.pcard:hover .pcard__top svg { transform: rotate(45deg); color: var(--orange); }
.pcard h3 { font-size: clamp(3rem, 5vw, 3.75rem); margin-top: 0.75rem; }
.pcard p { margin-top: 1rem; max-width: 24rem; color: var(--muted); }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.pcard:hover::after { transform: scaleX(1); }

/* Coaches */
.coaches { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .coaches { grid-template-columns: repeat(12, 1fr); }
  .coach:first-child { grid-column: 1 / span 6; }
  .coach:last-child { grid-column: 8 / span 5; margin-top: 10rem; }
}
.coach__art { aspect-ratio: 3 / 4; overflow: hidden; background: var(--charcoal); }
.coach__art svg { width: 100%; height: 100%; filter: grayscale(1); transition: filter 0.7s, transform 0.7s var(--ease); }
.coach:hover .coach__art svg { filter: none; transform: scale(1.03); }
.coach__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.coach h3 { font-size: 3rem; margin-top: 0.5rem; }
.coach__n { font-size: 1.875rem; color: var(--dim); }
.coach .eyebrow.muted { margin-top: 1rem; }

/* Pricing */
.plans { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan { border-right: 1px solid var(--line); } .plan:last-child { border-right: 0; } }
.plan { display: flex; flex-direction: column; padding: clamp(2rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.plan--featured { background: var(--orange); color: var(--on-orange); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; }
.plan h3 { font-size: 1.875rem; }
.plan__note { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.plan--featured .plan__note { color: inherit; }
.plan__price { font-size: 6rem; margin-top: 2.5rem; }
.plan__price sup { font-size: 1.875rem; vertical-align: top; }
.plan__price small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0; margin-left: 0.4rem; }
.plan ul { flex: 1; margin-top: 2.5rem; }
.plan li { display: flex; gap: 0.75rem; padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid var(--line); }
.plan--featured li { border-color: rgba(15,14,13,0.25); }
.plan li::before { content: "+"; font-weight: 700; }
.plan .btn { margin-top: 2.5rem; }
.plan:not(.plan--featured) .btn:hover { border-color: var(--orange); color: var(--orange); }

/* Schedule */
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab {
  position: relative; background: none; border: 0; cursor: pointer; color: var(--muted);
  padding: 1rem 1.25rem; font-size: clamp(1.5rem, 2.5vw, 1.875rem); transition: color 0.3s;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--bone); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.slot { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: background 0.3s; animation: fade 0.5s var(--ease); }
.slot:hover { background: var(--charcoal); }
.slot__time { font-family: var(--font-mono); font-size: 1.125rem; color: var(--orange); }
.slot__name { font-size: clamp(1.875rem, 3vw, 2.25rem); }
.slot__coach { display: none; }
@media (min-width: 768px) { .slot { grid-template-columns: 10rem 1fr 10rem auto; padding: 1.5rem 1rem; } .slot__coach { display: block; } }
@keyframes fade { from { opacity: 0; } }

/* Testimonials */
.voices__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 3.5rem; }
.voices { display: grid; gap: 4rem; }
@media (min-width: 768px) {
  .voices { grid-template-columns: repeat(12, 1fr); }
  .voice:first-child { grid-column: 1 / span 7; }
  .voice:last-child { grid-column: 8 / span 5; margin-top: 8rem; }
}
.voice__mark { font-size: 6rem; line-height: 1; color: var(--orange); }
.voice blockquote { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 500; line-height: 1.3; margin-top: 0.5rem; }
.voice figcaption { margin-top: 1.5rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .faq { margin-left: 25%; } }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; transition: color 0.3s;
}
.faq__q:hover { color: var(--orange); }
.faq__icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] { color: var(--bone); }
.faq__q[aria-expanded="true"] .faq__icon { color: var(--orange); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 3rem 1.5rem 0; font-size: 1.125rem; color: var(--muted); }

/* Contact */
.contact { background: var(--orange); color: var(--on-orange); }
.contact h2 { font-size: clamp(4rem, 9vw, 8rem); margin-top: 1.5rem; }
.contact__info { margin-top: 2rem; max-width: 28rem; font-size: 1.125rem; }
@media (min-width: 768px) { .contact__copy { grid-column: 1 / span 7; } .contact form { grid-column: 8 / span 5; } }
.contact form .demo-tag { margin-bottom: 1.5rem; }
.field { width: 100%; padding: 1rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(15,14,13,0.4); font-size: 1.125rem; outline: none; border-radius: 0; transition: border-color 0.3s; appearance: none; }
.field::placeholder { color: rgba(15,14,13,0.7); }
.field:focus { border-color: var(--on-orange); }
.contact .btn { margin-top: 2.5rem; padding: 1.25rem 1.5rem; }
.contact .btn:focus-visible { outline-color: var(--ink); }
.status { margin-top: 1rem; min-height: 1.5rem; font-weight: 500; }

/* Footer */
.footer { padding-top: 5rem; padding-bottom: 2.5rem; }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.footer__top ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.footer a.eyebrow { color: var(--muted); transition: color 0.3s; }
.footer a.eyebrow:hover { color: var(--orange); }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: repeat(12, 1fr); }
  .footer__top > p { grid-column: 1 / span 4; max-width: 20rem; }
  .footer__top nav { grid-column: 7 / span 4; }
  .footer__top > a { grid-column: 11 / span 2; text-align: right; }
}
.footer__word { font-size: clamp(5rem, 22vw, 19rem); line-height: 0.8; color: var(--raise); margin-top: 2.5rem; user-select: none; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; color: var(--muted); }

/* Reveal (only hidden once JS confirms it's running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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