/* ============ Hylite Group — base + behaviors ============
   Layout/spacing lives in the page templates (inline, to match the
   design 1:1). This file holds resets, hover/focus/reveal behaviors,
   and the responsive header/footer chrome. */

:root {
  --bg: #FAF6EF;
  --ink: #2A2521;
  --muted: #8A8074;
  --blue: #1580C4;
  --blue-dk: #0E6BA8;
  --red: #D81F26;
  --red-dk: #B4181E;
  --gold: #B98F45;
  --line: #E9DFCC;
  --panel: #FDFAF2;
  --sand: #F4ECDD;
  --title-font: 'Marcellus', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); }
::selection { background: var(--sand); color: var(--ink); }
img { max-width: 100%; }

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- site-wide film-grain overlay ----
   Fixed, non-interactive noise tile blended over the whole page for a
   subtle cinematic texture. Grayscale SVG feTurbulence, tiled + repeated;
   overlay blend keeps it gentle on both the warm light theme and the dark
   hero. Disabled under reduced-motion. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.82'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  background-repeat: repeat;
}
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}

/* ---- hover helpers (ink -> blue) ---- */
.hv-blue { transition: color 0.2s ease; }
.hv-blue:hover { color: var(--blue); }

/* ---- top-nav links: animated underline reveal (ref: kpgreenengineering.com) ---- */
.nav-link {
  position: relative; color: #2A2521; font-weight: 500;
  padding-bottom: 5px; transition: color 0.22s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #1580C4, #B98F45);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: #1580C4; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: #1580C4; }
.nav-link.is-active::after { transform: scaleX(1); background: #1580C4; transform-origin: left center; }
@media (prefers-reduced-motion: reduce) {
  .nav-link::after { transition: none; }
}

/* ---- buttons ---- */
.btn-red {
  display: inline-block; background: var(--red); color: #fff;
  border: 0; cursor: pointer; border-radius: 8px;
  font-family: Inter, sans-serif; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-red:hover { background: var(--red-dk); color: #fff; }

.btn-outline {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 8px; cursor: pointer;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---- circular WhatsApp button in header ---- */
.wa-round { transition: border-color 0.2s ease; }
.wa-round:hover { border-color: var(--gold); }

/* ---- lift cards ---- */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(60, 48, 32, 0.17);
  color: var(--ink);
}
.row-lift { transition: transform 0.35s ease; }
.row-lift:hover { transform: translateY(-3px); color: var(--ink); }

/* ---- interactive chips (industries + certifications) ---- */
.ind-chip {
  display: inline-block; padding: 13px 22px; border: 1px solid #E9DFCC;
  border-radius: 100px; font-size: 13.5px; font-weight: 500; color: #2A2521;
  background: #FDFAF2;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ind-chip:hover {
  transform: translateY(-2px); border-color: #B98F45; background: #fff;
  color: #1580C4; box-shadow: 0 8px 18px rgba(60, 48, 32, 0.09);
}
.cert-pill {
  display: inline-block; padding: 14px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: #2A2521; background: #F4ECDD;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}
.cert-pill:hover {
  transform: translateY(-2px); background: #fff; border-color: #B98F45;
  box-shadow: 0 8px 18px rgba(60, 48, 32, 0.09);
}

/* ---- FAQ toggle ---- */
.qbtn { transition: color 0.2s ease; }
.qbtn:hover { color: var(--blue); }

/* ---- form fields ---- */
.field {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-family: Inter, sans-serif; font-size: 14px;
  color: var(--ink); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #E4F0FA; }
.field.field-invalid { border-color: #C86B6E; box-shadow: 0 0 0 3px #F6E4E4; }
.field.field-invalid:focus { border-color: #C86B6E; box-shadow: 0 0 0 3px #F1D5D6; }

/* ---- image-slot placeholder ---- */
.image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, #F1E7D4 0%, #E7DAC1 55%, #DDCBAB 100%);
  overflow: hidden;
}
.image-slot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 22px);
  opacity: 0.5;
}
.image-slot > span {
  position: relative; z-index: 1;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.5; color: #9C8F76;
  text-align: center; padding: 0 22px; max-width: 88%;
}
.image-slot > .is-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid rgba(156,143,118,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #9C8F76;
}

/* ---- video placeholder (plant videos with no embed id) ---- */
.video-ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background:
    radial-gradient(120% 120% at 50% 10%, #3a332c 0%, #2A2521 70%);
}
.video-ph > .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(250,246,239,0.14); border: 1px solid rgba(250,246,239,0.4);
  display: flex; align-items: center; justify-content: center; color: #FAF6EF;
}

/* ---- back to top ---- */
.back-top { transition: color 0.2s ease; }
.back-top:hover { color: var(--blue); }

/* ---- responsive header / footer chrome ---- */
.nav-desktop { display: flex; }
.nav-mobile-btn { display: none; }
.float-wa { display: flex; }
.mobile-bar { display: none; }
.mobile-spacer { display: none; }

@media (max-width: 880px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-btn { display: flex !important; }
  .float-wa { display: none !important; }
  .mobile-bar { display: grid !important; }
  .mobile-spacer { display: block !important; }
}

/* mobile nav overlay */
.menu-overlay { display: none; }
.menu-overlay.open { display: block; }

/* ============================================================
   ✦ WOW enhancement layer — ambient hero, molten-metal panel,
   staggered entrances, scroll progress, richer micro-interactions.
   Additive only; warm editorial identity preserved.
   ============================================================ */

/* ---- scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 12px rgba(216, 31, 38, 0.45);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---- staggered reveal delays ---- */
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* ---- hero ambient (soft brand-tinted glow behind the fold) ---- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-aurora span {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.5;
  will-change: transform;
}
.hero-aurora .a1 {
  width: 560px; height: 560px; left: -160px; top: -180px;
  background: radial-gradient(circle, #F0D6A2 0%, rgba(240, 214, 162, 0) 70%);
  animation: heroFloatA 20s ease-in-out infinite;
}
.hero-aurora .a2 {
  width: 480px; height: 480px; right: -140px; top: 40px;
  background: radial-gradient(circle, #BFDDF3 0%, rgba(191, 221, 243, 0) 70%);
  opacity: 0.42; animation: heroFloatB 24s ease-in-out infinite;
}
.hero-aurora .a3 {
  width: 420px; height: 420px; left: 32%; bottom: -220px;
  background: radial-gradient(circle, #F2C9B8 0%, rgba(242, 201, 184, 0) 70%);
  opacity: 0.34; animation: heroFloatA 28s ease-in-out infinite reverse;
}
@keyframes heroFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, 26px) scale(1.1); }
}
.hero-content { position: relative; z-index: 1; }

/* ---- molten-metal hero panel (premium placeholder / photo frame) ---- */
/* hero showcase film — real 3D plant walkthrough (replaces the CSS metal box) */
.fv.hero-fv {
  position: relative; aspect-ratio: 4 / 5; max-height: 520px; width: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 26px 64px rgba(60, 48, 32, 0.26);
}
.hero-fv .fv-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-fv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 120%, rgba(20, 16, 12, 0.42), transparent 58%);
}
.hero-fv.fv-playing::after { display: none; }

/* hero still image (photo alternative to the video) */
.hero-img {
  position: relative; aspect-ratio: 4 / 5; max-height: 520px; width: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(60, 48, 32, 0.30), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02); transition: transform 1.3s cubic-bezier(.2, .7, .2, 1);
}
.hero-img:hover img { transform: scale(1.06); }
.hero-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.36), transparent 44%);
}
.hero-img .pf-tag { z-index: 2; }

/* floating glass badges on the hero panel */
.hero-badge {
  position: absolute; z-index: 2;
  background: rgba(250, 246, 239, 0.94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 17px; box-shadow: 0 12px 30px rgba(60, 48, 32, 0.2);
}
.hero-badge .big {
  font-family: var(--title-font); font-weight: 600; line-height: 1;
  font-size: 26px; color: var(--ink);
}
.hero-badge .lbl {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 5px;
}
.hero-badge.tl { top: 18px; left: -18px; animation: floaty 5.5s ease-in-out infinite; }
.hero-badge.br { bottom: 20px; right: -16px; animation: floaty 6.5s ease-in-out infinite 0.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---- hero spotlight: full-bleed cinematic carousel (ref: valmontcoatings.com) ---- */
.hero-cine {
  position: relative; overflow: hidden; background: #14100c;
  min-height: clamp(580px, 86vh, 840px);
}
.hero-cine .hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease;
  display: flex; align-items: flex-end;
}
.hero-cine .hero-slide.active { opacity: 1; visibility: visible; }
.hero-cine-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); will-change: transform;
}
.hero-cine .hero-slide.active .hero-cine-bg { animation: heroKen 9s ease-out forwards; }
@keyframes heroKen { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero-cine-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(16,12,9,0.88) 0%, rgba(16,12,9,0.62) 34%, rgba(16,12,9,0.20) 66%, rgba(16,12,9,0.04) 100%),
    linear-gradient(0deg, rgba(16,12,9,0.72) 0%, rgba(16,12,9,0) 44%);
}
.hero-cine-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1160px; margin: 0 auto; padding: 0 24px 128px 24px;
}
.hero-cine-eye {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #E4BE79; font-weight: 600; margin-bottom: 18px;
}
.hero-cine-head {
  font-family: var(--title-font); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.015em;
  font-size: clamp(30px, 4vw, 50px); color: #fff;
  margin: 0 0 20px 0; text-wrap: balance; text-shadow: 0 2px 34px rgba(0,0,0,0.4);
}
.hero-cine-sub {
  font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.65;
  color: rgba(255,255,255,0.86); margin: 0 0 30px 0; max-width: 500px;
}
/* hero slide content: staggered rise-in as each slide activates */
.hero-cine .hero-slide .hero-cine-inner > div > * { opacity: 0; transform: translateY(22px); }
.hero-cine .hero-slide.active .hero-cine-inner > div > * {
  animation: heroRise 0.7s cubic-bezier(0.22, 0.68, 0.24, 1) both;
}
.hero-cine .hero-slide.active .hero-cine-inner > div > *:nth-child(1) { animation-delay: 0.05s; }
.hero-cine .hero-slide.active .hero-cine-inner > div > *:nth-child(2) { animation-delay: 0.15s; }
.hero-cine .hero-slide.active .hero-cine-inner > div > *:nth-child(3) { animation-delay: 0.25s; }
.hero-cine .hero-slide.active .hero-cine-inner > div > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-cine-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; pointer-events: none; }
.hero-cine-nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px 40px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
/* minimalist side chevrons — sit in the gutter, vertically centred, clear of the headline */
.hero-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 30px; height: 64px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.6);
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.hero-nav-arrow svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.hero-nav-arrow:hover { color: #fff; }
.hero-nav-arrow--prev { left: clamp(6px, 2vw, 26px); }
.hero-nav-arrow--next { right: clamp(6px, 2vw, 26px); }
.hero-nav-arrow--prev:hover { transform: translateY(-50%) translateX(-5px); }
.hero-nav-arrow--next:hover { transform: translateY(-50%) translateX(5px); }
/* reserve gutter room for the chevrons where the page has no natural side margin */
@media (max-width: 1260px) {
  .hero-cine-inner { padding-left: 64px; padding-right: 64px; }
  .hero-cine-nav-inner { padding-left: 64px; padding-right: 64px; }
}
/* per-slide auto-advance progress bar */
.hero-slide-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0; z-index: 3;
  background: linear-gradient(90deg, #E4BE79, #D81F26);
  box-shadow: 0 0 12px rgba(216, 31, 38, 0.5);
}
.hero-cine .hero-slide.active .hero-slide-bar { animation: heroBar 6s linear forwards; }
@keyframes heroBar { from { width: 0; } to { width: 100%; } }
.hero-cine:hover .hero-slide.active .hero-slide-bar { animation-play-state: paused; }
/* editorial slide counter — replaces the slider dots */
.hero-cine-count {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--title-font); letter-spacing: 0.02em;
}
.hero-cine-count [data-hero-count] { font-size: 21px; font-weight: 600; color: #fff; }
.hero-cine-count-sep { color: rgba(255,255,255,0.35); }
.hero-cine-count span:last-child { font-size: 14px; color: rgba(255,255,255,0.6); }
.hero-cine-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cine-trust span {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 8px 14px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-cine-trust strong { color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  .hero-cine-inner { padding-left: 20px; padding-right: 20px; padding-bottom: 150px; }
  .hero-cine-nav-inner { padding-left: 20px; padding-right: 20px; }
  .hero-cine-trust { display: none; }
  /* headline runs near full-width on phones, so lift the chevrons into the clear image band above it */
  .hero-nav-arrow { top: 23%; width: 26px; height: 48px; }
  .hero-nav-arrow svg { width: 26px; height: 26px; }
  .hero-nav-arrow--prev { left: 4px; }
  .hero-nav-arrow--next { right: 4px; }
}

/* ============ Home — animated "Our Story" timeline ============ */
.story2-head {
  position: relative; text-align: center; max-width: 680px;
  margin: 0 auto; padding-top: 20px; overflow: hidden;
}
.story2-watermark {
  position: absolute; top: -8px; left: 50%; transform: translate(-50%, var(--py, 0px));
  font-family: var(--title-font); font-weight: 600; line-height: 1;
  font-size: clamp(96px, 17vw, 190px); color: rgba(185, 143, 69, 0.08);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
}
.story2-tl { position: relative; margin-top: 46px; }
.story2-line {
  position: absolute; top: 8px; left: 10%; right: 10%; height: 2px;
  background: rgba(185, 143, 69, 0.16); border-radius: 2px; overflow: hidden;
}
.story2-line-fill {
  display: block; height: 100%; width: 100%; transform: scaleX(0);
  transform-origin: left center; border-radius: 2px;
  background: linear-gradient(90deg, #B98F45, #D9B368);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.story2.in .story2-line-fill { transform: scaleX(1); }
.story2-items {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.story2-item { position: relative; padding: 30px 12px 0; text-align: center; }
.story2-dot {
  position: absolute; top: 0; left: 50%; margin-left: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #FDFAF2; border: 2px solid #B98F45;
  box-shadow: 0 0 0 5px rgba(185, 143, 69, 0.10);
  transform: scale(0); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.story2.in .story2-dot { transform: scale(1); }
.story2-item:last-child .story2-dot {
  background: #B98F45; border-color: #B98F45;
  box-shadow: 0 0 0 5px rgba(185, 143, 69, 0.14);
}
.story2.in .story2-item:last-child .story2-dot {
  animation: story2Pulse 2.6s ease-in-out 1.5s infinite;
}
@keyframes story2Pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(185, 143, 69, 0.14); }
  50% { box-shadow: 0 0 0 10px rgba(185, 143, 69, 0.04); }
}
.story2-c {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.story2.in .story2-item .story2-c { opacity: 1; transform: none; }
.story2-year {
  font-family: var(--title-font); font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em; color: #D81F26; margin-bottom: 6px;
}
.story2-item:last-child .story2-year { color: #B98F45; }
.story2-t {
  font-family: var(--title-font); font-size: 16.5px; font-weight: 600;
  color: #2A2521; line-height: 1.3; margin-bottom: 7px;
}
.story2-d { font-size: 13.5px; line-height: 1.55; color: #8A8074; margin: 0; }
/* staggered pop of nodes + content, synced with the rail draw */
.story2.in .story2-item:nth-child(1) .story2-dot { transition-delay: 0.10s; }
.story2.in .story2-item:nth-child(2) .story2-dot { transition-delay: 0.28s; }
.story2.in .story2-item:nth-child(3) .story2-dot { transition-delay: 0.46s; }
.story2.in .story2-item:nth-child(4) .story2-dot { transition-delay: 0.64s; }
.story2.in .story2-item:nth-child(5) .story2-dot { transition-delay: 0.82s; }
.story2.in .story2-item:nth-child(1) .story2-c { transition-delay: 0.20s; }
.story2.in .story2-item:nth-child(2) .story2-c { transition-delay: 0.38s; }
.story2.in .story2-item:nth-child(3) .story2-c { transition-delay: 0.56s; }
.story2.in .story2-item:nth-child(4) .story2-c { transition-delay: 0.74s; }
.story2.in .story2-item:nth-child(5) .story2-c { transition-delay: 0.92s; }
@media (max-width: 720px) {
  .story2-tl { margin-top: 32px; }
  .story2-line { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .story2-line-fill {
    width: 100%; height: 100%; transform: scaleY(0); transform-origin: top center;
  }
  .story2.in .story2-line-fill { transform: scaleY(1); }
  .story2-items { grid-template-columns: 1fr; gap: 0; }
  .story2-item { padding: 4px 0 30px 40px; text-align: left; }
  .story2-item:last-child { padding-bottom: 4px; }
  .story2-dot { top: 4px; left: 9px; margin-left: -8px; }
  .story2-watermark { font-size: clamp(80px, 26vw, 150px); }
  .story2-ico { width: 42px; height: 42px; margin-bottom: 12px; }
}
/* per-era illustration badges + travelling rail sheen (client: more illustration + motion) */
.story2-ico {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  color: #B98F45; background: #FDFAF2;
  border: 1px solid rgba(185, 143, 69, 0.42);
  box-shadow: 0 6px 16px rgba(185, 143, 69, 0.16);
  opacity: 0; transform: scale(0) rotate(-14deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, color 0.3s ease, border-color 0.3s ease;
}
.story2-ico svg { width: 24px; height: 24px; }
.story2.in .story2-item .story2-ico { opacity: 1; transform: none; }
.story2-item:last-child .story2-ico { color: #D81F26; background: #fff; border-color: rgba(216, 31, 38, 0.38); }
.story2-item:hover .story2-ico { color: #1580C4; border-color: rgba(21, 128, 196, 0.42); }
.story2.in .story2-item:nth-child(1) .story2-ico { transition-delay: 0.16s; }
.story2.in .story2-item:nth-child(2) .story2-ico { transition-delay: 0.34s; }
.story2.in .story2-item:nth-child(3) .story2-ico { transition-delay: 0.52s; }
.story2.in .story2-item:nth-child(4) .story2-ico { transition-delay: 0.70s; }
.story2.in .story2-item:nth-child(5) .story2-ico { transition-delay: 0.88s; }
.story2-line-fill { position: relative; }
.story2-line-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-140%);
}
.story2.in .story2-line-fill::after { animation: railSheen 2.8s ease-in-out 1.6s infinite; }
@keyframes railSheen { 0% { transform: translateX(-140%); } 55%, 100% { transform: translateX(340%); } }
/* WOW layer: hover glow ring per badge, gentle idle float, and a comet of
   light that travels the rail as the story draws in (desktop rail only). */
.story2-ico::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(21, 128, 196, 0); opacity: 0;
  transition: box-shadow 0.4s ease, opacity 0.4s ease; pointer-events: none;
}
.story2-item:hover .story2-ico::after { opacity: 1; box-shadow: 0 0 24px 4px rgba(21, 128, 196, 0.36); }
.story2-item:last-child:hover .story2-ico::after { box-shadow: 0 0 24px 4px rgba(216, 31, 38, 0.34); }
.story2.in .story2-item .story2-ico svg { animation: story2Float 3.8s ease-in-out infinite; }
.story2.in .story2-item:nth-child(2) .story2-ico svg { animation-delay: 0.5s; }
.story2.in .story2-item:nth-child(3) .story2-ico svg { animation-delay: 1s; }
.story2.in .story2-item:nth-child(4) .story2-ico svg { animation-delay: 1.5s; }
.story2.in .story2-item:nth-child(5) .story2-ico svg { animation-delay: 2s; }
@keyframes story2Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (min-width: 721px) {
  .story2-tl::before {
    content: ""; position: absolute; top: 9px; left: 10%; z-index: 3;
    width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    background: radial-gradient(circle, #FFF4D6 0%, #E4BE79 52%, rgba(228, 190, 121, 0) 72%);
    box-shadow: 0 0 14px 5px rgba(228, 190, 121, 0.85), 0 0 30px 10px rgba(216, 31, 38, 0.26);
    opacity: 0; pointer-events: none;
  }
  .story2.in .story2-tl::before { animation: story2Comet 1.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
}
@keyframes story2Comet {
  0%   { left: 10%; opacity: 0; transform: scale(0.5); }
  12%  { opacity: 1; transform: scale(1); }
  85%  { opacity: 1; transform: scale(1); }
  100% { left: 90%; opacity: 0; transform: scale(0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .story2-line-fill { transform: none !important; }
  .story2-line-fill::after { animation: none !important; opacity: 0 !important; }
  .story2-dot { transform: scale(1) !important; }
  .story2.in .story2-item:last-child .story2-dot { animation: none !important; }
  .story2-c { opacity: 1 !important; transform: none !important; }
  .story2-ico { opacity: 1 !important; transform: none !important; }
  .story2-ico svg { animation: none !important; transform: none !important; }
  .story2-tl::before { animation: none !important; opacity: 0 !important; }
}

/* ============ About — decades-of-progress timeline ============ */
.tl-tabs {
  display: flex; gap: clamp(22px, 4.4vw, 56px); overflow-x: auto; position: relative;
  padding: 12px 2px 8px 2px; margin-bottom: 42px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.tl-tabs::-webkit-scrollbar { display: none; }
.tl-tabs::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 18px; height: 2px;
  background: #D8C9A8; z-index: 0;
}
/* progress fill — animates from the start up to the active dot */
.tl-tabs::after {
  content: ""; position: absolute; left: 2px; top: 18px; height: 2px; z-index: 0;
  width: calc(var(--tl-fill, 0px) - 2px);
  background: linear-gradient(90deg, #B98F45, #D81F26);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-tab {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 0;
}
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; background: #F4ECDD; border: 2px solid #C9B892;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.tl-yr {
  font-family: var(--title-font); font-size: 18px; font-weight: 600; color: #B7AC98;
  transition: color 0.2s ease;
}
.tl-tab:hover .tl-dot { border-color: #1580C4; transform: scale(1.12); }
.tl-tab:hover .tl-yr { color: #8A8074; }
.tl-tab:focus-visible { outline: none; }
.tl-tab:focus-visible .tl-dot { box-shadow: 0 0 0 4px rgba(21, 128, 196, 0.30); border-color: #1580C4; }
/* already-passed milestones fill gold to match the progress line */
.tl-tab.is-done .tl-dot { background: #B98F45; border-color: #B98F45; }
.tl-tab.is-done .tl-yr { color: #8A8074; }
.tl-tab.active .tl-dot {
  background: var(--red); border-color: var(--red);
  transform: scale(1.35); box-shadow: 0 0 0 5px rgba(216, 31, 38, 0.16);
}
.tl-tab.active .tl-yr { color: #2A2521; }
.tl-panel { display: none; }
.tl-panel.active { display: block; animation: tlFade 0.5s ease both; }
@keyframes tlFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tl-panel-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.tl-panel-main { min-width: 0; }
.tl-panel-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tl-era {
  font-family: var(--title-font); font-size: 14px; font-weight: 600;
  color: #1580C4; background: #EAF4FB; border-radius: 999px; padding: 5px 15px;
}
.tl-count { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #B7AC98; font-weight: 700; }
.tl-event { margin-bottom: 22px; }
.tl-event:last-child { margin-bottom: 0; }
.tl-event-t { font-family: var(--title-font); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: #2A2521; line-height: 1.2; margin: 0 0 10px 0; }
.tl-event-b { font-size: 16.5px; line-height: 1.8; color: #5F574C; margin: 0; max-width: 480px; }
.tl-panel-visual { display: flex; justify-content: center; }
.tl-year-card {
  width: 100%; max-width: 460px; aspect-ratio: 16 / 11; border-radius: 18px;
  background: linear-gradient(140deg, #1580C4 0%, #0E567F 100%);
  box-shadow: 0 24px 52px rgba(21, 128, 196, 0.26);
  display: flex; flex-direction: column; justify-content: center;
  text-align: left; color: #fff; padding: 30px 34px; position: relative; overflow: hidden;
}
.tl-year-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 84% 14%, rgba(255,255,255,0.18), transparent 52%);
}
.tl-year-rings { position: absolute; top: 0; right: 0; width: 200px; height: 200px; pointer-events: none; }
.tl-year-card-eye { position: relative; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; opacity: 0.86; }
.tl-year-card-num { position: relative; font-family: var(--title-font); font-size: clamp(56px, 8vw, 92px); font-weight: 600; line-height: 1; margin: 6px 0 0 0; }
.tl-year-card-foot { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.tl-year-card-title { font-family: var(--title-font); font-size: 19px; font-weight: 600; line-height: 1.25; }
.tl-year-card-mark { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; opacity: 0.82; margin-top: 8px; }
@media (max-width: 760px) {
  .tl-panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .tl-year-card { max-width: none; aspect-ratio: 16 / 10; }
  .tl-tabs { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tabs::after { transition: none; }
  .tl-panel.active { animation: none; }
}

/* ============ About — leadership cards (aligned, no focus line) ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.team-card {
  display: flex; flex-direction: column; background: #FDFAF2; border: 1px solid #E9DFCC;
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(60, 48, 32, 0.07);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(60, 48, 32, 0.16); }
.team-card-photo { position: relative; aspect-ratio: 1 / 1; background: #EDE4D2; }
.team-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.team-card:hover .team-card-photo img { transform: scale(1.06); }
.team-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px; }
.team-card-head { min-height: 58px; }
.team-card-name { font-family: var(--title-font); font-size: 18px; font-weight: 600; color: #2A2521; line-height: 1.25; }
.team-card-role { font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: #B98F45; font-weight: 600; margin-top: 6px; line-height: 1.45; }
.team-card-bio { font-size: 13.5px; line-height: 1.65; color: #8A8074; margin: 14px 0 0 0; padding-top: 14px; border-top: 1px solid #E9DFCC; }
@media (max-width: 520px) { .team-card-head { min-height: 0; } }

/* About — story-first hero: full-width headline, lead intro, stat strip, landscape band */
.about-hero-head { max-width: none; }
.about-lede-h {
  font-family: var(--title-font);
  font-size: clamp(36px, 5.8vw, 66px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  color: #2A2521; margin: 0; text-wrap: balance;
}
.about-hero-intro {
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.62; font-weight: 450;
  color: #5F574C; margin: 26px 0 0 0; max-width: none; text-wrap: pretty;
}
.about-hero-stats {
  display: flex; flex-wrap: wrap; gap: 18px 52px;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid #E4D9C2;
}
.about-stat { min-width: 0; }
.about-stat-n {
  font-family: var(--title-font); font-size: clamp(28px, 3vw, 38px);
  font-weight: 600; color: #1580C4; line-height: 1;
}
.about-stat-l {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8A8074; font-weight: 600; margin-top: 9px;
}
.about-hero-media {
  position: relative; margin: 40px 0 0 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #EDE4D2;
  box-shadow: 0 26px 64px rgba(60, 48, 32, 0.18);
}
.about-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(18, 13, 8, 0.55), transparent);
  pointer-events: none;
}
.about-hero-cap {
  position: absolute; left: 22px; bottom: 16px; z-index: 1;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.about-lede-body { max-width: 820px; margin: 44px 0 0 0; }
@media (max-width: 640px) {
  .about-hero-stats { gap: 16px 32px; margin-top: 28px; padding-top: 22px; }
  .about-hero-media { aspect-ratio: 4 / 3; margin-top: 30px; }
  .about-hero-cap { left: 16px; bottom: 12px; font-size: 10.5px; }
  .about-lede-body { margin-top: 32px; }
}

/* Footer — "Ask AI about us" backlink pills */
.ai-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid #D9CBAF; border-radius: 999px;
  background: #FDFAF2; color: #2A2521;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.ai-pill svg { color: #B98F45; transition: color .2s ease, transform .2s ease; }
.ai-pill:hover { color: #1580C4; border-color: #1580C4; transform: translateY(-1px); }
.ai-pill:hover svg { color: #1580C4; transform: rotate(15deg) scale(1.08); }

/* Footer — deliberate 5-column layout (brand + 4 link columns), no orphan wrap */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(4, minmax(140px, 1fr));
  gap: 40px 34px;
}
.footer-brand { min-width: 0; }
.footer-col { min-width: 0; }
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* About — parallax editorial watermark (mirrors Home's story timeline) */
.about-wm {
  position: absolute; top: 24px; right: 2%; z-index: 0;
  font-family: var(--title-font); font-weight: 600; line-height: 1;
  font-size: clamp(96px, 15vw, 210px); color: rgba(185, 143, 69, 0.07);
  white-space: nowrap; pointer-events: none; user-select: none;
  transform: translateY(var(--py, 0px)); will-change: transform;
}
@media (max-width: 720px) { .about-wm { font-size: clamp(74px, 24vw, 132px); top: 14px; } }

/* ---- service cards: growing accent line + sliding arrow ---- */
.svc-card { position: relative; overflow: hidden; }
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card:hover::after { width: 100%; }
.svc-card .arw { display: inline-block; transition: transform 0.3s ease; }
.svc-card:hover .arw { transform: translateX(9px); }

/* ============ Services hub — icon-led process cards ============ */
.svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4.6vw, 68px);
  align-items: stretch;
}
.svc-hero-text { align-self: center; max-width: 640px; }
/* reuse the site's .fv click-to-play film; cancel its 16/9 so it stretches to the copy column.
   Two-class selector (.svc-hero-fv.fv) beats the later single-class .fv { aspect-ratio:16/9 }. */
.svc-hero-fv.fv {
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 360px;
  min-width: 0;
  border-radius: 18px;
}
/* keep the media absolutely filling the box so the img's intrinsic width can't stretch the grid column */
.svc-hero-fv .fv-poster,
.svc-hero-fv .fv-video { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .svc-hero { grid-template-columns: 1fr; gap: 30px; }
  .svc-hero-text { max-width: none; }
  .svc-hero-fv.fv { min-height: 0; aspect-ratio: 16 / 10; }
}
.svc-hero-h {
  font-family: var(--title-font);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  color: #2A2521; margin: 0; text-wrap: balance;
}
.svc-hero-sub {
  font-family: var(--title-font); font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px); font-weight: 500;
  color: #1580C4; margin: 16px 0 0 0; line-height: 1.3;
}
.svc-hero-body {
  font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; font-weight: 450;
  color: #5F574C; margin: 20px 0 0 0; max-width: 760px; text-wrap: pretty;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px; margin-top: 52px;
}
.svc-grid .svc-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #FDFAF2; border: 1px solid #E9DFCC; border-radius: 16px;
  padding: 30px 28px 28px 28px; color: #2A2521;
  box-shadow: 0 12px 30px rgba(60, 48, 32, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.svc-grid .svc-card:hover {
  transform: translateY(-8px); border-color: #D8C9A8;
  box-shadow: 0 26px 54px rgba(60, 48, 32, 0.16);
}
.svc-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.svc-card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: #EAF4FB; color: #1580C4;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.svc-grid .svc-card:hover .svc-card-ic { transform: rotate(-5deg) scale(1.06); background: #DCEDF9; }
.svc-card-num {
  font-family: var(--title-font); font-size: 30px; font-weight: 600;
  color: #E4D9C2; line-height: 1;
}
.svc-card-tag {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: #B98F45;
}
.svc-card-title {
  font-family: var(--title-font); font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 600; line-height: 1.15; color: #2A2521; margin: 8px 0 0 0;
}
.svc-card-blurb {
  font-size: 15px; line-height: 1.62; color: #8A8074; margin: 12px 0 0 0;
}
.svc-card-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 0;
}
.svc-chip {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: #6F675C;
  background: #F1E9D8; border: 1px solid #E4D9C2; border-radius: 999px;
  padding: 5px 11px;
}
.svc-card-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  padding-top: 22px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #1580C4;
}
.svc-arrow { transition: transform 0.3s ease; }
.svc-grid .svc-card:hover .svc-arrow { transform: translateX(5px); }
@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-grid .svc-card { padding: 26px 22px 24px 22px; }
}

/* ---- button sheen sweep ---- */
.btn-red { position: relative; overflow: hidden; }
.btn-red::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-red:hover::after { left: 150%; }
.btn-red:hover { transform: translateY(-1px); }

/* ---- gold rule shimmer ---- */
.gold-rule-anim {
  position: relative; overflow: hidden;
}
.gold-rule-anim::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: ruleShimmer 3.4s ease-in-out infinite;
}
@keyframes ruleShimmer {
  0% { left: -60%; }
  60%, 100% { left: 140%; }
}

/* ---- stat numbers: subtle count emphasis ---- */
.stat-num { position: relative; display: inline-block; }

/* ============================================================
   ✦ BOLDER layer — capability marquee, gradient stat band,
   editorial index numbers, hero eyebrow accent. Additive.
   ============================================================ */

/* ---- capability marquee ribbon (continuous magazine motion) ---- */
.cap-marquee {
  overflow: hidden; white-space: nowrap; width: 100%;
  background: linear-gradient(100deg, #0E5C93 0%, #1580C4 52%, #0E5C93 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 14px 30px -20px rgba(0, 0, 0, 0.55), inset 0 -14px 30px -20px rgba(0, 0, 0, 0.55);
}
.cap-marquee-track {
  display: inline-flex; align-items: center;
  padding: 16px 0; will-change: transform;
  animation: capScroll 36s linear infinite;
}
.cap-marquee:hover .cap-marquee-track { animation-play-state: paused; }
.cap-item {
  font-family: var(--title-font); font-weight: 600;
  font-size: clamp(15px, 1.7vw, 20px); letter-spacing: 0.01em;
  color: #fff; padding: 0 3px;
}
.cap-sep {
  display: inline-block; width: 8px; height: 8px; margin: 0 clamp(20px, 3vw, 34px);
  background: #E4BE79; transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(228, 190, 121, 0.75);
}
@keyframes capScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- home stat band: bold gradient numbers + animated underline ---- */
.home-stat { position: relative; }
.home-stat-n {
  display: inline-block; position: relative; padding-bottom: 12px;
  font-family: var(--title-font); font-weight: 600; line-height: 1;
  font-size: clamp(46px, 6vw, 64px); color: #1580C4;
  background: linear-gradient(145deg, #2A2521 8%, #1580C4 58%, #B98F45 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-stat-n::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 44px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.home-stats.in .home-stat-n::after { transform: translateX(-50%) scaleX(1); }
.home-stat-plus { -webkit-text-fill-color: #D81F26; color: #D81F26; }
.home-stat-l {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #8A8074; font-weight: 600; margin-top: 14px;
}
.home-stat-iso {
  font-family: var(--title-font); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 34px); color: #2A2521; padding-top: 12px;
}
.home-stat-iso .c { color: #B98F45; }

/* ---- service card editorial index number ---- */
.svc-num {
  position: absolute; top: 12px; right: 20px; z-index: 0;
  font-family: var(--title-font); font-weight: 600; line-height: 1;
  font-size: 60px; color: #2A2521; opacity: 0.09;
  transition: opacity 0.35s ease, color 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.svc-card > *:not(.svc-num) { position: relative; z-index: 1; }
.svc-card:hover .svc-num { opacity: 0.2; color: #1580C4; transform: translateY(-2px); }

/* ---- hero eyebrow accent bar (draws in as each slide activates) ---- */
.hero-cine-eye { display: inline-flex; align-items: center; }
.hero-cine-eye::before {
  content: ""; display: inline-block; width: 0; height: 2px; margin-right: 0;
  background: linear-gradient(90deg, #E4BE79, #D81F26); vertical-align: middle;
}
.hero-cine .hero-slide.active .hero-cine-eye::before {
  animation: eyeBar 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}
@keyframes eyeBar { to { width: 34px; margin-right: 14px; } }

/* ---- consistent section headers: short kicker as the BIG title, sentence as smaller subtitle ---- */
.sec-h { position: relative; }
.sec-h--c { text-align: center; }
.sec-kicker-bar {
  display: block; width: 0; height: 4px; margin: 0 0 22px 0; border-radius: 4px;
  background: linear-gradient(90deg, #B98F45, #D81F26);
  box-shadow: 0 3px 12px rgba(216, 31, 38, 0.28);
}
.sec-h--c .sec-kicker-bar { margin-left: auto; margin-right: auto; }
.reveal.in .sec-kicker-bar,
.story2.in .sec-kicker-bar { animation: secBar 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards; }
@keyframes secBar { to { width: 64px; } }
.sec-title {
  font-family: var(--title-font); font-weight: 600;
  line-height: 1.1; letter-spacing: -0.02em;
  font-size: clamp(27px, 3.4vw, 42px); color: #2A2521; margin: 0;
  text-wrap: balance;
}
.sec-sub {
  font-size: clamp(16px, 1.6vw, 19.5px); line-height: 1.6; font-weight: 450;
  color: #6F675C; margin: 16px 0 0 0; max-width: 56ch; text-wrap: pretty;
}
.sec-h--c .sec-sub { margin-left: auto; margin-right: auto; }

/* ---- premium interactions: magnetic CTAs, hero glow, parallax depth ---- */
.magnetic { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
/* hero primary CTA: subtle, restrained shadow (no heavy glow) */
.hero-cine .btn-red { box-shadow: 0 5px 14px rgba(216, 31, 38, 0.20); }
.hero-cine .hero-slide.active .btn-red { animation: heroCtaGlow 4.2s ease-in-out 1.2s infinite; }
@keyframes heroCtaGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(216, 31, 38, 0.16); }
  50% { box-shadow: 0 7px 20px rgba(216, 31, 38, 0.26); }
}
/* parallax depth layer (JS-driven translate) */
.story2-watermark { will-change: transform; }

/* ---- honor reduced motion: kill all ambient/loop animation ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-aurora span,
  .hero-badge.tl, .hero-badge.br,
  .hero-cine .hero-slide.active .hero-cine-bg,
  .tl-panel.active,
  .cap-marquee-track,
  .gold-rule-anim::after { animation: none !important; }
  .cap-marquee-track { transform: none !important; }
  .hero-cine .hero-slide.active .hero-cine-bg { transform: none !important; }
  .hero-slide { transition: opacity 0.3s ease !important; transform: none !important; }
  .hero-cine .hero-slide .hero-cine-inner > div > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .home-stat-n::after { transition: none !important; transform: translateX(-50%) scaleX(1) !important; }
  .hero-cine .hero-slide.active .hero-cine-eye::before { animation: none !important; width: 34px !important; margin-right: 14px !important; }
  .hero-cine .hero-slide.active .hero-slide-bar { animation: none !important; width: 100% !important; }
  .sec-kicker-bar { animation: none !important; width: 64px !important; }
  .hero-cine .hero-slide.active .btn-red { animation: none !important; }
  .hero-nav-arrow { transition: none !important; }
  .magnetic { transition: none !important; transform: none !important; }
  .story2-watermark, .about-wm { --py: 0px !important; }
  .team-card-photo img { transition: none !important; }
  .scroll-progress { display: none; }
}

/* ============================================================
   PLANT VIDEO GALLERY  (Facilities · "Inside Our Plants")
   ============================================================ */
.gv { margin-top: 26px; }

/* ---- tabs ---- */
.gv-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.gv-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel);
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gv-tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.gv-tab.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 8px 22px rgba(42, 37, 33, 0.22);
}
.gv-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 999px; background: var(--sand); color: var(--muted);
}
.gv-tab.is-active .gv-count { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---- panels ---- */
.gv-panel { display: none; }
.gv-panel.is-active { display: block; animation: gvFade .35s ease both; }
@keyframes gvFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- grid ---- */
.gv-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

/* ---- thumb ---- */
.gv-thumb {
  position: relative; display: block; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; background: var(--sand);
  aspect-ratio: 16 / 10;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gv-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(42, 37, 33, 0.18);
}
.gv-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease, filter .3s ease;
}
.gv-thumb:hover img { transform: scale(1.06); }
.gv-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.35), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gv-thumb:hover::after { opacity: 1; }

/* ---- play badge ---- */
.gv-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(216, 31, 38, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .2s ease;
  pointer-events: none;
}
.gv-play svg { margin-left: 2px; }
.gv-thumb:hover .gv-play { transform: translate(-50%, -50%) scale(1.12); background: var(--red); }

/* ---- hidden extras + show-all ---- */
.gv-more { display: none; }
.gv-panel.gv-open .gv-more { display: block; animation: gvFade .4s ease both; }
.gv-morewrap { text-align: center; margin-top: 22px; }
.gv-panel.gv-open .gv-morewrap { display: none; }
.gv-showall {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border: 1px solid var(--ink);
  border-radius: 8px; background: transparent;
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.gv-showall:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.gv-showall span { transition: transform .2s ease; }
.gv-showall:hover span { transform: translateY(3px); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.gv-lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
}
.gv-lb.open { opacity: 1; }
.gv-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 13, 10, 0.9);
  backdrop-filter: blur(4px);
}
.gv-lb-stage {
  position: relative; z-index: 2;
  width: min(92vw, 1080px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(.96); transition: transform .3s cubic-bezier(.34,1.3,.64,1);
}
.gv-lb.open .gv-lb-stage { transform: scale(1); }
.gv-lb-video {
  width: 100%; max-height: 78vh;
  border-radius: 12px; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}
.gv-lb-cap {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: rgba(255, 255, 255, 0.82);
}
.gv-lb-close {
  position: absolute; top: 20px; right: 22px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.gv-lb-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.gv-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.gv-lb-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.22); }
.gv-lb-nav:disabled { opacity: 0.28; cursor: default; }
.gv-lb-prev { left: 18px; }
.gv-lb-next { right: 18px; }
.gv-lb-prev:hover:not(:disabled) { transform: translateY(-50%) translateX(-3px); }
.gv-lb-next:hover:not(:disabled) { transform: translateY(-50%) translateX(3px); }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .gv-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .gv-play { width: 44px; height: 44px; }
  .gv-lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .gv-lb-prev { left: 8px; }
  .gv-lb-next { right: 8px; }
  .gv-lb-close { top: 12px; right: 12px; }
  .gv-lb-stage { width: 94vw; }
  .gv-lb-video { max-height: 68vh; }
}
@media (max-width: 520px) {
  .gv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .gv-panel.is-active, .gv-more { animation: none !important; }
  .gv-thumb, .gv-thumb img, .gv-play, .gv-lb, .gv-lb-stage { transition: none !important; }
}

/* ============================================================
   HOME BRAND FILMS  (click poster to play inline)
   ============================================================ */
.fv {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 24px 60px rgba(42, 37, 33, 0.18);
}
.fv-poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease, filter .35s ease;
}
.fv:hover .fv-poster { transform: scale(1.04); filter: brightness(.9); }
.fv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.4), transparent 55%);
  opacity: .75; transition: opacity .3s ease;
}
.fv.fv-playing { cursor: default; }
.fv.fv-playing::after { display: none; }
.fv-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(216, 31, 38, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), background .2s ease;
  pointer-events: none;
}
.fv-play svg { margin-left: 3px; }
.fv:hover .fv-play { transform: translate(-50%, -50%) scale(1.12); background: var(--red); }
.fv-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

/* three-up process films on the home page */
.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.pf-card .fv.pf-fv {
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 40px rgba(42, 37, 33, 0.14);
}
.pf-card .fv.pf-fv .fv-play { width: 62px; height: 62px; }
.pf-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 6px 13px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(21, 128, 196, 0.92);
  box-shadow: 0 4px 14px rgba(14, 107, 168, 0.35); pointer-events: none;
}
.pf-card .fv.pf-fv.fv-playing .pf-tag { display: none; }
/* facility card video header (full-bleed top of the card) */
.fac-fv {
  aspect-ratio: 16 / 10;
  border: 0; border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}
.fac-fv .fv-play { width: 56px; height: 56px; }
.fac-fv-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 100px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(4px); pointer-events: none;
}
.fac-fv.fv-playing .fac-fv-tag { display: none; }

@media (max-width: 880px) {
  .fv-play { width: 60px; height: 60px; }
  .pf-grid { grid-template-columns: 1fr; gap: 22px; max-width: 460px; margin: 0 auto; }
  .pf-card .fv.pf-fv { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-poster, .fv-play { transition: none !important; }
}

/* ============================================================
   DOWNLOADS LIBRARY  (#/downloads)
   ============================================================ */
/* ---- sticky search + filter toolbar ---- */
.dl-toolbar-wrap {
  position: sticky; top: 71px; z-index: 50;
  background: rgba(250, 246, 239, 0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dl-toolbar {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px 16px 24px;
  display: flex; flex-direction: column; gap: 13px;
}
.dl-search { position: relative; display: flex; align-items: center; }
.dl-search > svg {
  position: absolute; left: 17px; color: var(--muted); pointer-events: none;
}
.dl-search input {
  width: 100%; padding: 15px 46px 15px 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); font-family: Inter, sans-serif;
  font-size: 15.5px; color: var(--ink); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.dl-search input::placeholder { color: #A99E8C; }
.dl-search input:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px #E4F0FA;
}
.dl-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dl-search-clear {
  position: absolute; right: 12px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--sand); color: var(--muted);
  border-radius: 50%; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.dl-search-clear:hover { background: var(--gold); color: #fff; }

.dl-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-chip {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.dl-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.dl-chip.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(42, 37, 33, 0.2);
}
.dl-chiprow-sub .dl-chip {
  padding: 6px 13px; font-size: 12px; font-weight: 500;
  background: transparent; color: var(--muted);
}
.dl-chiprow-sub .dl-chip:hover { color: var(--ink); }
.dl-chiprow-sub .dl-chip.is-active {
  background: var(--sand); color: var(--ink); border-color: var(--gold);
  box-shadow: none;
}

/* ---- grouped sections ---- */
.dl-group { margin-bottom: 52px; }
.dl-group:last-child { margin-bottom: 0; }
.dl-group-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dl-group-head h2 {
  font-family: var(--title-font); font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 5px 0;
}
.dl-group-head p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.dl-group-count {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--sand); border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}

.dl-resulthead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 14px; color: var(--muted);
}
.dl-resulthead strong { color: var(--ink); }
.dl-textbtn {
  border: 0; background: none; cursor: pointer; font-family: Inter, sans-serif;
  font-size: 13px; font-weight: 600; color: var(--blue); padding: 4px;
}
.dl-textbtn:hover { color: var(--blue-dk); }

/* ---- grid + card ---- */
.dl-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.dl-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 1px solid var(--gold); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(60, 48, 32, 0.07);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.dl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(60, 48, 32, 0.16);
  border-color: var(--line);
}
.dl-cover {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; cursor: pointer; overflow: hidden;
  aspect-ratio: 15 / 19; background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.dl-cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.dl-card:hover .dl-cover img { transform: scale(1.05); }
.dl-badge {
  position: absolute; z-index: 2; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px;
  border-radius: 7px; backdrop-filter: blur(6px);
}
.dl-type {
  top: 11px; left: 11px; background: rgba(250, 246, 239, 0.92);
  color: var(--ink); border: 1px solid var(--line);
}
.dl-feat {
  top: 11px; right: 11px; color: #fff;
  background: linear-gradient(135deg, var(--gold), #a87c34);
  box-shadow: 0 4px 12px rgba(168, 124, 52, 0.4);
}
.dl-cover-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(8px);
  z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(42, 37, 33, 0.9); color: #fff; backdrop-filter: blur(4px);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity .28s ease, transform .28s ease;
}
.dl-card:hover .dl-cover-hint { opacity: 1; transform: translateX(-50%) translateY(0); }
.dl-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.32), transparent 42%);
  opacity: 0; transition: opacity .3s ease;
}
.dl-card:hover .dl-cover::after { opacity: 1; }

.dl-body { display: flex; flex-direction: column; padding: 17px 18px 18px 18px; flex: 1; }
.dl-title {
  font-family: var(--title-font); font-size: 18px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px 0;
}
.dl-desc {
  font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 14px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-top: auto; margin-bottom: 15px;
  font-size: 11.5px; color: var(--muted);
}
.dl-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.dl-meta svg { opacity: 0.7; }
.dl-chip-mini {
  font-weight: 600; color: var(--gold);
  background: rgba(185, 143, 69, 0.1); padding: 3px 9px; border-radius: 999px;
}
.dl-actions { display: flex; align-items: center; gap: 8px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 15px; border-radius: 9px; cursor: pointer;
  font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.dl-btn-primary { background: var(--red); color: #fff; flex: 1; }
.dl-btn-primary:hover { background: var(--red-dk); color: #fff; transform: translateY(-1px); }
.dl-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.dl-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.dl-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: all .18s ease;
}
.dl-icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* ---- empty state ---- */
.dl-empty {
  text-align: center; padding: 70px 24px; color: var(--muted);
}
.dl-empty svg { color: var(--gold); opacity: 0.7; margin-bottom: 16px; }
.dl-empty h3 {
  font-family: var(--title-font); font-size: 24px; font-weight: 600;
  color: var(--ink); margin: 0 0 8px 0;
}
.dl-empty p { font-size: 14.5px; margin: 0 auto 22px auto; max-width: 360px; line-height: 1.6; }
.dl-empty .dl-btn { display: inline-flex; }

/* ============================================================
   DOCUMENT PREVIEW LIGHTBOX
   ============================================================ */
.dl-lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 26px; opacity: 0; transition: opacity .28s ease;
}
.dl-lb.open { opacity: 1; }
.dl-lb-backdrop {
  position: absolute; inset: 0; background: rgba(16, 13, 10, 0.86); backdrop-filter: blur(5px);
}
.dl-lb-panel {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  width: min(960px, 100%); max-height: 92vh; overflow: hidden;
  background: var(--bg); border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(14px) scale(.985);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.dl-lb.open .dl-lb-panel { transform: none; }
.dl-lb-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line);
  background: var(--panel); flex-shrink: 0;
}
.dl-lb-kicker {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 6px;
}
.dl-lb-titles h3 {
  font-family: var(--title-font); font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 5px 0;
}
.dl-lb-sub { font-size: 12.5px; color: var(--muted); }
.dl-lb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.dl-lb-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  cursor: pointer; transition: background .2s ease, transform .2s ease, color .2s ease;
}
.dl-lb-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.dl-lb-scroll {
  overflow-y: auto; padding: 24px; display: flex; flex-direction: column;
  align-items: center; gap: 18px; background: #efe7d9;
}
.dl-vp {
  width: 100%; max-width: 720px; height: auto; border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); background: #fff; display: block;
}

/* ---- toast ---- */
.hy-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  z-index: 1200; padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: Inter, sans-serif;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  opacity: 0; pointer-events: none; transition: opacity .26s ease, transform .26s ease;
}
.hy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- downloads responsive ---- */
@media (max-width: 880px) {
  .dl-toolbar-wrap { top: 0; }
  .dl-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
  .dl-body { padding: 14px; }
  .dl-title { font-size: 16px; }
  .dl-desc { -webkit-line-clamp: 2; margin-bottom: 11px; }
  .dl-actions { flex-wrap: wrap; }
  .dl-lb { padding: 0; }
  .dl-lb-panel { max-height: 100vh; height: 100%; width: 100%; border-radius: 0; }
  .dl-lb-head { flex-direction: column; gap: 14px; }
  .dl-lb-tools { justify-content: flex-start; }
  .dl-lb-scroll { padding: 14px; }
}
@media (max-width: 520px) {
  .dl-btn-primary span, .dl-actions .dl-btn-ghost { }
  .dl-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-card, .dl-cover img, .dl-cover-hint, .dl-lb, .dl-lb-panel, .hy-toast { transition: none !important; }
}

/* ============================================================
   SOLUTION FINDER  (interactive galvanizing spec / lead-gen)
   ============================================================ */
.sf-form { display: flex; flex-direction: column; gap: 20px; counter-reset: sfstep; }
.sf-step {
  border: 1px solid var(--line); border-top: 1px solid var(--gold);
  border-radius: 12px; background: var(--panel);
  padding: 26px clamp(18px, 3vw, 30px); margin: 0;
  box-shadow: 0 10px 26px rgba(60, 48, 32, 0.06);
}
.sf-legend { display: flex; align-items: center; gap: 12px;
  font-family: var(--title-font); font-weight: 600; font-size: 20px; color: var(--ink); padding: 0; }
.sf-num { counter-increment: sfstep; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; font-family: Inter, sans-serif; font-size: 14px; font-weight: 700; }
.sf-num::before { content: counter(sfstep); }
.sf-sub { margin: 12px 0 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sf-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.sf-opt {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.sf-opt:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60,48,32,0.09); }
.sf-opt.is-active { border-color: var(--blue); background: #F1F8FD; box-shadow: 0 0 0 2px rgba(21,128,196,0.28); }
.sf-opt-t { font-size: 15px; font-weight: 600; }
.sf-opt-s { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.sf-opt.is-active .sf-opt-s { color: var(--blue-dk); }

.sf-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.sf-hint { font-size: 13.5px; color: var(--muted); }
.sf-hint.ready { color: var(--blue-dk); font-weight: 600; }
.sf-hint.miss { color: var(--red); font-weight: 600; }

/* result */
.sf-result { margin-top: 34px; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 14px; background: var(--panel); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 44px rgba(60,48,32,0.12); }
.sf-result-head { margin-bottom: 24px; }
.sf-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sf-metric { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 20px 22px; }
.sf-metric-n { font-family: var(--title-font); font-weight: 600; font-size: 40px; line-height: 1; color: var(--ink); }
.sf-metric-n span { font-size: 16px; color: var(--muted); margin-left: 5px; font-family: Inter, sans-serif; }
.sf-metric-l { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.sf-metric-x { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.sf-metric-badge { margin-bottom: 12px; }
.sf-badge { display: inline-block; padding: 7px 13px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.sf-badge.ok { background: #E7F4EA; color: #1F7A3D; }
.sf-badge.warn { background: #FCEDE0; color: #B4501A; }
.sf-bar { height: 8px; border-radius: 100px; background: var(--sand); overflow: hidden; }
.sf-bar span { display: block; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dk)); }
.sf-duplex { margin-top: 18px; border: 1px dashed var(--gold); border-radius: 12px;
  background: #FBF5E9; padding: 18px 22px; }
.sf-duplex-t { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sf-facility { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  margin-top: 22px; padding: 16px 20px; border-radius: 10px; background: var(--sand); }
.sf-facility-l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sf-facility-v { font-family: var(--title-font); font-size: 16px; font-weight: 600; color: var(--ink); }
.sf-notes { list-style: none; margin: 22px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sf-notes li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.sf-notes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.sf-lead { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.sf-lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sf-lead-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sf-reset { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .sf-opts { grid-template-columns: 1fr; }
  .sf-metric-n { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-opt { transition: none !important; }
}

/* ---- Facilities cards + plant modal ---- */
.fac-card { transition: transform .28s ease, box-shadow .28s ease; }
.fac-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(60,48,32,0.16); }
.fac-card img { transition: transform .5s ease; }
.fac-card:hover img { transform: scale(1.05); }
.fac-view {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 20px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(21,29,40,0.82), rgba(21,29,40,0));
  opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease;
}
.fac-card:hover .fac-view { opacity: 1; transform: translateY(0); }

.hy-plant-lb .dl-lb-panel { max-width: 940px; }
.hy-plant-body { padding: 4px 2px 8px; }
.hy-plant-film { margin-bottom: 24px; box-shadow: 0 14px 34px rgba(42,37,33,0.14); }
.hy-plant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.hy-map { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid #E9DFCC; background: #EDE4D2; }
.hy-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .hy-plant-grid { grid-template-columns: 1fr; gap: 24px; }
  .hy-map { aspect-ratio: 16/10; }
}
/* ============================================================
   Service Detail (L3) — spotlight hero, count-up stat cards,
   numbered process stepper, capabilities bento, sticky
   scroll-spy sub-nav, and FAQ accordion. Data-driven by
   serviceDetail(); reuses .reveal / .card-lift / .btn-red and
   the global [data-faq] accordion handler.
   ============================================================ */

.sd { position: relative; }
.sd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* scroll targets clear the sticky header (80px) + sub-nav (60px) */
#sd-overview, #sd-process, #sd-caps, #sd-faqs { scroll-margin-top: 150px; }

/* ---- sticky scroll-spy sub-nav ---- */
.sd-subnav {
  position: sticky; top: 80px; z-index: 40;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sd-subnav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 20px;
}
.sd-back {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); transition: color 0.2s ease;
}
.sd-back:hover { color: var(--blue); }
.sd-back svg { transition: transform 0.25s ease; }
.sd-back:hover svg { transform: translateX(-3px); }
.sd-subnav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto; overflow-x: auto; scrollbar-width: none;
}
.sd-subnav-links::-webkit-scrollbar { display: none; }
.sd-navlink {
  position: relative; flex-shrink: 0; background: none; border: 0; cursor: pointer;
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--muted); padding: 8px 14px 10px; border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.sd-navlink:hover { color: var(--ink); background: rgba(185, 143, 69, 0.08); }
.sd-navlink::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sd-navlink.is-active { color: var(--ink); font-weight: 600; }
.sd-navlink.is-active::after { transform: scaleX(1); }
.sd-nav-cta { flex-shrink: 0; padding: 10px 20px; font-size: 11.5px; white-space: nowrap; }

/* ---- spotlight / overview ---- */
.sd-spot { position: relative; overflow: hidden; padding-bottom: 64px; }
.sd-spot-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 82% 6%, rgba(21, 128, 196, 0.10) 0%, transparent 55%),
    radial-gradient(60% 80% at 8% 100%, rgba(185, 143, 69, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
}
.sd-spot-bg::after {
  content: ""; position: absolute; inset: -45%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg,
    rgba(185, 143, 69, 0.06) 90deg, transparent 180deg,
    rgba(21, 128, 196, 0.05) 270deg, transparent 360deg);
  animation: sdSheen 26s linear infinite;
}
.sd-spot-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px;
  align-items: center; padding-top: 66px; padding-bottom: 44px;
}
.sd-spot-text { min-width: 0; }
.sd-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.sd-h1 {
  font-family: var(--title-font); font-weight: 600;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 18px; color: var(--ink);
}
.sd-sub {
  font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; color: var(--muted);
  margin: 0 0 30px; max-width: 42ch;
}
.sd-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* media frame — real hero <img> over the .image-slot fallback */
.sd-media { position: relative; }
.sd-media::before {
  content: ""; position: absolute; z-index: 0; inset: 24px -18px -20px 22px;
  border: 1px solid var(--gold); border-radius: 16px; opacity: 0.45;
}
.sd-media-frame {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 16px;
  overflow: hidden; box-shadow: 0 26px 60px rgba(60, 48, 32, 0.20);
}
.sd-media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(185, 143, 69, 0.45);
}
.sd-hero-img {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; animation: sdZoom 9s ease-out both;
}
.sd-media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 4;
  padding: 8px 15px; border-radius: 100px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; color: #fff; background: rgba(20, 18, 15, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---- stat count-up cards ---- */
.sd-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.sd-stat {
  position: relative; background: var(--panel); padding: 30px 26px;
  transition: background-color 0.3s ease;
}
.sd-stat::before {
  content: ""; position: absolute; top: 0; left: 26px; width: 26px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 0 0 3px 3px;
}
.sd-stat:hover { background: #fff; }
.sd-stat-v {
  font-family: var(--title-font); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.01em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.sd-stat-l { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.sd-stat-note { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sd-footnote { margin: 18px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); font-style: italic; }

/* ---- process stepper ---- */
.sd-process { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sd-process .sd-wrap { padding-top: 64px; padding-bottom: 64px; }
.sd-sechead { max-width: 760px; margin-bottom: 40px; }
.sd-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.sd-h2 {
  font-family: var(--title-font); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.sd-lead { margin: 14px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.sd-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sd-benefit {
  position: relative; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px 28px;
}
.sd-benefit-n {
  display: block; font-family: var(--title-font); font-size: 46px; line-height: 1;
  font-weight: 600; color: rgba(185, 143, 69, 0.20);
  -webkit-text-stroke: 1px rgba(185, 143, 69, 0.55); margin-bottom: 14px;
}
.sd-benefit-t { font-family: var(--title-font); font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.sd-benefit-d { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.sd-benefit::after {
  content: ""; position: absolute; top: -40%; right: -30%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(21, 128, 196, 0.10), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.sd-benefit:hover::after { opacity: 1; }

/* ---- process application image ---- */
.sd-proc-media {
  margin: 0 0 36px; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--panel);
  box-shadow: 0 20px 50px -28px rgba(60, 48, 32, 0.4);
}
.sd-proc-media img { display: block; width: 100%; height: auto; }
.sd-proc-media figcaption {
  padding: 13px 20px; font-size: 13.5px; line-height: 1.5;
  color: #8A8074; background: var(--sand); border-top: 1px solid var(--line);
}

/* ---- capabilities bento ---- */
.sd-caps .sd-wrap { padding-top: 64px; padding-bottom: 64px; }
.sd-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.sd-bento-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.sd-bento-feature {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #fff 0%, var(--panel) 100%);
}
.sd-bento-feature::before {
  content: ""; position: absolute; top: -1px; left: 24px; width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 0 0 3px 3px;
}
.sd-bento-accent { background: linear-gradient(160deg, var(--sand) 0%, var(--panel) 100%); }
.sd-cap-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.sd-cap-list { list-style: none; margin: 0; padding: 0; }
.sd-cap-list li {
  position: relative; padding: 9px 0 9px 26px; font-size: 15px; line-height: 1.55;
  color: var(--ink); border-bottom: 1px solid rgba(233, 223, 204, 0.7);
}
.sd-cap-list li:last-child { border-bottom: 0; }
.sd-cap-list li::before {
  content: ""; position: absolute; left: 3px; top: 15px; width: 8px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}
.sd-cap-list--2col { columns: 2; column-gap: 34px; }
.sd-cap-list--2col li { break-inside: avoid; }
.sd-cap-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-cap-chip {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--bg);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sd-cap-chip:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--blue); box-shadow: 0 8px 18px rgba(60, 48, 32, 0.09); }

/* ---- mid cta ---- */
.sd-midcta {
  position: relative; overflow: hidden; margin-top: 22px; border-radius: 16px;
  padding: clamp(28px, 4vw, 44px); display: flex; align-items: center;
  justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0E6BA8 0%, #1580C4 55%, #2A6F9E 100%); color: #fff;
}
.sd-midcta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 90% 0%, rgba(185, 143, 69, 0.35), transparent 60%);
}
.sd-midcta-text { position: relative; z-index: 1; }
.sd-midcta-q { font-family: var(--title-font); font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; }
.sd-midcta-line { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); max-width: 60ch; }
.sd-midcta-btn { position: relative; z-index: 1; padding: 15px 28px; font-size: 12.5px; white-space: nowrap; background: #fff; color: var(--red); }
.sd-midcta-btn:hover { background: #fff; color: var(--red-dk); }

/* ---- FAQs ---- */
.sd-faqs .sd-wrap { padding-top: 64px; padding-bottom: 64px; }
.sd-faqs-wrap { max-width: 880px; }
.sd-faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.sd-faq {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sd-faq:has(.faq-a:not([hidden])) { border-color: rgba(185, 143, 69, 0.5); box-shadow: 0 10px 26px rgba(60, 48, 32, 0.07); }
.sd-qbtn {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 22px 24px; font-family: var(--title-font); font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 500; color: var(--ink);
}
.sd-qbtn .faq-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; font-size: 20px; line-height: 1; color: var(--gold);
  background: rgba(185, 143, 69, 0.10); border: 1px solid rgba(185, 143, 69, 0.3);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sd-qbtn:hover { color: var(--blue); }
.sd-qbtn:hover .faq-ic { background: var(--gold); color: #fff; }
.sd-faq:has(.faq-a:not([hidden])) .faq-ic { background: var(--gold); color: #fff; }
.sd-faq .faq-a { padding: 0 24px 24px; animation: sdFaqIn 0.3s ease; }
.sd-faq-p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); max-width: 68ch; }
.sd-faq-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px;
  padding: 11px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--blue); background: rgba(21, 128, 196, 0.08); border: 1px solid rgba(21, 128, 196, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sd-faq-cta:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.sd-faq-cta svg { flex-shrink: 0; }

/* ---- end cta ---- */
.sd-endcta-wrap { padding-top: 8px; padding-bottom: 72px; }
.sd-endcta {
  position: relative; overflow: hidden; border-radius: 18px; padding: clamp(34px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, #2A2521 0%, #3A322A 60%, #241F1B 100%);
}
.sd-endcta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 140% at 12% 0%, rgba(185, 143, 69, 0.25), transparent 55%),
    radial-gradient(50% 140% at 100% 100%, rgba(21, 128, 196, 0.22), transparent 55%);
}
.sd-endcta-h {
  position: relative; z-index: 1; font-family: var(--title-font); font-weight: 600;
  color: #FAF6EF; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; max-width: 22ch;
}
.sd-endcta-btn { position: relative; z-index: 1; padding: 16px 32px; font-size: 12.5px; white-space: nowrap; }

/* ---- keyframes + reduced motion ---- */
@keyframes sdSheen { to { transform: rotate(360deg); } }
@keyframes sdZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes sdFaqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sd-spot-bg::after { animation: none; }
  .sd-hero-img { animation: none; }
  .sd-faq .faq-a { animation: none; }
  .sd-navlink::after { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .sd-spot-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 48px; }
  .sd-media { max-width: 480px; }
  .sd-media::before { inset: 18px -14px -16px 16px; }
  .sd-media-frame { aspect-ratio: 16 / 11; }
  .sd-bento { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .sd-back span { display: none; }
  .sd-nav-cta { display: none; }
  .sd-subnav-links { margin: 0; }
}
@media (max-width: 560px) {
  .sd-cap-list--2col { columns: 1; }
  .sd-midcta, .sd-endcta { flex-direction: column; align-items: flex-start; }
  .sd-stat { padding: 24px 20px; }
  .sd-qbtn { padding: 18px 18px; }
  .sd-faq .faq-a { padding: 0 18px 20px; }
}

