/* ================================================================
   BORANEX MIDDLE EAST — v2 "engineering-dynamic"
   Hybrid engineering-grade aesthetic:
   light precision base (Linear/Stripe) + dark technical bands
   (Anduril/SpaceX) + mono spec detailing. Evolves v1, same palette.
   Palette: white / #f5f5f7 base · navy ink · gold accents
   RTL-ready: logical properties used throughout
================================================================ */

:root {
  --navy: #00205b;
  --navy-deep: #001233;
  --navy-ink: #0d1b3e;
  --gold: #e59e22;
  --gold-soft: #f4b350;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --muted: #55607a;
  --muted-light: #aab3c7;
  --hairline: rgba(13, 27, 62, 0.1);
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 10px rgba(13, 27, 62, 0.05);
  --shadow-hover: 0 18px 44px rgba(13, 27, 62, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--navy-ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-block-start: -48px; inset-inline-start: 16px;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px;
  z-index: 200; transition: inset-block-start 0.2s;
}
.skip-link:focus { inset-block-start: 12px; }

.container { inline-size: min(1180px, 92vw); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ---------- Type scale ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.2vw, 6rem); font-weight: 800; }
/* v2.9 (father's 26 Jul review): flagship headlines hold ONE line >=768px.
   Sizes tuned down; .h-one pins nowrap; JS fitHeadlines() nudges the font
   further down if a headline would still overflow its column. <768px the
   text wraps naturally instead of shrinking to body size (Omar's call). */
h2 { font-size: clamp(2rem, 4.1vw, 3.15rem); }
@media (min-width: 768px) { .h-one { white-space: nowrap; } }
.about-text h2 { font-size: clamp(1.85rem, 3.2vw, 2.4rem); } /* narrower 2-col column */

.eyebrow {
  /* v2.6: father's review — bumped from 0.8rem/600 (mono 500) for readability
     v2.9: father's 26 Jul review — palette numbers/titles up again, 0.9 → 1.05rem */
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold);
  margin-block-end: 18px;
}
/* v2.6.3: Omar — hero opening line slightly larger again */
.hero .eyebrow { font-size: 1.1rem; }
.eyebrow.mono { font-weight: 700; }
.eyebrow-light { color: var(--gold-soft); }
.eyebrow-gold { color: var(--gold-soft); }

.section-intro {
  max-inline-size: 560px; color: var(--muted);
  font-size: 1.12rem; margin-block: 22px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-gold { background: var(--gold); color: #1a1200; box-shadow: 0 6px 22px rgba(229, 158, 34, 0.35); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 30px rgba(229, 158, 34, 0.45); }
.btn-ghost {
  color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* ---------- Technical grid-line texture for dark bands ---------- */
.gridlines {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 140px);
}

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header-inner {
  inline-size: min(1180px, 94vw); margin-inline: auto;
  block-size: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { block-size: 40px; inline-size: auto; }
.logo-dark { display: none; }
.logo-light { display: block; }
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header.scrolled .logo-dark { display: block; }
.site-header.scrolled .logo-light { display: none; }

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav ul { display: flex; gap: 22px; }
.header-nav a:not(.btn) {
  font-size: 0.93rem; font-weight: 500; color: #fff; opacity: 0.86;
  transition: opacity 0.2s; white-space: nowrap;
}
.header-nav a:not(.btn):hover { opacity: 1; }
.site-header.scrolled .header-nav a:not(.btn) { color: var(--navy-ink); }

.menu-toggle {
  display: none;
  inline-size: 40px; block-size: 40px; position: relative; z-index: 110;
}
.menu-toggle span {
  position: absolute; inset-inline: 8px; block-size: 2px; background: #fff;
  transition: transform 0.3s var(--ease), background 0.3s, inset-block-start 0.3s;
  border-radius: 2px;
}
.menu-toggle span:nth-child(1) { inset-block-start: 15px; }
.menu-toggle span:nth-child(2) { inset-block-start: 24px; }
.site-header.scrolled .menu-toggle span, .site-header.menu-open .menu-toggle span { background: var(--navy-ink); }
.site-header.menu-open .menu-toggle span:nth-child(1) { inset-block-start: 19px; transform: rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { inset-block-start: 19px; transform: rotate(-45deg); }

/* ================================================================
   HERO — rotating photo backdrop
================================================================ */
.hero {
  position: relative; min-block-size: 100vh; min-block-size: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide, .hero-slide img {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  object-fit: cover; object-position: center 38%;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}
.hero-slide.is-on { opacity: 1; }
/* Slow drift on the active frame for a living backdrop */
.js .hero-slide.is-on img { animation: heroDrift 9s ease-out forwards; }
@keyframes heroDrift { from { transform: scale(1.045); } to { transform: scale(1); } }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 18, 51, 0.55) 0%, rgba(0, 18, 51, 0.22) 40%, rgba(0, 18, 51, 0.84) 100%),
    radial-gradient(120% 90% at 50% 105%, rgba(0, 32, 91, 0.55) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 6vw 90px; max-inline-size: 980px; }
.hero h1 { margin-block-end: 26px; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  /* v2.10 (father's 2 Aug review): tagline on ONE line >=768px — size tuned
     down from the global h1 clamp; .h-one + fitHeadlines() guard the rest.
     <768px it wraps naturally (same rule as the section headlines).
     Cap 3.7rem: measured on the preview (text = 13.16x font-size px), pure
     CSS fits every width through ~1600px (.hero-content is 980px border-box
     minus 12vw padding, so the inner box SHRINKS on wide screens);
     >~1680px the JS fitter nudges 1-6px. Keeps the fitter a failsafe,
     not the primary mechanism — no overflow flash before JS runs. */
  font-size: clamp(2.9rem, 6.6vw, 3.7rem);
}
.hero-sub {
  max-inline-size: 660px; margin-inline: auto;
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.88);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-block-start: 38px; }

/* Equipment ticker — bottom-left technical readout */
.hero-ticker {
  position: absolute; z-index: 3;
  inset-block-end: 24px; inset-inline-start: clamp(16px, 4vw, 48px);
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.ht-index { color: var(--gold-soft); }
.ht-cap { max-inline-size: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-bar {
  inline-size: 72px; block-size: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.22); overflow: hidden;
}
.ht-bar i {
  display: block; block-size: 100%; inline-size: 0%;
  background: var(--gold);
}
.js .ht-bar i.run { animation: htFill linear forwards; }
@keyframes htFill { from { inline-size: 0%; } to { inline-size: 100%; } }

.scroll-cue {
  position: absolute; inset-block-end: 26px; inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 2;
  inline-size: 26px; block-size: 42px; border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute; inset-block-start: 7px; inset-inline-start: 50%;
  inline-size: 4px; block-size: 8px; margin-inline-start: -2px;
  background: #fff; border-radius: 2px;
  animation: cue 2s infinite var(--ease);
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ================================================================
   BRAND STRIP
================================================================ */
.brand-strip { padding-block: clamp(80px, 10vw, 130px); background: var(--bg); }
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-block-start: 48px;
}
.logo-grid li {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 22px 18px; min-block-size: 96px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.logo-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: #fff; border-color: var(--hairline); }
.logo-grid img {
  max-block-size: 44px; inline-size: auto; max-inline-size: 100%;
  filter: grayscale(1) opacity(0.62); mix-blend-mode: multiply;
  transition: filter 0.3s;
}
.logo-grid li:hover img { filter: grayscale(0) opacity(1); }
.logo-text {
  flex-direction: column; gap: 2px;
  font-weight: 800; letter-spacing: 0.08em; font-size: 1.02rem;
  color: rgba(13, 27, 62, 0.55);
}
.logo-text span { font-size: 0.72rem; letter-spacing: 0.3em; font-weight: 700; }
.logo-text:hover { color: var(--navy); }

/* ================================================================
   STATS BAND
================================================================ */
.stats-band {
  background: var(--bg-soft); padding-block: clamp(56px, 7vw, 90px);
  border-block: 1px solid var(--hairline);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; text-align: center;
}
.stat-num, .stat-txt {
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--navy); line-height: 1;
  display: inline-block;
}
.stat-plus { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; font-style: normal; color: var(--gold); vertical-align: 0.55em; margin-inline-start: 2px; }
.stat p { color: var(--muted); margin-block-start: 10px; font-size: 0.98rem; }

/* ================================================================
   EQUIPMENT — bento grid with rotating card galleries
================================================================ */
.equipment { padding-block: clamp(90px, 11vw, 150px); background: var(--bg); }
.bento {
  display: grid; gap: 18px; margin-block-start: 56px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  position: relative; display: flex; flex-direction: column;
  cursor: pointer; /* v2.9: cards are <article> now (brand menu inside) — JS keeps whole-card click */
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  grid-column: span 4;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-lg { grid-column: span 6; }
.card-wide { grid-column: span 12; flex-direction: row; align-items: stretch; }
.card-mini { grid-column: span 3; }

.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e8eaef; }
.card-lg .card-media { aspect-ratio: 16 / 9.5; }
.card-mini .card-media { aspect-ratio: 16 / 10; }
.card-media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.045); }

/* Rotator: stacked slides, crossfade (first slide carries .is-on in markup) */
.rotator img {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
}
.rotator img.is-on { opacity: 1; }
.card:hover .rotator img { transform: none; } /* avoid zoom fighting crossfade */

.slide-label {
  position: absolute; z-index: 2;
  inset-block-end: 10px; inset-inline-start: 10px;
  max-inline-size: calc(100% - 20px);
  padding: 5px 10px; border-radius: 7px;
  font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; background: rgba(0, 18, 51, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-dots {
  position: absolute; z-index: 2;
  inset-block-end: 15px; inset-inline-end: 12px;
  display: flex; gap: 5px;
}
.slide-dots i {
  inline-size: 5px; block-size: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.slide-dots i.on { background: var(--gold); transform: scale(1.25); }

.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.card h3 { font-size: 1.42rem; letter-spacing: -0.02em; }
.card-lg h3 { font-size: 1.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; max-inline-size: 52ch; }

/* v2.9 (father's 26 Jul review): card brand lists live in a pull-down */
.brand-menu { margin-block-start: 2px; }
.brand-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: rgba(0, 32, 91, 0.08);
  padding: 6px 13px; border-radius: 999px;
  transition: background 0.25s;
}
.brand-menu summary::-webkit-details-marker { display: none; }
.brand-menu summary:hover { background: rgba(0, 32, 91, 0.15); }
.bm-arr {
  inline-size: 7px; block-size: 7px; margin-block-start: -3px;
  border-block-end: 2px solid currentColor; border-inline-end: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.brand-menu[open] .bm-arr { transform: rotate(-135deg); margin-block-start: 3px; }
.bm-list {
  margin-block-start: 8px; inline-size: max-content; min-inline-size: 172px; max-inline-size: 100%;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.bm-list li {
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  padding: 8px 14px; border-block-start: 1px solid var(--hairline);
}
.bm-list li:first-child { border-block-start: 0; }
.card-link {
  margin-block-start: auto; padding-block-start: 12px;
  font-weight: 600; color: var(--navy); font-size: 0.98rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.arr { inline-size: 16px; block-size: 2px; background: currentColor; position: relative; transition: inline-size 0.3s var(--ease); }
.arr::after {
  content: ""; position: absolute; inset-inline-end: -1px; inset-block-start: -3px;
  inline-size: 8px; block-size: 8px;
  border-block-start: 2px solid currentColor; border-inline-end: 2px solid currentColor;
  transform: rotate(45deg);
}
.card:hover .arr { inline-size: 24px; }
.card:hover .card-link { color: var(--gold); filter: brightness(0.82); }

/* Franna feature card */
.card-franna { background: var(--navy); border-color: transparent; color: #fff; }
.card-franna .card-body { padding: clamp(30px, 4vw, 56px); justify-content: center; flex: 1 1 46%; }
.card-franna h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; }
.card-franna p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }
.card-franna .brand-menu summary { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card-franna .brand-menu summary:hover { background: rgba(255, 255, 255, 0.24); }
.card-franna .bm-list { border-color: transparent; }
.card-franna .card-link { color: var(--gold-soft); }
.card-franna:hover .card-link { color: var(--gold-soft); filter: none; }
.card-franna .card-media { flex: 1 1 54%; aspect-ratio: auto; min-block-size: 320px; }
.tag-new {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a1200; background: var(--gold); padding: 6px 12px; border-radius: 999px;
}

/* Spare parts band card */
.card-parts {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-inline-start: 4px solid var(--gold);
}
.card-parts .card-body { padding: clamp(28px, 3.6vw, 46px); }
.card-parts h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.parts-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); filter: brightness(0.85); font-weight: 600;
}

.card-mini .card-body { padding: 20px 22px 24px; gap: 8px; }
.card-mini h3 { font-size: 1.1rem; }
.card-mini p { font-size: 0.88rem; }
.card-mini .brand-menu summary { font-size: 0.64rem; padding: 5px 11px; }
.card-mini .card-link { font-size: 0.9rem; }

/* ================================================================
   GROVE RANGE — dark engineering band with model picker
================================================================ */
.spotlight {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(0, 45, 120, 0.5) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, #001a45 100%);
  background-color: var(--navy-deep);
  padding-block: clamp(90px, 11vw, 150px) clamp(56px, 7vw, 90px);
}
.spotlight-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
/* v2.8: rail moved INSIDE the copy column (right under the type tabs) —
   min-inline-size:0 lets the horizontally-scrolling rail shrink with the
   grid column instead of blowing it open */
.spotlight-copy { min-inline-size: 0; }
.spotlight-copy .model-rail-wrap { margin-block: 0 30px; }
/* v2.9: capacity headlines (“Up to 450 tonnes.”) sized to hold one line in-column */
.spotlight h2, .spotlight-light h2 { font-size: clamp(2.2rem, 4.2vw, 3rem); }
.spotlight-sub { max-inline-size: 520px; margin-block: 22px 28px; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }

.spec-readout {
  /* auto-fit + minmax(0,·) keeps tiles inside the column at every viewport;
     long values wrap instead of escaping the box (fix 2026-07-20) */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; margin-block-end: 34px;
  font-size: 0.85rem;
  max-inline-size: 560px;
}
.spec-readout > div {
  border: 1px solid var(--hairline-dark); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px; min-inline-size: 0;
}
.spec-readout dt {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-block-end: 3px;
}
.spec-readout dd {
  color: #fff; font-weight: 500;
  white-space: normal; overflow-wrap: break-word; hyphens: manual;
}
#sr-model { color: var(--gold-soft); }

.spotlight-stage {
  display: flex; align-items: center; justify-content: center;
  min-block-size: 300px;
}
.spotlight-stage img {
  max-block-size: 420px; inline-size: auto; max-inline-size: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  transition: opacity 0.45s ease;
}
.spotlight-stage img.swapping { opacity: 0; }

/* Grove category tabs */
.grove-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.grove-tabs button {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--hairline-dark); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 16px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.grove-tabs button:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.grove-tabs button.is-active {
  border-color: var(--gold); background: rgba(229, 158, 34, 0.14);
  color: var(--gold-soft);
}

/* Model rail */
.model-rail-wrap { position: relative; z-index: 2; margin-block-start: clamp(36px, 5vw, 64px); }
.rail-hint {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin-block-end: 14px;
}
/* v2.9 (father's 26 Jul review): model pickers are pull-down menus now —
   replaces the chip rail. Same behaviour: pick a model, stage + specs swap. */
.model-select {
  appearance: none; -webkit-appearance: none;
  display: block; inline-size: 100%; max-inline-size: 430px;
  font-family: var(--mono); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-dark); border-radius: 12px;
  padding: 13px 46px 13px 16px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e59e22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  transition: border-color 0.25s, background-color 0.25s;
}
.model-select:hover { border-color: rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.1); }
.model-select:focus { outline: none; border-color: var(--gold); }
.model-select option { color: var(--navy-ink); background: #fff; font-weight: 500; }

/* ================================================================
   KONECRANES LIFT TRUCKS — light-band variant of the range palette
   (same components as the Grove spotlight, restyled for a light bg
   so the dark Grove band and this section alternate rhythmically)
================================================================ */
.spotlight-light {
  background: var(--bg-soft);
  padding-block: clamp(90px, 11vw, 150px) clamp(56px, 7vw, 90px);
  border-block: 1px solid var(--hairline);
}
.spotlight-light .spotlight-copy h2 { color: var(--navy); }
.spotlight-light .spotlight-sub { color: rgba(13, 27, 62, 0.78); }
/* Level-1 category switch (Lift Trucks / Overhead Cranes) */
.kc-cats {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-block-end: 16px;
}
.kc-cats button {
  font-family: var(--mono); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(13, 27, 62, 0.5);
  padding: 4px 2px 8px;
  border-block-end: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.kc-cats button:hover { color: var(--navy); }
.kc-cats button.is-active { color: var(--navy); border-block-end-color: var(--gold); }

.spotlight-light .grove-tabs button {
  color: rgba(13, 27, 62, 0.6);
  border-color: rgba(13, 27, 62, 0.16);
  background: rgba(13, 27, 62, 0.03);
}
.spotlight-light .grove-tabs button:hover { border-color: rgba(13, 27, 62, 0.4); color: var(--navy); }
.spotlight-light .grove-tabs button.is-active {
  border-color: var(--gold); background: rgba(229, 158, 34, 0.12);
  color: #8a5c0e;
}
.spec-readout-light > div { border-color: rgba(13, 27, 62, 0.14); background: #fff; }
.spec-readout-light dt { color: rgba(13, 27, 62, 0.5); }
.spec-readout-light dd { color: var(--navy); }
.kc-stage-panel {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: clamp(16px, 2.5vw, 30px);
  display: flex; align-items: center; justify-content: center;
  inline-size: 100%; min-block-size: 300px;
}
.kc-stage-panel img {
  max-block-size: 380px; inline-size: auto; max-inline-size: 100%;
  object-fit: contain; transition: opacity 0.45s ease;
}
.kc-stage-panel img.swapping { opacity: 0; }
.rail-hint-light { color: rgba(13, 27, 62, 0.5); }
.model-select-light {
  color: var(--navy); background-color: #fff;
  border-color: rgba(13, 27, 62, 0.16);
}
.model-select-light:hover { border-color: rgba(13, 27, 62, 0.45); background-color: #fff; }
.model-select-light:focus { border-color: var(--gold); }

/* ================================================================
   SECTORS
================================================================ */
.sectors { background: var(--bg-soft); padding-block: clamp(90px, 11vw, 150px); }
.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; margin-block-start: 56px;
}
.sector {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 30px 30px 34px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.sector h3 { font-size: 1.22rem; margin-block-end: 10px; }
.sector p { color: var(--muted); font-size: 0.97rem; }

/* ================================================================
   SERVICES — lifecycle
================================================================ */
.services { padding-block: clamp(90px, 11vw, 150px); background: var(--bg); }
.lifecycle {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 34px 26px; margin-block-start: 56px;
}
.lifecycle li { border-block-start: 1px solid var(--hairline); padding-block-start: 22px; }
.lifecycle span { font-family: var(--mono); font-weight: 700; color: var(--gold); letter-spacing: 0.06em; font-size: 0.92rem; }
.lifecycle h3 { font-size: 1.14rem; margin-block: 10px 8px; }
.lifecycle p { color: var(--muted); font-size: 0.94rem; }

/* ================================================================
   ABOUT
================================================================ */
.about { background: var(--bg-soft); padding-block: clamp(90px, 11vw, 150px); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-media img { aspect-ratio: 4 / 5; object-fit: cover; inline-size: 100%; }
.about-text p:not(.eyebrow) { color: var(--muted); margin-block-start: 20px; font-size: 1.05rem; }
.office-list { margin-block-start: 30px; display: grid; gap: 14px; }
.office-list li {
  display: flex; flex-direction: column; gap: 2px;
  border-inline-start: 3px solid var(--gold); padding-inline-start: 16px;
}
.office-list strong { color: var(--navy-ink); }
.office-list span { color: var(--muted); font-size: 0.94rem; }

/* ================================================================
   CONTACT
================================================================ */
.contact {
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 130%);
  background-color: var(--navy-deep);
  color: #fff; padding-block: clamp(90px, 11vw, 150px);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 90px);
  margin-block-start: 56px; align-items: start;
}
.c-block { margin-block-end: 34px; }
.c-block h3 {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-block-end: 10px; font-weight: 600;
}
.c-block p { color: rgba(255, 255, 255, 0.88); margin-block: 4px; }
.c-block a { border-block-end: 1px solid transparent; transition: border-color 0.2s; }
.c-block a:hover { border-color: var(--gold-soft); }

/* Phone lines: channel tag (icon + label) in a fixed column, number beside it */
.c-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.c-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  min-inline-size: 158px; flex: none;
}
.c-ico { inline-size: 15px; block-size: 15px; flex: none; color: rgba(255, 255, 255, 0.65); }
.c-ico-wa { color: #25d366; } /* official WhatsApp green — instantly recognisable on the navy band */

.enquiry-form { display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { display: grid; gap: 7px; }
.f-field label { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.f-field input, .f-field select, .f-field textarea {
  font: inherit; color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-sm); padding: 13px 16px;
  transition: border-color 0.25s, background 0.25s;
}
.f-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.f-field select option { color: var(--navy-ink); }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.12);
}
.enquiry-form .btn { justify-self: start; margin-block-start: 6px; }
.enquiry-form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* Submit feedback line (aria-live). Hidden when empty so the grid gap collapses. */
.form-status { font-size: 0.92rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ffb3a1; }

/* Honeypot: visually hidden but present for bots (not display:none on purpose) */
.hp-field {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer { background: var(--bg); padding-block: 70px 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
  gap: 40px; padding-block-end: 46px; border-block-end: 1px solid var(--hairline);
}
.footer-brand img { block-size: 52px; inline-size: auto; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; margin-block-start: 16px; }
.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-block-end: 14px; font-weight: 600;
}
.site-footer nav li { margin-block: 8px; font-size: 0.95rem; color: var(--muted); }
.site-footer nav a { color: var(--navy-ink); transition: color 0.2s; }
.site-footer nav a:hover { color: var(--gold); filter: brightness(0.85); }
/* v2.10 (father's 2 Aug review): footer social icons — LinkedIn + WhatsApp only;
   more platforms only when live destinations exist. 40px targets for touch. */
.footer-social { display: flex; gap: 12px; margin-block-start: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 40px; block-size: 40px; border-radius: 10px;
  border: 1px solid var(--hairline); color: var(--navy-ink);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social a.social-wa:hover { color: #25d366; border-color: #25d366; }
.footer-social svg { inline-size: 19px; block-size: 19px; }

.footer-legal { padding-block-start: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal p { font-size: 0.82rem; color: var(--muted-light); }

/* ================================================================
   REVEAL ANIMATIONS
================================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .js .hero-slide.is-on img { animation: none; }
  .js .ht-bar i.run { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1080px) {
  .header-nav ul { gap: 16px; }
}
@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .card-mini { grid-column: span 6; }
  .card-wide { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-stage { order: -1; min-block-size: 0; }
  .spotlight-stage img { max-block-size: 300px; }
  .spec-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); max-inline-size: none; }
}

@media (max-width: 860px) {
  /* Mobile nav kicks in earlier: 8 items no longer fit */
  .menu-toggle { display: block; }
  .header-nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  }
  .site-header.menu-open .header-nav { opacity: 1; pointer-events: auto; }
  .header-nav ul { flex-direction: column; text-align: center; gap: 8px; }
  .header-nav a:not(.btn) { color: var(--navy-ink) !important; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
  .nav-cta { margin-block-start: 18px; }
  .site-header.menu-open .logo-dark { display: block; }
  .site-header.menu-open .logo-light { display: none; }
  .site-header.menu-open { background: transparent; }
}

@media (max-width: 820px) {
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .about-media img { aspect-ratio: 16 / 10; }
  .card-wide { flex-direction: column-reverse; }
  .card-franna .card-media { min-block-size: 240px; }
  .card-parts { border-inline-start-width: 1px; border-block-start: 4px solid var(--gold); }
}

@media (max-width: 760px) {
  .card, .card-lg, .card-mini { grid-column: span 12; }
  .f-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-actions .btn { inline-size: 100%; max-inline-size: 320px; }
  .footer-legal { flex-direction: column; }
  .hero-ticker { inset-inline-end: 16px; }
  .ht-cap { display: none; }
}

/* White-background catalogue cutouts: letterbox instead of crop */
.rotator img.fit-contain, .card-media img.fit-contain {
  object-fit: contain; background: #fff; padding: 5%;
}
