/* ============================================
   TOKENS
   ============================================ */
:root {
  --asphalt: #14100D;
  --asphalt-2: #1D1814;
  --panel: #211C17;
  --concrete: #8C867C;
  --concrete-light: #B7B1A6;
  --chalk: #F4F0E8;
  --signal: #FF4E1F;
  --signal-dim: #C93F19;
  --tape: #E8C14A;

  --display: 'Oswald', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --body: 'Archivo', sans-serif;

  --wrap: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.mono { font-family: var(--mono); letter-spacing: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* film grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 500;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--signal); color: var(--chalk); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 3px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(20, 16, 13, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(244,240,232,0.08);
  padding: 12px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  display: flex; flex-direction: column; line-height: 1;
}
.logo-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete-light);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:not(.nav-cta):after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--chalk); }
.nav a:not(.nav-cta):hover:after { transform: scaleX(1); }
.nav-cta {
  background: var(--signal);
  color: var(--asphalt) !important;
  padding: 9px 16px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--tape); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--chalk); display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(35%) contrast(1.08); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,13,0.55) 0%, rgba(20,16,13,0.35) 35%, rgba(20,16,13,0.88) 82%, var(--asphalt) 100%),
    linear-gradient(90deg, rgba(20,16,13,0.75) 0%, rgba(20,16,13,0.15) 55%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-top: 170px; padding-bottom: 90px;
}
.bib {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid rgba(244,240,232,0.35);
  padding: 7px 14px;
  margin-bottom: 28px;
}
.bib-no {
  font-family: var(--mono); color: var(--signal); font-weight: 600; font-size: 13px;
}
.bib-loc {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--concrete-light);
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.hero-title-accent { color: var(--signal); }
.hero-sub {
  max-width: 520px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--concrete-light);
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: var(--asphalt); }
.btn-primary:hover { background: var(--tape); }
.btn-ghost { border-color: rgba(244,240,232,0.4); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk); background: rgba(244,240,232,0.06); }
.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; }

/* scrolling station strip */
.split-strip {
  position: relative; z-index: 1;
  width: 100%;
  background: var(--signal);
  overflow: hidden;
  padding: 10px 0;
}
.split-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: scrollLeft 32s linear infinite;
  width: max-content;
}
.split-track span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--asphalt);
}
.split-track span:not(:last-child)::after {
  content: "//"; margin-left: 40px; color: rgba(20,16,13,0.5);
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION SHARED
   ============================================ */
section { padding: 110px 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin: 0 0 18px;
  font-weight: 600;
}
.eyebrow-light { color: var(--tape); }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 50px;
  color: var(--asphalt);
}
.section-title-light { color: var(--chalk); }
.lead { font-size: 19px; color: var(--asphalt); }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--chalk); color: var(--asphalt); padding-top: 130px; }
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; height: 560px; object-fit: cover; }
.about-media-tag {
  position: absolute; left: -1px; bottom: -1px;
  background: var(--asphalt); color: var(--chalk);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.about-media-tag .mono { font-size: 10px; color: var(--concrete); }
.about-media-tag .mono-big { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--signal); }
.about-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px,3.6vw,44px); text-transform: uppercase; line-height: 1.05; margin: 0 0 22px; color: var(--asphalt); }
.about-copy .lead { font-weight: 600; margin: 0 0 16px; }
.about-copy p { color: #4A443C; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(20,16,13,0.25); padding: 8px 14px; color: var(--asphalt);
}

/* ============================================
   TRAINING STYLE
   ============================================ */
.style { background: var(--asphalt-2); text-align: center; }
.style-quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.3;
  max-width: 850px; margin: 0 auto 34px;
  text-transform: none;
}
.style-quote em { color: var(--signal); font-style: normal; }
.style-body { max-width: 640px; margin: 0 auto; color: var(--concrete-light); font-size: 17px; }

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--chalk); color: var(--asphalt); padding-top: 100px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(20,16,13,0.15); }
.service-card { background: var(--chalk); padding: 44px 40px; position: relative; }
.service-card-alt { background: var(--asphalt); color: var(--chalk); }
.service-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.service-head .mono { font-size: 11px; color: var(--signal); font-weight: 600; }
.service-card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 26px; margin: 0; }
.service-card p { color: #4A443C; margin: 0 0 14px; }
.service-card-alt p { color: var(--concrete-light); }
.cap-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--signal); color: var(--asphalt); padding: 5px 10px; font-weight: 600;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--chalk); color: var(--asphalt); padding-bottom: 80px; }
.gallery .wrap { padding-bottom: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 320px 320px;
  grid-template-areas:
    "a a b c"
    "a a d e";
  gap: 6px;
  padding: 0 var(--edge);
  max-width: var(--wrap);
  margin: 0 auto;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); transition: filter 0.3s ease; }
.gallery-grid img:hover { filter: grayscale(0%); }
.gallery-grid img:nth-child(1) { grid-area: a; }
.gallery-grid img:nth-child(2) { grid-area: b; }
.gallery-grid img:nth-child(3) { grid-area: c; }
.gallery-grid img:nth-child(4) { grid-area: d; }
.gallery-grid img:nth-child(5) { grid-area: e; }

/* ============================================
   QUALIFICATIONS
   ============================================ */
.quals { background: var(--asphalt); }
.quals-board { border-top: 1px solid rgba(244,240,232,0.15); }
.quals-row {
  display: grid; grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(244,240,232,0.15);
}
.quals-code {
  font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--signal);
}
.quals-name {
  font-family: var(--display); font-weight: 500; font-size: clamp(18px,2.4vw,26px); text-transform: uppercase; letter-spacing: 0.01em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--chalk); color: var(--asphalt); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.contact-intro .section-title { margin-bottom: 22px; }
.contact-intro .lead { color: #4A443C; }
.contact-location {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(20,16,13,0.15);
  font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase;
}
.contact-location .mono { font-size: 11px; color: var(--signal); display: block; margin-bottom: 6px; font-family: var(--mono); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.hidden-field { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-dim); font-weight: 600;
}
.field input, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--asphalt);
  background: transparent; border: none; border-bottom: 1.5px solid rgba(20,16,13,0.3);
  padding: 10px 2px; outline: none; resize: vertical;
  transition: border-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(20,16,13,0.35); }
.field input:focus, .field textarea:focus { border-color: var(--signal); }
.contact-form .btn-primary { margin-top: 10px; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--signal-dim); min-height: 16px; margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--asphalt-2); padding: 50px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-copy { color: var(--concrete); font-size: 13px; margin: 0; }
.back-top { font-family: var(--mono); font-size: 12px; color: var(--concrete-light); letter-spacing: 0.06em; }
.back-top:hover { color: var(--signal); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { height: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--asphalt); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 26px;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 15px; }
  .nav-cta { margin-top: 10px; }
  .nav-toggle { display: flex; z-index: 101; }
  section { padding: 70px 0; }
  .hero-content { padding-top: 130px; padding-bottom: 60px; }
  .quals-row { grid-template-columns: 60px 1fr; }
}
