/* ============================================================
   NAGA STEELS, Homepage-only blocks
   ------------------------------------------------------------
   Five editorial patterns adapted from the Betafence reference:

     1. .updates    news / supply-update carousel
     2. .homehero   three-column cinematic hero
     3. .focus      "what's new" 66/34 mosaic
     4. .why        dark stat band with count-up figures
     5. .rangecar   auto-scrolling range carousel

   Structure and proportions follow the reference. Everything
   else does not: the reference ships ~1,400 lines of inline
   `!important` CSS inside the HTML with hard-coded hex values.
   This is tokenised, cascade-friendly and loaded only by
   index.html, so the other 23 pages pay nothing for it.

   Crimson #930036 maps to --green, slate #0F1720 maps to
   --green-ink, and the #D9DEE3 band maps to --green-tint-2.

   Full-bleed note: these sections are top-level children of
   <main>, so they are already viewport-wide. The reference uses
   `width:100vw; margin-left:calc(50% - 50vw)` because its blocks
   sit inside a Bootstrap container; copying that here would add
   horizontal scroll on every desktop browser that reserves a
   classic scrollbar, because 100vw includes it and 100% does not.
   ============================================================ */

/* ============================================================
   01 · SUPPLY UPDATES CAROUSEL
   ============================================================ */

.updates {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

.updates__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.updates__head .eyebrow { margin-bottom: 0; }

.updates__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.updates__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--green);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.updates__btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.updates__btn svg { width: 18px; height: 18px; }

.updates__viewport { position: relative; }

.update {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
/* Slides are stacked rather than translated, so the carousel height
   is driven by the tallest slide and nothing reflows on advance. */
.update[hidden] { display: none; }

.update__media {
  position: relative;
  aspect-ratio: 1200 / 782;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--green-tint-2);
}
.update__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.update:hover .update__media img { transform: scale(1.03); }

.update__tag {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s-3);
}
.update__body h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: var(--s-3);
}
.update:hover .update__body h3 { color: var(--green); }
.update__body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: var(--s-4);
  /* Teasers are variable length; clamp keeps the slide height stable. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green);
}
.update:hover .update__more { color: var(--green-dark); }

.updates__dots { display: flex; gap: 8px; margin-top: var(--s-5); }
.updates__dot {
  width: 30px; height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background var(--dur-fast) var(--ease);
}
.updates__dot[aria-current="true"] { background: var(--green); }

@media (max-width: 800px) {
  .update { grid-template-columns: 1fr; gap: var(--s-4); }
  .updates__head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   02 · THREE-COLUMN CINEMATIC HERO
   ============================================================ */

.homehero {
  position: relative;
  background: var(--green-ink);
  overflow: hidden;
}

/* The gold hairline the reference puts above its hero. */
.homehero::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0;
  height: 3px; z-index: 6;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--green));
}

.homehero__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Reference uses 100dvh. Clamped here so a 4K monitor does not get an
     880px-tall band of empty scrim, and a short laptop still sees the
     section below the fold edge. svh, not vh: avoids the iOS jump when
     the address bar collapses. */
  height: clamp(540px, calc(100svh - var(--header-h) - 44px), 860px);
}

.hcol {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgb(255 255 255 / 0.3);
  transition: filter var(--dur-slow) var(--ease);
}
.hcol:last-child { border-right: 0; }
.hcol:hover, .hcol:focus-visible { color: #fff; }

.hcol__bg {
  position: absolute;
  inset: -22px;              /* overscan, so the ken-burns never reveals an edge */
  z-index: 0;
  display: block;
  overflow: hidden;
  background: var(--green-ink);   /* paints while the photo decodes */
}

/* A real <img>, not a CSS background fed through a custom property.
   Three reasons, in order of importance:

   1. The first column is the LCP element. `<link rel=preload as=image>`
      only reliably raises priority for a resource the preload scanner
      can match to an element; against a background declared inside a
      var() it fetches the file and then warns that nothing used it.
   2. srcset/sizes become available later without touching CSS, which
      matters a great deal here — these plates are ~3 MB each.
   3. One less layer of indirection between the markup and the paint. */
.hcol__bg img {
  width: 100%;
  height: 100%;                   /* beats base.css `img { height: auto }` */
  object-fit: cover;
  object-position: center 54%;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hcol:hover .hcol__bg img,
.hcol:focus-visible .hcol__bg img { transform: scale(1.095); }

/* Double scrim. The vertical pass guarantees legibility over the copy,
   the horizontal pass stops the three columns looking like flat cut-outs. */
.hcol::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgb(16 37 26 / 0.12) 0%,
      rgb(16 37 26 / 0.34) 45%,
      rgb(16 37 26 / 0.88) 100%),
    linear-gradient(90deg,
      rgb(16 37 26 / 0.14) 0%,
      rgb(16 37 26 / 0.02) 50%,
      rgb(16 37 26 / 0.16) 100%);
}

/* Gold underline that lights up on hover. */
.hcol::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0;
  height: 4px; z-index: 3;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.hcol:hover::after, .hcol:focus-visible::after { opacity: 1; }

/* Siblings desaturate on hover. Gated behind .is-hoverable, which JS only
   adds after a real pointermove, so a touch tap never greys the row out. */
.homehero.is-hoverable .homehero__row:hover .hcol:not(:hover) {
  filter: grayscale(1) brightness(0.72);
}

.hcol__inner {
  position: absolute;
  left: clamp(20px, 2.6vw, 42px);
  right: clamp(18px, 2.2vw, 34px);
  bottom: clamp(56px, 8vw, 110px);
  z-index: 2;
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.hcol:hover .hcol__inner { transform: translateY(-6px); }

.hcol__label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.55);
  margin: 0 0 14px;
}
.hcol__title {
  margin: 0 0 16px;
  text-shadow: 0 12px 35px rgb(0 0 0 / 0.6);
}
.hcol__main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: var(--track-display);
  color: #fff;
}
.hcol__sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: var(--track-display);
  color: rgb(255 255 255 / 0.9);
  margin-top: 4px;
}
.hcol__line {
  width: 64px; height: 4px;
  background: var(--gold);
  margin: 0 0 20px;
  transition: width var(--dur) var(--ease);
}
.hcol:hover .hcol__line { width: 112px; }

.hcol__text {
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.94);
  margin: 0 0 24px;
  max-width: 38ch;
  text-shadow: 0 8px 26px rgb(0 0 0 / 0.7);
}
.hcol__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.55);
}
.hcol__cta i { font-style: normal; font-size: 1.4em; line-height: 0; }

/* Scroll cue */
.homehero__scroll {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 12;
  min-width: 128px;
  text-align: center;
  color: rgb(255 255 255 / 0.7);
}
.homehero__scroll:hover { color: #fff; }
.homehero__scroll span {
  display: block;
  font-size: 10px; line-height: 1;
  font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.homehero__scroll i {
  display: block;
  font-style: normal;
  font-size: 22px; line-height: 1;
  animation: scrollArrow 1.35s var(--ease-in-out) infinite;
}
@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.42; }
  50%      { transform: translateY(9px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .homehero__scroll i { animation: none; opacity: 0.8; }
  .hcol__bg img { transition: none; transform: none; }
  .hcol:hover .hcol__bg img,
  .hcol:focus-visible .hcol__bg img { transform: none; }
}

@media (max-width: 1024px) {
  .homehero__row { height: clamp(460px, 68svh, 640px); }
  .hcol__text { font-size: 0.9375rem; margin-bottom: 18px; }
}

/* Below 860 the reference abandons the full-height row entirely, and it is
   right to: three 33%-wide columns at phone width are unreadable. */
@media (max-width: 860px) {
  .homehero__row {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hcol {
    height: 390px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.28);
  }
  .hcol:last-child { border-bottom: 0; }
  /* Overscan is pointless once ken-burns is off, and it crops the subject. */
  .hcol__bg { inset: 0; }
  .hcol__bg img { object-position: center 38%; transform: none; }
  .hcol:hover .hcol__bg img { transform: none; }
  .homehero.is-hoverable .homehero__row:hover .hcol:not(:hover) { filter: none; }
  .hcol__inner { bottom: 40px; }
  .homehero__scroll { display: none; }
}

@media (max-width: 520px) {
  .hcol { height: 340px; }
  .hcol__main { font-size: 1.625rem; }
  .hcol__sub { font-size: 1.1875rem; }
  .hcol__text { font-size: 0.875rem; margin-bottom: 16px; }
  .hcol__line { margin-bottom: 16px; }
}

/* ============================================================
   02b · BRAND STRIP
   Carries the four-up brand lockup that used to sit beside the
   old single-column hero.
   ============================================================ */

.brandstrip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.brandstrip__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.4fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.brandstrip__head .eyebrow { margin-bottom: var(--s-2); }
.brandstrip__head strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  letter-spacing: var(--track-display);
  line-height: 1.05;
}
.brandstrip__head p {
  margin-top: var(--s-3);
  font-size: 0.8125rem;
  color: var(--muted);
}

.brandstrip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.brandstrip__row > a {
  display: flex; align-items: center; gap: 12px;
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease);
}
.brandstrip__row > a:last-child { border-right: 0; }
.brandstrip__row > a:hover { background: var(--green-tint); }
/* All four marks are square-viewBox files, so `contain` fills the box
   evenly. The two supply-partner marks previously used the wide
   520x150 wordmarks, which `contain` shrank to about 46x13px inside
   this box and made them read as a quarter the size of the two Naga
   marks. Square variants (tata-wiron-mark.svg, vnc-group-mark.svg)
   fixed that; keep any replacement artwork square for the same reason. */
.brandstrip__row img {
  width: 54px; height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
}
@media (max-width: 1180px) {
  .brandstrip__row img { width: 46px; height: 46px; flex-basis: 46px; }
}
.brandstrip__row strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brandstrip__row small {
  display: block;
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) { .brandstrip__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .brandstrip__row { grid-template-columns: repeat(2, 1fr); }
  .brandstrip__row > a:nth-child(2n) { border-right: 0; }
  .brandstrip__row > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .brandstrip__row > a { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   03 · "WHAT'S NEW" FOCUS MOSAIC
   ============================================================ */

.focus {
  background: var(--green-tint-2);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.focus__head { margin-bottom: var(--s-6); }
.focus__head h2 { color: var(--ink); }

.focus__grid {
  display: grid;
  grid-template-columns: 66fr 34fr;   /* the reference's exact split */
  gap: 18px;
}
.focus__col { display: grid; gap: 18px; grid-template-rows: 1fr 1fr; }

.fcard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--green-ink);   /* paints while the photo decodes */
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(16 37 26 / 0.12);
  transition: filter var(--dur) var(--ease);
}
.fcard:hover { filter: saturate(1.08) contrast(1.06); color: #fff; }

/* Same reasoning as .hcol__bg: a real element rather than a background
   fed through var(). It also lets these three be lazy-loaded, which a
   CSS background can never be. */
.fcard__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* --lg is an <article>, --sm are <a>. Both take .fcard, which already
   sets position: relative for the absolutely-positioned content block. */
.fcard--lg { min-height: 560px; }
.fcard--sm { min-height: 271px; }

.fcard::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgb(16 37 26 / 0.08) 0%,
    rgb(16 37 26 / 0.3) 50%,
    rgb(16 37 26 / 0.86) 100%);
}

.fcard__content {
  position: absolute;
  inset-inline: clamp(20px, 2.6vw, 34px);
  bottom: clamp(22px, 2.6vw, 34px);
  z-index: 2;
}
.fcard--lg .fcard__content { inset-inline: clamp(22px, 3.2vw, 46px); bottom: clamp(26px, 3.2vw, 46px); }

.fcard__label {
  display: inline-block;
  background: rgb(16 37 26 / 0.8);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.fcard__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: var(--track-display);
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 12px 35px rgb(0 0 0 / 0.7);
}
.fcard--lg .fcard__name { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.fcard__line {
  width: 56px; height: 4px;
  background: var(--gold);
  margin: 0 0 18px;
  transition: width var(--dur-fast) var(--ease);
}
.fcard:hover .fcard__line { width: 112px; }
.fcard__text {
  max-width: 50ch;
  margin: 0 0 20px;
  color: rgb(255 255 255 / 0.92);
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
  line-height: 1.45;
}
.fcard--sm .fcard__text { font-size: 0.875rem; }
.fcard__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.fcard__link i { font-style: normal; color: var(--gold); font-size: 1.5em; line-height: 0; }

/* Dual action pair on the feature card. That card is an <article>, not a
   link, precisely so these two buttons can be real separate targets —
   nesting interactive elements inside an anchor is invalid and breaks
   keyboard navigation. */
.fcard__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
  .fcard--lg { min-height: 460px; }
  .fcard--sm { min-height: 221px; }
}
@media (max-width: 900px) {
  .focus__grid { grid-template-columns: 1fr; }
  .focus__col { grid-template-rows: none; }
  .fcard--lg, .fcard--sm { min-height: 390px; }
}
@media (max-width: 520px) {
  .fcard--lg, .fcard--sm { min-height: 330px; }
  .fcard__actions { flex-direction: column; align-items: stretch; }
  .fcard__actions .btn { width: 100%; }
}

/* ============================================================
   04 · "WHY NAGA STEELS?" STAT BAND
   ============================================================ */

.why {
  background: var(--green-ink);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.why__grid {
  display: grid;
  grid-template-columns: 34% repeat(4, 1fr);   /* reference proportion */
  background: #152E21;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 55px rgb(4 16 10 / 0.3);
}

/* Mouse-follow spotlight plus the vertical pinstripe texture. --mx/--my are
   written by home.js; both default to centre so the band looks correct with
   JS disabled and on touch, where no pointer ever moves. */
.why__grid::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgb(205 165 53 / 0.18) 0%,
      rgb(205 165 53 / 0.07) 18%,
      transparent 40%),
    repeating-linear-gradient(90deg,
      rgb(255 255 255 / 0.02) 0,
      rgb(255 255 255 / 0.02) 1px,
      transparent 1px,
      transparent 70px);
}

.why__intro,
.why__card {
  position: relative;
  z-index: 2;
  border-right: 1px solid rgb(255 255 255 / 0.08);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.why__card:last-child { border-right: 0; }

.why__intro {
  padding: clamp(1.5rem, 2.6vw, 2.125rem);
  min-height: 280px;
  background: rgb(10 24 16 / 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why__intro .eyebrow { color: var(--gold); margin-bottom: 12px; }
.why__intro h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}
.why__intro p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.78);
  margin-bottom: var(--s-5);
  max-width: 44ch;
}
/* .btn--gold is specified for light backgrounds: gold rule, --ink label.
   On this band that would be near-black text on dark green. Flip the
   label to white and fill with gold on hover, where --ink is correct. */
.why__intro .btn--gold { color: #fff; align-self: flex-start; }
.why__intro .btn--gold:hover { color: var(--ink); }

.why__card {
  text-align: center;
  padding: clamp(1.5rem, 2.4vw, 2.125rem) var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  background: rgb(21 46 33 / 0.62);
}
.why__card:hover {
  background: rgb(0 104 55 / 0.26);
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .why__card:hover { transform: none; }
}

.why__icon {
  width: 42px; height: 42px;
  margin: 0 auto 20px;
  color: var(--gold);
}
.why__icon svg { width: 100%; height: 100%; }

.why__n {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-bottom: 10px;
}
.why__n--sm { font-size: clamp(1.125rem, 1.7vw, 1.375rem); text-transform: uppercase; }
.why__k {
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.why__sub {
  font-size: 11px;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.55);
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__intro {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    min-height: 0;
  }
  .why__card { min-height: 220px; }
  .why__card:nth-child(odd) { border-right: 0; }
  .why__card:nth-child(2), .why__card:nth-child(3) {
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }
}
@media (max-width: 620px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    padding-block: var(--s-5);
  }
  .why__card:last-child { border-bottom: 0; }
  .why__icon { width: 34px; height: 34px; margin-bottom: 14px; }
}

/* ============================================================
   05 · RANGE CAROUSEL
   ============================================================ */

.rangecar {
  background: var(--green-tint-2);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(3.25rem, 6vw, 4.5rem);
  overflow: hidden;
}
.rangecar__head { margin-bottom: var(--s-6); }
.rangecar__head h2 { color: var(--ink); }
.rangecar__head p {
  max-width: 68ch;
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* The track scrolls inside here. Edge fades deliberately live on the
   section, not on this element: when a card deep in the track receives
   keyboard focus the browser scrolls this container to reveal it, and a
   pseudo-element anchored here would scroll away with the content. */
.rangecar__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.rangecar__shell { position: relative; }

/* Edge fades. Sized down hard on small screens, where a 160px mask would
   cover most of a 215px card. */
.rangecar__shell::before,
.rangecar__shell::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: clamp(24px, 10vw, 160px);
  z-index: 5;
  pointer-events: none;
}
.rangecar__shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--green-tint-2) 0%, var(--green-tint-2) 40%, rgb(232 236 230 / 0) 100%);
}
.rangecar__shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--green-tint-2) 0%, var(--green-tint-2) 40%, rgb(232 236 230 / 0) 100%);
}

.rangecar__track {
  display: flex;
  width: max-content;
  padding: 4px 0 14px;
  animation: rangeScroll 64s linear infinite;
}
/* Pausing on hover and on keyboard focus is what keeps an infinite
   auto-scroller inside WCAG 2.2.2 rather than merely near it. The
   viewport itself is focusable, so :focus-within is set there. */
.rangecar__viewport:hover .rangecar__track,
.rangecar__viewport:focus-within .rangecar__track { animation-play-state: paused; }

.rangecar__set { display: flex; gap: 18px; padding-right: 18px; }

/* Two identical sets scroll past; translating exactly -50% lands set 2 where
   set 1 began, so the loop has no seam. */
@keyframes rangeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.rcard {
  width: 250px;
  flex: 0 0 250px;
  background: var(--paper);
  border: 1px solid rgb(16 37 26 / 0.1);
  border-bottom: 4px solid var(--green);
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 16px 36px rgb(16 37 26 / 0.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgb(16 37 26 / 0.16);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .rcard:hover { transform: none; }
}

/* Tinted, not --paper. These are cut-outs on white, so a white panel made
   an undecoded card a white rectangle on a white card - indistinguishable
   from a broken image. A faint tint reads as deliberate framing and gives
   the loading skeleton something to sit against. */
.rcard__img {
  height: 220px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  overflow: hidden;
}
/* `contain`, not `cover`. These are product cut-outs on white; cropping
   them to fill would slice the subject. */
.rcard__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}
.rcard:hover .rcard__img img { transform: scale(1.03); }

.rcard__body {
  min-height: 180px;
  padding: 19px 17px 20px;
  display: flex;
  flex-direction: column;
}
.rcard__family {
  font-size: 11px; line-height: 1;
  font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.rcard__name {
  font-family: var(--font-display);
  font-size: 1.125rem; line-height: 1.08;
  font-weight: 600; letter-spacing: var(--track-display);
  color: var(--green);
  margin: 0 0 12px;
}
.rcard__text {
  font-size: 0.875rem; line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.rcard__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green);
}
.rcard__cta i { font-style: normal; font-size: 1.4em; line-height: 0; transition: transform var(--dur-fast) var(--ease); }
.rcard:hover .rcard__cta i { transform: translateX(4px); }

.rangecar__hint {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 768px) {
  .rcard { width: 215px; flex-basis: 215px; }
  .rcard__img { height: 180px; }
  .rcard__body { min-height: 174px; padding: 17px 15px 18px; }
  .rcard__name { font-size: 1.0625rem; }
  .rangecar__track { animation-duration: 48s; }
}

/* Touch devices get a real scroller instead. There is no hover to pause
   with, so an unstoppable marquee would be both an annoyance and a
   WCAG failure; native momentum scrolling is strictly better here. */
@media (hover: none) {
  .rangecar__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rangecar__viewport::-webkit-scrollbar { display: none; }
  .rangecar__track { animation: none; }
  .rcard { scroll-snap-align: start; }
  .rangecar__set--clone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rangecar__viewport { overflow-x: auto; scrollbar-width: thin; }
  .rangecar__track { animation: none; }
  .rangecar__set--clone { display: none; }
}

@media (max-width: 420px) {
  .rcard { width: 200px; flex-basis: 200px; }
  .rcard__img { height: 165px; }
}
