/* ==========================================================================
   Apollo Steel — styles
   Tokens first; every color, font and spacing value comes from :root.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Color. --ink is close to the original logo background
     (#0C1117 / #0E1217); the web logos are transparent. */
  --ink: #0d1117;
  --charcoal: #161b22;
  --rule: #262c35;
  --rule-strong: #3a414c;
  --ivory: #f1efe8;
  --gray: #a7a49c;          /* secondary text: ~7.8:1 on --ink */
  --ember: #f36532;         /* ~6.1:1 on --ink */
  --ember-hover: #ff7a4a;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-stretch: 112%;

  --fs-hero: clamp(2.75rem, 1.6rem + 5.6vw, 6.25rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 76rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ivory); color: var(--ink);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared pieces ---------- */
.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.eyebrow::before,
.section-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--ember);
  flex: none;
}
.intro {
  font-size: var(--fs-lede);
  color: var(--gray);
  max-width: 34rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions:empty { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover { background: var(--ember-hover); }
.btn-primary::after { content: "→"; font-weight: 500; }
.btn-ghost { border-color: var(--rule-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand { display: block; flex: none; }
.brand img { width: clamp(170px, 40vw, 230px); }

.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--gray);
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav .nav-cta {
  color: var(--ivory);
  border: 1px solid var(--rule-strong);
  padding: 0.5rem 1rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { border-color: var(--ember); }

.nav-toggle { display: none; }

@media (max-width: 47.99rem) {
  /* Without JS the nav simply wraps under the logo. */
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 0.75rem; }
  .site-nav ul { flex-wrap: wrap; gap: 0.25rem 1.25rem; }

  .js .header-inner { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    margin-right: -0.5rem;
    background: none;
    border: 0;
    color: var(--ivory);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-top: 1px solid var(--rule); }
  .js .site-nav a { display: block; padding: 1rem 0; font-size: 1.125rem; color: var(--ivory); }
  .js .site-nav .nav-cta { border: 0; padding: 1rem 0; color: var(--ember); }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 2rem + 6vw, 7rem); }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-hero);
  max-width: 11ch;
  margin-bottom: 1.75rem;
}
.hero .lede {
  font-size: var(--fs-lede);
  color: var(--gray);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.hero-mark { justify-self: center; width: min(70vw, 22rem); }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 3rem + 5vw, 7rem);
  border-top: 1px solid var(--rule);
}
.hero-strip li {
  padding: 1.25rem 0 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  color: var(--gray);
}
.hero-strip li + li { padding-left: clamp(0.75rem, 0.4rem + 1.5vw, 1.25rem); border-left: 1px solid var(--rule); }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .hero-mark { justify-self: end; width: 100%; max-width: 30rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }

/* What we do: heading left, ruled list right */
.split { display: grid; gap: 3rem; }
.offerings { border-top: 1px solid var(--rule-strong); }
.offerings li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
.offerings .num {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ember);
  line-height: 1.4;
}
.offerings h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.offerings p { color: var(--gray); max-width: 34rem; }

@media (min-width: 60rem) {
  .split { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .offerings li { grid-template-columns: 5rem 1fr; padding-block: 2.5rem; }
}

/* How we work: the production line */
.section-line {
  background: var(--charcoal);
  border-block: 1px solid var(--rule);
}
.line-head { max-width: 44rem; margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); }

.stations {
  --marker: 1.125rem;
  position: relative;
  display: grid;
  gap: 2.75rem;
  padding-left: 2.75rem;
}
/* the line: vertical on mobile */
.stations::before {
  content: "";
  position: absolute;
  left: calc(var(--marker) / 2 - 1px);
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(var(--ember), var(--ember)) top / 2px 2.5rem no-repeat, var(--rule-strong);
}
.station { position: relative; }
.station-marker {
  position: absolute;
  left: -2.75rem;
  top: 0.15rem;
  width: var(--marker);
  height: var(--marker);
  background: var(--charcoal);
  border: 2px solid var(--ember);
  transform: rotate(45deg) scale(0.8);
}
.station:last-child .station-marker { background: var(--ember); }
.station-num {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ember);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.station h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.station p:not(.station-num) { color: var(--gray); max-width: 22rem; }

@media (min-width: 60rem) {
  .stations {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-left: 0;
    padding-top: 3rem;
  }
  /* the line: horizontal on desktop */
  .stations::before {
    left: 0; right: 0;
    top: calc(var(--marker) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--ember)) left / 4rem 2px no-repeat, var(--rule-strong);
  }
  .station-marker { left: 0; top: -3rem; }
  .station { padding-right: 1rem; }
}

/* Our story: quieter */
.story-grid { display: grid; gap: 0.5rem; align-items: start; }
.story-body { max-width: 42rem; }
.story h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 1.75rem; }
.story .muted-line { color: var(--gray); }
.story-body p {
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--ivory);
  padding-left: 1.5rem;
  border-left: 2px solid var(--ember);
}
@media (min-width: 60rem) {
  .story-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .story .section-label { margin-top: 0.75rem; }
}

/* Contact */
.contact { border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.75rem); max-width: 12ch; }
.contact-body .intro { margin-bottom: 2rem; color: var(--ivory); }
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; }
  .contact h2 { margin-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
  font-size: var(--fs-small);
  color: var(--gray);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
.footer-name {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ivory);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 3rem; }
  .site-footer nav ul { justify-content: center; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
