/* ============ Woods Excavating — design system ============ */
/* Palette names per the brand guidelines (Woods_Brand-Guidelines v1) */
:root {
  --red: #cd142b;       /* Woods Red */
  --red-deep: #930e1e;  /* Deep Red */
  --gold: #fcc724;      /* Woods Gold (dark backgrounds only; light mode swaps to #b08502) */
  --bg: #131009;        /* Dark Umber */
  --bg-2: #201a11;      /* Umber 2 */
  --panel: #2c251a;     /* Panel */
  --line: #453b28;      /* Line */
  --cream: #f2ede1;     /* Cream */
  --muted: #a99d87;     /* Muted */
  --paper: #efe9dc;
  --ink: #181410;
  --kin-shift: 110%;
  --kin-dur: 0.9s;
  --marquee-mult: 1;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
}
body[data-kinetic="subtle"]   { --kin-shift: 30%;  --kin-dur: 0.6s; --marquee-mult: 0.45; }
body[data-kinetic="bold"]     { --kin-shift: 130%; --kin-dur: 1.15s; --marquee-mult: 1.7; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; }
img { display: block; }

/* film grain */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 200; opacity: 0.05;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDAnIGhlaWdodD0nMzAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzMwMCcgaGVpZ2h0PSczMDAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC42Jy8+PC9zdmc+");
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
  /* over the hero (pre-scroll): a dark fade keeps links legible on bright footage */
  background: linear-gradient(to bottom, rgba(19, 16, 9, 0.62), rgba(19, 16, 9, 0));
}
.nav.scrolled {
  background: rgba(19, 16, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 28px;
}
.nav-logo img { height: 48px; width: auto; transition: height 0.4s ease; }
.nav.scrolled .nav-logo img { height: 40px; }
/* pinstripes sweep in under the bar as it turns solid */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    var(--red) 0, var(--red) 3px,
    var(--gold) 3px, var(--gold) 6px,
    var(--stripe-white) 6px, var(--stripe-white) 9px);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.18, 1);
}
.nav.scrolled::after { transform: scaleX(1); }
body[data-motion="off"] .nav::after { transition: none; }
body[data-pinstripes="off"] .nav::after { display: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  position: relative; text-decoration: none; font-weight: 600;
  font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #e9e2d3; padding: 8px 12px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 6px;
  background: linear-gradient(to bottom,
    var(--red) 0, var(--red) 2px,
    var(--gold) 2px, var(--gold) 4px,
    var(--stripe-white) 4px, var(--stripe-white) 6px);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0, 1);
}
body[data-pinstripes="off"] .nav-links a::after { background: var(--red); height: 2px; bottom: 4px; }
.nav-links a:hover { color: #fcc724; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #ffffff; }
/* contextual section readout */
.nav-context {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); overflow: hidden; height: 1.4em;
  opacity: 0; transition: opacity 0.4s ease;
}
.nav.scrolled .nav-context { opacity: 1; }
.nav-context .ctx-slot { display: inline-block; min-width: 110px; }
.nav-context .ctx-label {
  display: inline-block; color: var(--gold); font-weight: 700;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0, 1), opacity 0.35s ease;
}
.nav-context .ctx-label.out { transform: translateY(-120%); opacity: 0; transition-duration: 0.2s; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 4px; white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--red-deep); }
.nav-cta .cta-text { display: inline-block; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 110px 0 9vh;
  overflow: hidden;
}
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  /* horizontal scrim anchors the left-aligned hero text on bright frames */
  background:
    linear-gradient(to right,
      rgba(19, 16, 9, 0.72) 0%,
      rgba(19, 16, 9, 0.42) 40%,
      rgba(19, 16, 9, 0.08) 70%,
      transparent 100%),
    linear-gradient(to bottom,
      rgba(19, 16, 9, 0.60) 0%,
      rgba(19, 16, 9, 0.25) 24%,
      rgba(19, 16, 9, 0.22) 48%,
      rgba(19, 16, 9, 0.62) 74%,
      var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 max(28px, 5vw); }
.tod-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(242, 237, 225, 0.22); border-radius: 99px;
  padding: 7px 16px 7px 12px; font-size: 13px; letter-spacing: 0.05em;
  color: var(--cream); background: rgba(19, 16, 9, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.tod-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.94; letter-spacing: 0.005em;
  text-transform: uppercase; font-weight: 400;
  color: var(--cream);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.45);
}
.hero h1 .hl-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
/* 9/3 Dylan: the accent line takes the wordmark treatment (yellow face, stepped red extrusion), same as the band titles */
.hero h1 .accent { color: #f4da1a; text-shadow: -0.005em 0.0055em 0 #cd142b, -0.010em 0.0110em 0 #cd142b, -0.015em 0.0165em 0 #cd142b, -0.020em 0.0220em 0 #cd142b, -0.025em 0.0275em 0 #cd142b, -0.030em 0.0330em 0 #cd142b, -0.035em 0.0385em 0 #cd142b, -0.040em 0.0440em 0 #cd142b, -0.045em 0.0495em 0 #cd142b, -0.050em 0.0550em 0 #cd142b, -0.055em 0.0605em 0 #cd142b, -0.060em 0.0660em 0 #cd142b, 0 3px 24px rgba(0, 0, 0, 0.5); }  /* continuous down-left extrusion, fine-stepped so no visible stairs (Dylan 9/3) */  /* down-left, like the logo's extrusion */
.hero h1 .accent-2 { -webkit-text-stroke: 2px var(--cream); color: transparent; }
.hero-sub-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px;
  margin-top: 34px;
}
.hero-sub { max-width: 480px; font-size: 18px; color: #cfc5b0; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero-sub strong { color: var(--cream); font-weight: 600; }
.hero .btn-chev { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.hero-ctas { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; padding: 16px 28px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn .arr { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0, 1); }
.btn:hover .arr { transform: translateX(5px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: rgba(242, 237, 225, 0.3); color: var(--cream); background: rgba(19,16,9,0.3); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e2ab0e; }

/* Chevron CTAs — truck-stripe colors */
.btn-chev {
  background: none; border: 0; padding: 14px 0; color: var(--cream);
  font-size: 16px; letter-spacing: 0.12em; gap: 16px;
}
.btn-chev .chevs { display: inline-flex; gap: 3px; }
.btn-chev .chev {
  width: 17px; height: 19px; display: inline-block;
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.btn-chev .chev-r { background: var(--red); }
.btn-chev .chev-y { background: var(--gold); }
.btn-chev .chev-w { background: var(--stripe-white, #fff); }
@keyframes chev-slide {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes chev-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.btn-chev:hover .chev { animation: chev-slide 0.3s cubic-bezier(0.2, 0.7, 0, 1) both, chev-pulse 1.1s ease-in-out infinite; }
.btn-chev:hover .chev-r { animation-delay: 0s,    0.45s; }
.btn-chev:hover .chev-y { animation-delay: 0.08s, 0.61s; }
.btn-chev:hover .chev-w { animation-delay: 0.16s, 0.77s; }
body[data-motion="off"] .btn-chev:hover .chev { animation: none; }



/* ============ Kinetic reveal primitives ============ */
.k-word { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; }  /* 9/3: letters never wrap inside a word (Kyle's phone shattered the hero title) */
.k-in {
  display: inline-block; transform: translateY(var(--kin-shift));
  transition: transform var(--kin-dur) cubic-bezier(0.16, 0.8, 0.18, 1);
  transition-delay: var(--d, 0s);
}
.k-revealed .k-in { transform: translateY(0); }
body[data-motion="off"] .k-in { transform: none !important; transition: none; }

/* ============ Marquee ============ */
.marquee {
  position: relative; padding: 30px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 0; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1;
}
.marquee-track .mq-set { display: flex; align-items: center; flex-shrink: 0; padding-right: 0.6em; }
.marquee-track .mq-item { color: transparent; -webkit-text-stroke: 1.5px rgba(242, 237, 225, 0.45); padding: 0 0.3em; }
.marquee-track .mq-item.solid { color: var(--gold); -webkit-text-stroke: 0; }
.marquee-track .mq-dot {
  display: inline-block; width: 0.28em; height: 0.28em;
  background: var(--red); transform: rotate(45deg);
  vertical-align: middle; margin: 0 0.1em;
}

/* ============ Sections ============ */
section { position: relative; }
.section-pad { padding: 110px max(28px, 5vw); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.sec-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.sec-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; color: var(--cream);
  max-width: 16em;
}
.sec-side { max-width: 380px; color: var(--muted); font-size: 16.5px; padding-bottom: 6px; }

/* ============ Services ============ */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.svc-card {
  --mx: 50%; --my: 50%;
  position: relative; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); padding: 30px 28px 26px; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(252, 199, 36, 0.09), transparent 65%);
  transition: opacity 0.35s ease; pointer-events: none;
}
.svc-card:hover { border-color: rgba(252, 199, 36, 0.4); transform: translateY(-3px); }
body[data-motion="off"] .svc-card:hover { transform: none; }
.svc-card:hover::before { opacity: 1; }
.svc-num { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.1em; color: var(--red); margin-bottom: 38px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 27px; line-height: 1.05; margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.svc-tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.svc-arrow {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--cream); font-size: 15px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0, 1);
}
.svc-card:hover .svc-arrow { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

/* ============ Stats band ============ */
.stats-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  padding: 44px 32px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:last-child { border-right: 0; }
.stat .stat-big { font-family: var(--font-display); font-size: clamp(44px, 4.6vw, 68px); line-height: 1; color: var(--cream); }
.stat .stat-big .gold { color: var(--gold); }
.stat .stat-label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ============ Portfolio ============ */
.work { background: var(--bg-2); }
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 22px; cursor: grab; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.job {
  flex: 0 0 min(520px, 82vw); scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel);
}
.job image-slot { width: 100%; height: 320px; }
.job-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.job-cap h4 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 21px; letter-spacing: 0.02em; }
.job-cap span { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.rail-controls { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--cream); font-size: 17px; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.rail-btn:hover { background: var(--red); border-color: var(--red); }
.rail-btn:active { transform: scale(0.92); }
.rail-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress .bar { height: 100%; width: 20%; background: var(--gold); border-radius: 2px; transition: width 0.2s ease; }

/* ============ Aggregates (Dig This) ============ */
.agg { background: var(--paper); color: var(--ink); }
.agg .sec-title { color: var(--ink); }
.agg .sec-side, .agg .svc-tag { color: #6b6353; }
.agg-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.agg-links { display: flex; flex-direction: column; gap: 12px; }
.doc-link {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink);
  border: 1.5px solid #d8d0bf; border-radius: 6px; padding: 22px 24px; background: #fff;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.doc-link:hover { border-color: var(--red); transform: translateX(6px); box-shadow: -6px 0 0 var(--red); }
body[data-motion="off"] .doc-link:hover { transform: none; box-shadow: none; }
.doc-link .doc-ico { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; color: #fff; background: var(--red); border-radius: 4px; padding: 7px 9px; }
.doc-link h4 { font-size: 17px; font-weight: 700; }
.doc-link p { font-size: 14px; color: #6b6353; }
.doc-link .arr { margin-left: auto; font-size: 18px; color: var(--red); }
.pit-card {
  border-radius: 8px; background: var(--ink); color: var(--cream); padding: 34px 32px;
  position: relative; overflow: hidden;
}
/* dark mode: the ink plate vanishes on the dark page; use the lifted panel */
html:not([data-theme="light"]) .pit-card { background: var(--panel); border: 1px solid var(--line); }
.pit-card::after {
  content: "PIT"; position: absolute; right: -14px; bottom: -34px;
  font-family: var(--font-display); font-size: 130px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(252, 199, 36, 0.25);
}
.pit-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; margin-bottom: 12px; }
.pit-card h3 .gold { color: var(--gold); }
.pit-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.pit-card .pit-addr { color: var(--cream); font-weight: 600; font-size: 17px; }
.pit-card .btn { margin-top: 22px; }

/* ============ About ============ */
.about-quote {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; color: var(--cream);
  max-width: 18em;
}
.about-quote .gold { color: var(--gold); }
.about-quote .red { color: var(--red); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 54px; }
.about-cols p { color: var(--muted); font-size: 17px; }
.about-cols p strong { color: var(--cream); }

/* ============ Contact ============ */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.phone-xl {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6.5vw, 96px); line-height: 1; letter-spacing: 0.01em;
  color: var(--cream); text-decoration: none; display: inline-block; margin-top: 18px;
  transition: color 0.25s ease;
}
.phone-xl:hover { color: var(--gold); }
.contact-blocks { display: grid; gap: 26px; font-size: 15.5px; }
.contact-blocks h5 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact-blocks p { color: var(--muted); }
.contact-blocks a { color: var(--cream); }

/* ============ Footer ============ */
.footer {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 26px max(28px, 5vw); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer img { height: 26px; width: auto; opacity: 0.9; }
.footer .foot-links { display: flex; gap: 20px; margin-left: auto; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--cream); }

/* ============ Brand pinstripes — yellow / red / white, like the trucks ============ */
:root { --stripe-white: #ffffff; }
.footer::before,
.rates-head::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  pointer-events: none; z-index: 3;
  /* literal stripe colors: light mode mutes --gold for text, stripes stay true */
  background: linear-gradient(to bottom,
    #cd142b 0, #cd142b 3px,
    #fcc724 3px, #fcc724 6px,
    #ffffff 6px, #ffffff 9px);
}
.footer { position: relative; padding-top: 40px; }
.footer::before { top: 0; }
.rates-head::after { bottom: 0; left: max(28px, 5vw); right: auto; width: min(340px, 60vw); }
body[data-pinstripes="off"] .footer::before,
body[data-pinstripes="off"] .footer::before,
body[data-pinstripes="off"] .rates-head::after { display: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 1250px) {
  .nav-context { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .agg-grid, .about-cols, .contact-grid { grid-template-columns: 1fr; }
  .hero-ctas { margin-left: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .k-in { transform: none !important; transition: none !important; }
}

/* Phones: no element gets to widen the page */
@media (max-width: 700px) {
  html { overflow-x: clip; }
  /* 9/2 Dylan: the video was buried under the type on phones. Smaller display
     sizes + a lighter scrim let the footage read; the bottom band keeps the
     text legible where it actually sits. */
  /* 9/2 third pass, Dylan: show the VIDEO. On phones the hero restructures:
     the loop plays full-width at its real 16:9 (nothing cropped away), with the
     headline and CTAs on the dark ground beneath it. Desktop keeps the
     full-bleed cover hero. When Sarah's 9:16 cut lands it swaps in and this
     layout still works (aspect-ratio comes from the file). */
  .hero { min-height: auto; padding: 76px 0 36px; justify-content: flex-start; background: #131009; }
  body[data-hero="video"] .hero-video { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .hero-footage, .hero-veil { display: none; }
  .hero-inner { padding-top: 24px; }
  .hero h1 { font-size: clamp(22px, 8.6vw, 38px); overflow-wrap: normal; hyphens: none; }
  .hero-sub { font-size: 15px; }
  .hero-sub-row { gap: 18px; }
  .hero-veil {
    background:
      linear-gradient(to right,
        rgba(19, 16, 9, 0.38) 0%,
        rgba(19, 16, 9, 0.18) 45%,
        transparent 100%),
      linear-gradient(to bottom,
        rgba(19, 16, 9, 0.50) 0%,
        rgba(19, 16, 9, 0.12) 26%,
        rgba(19, 16, 9, 0.10) 46%,
        rgba(19, 16, 9, 0.55) 74%,
        var(--bg) 100%);
  }
}

/* 9/2 Dylan: the three homepage cards read as static on phones (the only cue
   was the desktop hover lift). An always-on footer link in the chevron
   language, labeled with the destination page's exact name. */
.cap-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: inherit; transition: color 0.25s ease, gap 0.25s ease;
}
.cap-go .chevs { display: inline-flex; gap: 2px; }
.cap-go .chev { width: 11px; height: 13px; display: inline-block; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
.cap-go .chev-r { background: var(--red); }
.cap-go .chev-y { background: var(--gold); }
.cap-go .chev-w { background: var(--stripe-white, #fff); }
.cap-card:hover .cap-go { color: #fcc724; gap: 14px; }
/* 9/3: the whole card is the hover target, so the footer chevrons run the hero CTA's slide + pulse */
.cap-card:hover .cap-go .chev, .cap-card:focus-within .cap-go .chev { animation: chev-slide 0.3s cubic-bezier(0.2, 0.7, 0, 1) both, chev-pulse 1.1s ease-in-out infinite; }
.cap-card:hover .cap-go .chev-r, .cap-card:focus-within .cap-go .chev-r { animation-delay: 0s,    0.45s; }
.cap-card:hover .cap-go .chev-y, .cap-card:focus-within .cap-go .chev-y { animation-delay: 0.08s, 0.61s; }
.cap-card:hover .cap-go .chev-w, .cap-card:focus-within .cap-go .chev-w { animation-delay: 0.16s, 0.77s; }
body[data-motion="off"] .cap-card:hover .cap-go .chev, body[data-motion="off"] .cap-card:focus-within .cap-go .chev { animation: none; }
