/* Custom Styles for Matco International */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.menu-item:hover > .sub-menu { display: flex !important; flex-direction: column; }

/* Modern Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.55);
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.7);
  transform: translateY(-2px);
}

/* Header Primary CTA — Unified Brand Style */
.btn-header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.35rem;
  border-radius: 0.75rem;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0e7490 0%, #0284c7 40%, #c89b3c 100%) !important;
  background-size: 200% 200%;
  border: 1px solid rgba(200, 155, 60, 0.45);
  box-shadow: 0 8px 24px -6px rgba(14, 116, 144, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none !important;
}

.btn-header-cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(200, 155, 60, 0.5), 0 0 20px rgba(14, 116, 144, 0.35);
  border-color: rgba(200, 155, 60, 0.75);
  color: #ffffff !important;
}

.btn-header-cta:active {
  transform: translateY(0);
}

.btn-header-cta .btn-cta-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn-header-cta:hover .btn-cta-shine {
  transform: translateX(100%);
}

.btn-header-cta i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: #ffffff !important;
}

.btn-header-cta:hover i {
  transform: translateX(3px);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #0E7490 0%, #0284c7 40%, #C89B3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Multi-layer Gradient Overlay */
.hero-gradient {
  background: linear-gradient(120deg, #020617 0%, #0f172a 40%, #1e3a8a 75%, #0ea5e9 120%);
}

/* Section Soft Gradient */
.section-gradient {
  background-color: #f8fafc !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%) !important;
}

/* Gradient Icon Tile */
.icon-gradient {
  background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(79,70,229,0.15) 100%);
  color: #4f46e5;
}

/* Gradient Border Card on Hover */
.card-gradient {
  position: relative;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #0ea5e9, #4f46e5, #7c3aed) border-box;
  border: 2px solid transparent;
}

/* Transparent Floating Header (solid when shown) */
.header-solid {
  background: linear-gradient(90deg, #020617, #0f172a 55%, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.8);
}

/* Top contact strip — desktop only */
.strip-desktop-only {
  display: none;
}
@media (min-width: 1024px) {
  .strip-desktop-only {
    display: block;
  }
}

/* Hero video hover-reveal: content hidden so video stays crystal clear */
.hero-content { opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-overlay { opacity: 0; transition: opacity 0.5s ease; }
.hero-section:hover .hero-content,
.hero-section.hero-active .hero-content { opacity: 1; transform: none; pointer-events: auto; }
.hero-section:hover .hero-overlay,
.hero-section.hero-active .hero-overlay { opacity: 1; }

/* On touch devices there is no hover: always show the content over the video */
@media (hover: none) {
  .hero-content { opacity: 1; transform: none; pointer-events: auto; }
  /* Notice we DO NOT apply the static background image here so the video remains visible */
  .hero-overlay { opacity: 1; }
}

@media (hover: hover) {
  .hero-section:hover .hero-overlay,
  .hero-section.hero-active .hero-overlay {
    background-image: url('images/hero-bg.webp');
  }
}

/* ---- Global Operations Command Center ---- */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.18); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, 30px) scale(1.12); }
}
.animate-blob { animation: blob 9s ease-in-out infinite; }
.animate-blob2 { animation: blob2 11s ease-in-out infinite; }

.route-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  border-radius: 9999px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.55) 0 6px, transparent 6px 14px);
}
.route-line-gold {
  background: repeating-linear-gradient(90deg, rgba(200, 155, 60, 0.65) 0 6px, transparent 6px 14px);
}
.route-line-teal {
  background: repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.65) 0 6px, transparent 6px 14px);
}
.route-line-hybrid {
  background: repeating-linear-gradient(90deg, rgba(200, 155, 60, 0.55) 0 5px, rgba(14, 116, 144, 0.55) 5px 10px, transparent 10px 18px);
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 1.3rem); opacity: 0; }
}
.route-plane {
  position: absolute; top: 50%; transform: translateY(-50%);
  animation: travel 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

/* Service Card (from services.html) */
.service-card { transition: all 0.35s ease; }
.service-card:hover { transform: translateY(-8px); }

/* Extra Shared Animations (from shared.js) */
@keyframes footerBeam { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-animated { background-size: 220% 220%; background-image: linear-gradient(135deg, #0ea5e9, #4f46e5, #7c3aed, #38bdf8); animation: gradient-shift 6s ease infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-floaty { animation: floaty 5s ease-in-out infinite; }
.animate-floaty-delayed { animation: floaty 6s ease-in-out 1.2s infinite; }

@keyframes shine-sweep {
  0% { transform: translateX(-150%) skewX(-18deg); }
  60%, 100% { transform: translateX(260%) skewX(-18deg); }
}
.frame-shine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.font-display { font-family: 'Playfair Display', 'Merriweather', serif; }

@keyframes shine {
  0% { transform: translateX(-160%) skewX(-20deg); }
  60%, 100% { transform: translateX(220%) skewX(-20deg); }
}
.card-shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 45%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 14s linear infinite; }

.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 165, 233, 0.18) 1px, transparent 0);
  background-size: 26px 26px;
}

@keyframes bar-flow { to { background-position: -200% 0; } }
.bar-flow {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 200% 100%;
  animation: bar-flow 2.5s linear infinite;
}

/* ============================================================
   MODERN PAGE HERO ANIMATION SYSTEM
   ============================================================ */
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 1.3rem); opacity: 0; }
}
.route-plane {
  position: absolute; top: 50%; transform: translateY(-50%);
  animation: travel 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

/* Service Card (from services.html) */
.service-card { transition: all 0.35s ease; }
.service-card:hover { transform: translateY(-8px); }

/* Extra Shared Animations (from shared.js) */
@keyframes footerBeam { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-animated { background-size: 220% 220%; background-image: linear-gradient(135deg, var(--cta-primary), var(--cta-hover), var(--navy-secondary), #38bdf8); animation: gradient-shift 6s ease infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-floaty { animation: floaty 5s ease-in-out infinite; }
.animate-floaty-delayed { animation: floaty 6s ease-in-out 1.2s infinite; }

@keyframes shine-sweep {
  0% { transform: translateX(-150%) skewX(-18deg); }
  60%, 100% { transform: translateX(260%) skewX(-18deg); }
}
.frame-shine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.font-display { font-family: 'Playfair Display', 'Merriweather', serif; }

@keyframes shine {
  0% { transform: translateX(-160%) skewX(-20deg); }
  60%, 100% { transform: translateX(220%) skewX(-20deg); }
}
.card-shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 45%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 14s linear infinite; }

.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 116, 144, 0.18) 1px, transparent 0);
  background-size: 26px 26px;
}

@keyframes bar-flow { to { background-position: -200% 0; } }
.bar-flow {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 200% 100%;
  animation: bar-flow 2.5s linear infinite;
}

/* ============================================================
   PAGE HERO SECTION — position wrapper only
   The ::before grid and ::after scanner are REMOVED from here
   to avoid conflicting with about/services/contact/testimonials
   which all use hero-page-section already.
   Those effects are opt-in via .hero-fx class on commodity pages.
   ============================================================ */
.hero-page-section {
  position: relative;
  overflow: hidden;
}

/* Animated dot-grid — opt-in via .hero-fx */
.hero-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(56,189,248,0.18) 1px, transparent 0);
  background-size: 36px 36px;
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

/* Horizontal scanner line — opt-in via .hero-fx */
.hero-fx::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(14,116,144,0.7) 40%, rgba(56,189,248,0.9) 60%, transparent 100%);
  box-shadow: 0 0 22px 6px rgba(14,116,144,0.35);
  animation: scanLine 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { top: 0%;    opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,116,144,0.45) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(22,58,82,0.5) 0%, transparent 70%);
  top: 30px; right: -80px;
  animation: orbFloat2 14s ease-in-out infinite;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(11,31,51,0.5) 0%, transparent 70%);
  bottom: -60px; left: 40%;
  animation: orbFloat1 10s ease-in-out 2s infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.12); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-50px,25px) scale(1.08); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  border-radius: 9999px;
  opacity: 0;
  animation: particleRise var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}
@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  10%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.3); }
}

/* Hero content slide-in */
.hero-page-content {
  animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-page-content .hero-badge  { animation: heroSlideUp 0.8s 0.1s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content h1           { animation: heroSlideUp 0.8s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content p            { animation: heroSlideUp 0.8s 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content .hero-tags   { animation: heroSlideUp 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) both; }

/* Glowing underline on page title */
.hero-title-line {
  display: inline-block;
  position: relative;
}
.hero-title-line::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--cta-primary), #38bdf8, var(--wheat-gold));
  animation: lineGlow 3s ease-in-out infinite;
}
@keyframes lineGlow {
  0%,100% { box-shadow: 0 0 10px 2px rgba(14,116,144,0.5); opacity: 1; }
  50%     { box-shadow: 0 0 25px 6px rgba(56,189,248,0.8); opacity: 0.8; }
}

/* Decorative corner brackets */
.hero-corner {
  position: absolute;
  width: 40px; height: 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 3;
}
.hero-corner-tl { top: 20px; left: 20px; border-top: 2px solid var(--cta-primary); border-left: 2px solid var(--cta-primary); border-radius: 4px 0 0 0; }
.hero-corner-tr { top: 20px; right: 20px; border-top: 2px solid #38bdf8; border-right: 2px solid #38bdf8; border-radius: 0 4px 0 0; }
.hero-corner-bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--cta-primary); border-left: 2px solid var(--cta-primary); border-radius: 0 0 0 4px; }
.hero-corner-br { bottom: 20px; right: 20px; border-bottom: 2px solid #38bdf8; border-right: 2px solid #38bdf8; border-radius: 0 0 4px 0; }


/* Modern Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.55);
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.7);
  transform: translateY(-2px);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #0E7490 0%, #0284c7 40%, #C89B3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Multi-layer Gradient Overlay */
.hero-gradient {
  background: linear-gradient(120deg, #020617 0%, #0f172a 40%, #1e3a8a 75%, #0ea5e9 120%);
}

/* Section Soft Gradient */
.section-gradient {
  background-color: #f8fafc !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%) !important;
}

/* Gradient Icon Tile */
.icon-gradient {
  background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(79,70,229,0.15) 100%);
  color: #4f46e5;
}

/* Gradient Border Card on Hover */
.card-gradient {
  position: relative;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #0ea5e9, #4f46e5, #7c3aed) border-box;
  border: 2px solid transparent;
}

/* Transparent Floating Header (solid when shown) */
.header-solid {
  background: linear-gradient(90deg, #020617, #0f172a 55%, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.8);
}

/* Top contact strip — desktop only */
.strip-desktop-only {
  display: none;
}
@media (min-width: 1024px) {
  .strip-desktop-only {
    display: block;
  }
}

/* Hero video hover-reveal: content hidden so video stays crystal clear */
.hero-content { opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-overlay { opacity: 0; transition: opacity 0.5s ease; }
.hero-section:hover .hero-content,
.hero-section.hero-active .hero-content { opacity: 1; transform: none; pointer-events: auto; }
.hero-section:hover .hero-overlay,
.hero-section.hero-active .hero-overlay { opacity: 1; }

/* On touch devices there is no hover: always show the content over the video */
@media (hover: none) {
  .hero-content { opacity: 1; transform: none; pointer-events: auto; }
  /* Notice we DO NOT apply the static background image here so the video remains visible */
  .hero-overlay { opacity: 1; }
}

@media (hover: hover) {
  .hero-section:hover .hero-overlay,
  .hero-section.hero-active .hero-overlay {
    background-image: url('images/hero-bg.webp');
  }
}

/* ---- Global Operations Command Center ---- */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.18); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, 30px) scale(1.12); }
}
.animate-blob { animation: blob 9s ease-in-out infinite; }
.animate-blob2 { animation: blob2 11s ease-in-out infinite; }

.route-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  border-radius: 9999px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.55) 0 6px, transparent 6px 14px);
}
.route-line-gold {
  background: repeating-linear-gradient(90deg, rgba(200, 155, 60, 0.65) 0 6px, transparent 6px 14px);
}
.route-line-teal {
  background: repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.65) 0 6px, transparent 6px 14px);
}
.route-line-hybrid {
  background: repeating-linear-gradient(90deg, rgba(200, 155, 60, 0.55) 0 5px, rgba(14, 116, 144, 0.55) 5px 10px, transparent 10px 18px);
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 1.3rem); opacity: 0; }
}
.route-plane {
  position: absolute; top: 50%; transform: translateY(-50%);
  animation: travel 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

/* Service Card (from services.html) */
.service-card { transition: all 0.35s ease; }
.service-card:hover { transform: translateY(-8px); }

/* Extra Shared Animations (from shared.js) */
@keyframes footerBeam { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-animated { background-size: 220% 220%; background-image: linear-gradient(135deg, #0ea5e9, #4f46e5, #7c3aed, #38bdf8); animation: gradient-shift 6s ease infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-floaty { animation: floaty 5s ease-in-out infinite; }
.animate-floaty-delayed { animation: floaty 6s ease-in-out 1.2s infinite; }

@keyframes shine-sweep {
  0% { transform: translateX(-150%) skewX(-18deg); }
  60%, 100% { transform: translateX(260%) skewX(-18deg); }
}
.frame-shine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.font-display { font-family: 'Playfair Display', 'Merriweather', serif; }

@keyframes shine {
  0% { transform: translateX(-160%) skewX(-20deg); }
  60%, 100% { transform: translateX(220%) skewX(-20deg); }
}
.card-shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 45%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 14s linear infinite; }

.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 165, 233, 0.18) 1px, transparent 0);
  background-size: 26px 26px;
}

@keyframes bar-flow { to { background-position: -200% 0; } }
.bar-flow {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 200% 100%;
  animation: bar-flow 2.5s linear infinite;
}

/* ============================================================
   MODERN PAGE HERO ANIMATION SYSTEM
   ============================================================ */

/* Animated dot-grid background */
.hero-page-section {
  position: relative;
  overflow: hidden;
}
.hero-page-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(56,189,248,0.18) 1px, transparent 0);
  background-size: 36px 36px;
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

/* Horizontal scanner line */
.hero-page-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.7) 40%, rgba(129,140,248,0.9) 60%, transparent 100%);
  box-shadow: 0 0 22px 6px rgba(56,189,248,0.35);
  animation: scanLine 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { top: 0%;    opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,165,233,0.45) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(124,58,237,0.4) 0%, transparent 70%);
  top: 30px; right: -80px;
  animation: orbFloat2 14s ease-in-out infinite;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(79,70,229,0.35) 0%, transparent 70%);
  bottom: -60px; left: 40%;
  animation: orbFloat1 10s ease-in-out 2s infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.12); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-50px,25px) scale(1.08); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  border-radius: 9999px;
  opacity: 0;
  animation: particleRise var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}
@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  10%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.3); }
}

/* Hero content slide-in */
.hero-page-content {
  animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-page-content .hero-badge  { animation: heroSlideUp 0.8s 0.1s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content h1           { animation: heroSlideUp 0.8s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content p            { animation: heroSlideUp 0.8s 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.hero-page-content .hero-tags   { animation: heroSlideUp 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) both; }

/* Glowing underline on page title */
.hero-title-line {
  display: inline-block;
  position: relative;
}
.hero-title-line::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c4b5fd);
  animation: lineGlow 3s ease-in-out infinite;
}
@keyframes lineGlow {
  0%,100% { box-shadow: 0 0 10px 2px rgba(56,189,248,0.5); opacity: 1; }
  50%     { box-shadow: 0 0 25px 6px rgba(129,140,248,0.8); opacity: 0.8; }
}

/* Decorative corner brackets */
.hero-corner {
  position: absolute;
  width: 40px; height: 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 3;
}
.hero-corner-tl { top: 20px; left: 20px; border-top: 2px solid #38bdf8; border-left: 2px solid #38bdf8; border-radius: 4px 0 0 0; }
.hero-corner-tr { top: 20px; right: 20px; border-top: 2px solid #818cf8; border-right: 2px solid #818cf8; border-radius: 0 4px 0 0; }
.hero-corner-bl { bottom: 20px; left: 20px; border-bottom: 2px solid #38bdf8; border-left: 2px solid #38bdf8; border-radius: 0 0 0 4px; }
.hero-corner-br { bottom: 20px; right: 20px; border-bottom: 2px solid #818cf8; border-right: 2px solid #818cf8; border-radius: 0 0 4px 0; }

/* ============================================================
   SEARCH MODAL — Executive Brand Styling (Navy & Harvest Gold)
   ============================================================ */
.quick-search-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.22s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.quick-search-pill:hover {
  background: #0B1526;
  color: #FDE68A;
  border-color: rgba(200, 155, 60, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 21, 38, 0.2);
}

.search-result-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.search-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0E7490 0%, #082f49 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(14, 116, 144, 0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.search-card-title {
  color: #0f172a;
  transition: color 0.2s ease;
}
.search-card-desc {
  color: #64748b;
  transition: color 0.2s ease;
}
.search-card-badge {
  background: #f1f5f9;
  color: #0E7490;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.search-card-arrow {
  color: #94a3b8;
  transition: all 0.2s ease;
}
.search-highlight {
  background: rgba(200, 155, 60, 0.18);
  color: #92400e;
  border-bottom: 1.5px solid #C89B3C;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-weight: 700;
}

/* Hover State */
.search-result-card:hover {
  background: linear-gradient(135deg, #080E1A 0%, #0B1526 45%, #0E7490 100%) !important;
  border-color: rgba(200, 155, 60, 0.7) !important;
  box-shadow: 0 12px 28px -6px rgba(11, 21, 38, 0.4), 0 0 0 1px rgba(200, 155, 60, 0.35) !important;
  transform: translateX(6px);
}
.search-result-card:hover .search-card-title {
  color: #ffffff !important;
}
.search-result-card:hover .search-card-desc {
  color: #cbd5e1 !important;
}
.search-result-card:hover .search-card-arrow {
  color: #FDE68A !important;
  transform: translateX(4px);
}
.search-result-card:hover .search-card-icon {
  background: linear-gradient(135deg, #C89B3C 0%, #92400E 100%) !important;
  border-color: rgba(253, 230, 138, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(200, 155, 60, 0.45) !important;
}
.search-result-card:hover .search-card-badge {
  background: rgba(200, 155, 60, 0.2) !important;
  color: #FDE68A !important;
  border-color: rgba(200, 155, 60, 0.4) !important;
}
.search-result-card:hover .search-highlight {
  background: rgba(200, 155, 60, 0.4) !important;
  color: #ffffff !important;
  border-bottom-color: #FDE68A !important;
}

/* Active State (Keyboard Navigation) */
.search-result-active {
  background: linear-gradient(135deg, #080E1A 0%, #0B1526 45%, #0E7490 100%) !important;
  border-color: rgba(200, 155, 60, 0.7) !important;
  box-shadow: 0 12px 28px -6px rgba(11, 21, 38, 0.4), 0 0 0 1px rgba(200, 155, 60, 0.35) !important;
  transform: translateX(6px);
}
.search-result-active .search-card-title {
  color: #ffffff !important;
}
.search-result-active .search-card-desc {
  color: #cbd5e1 !important;
}
.search-result-active .search-card-arrow {
  color: #FDE68A !important;
  transform: translateX(4px);
}
.search-result-active .search-card-icon {
  background: linear-gradient(135deg, #C89B3C 0%, #92400E 100%) !important;
  border-color: rgba(253, 230, 138, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(200, 155, 60, 0.45) !important;
}
.search-result-active .search-card-badge {
  background: rgba(200, 155, 60, 0.2) !important;
  color: #FDE68A !important;
  border-color: rgba(200, 155, 60, 0.4) !important;
}
.search-result-active .search-highlight {
  background: rgba(200, 155, 60, 0.4) !important;
  color: #ffffff !important;
  border-bottom-color: #FDE68A !important;
}

/* ============================================================
   BENTO GRID — What We Trade (index.html)
   ============================================================ */

/* Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
/* ---- Table row left accent bar on hover ---- */
.table-row-animate {
  position: relative;
}
.table-row-animate::before {
  gap: 1rem;
}
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* Base card */
.bento-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.175,0.885,0.32,1.275),
              box-shadow 0.45s ease;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
}
.bento-card:hover {
  box-shadow: 0 30px 80px -15px rgba(0,0,0,0.8);
}

/* Specific grid placements */
.bento-hero {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 640px;
}
.bento-tr { grid-column: 2; grid-row: 1; min-height: 310px; }
.bento-br { grid-column: 2; grid-row: 2; min-height: 310px; }
.bento-bl { grid-column: 3; grid-row: 1; min-height: 310px; }
.bento-slim { grid-column: 4; min-height: 310px; }
.bento-slim:nth-child(6) { grid-row: 1; }
.bento-slim:nth-child(7) { grid-row: 2; }

/* CTA card */
.bento-cta-card {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  display: block;
  min-height: 310px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
}
.bento-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px -10px rgba(14,116,144,0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-hero { grid-column: 1 / 3; grid-row: 1; min-height: 420px; }
  .bento-tr, .bento-br { grid-column: unset; grid-row: unset; }
  .bento-bl, .bento-slim { grid-column: unset; grid-row: unset; }
  .bento-cta-card { grid-column: unset; grid-row: unset; }
}
@media (max-width: 640px) {
  .bento-hero, .bento-tr, .bento-br, .bento-bl, .bento-slim, .bento-cta-card {
    grid-column: 1; grid-row: unset; min-height: 280px;
  }
}

/* Image wrapper */
.bento-img-wrap {
  position: absolute;
  inset: 0;
}
.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.bento-card:hover .bento-img-wrap img {
  transform: scale(1.14);
}

/* Overlays */
.bento-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bento-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.bento-card:hover .bento-wash { opacity: 1; }

/* Decorative big number */
.bento-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'Merriweather', serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  z-index: 3;
  user-select: none;
  pointer-events: none;
  transition: color 0.4s ease, transform 0.4s ease;
}
.bento-card:hover .bento-number {
  color: rgba(255,255,255,0.12);
  transform: scale(1.05) translate(4px, -4px);
}

/* Content area */
.bento-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 4;
}
.bento-content-left {
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Tag pill */
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tc, #22d3ee);
  background: color-mix(in srgb, var(--tc, #22d3ee) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, #22d3ee) 35%, transparent);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  margin-bottom: 0.625rem;
}

/* Title */
.bento-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: letter-spacing 0.3s ease;
}
.bento-card:hover .bento-title { letter-spacing: 0.01em; }
.bento-hero .bento-title { font-size: 1.75rem; }

/* Description (hero card only) */
.bento-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 260px;
}

/* CTA link row */
.bento-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}
.bento-card:hover .bento-cta {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}
.bento-arrow {
  width: 1.5rem; height: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.bento-card:hover .bento-arrow {
  background: rgba(255,255,255,0.25);
  transform: translateX(3px);
}

/* Specs strip (hero card bottom) */
.bento-specs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  transform: translateY(0);
  transition: background 0.3s ease;
}
.bento-card:hover .bento-specs {
  background: rgba(14,116,144,0.35);
  color: rgba(255,255,255,0.8);
}
.bento-spec-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Ensure content is above specs strip for hero card */
.bento-hero .bento-content {
  padding-bottom: 3rem;
}

/* ============================================================
   WHEAT DECORATIONS — Gentle sway animation
   ============================================================ */
.wheat-deco {
  will-change: transform;
  animation: wheatSway 8s ease-in-out infinite;
  transform-origin: bottom center;
}
.wheat-deco:nth-child(2) {
  animation-duration: 10s;
  animation-delay: -3s;
}
.wheat-deco:nth-child(3) {
  animation-duration: 12s;
  animation-delay: -6s;
}
@keyframes wheatSway {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(1.5deg); }
  75%       { transform: rotate(-1.5deg); }
}
/* Override for flipped wheat so sway still looks natural */
.wheat-deco[style*="scaleX(-1)"] {
  animation-name: wheatSwayFlip;
}
@keyframes wheatSwayFlip {
  0%, 100% { transform: scaleX(-1) rotate(0deg); }
  25%       { transform: scaleX(-1) rotate(-1.5deg); }
  75%       { transform: scaleX(-1) rotate(1.5deg); }
}

/* ============================================================
   TOP-STRIP — Slide-down animation on scroll (hero pages)
   ============================================================ */
@keyframes stripSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

#top-strip {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 40;
}

/* ============================================================
   MIDSTAR / SALIENT STYLE UPGRADES
   ============================================================ */

/* 1. Hero Dynamic Entrance (Slide-Up with cubic-bezier easing) */
@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(38px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-1 {
  opacity: 0;
  animation: heroSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-animate-2 {
  opacity: 0;
  animation: heroSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
.hero-animate-3 {
  opacity: 0;
  animation: heroSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.hero-animate-4 {
  opacity: 0;
  animation: heroSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
.hero-animate-5 {
  opacity: 0;
  animation: heroSlideUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

/* 2. Transparent to Sticky Header (Salient Frosted Glass) */
body {
  background-color: #020617;
}

#site-header {
  position: relative;
  z-index: 50;
  width: 100%;
}

.site-header {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header-scrolled-glass {
  background: rgba(3, 7, 18, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px -12px rgba(2, 6, 23, 0.65);
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

/* 3. Staggered Scroll Reveal System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay utilities */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="350"] { transition-delay: 350ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="450"] { transition-delay: 450ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* 4. Section Shape Dividers */
.shape-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}
.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}
@media (min-width: 768px) {
  .shape-divider svg {
    height: 70px;
  }
}
@media (min-width: 1200px) {
  .shape-divider svg {
    height: 90px;
  }
}

/* 5. Parallax Depth Layer */
.parallax-layer {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* 6. Minimalist Harvest Testimonials & Editorial Panels */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.harvest-card-shadow {
  box-shadow: 0 20px 45px -15px rgba(200, 155, 60, 0.12), 0 0 1px 1px rgba(200, 155, 60, 0.15);
}

.btn-harvest-cta {
  background: linear-gradient(135deg, #0E7490 0%, #0284c7 45%, #C89B3C 100%);
  background-size: 200% 200%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -8px rgba(14, 116, 144, 0.45);
}

.btn-harvest-cta:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(200, 155, 60, 0.5);
}

.btn-harvest-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.btn-harvest-secondary:hover {
  background: #C89B3C;
  border-color: #C89B3C;
  color: #FFFFFF;
  transform: translateY(-2px);
}



/* ---- Panoramic Related Commodities Slider ---- */
.commodity-slider-track::-webkit-scrollbar {
  display: none;
}
.commodity-slider-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.commodity-card-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.commodity-card-item:hover {
  transform: translateY(-6px);
}
.commodity-slider-btn {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.commodity-slider-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.commodity-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.commodity-slider-dot.active {
  background: #C89B3C;
  width: 2rem;
  box-shadow: 0 0 12px rgba(200, 155, 60, 0.6);
}

/* ============================================================
   COMMODITY DETAIL PAGES — PREMIUM SYSTEM & LIGHT CONTRAST
   ============================================================ */
.mesh-bg {
  background-color: #f8fafc !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%) !important;
}

.glass-card {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(200, 155, 60, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 35px -10px rgba(14, 116, 144, 0.18), 0 0 0 1px rgba(200, 155, 60, 0.3);
  border-color: rgba(200, 155, 60, 0.4) !important;
}

.table-glass {
  background: #ffffff !important;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.06);
}

/* Journey Timeline */
.journey-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.journey-wrap::-webkit-scrollbar { display: none; }
.journey-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  padding: 1.5rem 2rem;
}
.journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 9rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--jd, 0s);
}
.animate-on-scroll.visible .journey-node {
  opacity: 1;
  transform: translateY(0);
}
.journey-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px -8px currentColor;
  transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.35s ease;
}
.journey-icon:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 20px 40px -10px currentColor;
}
.journey-node-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: #0f172a;
  margin-top: 0.75rem;
  line-height: 1.3;
}
.journey-node-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 500;
}

.journey-connector {
  flex: 1;
  min-width: 3.5rem;
  margin-top: 2.25rem;
  height: 2px;
  background: rgba(14,116,144,0.18);
  position: relative;
  overflow: hidden;
}
.journey-connector-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 9999px;
  transition: transform 1s ease;
  transition-delay: var(--jcd, 0.2s);
}
.animate-on-scroll.visible .journey-connector-fill {
  transform: scaleX(1);
}
.journey-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: 0;
  animation: none;
}
.animate-on-scroll.visible .journey-connector::after {
  animation: connectorDot 2s ease-in-out var(--jcd, 0.2s) infinite;
}
@keyframes connectorDot {
  0%   { left: 0;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Table row left accent bar on hover */
.table-row-animate {
  position: relative;
}
.table-row-animate::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0E7490, #C89B3C);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.table-row-animate:hover::before { transform: scaleY(1); }

::selection {
  background: #C89B3C !important;
  color: #ffffff !important;
}
