/* =====================================================================
   Scott's Used Parts — spec preview by Woodcrest Marketing
   Static, self-contained, system fonts only.
   ===================================================================== */

:root {
  /* Brand */
  --ink:        #15171c;   /* near-black graphite */
  --graphite:   #22262e;
  --steel:      #3a4250;
  --steel-2:    #5b6472;
  --fog:        #eceef1;
  --paper:      #f7f6f3;   /* warm off-white */
  --white:      #ffffff;
  --ember:      #e8551f;   /* accent */
  --ember-deep: #c0400f;
  --amber:      #f0a500;

  /* Ink tints */
  --line:       rgba(255,255,255,.12);
  --line-dark:  rgba(21,23,28,.10);

  /* Type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(.72rem, .68rem + .2vw, .82rem);
  --fs-body:    clamp(1rem, .96rem + .25vw, 1.12rem);
  --fs-lead:    clamp(1.15rem, 1.02rem + .6vw, 1.42rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + .9vw, 1.6rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.9vw, 3.5rem);
  --fs-display: clamp(2.65rem, 1.5rem + 5.4vw, 5.7rem);
  --fs-stat:    clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem);

  /* Space */
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1240px;
  --section-y: clamp(3.5rem, 7vw, 7rem);

  --radius: 4px;
  --shadow: 0 24px 60px -24px rgba(21,23,28,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }

::selection { background: var(--ember); color: #fff; }

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

/* --------------------------------------------------------------------- */
/* Layout helpers                                                        */
/* --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--ember);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

/* Buttons */
.btn {
  --pad-y: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: var(--pad-y) 1.7rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(232,85,31,.9);
}
.btn--primary:hover { background: var(--ember-deep); box-shadow: 0 20px 40px -14px rgba(232,85,31,.95); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: var(--graphite); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------- */
/* Header                                                                */
/* --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 44px; width: auto; }
.brand__name {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1.08rem;
  line-height: 1.1;
  transition: color .35s var(--ease);
}
.brand__name small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: rgba(255,255,255,.86);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }

/* scrolled state */
.site-header.is-scrolled {
  background: rgba(21,23,28,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .brand img { height: 38px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------- */
/* Hero                                                                  */
/* --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero > .container { min-width: 0; }
.hero__media { position: absolute; inset: 0; z-index: -3; background: var(--ink); }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.06);
  /* cinematic grade so the yard reads as a real place, not a dark blob */
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
}
.hero.is-ready .hero__media img {
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    /* warm ember glow top-right */
    radial-gradient(110% 72% at 84% 4%, rgba(232,85,31,.22) 0%, transparent 46%),
    /* keep the mid clear so the salvage rows show; heavy only where the text sits */
    linear-gradient(180deg,
      rgba(21,23,28,.55) 0%,
      rgba(21,23,28,.04) 24%,
      rgba(21,23,28,.24) 52%,
      rgba(21,23,28,.80) 80%,
      rgba(21,23,28,.98) 100%),
    /* left column darkened for headline legibility */
    linear-gradient(90deg, rgba(21,23,28,.92) 0%, rgba(21,23,28,.30) 50%, transparent 80%);
}
/* Fine film grain + vignette for depth (pure CSS, no assets) */
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 42%, transparent 55%, rgba(0,0,0,.5) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
  opacity: .9;
}

.hero__inner {
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(6rem, 12vh, 8.5rem) clamp(2.5rem, 6vh, 4.5rem);
}

/* Top meta strip — fills the hero void, adds editorial framing */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: clamp(.66rem, .62rem + .15vw, .76rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: .8rem; }
.hero__meta-item::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  flex: none;
}
.hero__meta-item--end { margin-left: auto; }
@media (max-width: 640px) {
  .hero__meta-item--end { display: none; }
}

.hero__grid {
  margin-top: auto;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
.hero__intro { min-width: 0; max-width: 100%; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); }
}

.hero__eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: var(--fs-display);
  line-height: .96;
  letter-spacing: -.03em;
  text-transform: uppercase;
  max-width: 13ch;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 2px 34px rgba(0,0,0,.38);
}
.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,.92);
  max-width: min(46ch, 100%);
  margin-top: 1.6rem;
  line-height: 1.55;
  text-shadow: 0 1px 20px rgba(0,0,0,.3);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.2rem;
}

/* Hero side card */
.hero__card {
  background: rgba(21,23,28,.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem;
  min-width: 0;
  max-width: 100%;
}
.hero__card h2 {
  font-size: 1.02rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.hero__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.hero__card li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .98rem; line-height: 1.4; color: rgba(255,255,255,.9);
  min-width: 0;
}
.hero__card li > span:last-child { min-width: 0; overflow-wrap: break-word; }
.hero__card li b { color: #fff; }
.check {
  flex: none;
  width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  background: var(--ember);
  display: grid; place-items: center;
}
.check svg { width: 11px; height: 11px; }

.hero__scroll {
  position: absolute;
  left: var(--gutter); bottom: 1.4rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero__scroll .dot {
  width: 26px; height: 40px; border: 2px solid rgba(255,255,255,.35);
  border-radius: 20px; position: relative;
}
.hero__scroll .dot::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 3px; background: var(--ember);
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; top: 8px; } 50% { opacity: 1; top: 18px; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------- */
/* Marquee / stat strip                                                  */
/* --------------------------------------------------------------------- */
.stats {
  background: var(--ink);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem);
  text-align: left;
}
.stat__num {
  font-size: var(--fs-stat);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
}
.stat__num span { color: var(--ember); }
.stat__label {
  margin-top: .6rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------- */
/* Section headings                                                      */
/* --------------------------------------------------------------------- */
.section-head { max-width: 60ch; }
.section-head h2 {
  font-size: var(--fs-h2);
  margin-top: 1rem;
  text-wrap: balance;
}
.section-head p {
  margin-top: 1.2rem;
  font-size: var(--fs-lead);
  color: var(--steel);
  line-height: 1.55;
}

/* --------------------------------------------------------------------- */
/* About                                                                 */
/* --------------------------------------------------------------------- */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; }
}

.about__media {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__media img:nth-child(1) { grid-row: 1 / span 2; aspect-ratio: 3/4.4; }
.about__media img:nth-child(2) { aspect-ratio: 4/3; }
.about__media img:nth-child(3) { aspect-ratio: 4/3; }
.about__badge {
  position: absolute;
  right: -10px; bottom: -18px;
  background: var(--ember);
  color: #fff;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1;
}
.about__badge b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.about__badge span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }

.about__body p { color: var(--steel); }
.about__body p + p { margin-top: 1.1rem; }
.pull {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--ember);
  padding-left: 1.3rem;
  margin: 1.8rem 0;
  letter-spacing: -.01em;
}
.about__actions { margin-top: 2rem; }

/* --------------------------------------------------------------------- */
/* Services                                                              */
/* --------------------------------------------------------------------- */
.services {
  color: #fff;
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(232,85,31,.14) 0%, transparent 42%),
    radial-gradient(70% 90% at 0% 100%, rgba(91,100,114,.18) 0%, transparent 50%),
    var(--ink);
}
.services .section-head p { color: rgba(255,255,255,.68); }

.services__grid {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services__grid { grid-template-columns: repeat(6, 1fr); } }

.svc {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
@media (min-width: 1040px) {
  /* editorial asymmetric spans */
  .svc:nth-child(1) { grid-column: span 3; }
  .svc:nth-child(2) { grid-column: span 3; }
  .svc:nth-child(3) { grid-column: span 2; }
  .svc:nth-child(4) { grid-column: span 2; }
  .svc:nth-child(5) { grid-column: span 2; }
}
.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(232,85,31,.55);
  background: #262b34;
}
.svc__no {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  color: var(--ember);
}
.svc h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
.svc p { margin: 0; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.55; }
.svc__tag {
  margin-top: auto;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
}

/* --------------------------------------------------------------------- */
/* Feature split (buy cars)                                              */
/* --------------------------------------------------------------------- */
.feature { background: var(--paper); overflow: hidden; }
.feature__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) { .feature__grid { grid-template-columns: 1fr 1.1fr; } }
.feature__media { position: relative; }
.feature__media img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature__badge {
  position: absolute;
  left: -12px; top: -14px;
  background: var(--ember);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .85rem 1.05rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px -16px rgba(232,85,31,.9);
  transform: rotate(-3deg);
}
.feature__body h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.feature__body > p { color: var(--steel); margin-top: 1.2rem; font-size: var(--fs-lead); line-height: 1.55; }
.steps { list-style: none; margin: 1.8rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--steel); font-size: .95rem; }

/* --------------------------------------------------------------------- */
/* Gallery                                                               */
/* --------------------------------------------------------------------- */
.gallery {
  color: #fff;
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(232,85,31,.12) 0%, transparent 45%),
    var(--ink);
}
.gallery__grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 760px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img {
  width: 100%; height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: grayscale(.2) contrast(1.02);
}
.gallery figure:hover img { transform: scale(1.08); filter: grayscale(0); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: auto; height: 100%; }
.gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(21,23,28,.72));
  opacity: .55; transition: opacity .4s var(--ease);
}
.gallery figure:hover::after { opacity: .85; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1rem 1.1rem;
  display: flex; align-items: center;
}
.gallery figcaption span {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  transform: translateY(6px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.gallery figcaption span::before {
  content: ""; width: 18px; height: 2px; background: var(--ember); flex: none;
}
.gallery figure:hover figcaption span,
.gallery figure:focus-within figcaption span { transform: none; opacity: 1; }

/* --------------------------------------------------------------------- */
/* Contact                                                               */
/* --------------------------------------------------------------------- */
.contact { background: var(--paper); }
.contact__panel {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .contact__panel { grid-template-columns: 1.15fr 1fr; } }

.contact__body { padding: clamp(2.2rem, 4vw, 3.6rem); }
.contact__body h2 { font-size: var(--fs-h2); margin-top: 1rem; text-wrap: balance; }
.contact__body > p { color: rgba(255,255,255,.72); margin-top: 1.1rem; font-size: var(--fs-lead); line-height: 1.5; max-width: 42ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.contact__list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .ic {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ember);
}
.contact__list .ic svg { width: 18px; height: 18px; }
.contact__list b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.contact__list a, .contact__list span { color: #fff; font-size: 1.05rem; }
.contact__list a:hover { color: var(--amber); }

.contact__media { position: relative; min-height: 320px; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(21,23,28,.65), transparent 60%);
}

/* --------------------------------------------------------------------- */
/* Footer                                                                */
/* --------------------------------------------------------------------- */
.site-footer {
  background: #101216;
  color: rgba(255,255,255,.6);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.site-footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand__name { font-size: 1.15rem; }
.site-footer__col h4 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__col a:hover { color: var(--ember); }
.site-footer__blurb { margin-top: 1.2rem; max-width: 38ch; font-size: .95rem; }
.site-footer__legal {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem;
}

/* Spec footer (mandatory) */
.spec-footer {
  background: #0b0c0f;
  color: rgba(255,255,255,.55);
  text-align: center;
  font-size: .86rem;
  line-height: 1.6;
  padding: 2rem var(--gutter);
}
.spec-footer a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.spec-footer a:hover { color: #fff; }

/* --------------------------------------------------------------------- */
/* Reveal animations                                                     */
/* --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

/* Hero staggered on-load */
.hero__meta, .hero__eyebrow, .hero h1, .hero__lead, .hero__actions, .hero__card {
  opacity: 0; transform: translateY(24px);
}
.hero.is-ready .hero__meta    { animation: rise .9s var(--ease) .1s  forwards; }
.hero.is-ready .hero__eyebrow { animation: rise .9s var(--ease) .22s forwards; }
.hero.is-ready h1            { animation: rise 1s   var(--ease) .34s forwards; }
.hero.is-ready .hero__lead   { animation: rise .9s  var(--ease) .54s forwards; }
.hero.is-ready .hero__actions{ animation: rise .9s  var(--ease) .68s forwards; }
.hero.is-ready .hero__card   { animation: rise 1s   var(--ease) .82s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* No-JS + reduced-motion safety: everything visible */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .hero__meta, .no-js .hero__eyebrow, .no-js .hero h1, .no-js .hero__lead,
.no-js .hero__actions, .no-js .hero__card { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__meta, .hero__eyebrow, .hero h1, .hero__lead, .hero__actions, .hero__card { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero.is-ready .hero__media img { animation: none; transform: scale(1); }
  .hero__scroll .dot::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------- */
/* Mobile nav                                                            */
/* --------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem;
    background: var(--ink);
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 1.2rem; }
  .nav__cta { margin-top: 1rem; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  /* full-width stacked CTAs never run past the right edge */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero h1 { line-height: 1.02; }
  .hero__inner { padding-block: clamp(5rem, 16vh, 7rem) clamp(2.2rem, 5vh, 3.2rem); }
}

@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .about__media { grid-template-columns: 1fr 1fr; }
  .about__badge { right: 4px; }
}
