/* ============================================================
   NANDI EQUIPMENT — SHARED STYLESHEET
   styles.css  |  All pages link to this file
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500;600&display=swap');


/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

:root {
  --black:       #0E0E0D;
  --charcoal:    #141413;
  --charcoal-lt: #1C1C1B;
  --surface:     #242422;
  --surface-lt:  #2C2C2A;
  --orange:      #E8541A;
  --orange-lt:   #F06535;
  --orange-dim:  rgba(232,84,26,0.12);
  --orange-rule: rgba(232,84,26,0.3);
  --white:       #FFFFFF;
  --off-white:   #F0EDE8;
  --text-primary:   #FFFFFF;
  --text-secondary: #B0AEA8;
  --text-muted:     #6E6D69;
  --rule:    rgba(255,255,255,0.07);
  --rule-lt: rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }


/* ── LIGHT MODE ── */
body.light-mode {
  --black:       #FAF7F2;
  --charcoal:    #F2EDE4;
  --charcoal-lt: #EAE4D8;
  --surface:     #E0D9CC;
  --surface-lt:  #D8D0C4;
  --white:       #1A1916;
  --text-primary:   #1A1916;
  --text-secondary: #4A4845;
  --text-muted:     #7A7870;
  --rule: rgba(0,0,0,0.09);
}
body.light-mode .nav              { background: rgba(242,237,228,0.95); }
body.light-mode .page-hero-sub   { color: #2E2B27; }
body.light-mode .hero-sub        { color: #2E2B27; }
body.light-mode .section-body    { color: #2E2B27; }
body.light-mode .cat-panel-desc  { color: #2E2B27; }
body.light-mode .cat-section-desc{ color: #2E2B27; }
body.light-mode .product-card-desc{ color: #3A3835; }
body.light-mode footer            { background: var(--charcoal-lt); }
body.light-mode .footer-desc      { color: #3A3835; }
body.light-mode .marquee          { background: var(--charcoal); }


/* ══════════════════════════════════════════════════════════════
   NAV — DESKTOP
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: stretch;
  background: rgba(14,14,13,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--white);
}

.nav-links {
  display: flex; align-items: center;
  padding: 0 16px; flex: 1;
}
.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px; height: 64px;
  display: flex; align-items: center;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.nav-link:hover,
.nav-link.active,
.nav-link.spa-active { color: var(--white); border-bottom-color: var(--orange); }

.nav-link.has-dropdown { gap: 6px; }
.nav-link.has-dropdown::after { content: '▾'; font-size: 10px; transition: transform 0.2s; }
.nav-link.has-dropdown:hover::after { transform: rotate(180deg); }

.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 1px); left: 0;
  background: var(--charcoal-lt);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--orange);
  min-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 12px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { color: var(--white); background: var(--orange-dim); }

.nav-divider { width: 1px; background: var(--rule); margin: 12px 8px; flex-shrink: 0; }

.nav-location {
  display: flex; align-items: center; gap: 8px; padding: 0 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 400; letter-spacing: 0.5px;
  color: var(--text-muted);
}
.nav-location-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

.nav-cta {
  display: flex; align-items: center; padding: 0 28px;
  background: var(--orange);
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--white);
  transition: background 0.15s;
  white-space: nowrap; border: none; cursor: pointer;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--orange-lt); }

/* Mobile nav toggle — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 20px; cursor: pointer;
  background: none; border: none; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  transition: transform 0.25s, opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  flex-direction: column;
}
.nav-mobile-drawer.open { display: flex; }

.nav-mobile-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary);
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  display: block;
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { color: var(--white); background: var(--orange-dim); }

.nav-mobile-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 36px;
  border-bottom: 1px solid var(--rule-lt);
  display: block;
  transition: color 0.15s;
}
.nav-mobile-sub:hover { color: var(--orange); }

.nav-mobile-cta {
  margin: 24px 24px 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  background: var(--orange);
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--white);
  transition: background 0.15s;
}
.nav-mobile-cta:hover { background: var(--orange-lt); }


/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; padding: 0 16px;
  flex-shrink: 0;
}
.theme-toggle-pill {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--surface-lt); border: 1px solid var(--rule);
  position: relative; transition: background 0.35s;
}
body.light-mode .theme-toggle-pill { background: var(--charcoal-lt); }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
body.light-mode .theme-toggle-thumb { transform: translateX(22px); }
.icon-moon, .icon-sun {
  position: absolute; width: 10px; height: 10px;
  transition: opacity 0.2s, transform 0.2s;
}
.icon-moon { opacity: 1; transform: scale(1); }
.icon-sun  { opacity: 0; transform: scale(0.6); }
body.light-mode .icon-moon { opacity: 0; transform: scale(0.6); }
body.light-mode .icon-sun  { opacity: 1; transform: scale(1); }


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid var(--rule);
  padding: 64px 64px 32px;
}
.footer-inner  { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand-mark {
  width: 22px; height: 22px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  margin-bottom: 12px;
}
.footer-brand-name {
  font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--white); margin-bottom: 4px;
}
.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.footer-desc {
  font-size: 13px; font-weight: 300; line-height: 1.8;
  color: var(--text-muted); max-width: 260px;
}
.footer-col-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-size: 13px; font-weight: 300; color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-links li a:hover { color: var(--white); }
.footer-contact-item  { margin-bottom: 12px; }
.footer-contact-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.footer-contact-value { font-size: 13px; font-weight: 300; color: var(--text-secondary); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-muted); }
.footer-certs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cert {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--rule);
  padding: 4px 10px; border-radius: 3px;
}


/* ══════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* Buttons */
.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 28px; border-radius: 100px;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-orange:hover { background: var(--orange-lt); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 28px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--white); }

.link-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }

/* Section labels */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--orange); }

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  color: var(--white);
}
.section-body {
  font-size: 17px; font-weight: 500; line-height: 1.85;
  color: #D4D2CC;
}

/* Section wrapper */
.s { padding: 80px 64px; }
.s-inner { max-width: 1280px; margin: 0 auto; }
.s-hdr {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}


/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 64px 60px;
  background: var(--black);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero-watermark { display: none; }
.page-hero-inner     { max-width: 1280px; margin: 0 auto; }

.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 400; letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span    { color: var(--orange); }

.page-hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700; letter-spacing: -2px; line-height: 1.05;
  color: var(--white); margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--text-secondary); max-width: 560px;
}


/* ── HOME HERO ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--black); overflow: hidden;
  padding-top: 64px;
}
.hero-watermark { display: none; }
.hero-product {
  position: absolute; right: 0; top: 64px; bottom: 80px;
  width: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-product img {
  max-width: 90%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.7));
  animation: fadeIn 1s ease 0.3s both;
  opacity: 0.9;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 64px 60px;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 680px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 28px; white-space: nowrap;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-tag-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: icon-pulse 2s ease infinite; }
.hero-headline {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 700; letter-spacing: -3px; line-height: 1.0;
  color: var(--white); margin-bottom: 28px;
  animation: fadeUp 0.6s ease 0.25s both;
}
.hero-headline span { color: var(--orange); }
.hero-sub {
  font-size: 19px; font-weight: 500; line-height: 1.8;
  color: #D4D2CC; max-width: 460px; margin-bottom: 44px;
  animation: fadeUp 0.6s ease 0.4s both;
}
.hero-btns-desktop { display: flex; }
.hero-btns-mobile { display: none; height: 0; overflow: hidden; }
.hero-btns {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.55s both;
}
.hero-stats-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  animation: fadeUp 0.6s ease 0.7s both;
}
.hero-stat { padding: 22px 40px; border-right: 1px solid var(--rule); }
.hero-stat:last-child { border-right: none; }
.hero-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.hero-stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px; font-weight: 600; color: var(--white); letter-spacing: -0.5px;
}
.hero-stat-value em { color: var(--orange); font-style: normal; }


/* ── PRODUCT CARD ── */
.product-card {
  background: var(--charcoal-lt);
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.product-card:hover { border-color: var(--orange-rule); background: var(--surface); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.product-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(transparent, rgba(232,84,26,0.04));
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.product-card:hover::after { opacity: 1; }

.product-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 20px 0;
}
.product-card-name {
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--white); margin-bottom: 6px; line-height: 1.3;
}
.product-card-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-rule); background: var(--orange-dim);
  padding: 3px 8px; border-radius: 3px;
}
.product-card-specs { text-align: right; }
.product-card-spec {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 400; color: var(--text-secondary); line-height: 1.6;
}
.product-card-spec strong { color: var(--text-primary); font-weight: 500; }

.product-card-img {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 16px 24px; min-height: 200px;
}
.product-card-img img {
  max-width: 100%; max-height: 220px; object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.product-card:hover .product-card-img img { transform: scale(1.06); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)) brightness(1.08); }

.product-card-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 20px 20px; gap: 16px;
}
.product-card-desc {
  font-size: 15px; font-weight: 500; line-height: 1.65;
  color: var(--text-muted); flex: 1;
}
.product-card:hover .product-card-desc { color: var(--text-secondary); }
.product-card-explore {
  z-index: 1;
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s; flex-shrink: 0;
}
.product-card:hover .product-card-explore { gap: 8px; }
.product-card-explore::after { content: ""; position: absolute; inset: 0; }

.product-card-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.product-card:hover .product-card-bar { transform: scaleX(1); }


/* ── PRODUCT GRIDS ── */
.eq-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eq-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }


/* ── EQUIPMENT PAGE ── */
.cat-intro {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 80px;
}
.cat-panel {
  padding: 36px 32px; cursor: pointer; display: block;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative; z-index: 0;
}
.cat-panel:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(232,84,26,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-3px); z-index: 1;
}
.cat-panel-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
  transition: color 0.25s;
}
.cat-panel:hover .cat-panel-num { color: var(--orange-lt); }
.cat-panel-name  { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; color: var(--white); margin-bottom: 10px; }
.cat-panel-desc  { font-size: 15px; font-weight: 400; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.cat-panel-link  { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.cat-panel:hover .cat-panel-link { gap: 10px; }

.cat-section      { margin-bottom: 100px; scroll-margin-top: 88px; }
.cat-section:last-child { margin-bottom: 0; }
.cat-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.cat-section-title { font-size: clamp(28px, 4.5vw, 56px); font-weight: 700; letter-spacing: -1.2px; color: var(--white); }
.cat-section-count { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.cat-section-desc  { font-size: 15px; font-weight: 400; line-height: 1.8; color: var(--text-secondary); max-width: 500px; margin-top: 8px; }

.hero-wireframe-wrap { flex: 1; display: flex; align-items: center; justify-content: flex-end; min-height: 280px; }
.hero-wireframe { width: 100%; max-width: 480px; height: auto; overflow: visible; }


/* ── MARQUEE ── */
.marquee { overflow: hidden; background: var(--charcoal-lt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; }
.marquee-track { display: flex; animation: marquee-scroll 35s linear infinite; white-space: nowrap; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 40px;
  border-right: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }


/* ── CTA STRIP ── */
.cta-strip { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 64px; }
.cta-strip-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-strip-title { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; color: var(--white); margin-bottom: 8px; }
.cta-strip-sub   { font-size: 15px; font-weight: 300; color: var(--text-secondary); }
.cta-strip-actions { display: flex; gap: 12px; flex-shrink: 0; }


/* ── SERVICE CARDS ── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); margin-top: 48px; }
.svc-card { background: var(--charcoal-lt); padding: 36px 28px; border-top: 2px solid transparent; transition: border-color 0.2s, background 0.2s; }
.svc-card:hover { border-top-color: var(--orange); background: var(--surface); }
.svc-num  { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--orange); margin-bottom: 20px; }
.svc-icon { margin-bottom: 16px; }
.svc-name { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: var(--white); margin-bottom: 10px; }
.svc-desc { font-size: 15px; font-weight: 500; line-height: 1.75; color: #D4D2CC; margin-bottom: 20px; }
.svc-tags { border-top: 1px solid var(--rule); padding-top: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.svc-tag  { font-size: 12px; font-weight: 300; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.svc-tag-dot { width: 3px; height: 3px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }


/* ── WHY PILLARS ── */
.why-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.why-pillar  { background: var(--charcoal-lt); padding: 28px 24px; border-left: 2px solid transparent; transition: border-color 0.2s, background 0.2s; }
.why-pillar:hover { border-left-color: var(--orange); background: var(--surface); }
.why-pillar-icon { margin-bottom: 12px; }
.why-pillar-name { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--white); margin-bottom: 6px; }
.why-pillar-desc { font-size: 15px; font-weight: 500; line-height: 1.7; color: #D4D2CC; }


/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); margin-top: 48px; }
.testi-card { background: var(--charcoal-lt); padding: 36px 32px; border-top: 2px solid transparent; transition: border-color 0.2s; }
.testi-card:hover { border-top-color: var(--orange); }
.testi-mark   { font-family: 'DM Sans', sans-serif; font-size: 48px; font-weight: 700; color: var(--orange); opacity: 0.3; line-height: 0.8; margin-bottom: 16px; display: block; }
.testi-quote  { font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--text-secondary); margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-lt); border: 1px solid var(--orange-rule); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; color: var(--orange); flex-shrink: 0; }
.testi-name   { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.testi-role   { font-size: 11px; font-weight: 300; color: var(--text-muted); }


/* ── INSIGHTS ── */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card  { cursor: pointer; }
.insight-img   { aspect-ratio: 16/9; border: 1px solid var(--rule); margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.insight-card:hover .insight-img { border-color: var(--orange-rule); }
.insight-date  { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.insight-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.35; color: var(--white); margin-bottom: 14px; transition: color 0.15s; }
.insight-card:hover .insight-title { color: var(--orange); }


/* ── ABOUT SECTION ── */
.about-img-block { width: 100%; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-facility-label { position: absolute; bottom: 16px; left: 16px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.about-badge { position: absolute; bottom: -20px; right: 20px; background: var(--orange); padding: 20px 24px; text-align: center; }
.about-badge-num   { font-family: 'DM Sans', sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -2px; color: var(--white); line-height: 1; display: block; }
.about-badge-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.facility-svg { opacity: 0.08; width: 200px; height: 200px; }


/* ── FEATURE SECTION ── */
.feature-section   { background: var(--black); padding: 100px 64px; position: relative; overflow: hidden; }
.feature-bg-word   { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); font-family: 'DM Sans', sans-serif; font-size: clamp(80px, 14vw, 180px); font-weight: 700; letter-spacing: -6px; color: rgba(255,255,255,0.022); user-select: none; pointer-events: none; line-height: 1; }
.feature-inner     { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.feature-video     { aspect-ratio: 16/9; background: var(--surface); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; position: relative; }
.feature-play-btn  { width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(232,84,26,0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.feature-play-btn:hover { border-color: var(--orange); background: var(--orange-dim); }
.feature-play-icon { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--orange); margin-left: 4px; }
.feature-video-caption { position: absolute; bottom: 16px; left: 16px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.feature-stats  { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); margin-top: 40px; }
.feature-stat   { background: var(--black); padding: 24px; }
.feature-stat-num   { font-family: 'DM Sans', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -1px; color: var(--orange); margin-bottom: 4px; }
.feature-stat-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }


/* ── CONTACT FORM ── */
.contact-inner    { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-details  { display: flex; flex-direction: column; gap: 20px; }
.contact-item     { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--orange-rule); display: flex; align-items: center; justify-content: center; }
.contact-form  { display: flex; flex-direction: column; gap: 12px; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group    { display: flex; flex-direction: column; gap: 6px; }
.form-label    { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  color: var(--white); outline: none; width: 100%;
  transition: border-color 0.15s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--orange); }
.form-select { color: var(--text-muted); appearance: none; cursor: pointer; }
.form-select option { background: var(--surface); color: var(--white); }
.form-textarea { resize: none; min-height: 100px; }


/* ── SVG ICON ANIMATIONS ── */
.icon-svg { display: inline-block; }
.icon-svg svg { display: block; }
@keyframes icon-float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
@keyframes icon-rotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes icon-pulse  { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes icon-draw   { from{stroke-dashoffset:100} to{stroke-dashoffset:0} }


/* ── KEYFRAME ANIMATIONS ── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes marquee-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }


/* ── SCROLL ANIMATIONS ── */
@media(prefers-reduced-motion: no-preference) {
  [data-animate] { opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94); }
  [data-animate="fade"] { transform: none; }
  [data-animate].is-visible { opacity:1; transform:none; }
  [data-delay="1"]{transition-delay:.07s} [data-delay="2"]{transition-delay:.14s}
  [data-delay="3"]{transition-delay:.21s} [data-delay="4"]{transition-delay:.28s}
  [data-delay="5"]{transition-delay:.35s} [data-delay="6"]{transition-delay:.42s}
  .hero-animate { opacity:0; transform:translateY(22px); transition:opacity .85s cubic-bezier(.25,.46,.45,.94), transform .85s cubic-bezier(.25,.46,.45,.94); }
  .hero-animate.is-visible { opacity:1; transform:none; }
  .hero-animate[data-delay="1"]{transition-delay:.1s}
  .hero-animate[data-delay="2"]{transition-delay:.28s}
  .hero-animate[data-delay="3"]{transition-delay:.46s}
  .hero-animate[data-delay="4"]{transition-delay:.64s}
  .hero-animate[data-delay="5"]{transition-delay:.82s}
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Nav: hide location label, tighten links */
  .nav-location { display: none; }
  .nav-link     { padding: 0 12px; }

  /* Sections */
  .s            { padding: 80px 40px; }
  .page-hero    { padding: 120px 40px 64px; }
  .feature-section { padding: 80px 40px; }
  .cta-strip    { padding: 48px 40px; }
  footer        { padding: 48px 40px 28px; }

  /* Grids */
  .two-col       { gap: 48px; }
  .footer-top    { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-top > div:last-child { display: none; } /* hide contact col — shown in footer-bottom on mobile */

  .svc-grid      { grid-template-columns: repeat(2, 1fr); }
  .testi-grid    { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat      { border-right: none; border-bottom: 1px solid var(--rule); padding: 18px 32px; }
  .hero-stat:nth-child(odd)  { border-right: 1px solid var(--rule); }
  .hero-stat:nth-child(3),
  .hero-stat:last-child      { border-bottom: none; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV: switch to hamburger ── */
  .nav              { justify-content: space-between; }
  .nav-logo         { border-right: none; padding: 0 20px; }
  .nav-links        { display: none; }
  .nav-divider      { display: none; }
  .nav-location     { display: none; }
  .nav-cta          { display: none; }
  .nav-hamburger    { display: flex; margin-left: 0; flex-shrink: 0; }
  .theme-toggle     { padding: 0 12px; margin-left: auto; flex-shrink: 0; }

  /* ── SECTIONS ── */
  .s            { padding: 40px 20px 60px; }
  .page-hero    { padding: 100px 20px 24px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .page-hero-inner { width: 100%; }
  .feature-section { padding: 60px 20px; }
  .cta-strip    { padding: 40px 20px; }
  footer        { padding: 48px 20px 28px; }

  /* ── HOME HERO ── */
  .hero-product  { position: relative; right: auto; top: auto; bottom: auto; width: 100%; height: 260px; order: 2; overflow: hidden; }
  .hero-content  { padding: 56px 20px 32px; max-width: 100%; order: 1; flex: 0 0 auto; }
  .hero-tag      { margin-bottom: 12px; }
  .hero-headline { letter-spacing: -2px; }
  .hero-sub      { font-size: 15px; max-width: 100%; margin-bottom: 0; color: #E8E6E0; }
  .hero-btns-desktop { display: none !important; }
  .hero-btns-mobile  { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 20px 24px; width: 100%; order: 3; height: auto; overflow: visible; }
  .hero-btns-mobile .btn-orange,
  .hero-btns-mobile .btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; white-space: nowrap; flex-shrink: 0; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); order: 4; margin-top: auto; }
  .hero-stat      { padding: 16px 20px; }

  /* ── PAGE HERO ── */
  .page-hero-inner { flex-direction: column; gap: 32px; }
  .page-hero-text  { flex: 1 1 auto; max-width: 100%; }
  .page-hero-visual { width: 100%; max-width: 280px; height: auto; max-height: 200px; align-self: center; }
  .hero-wireframe-wrap { width: 100%; max-width: 280px; align-self: center; justify-content: center; min-height: auto; }
  .page-hero-title { letter-spacing: -1.5px; }

  /* ── LAYOUT GRIDS → SINGLE COLUMN ── */
  .two-col        { grid-template-columns: 1fr; gap: 40px; }
  .feature-inner  { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner  { grid-template-columns: 1fr; gap: 40px; }
  .form-row       { grid-template-columns: 1fr; }

  /* ── PRODUCT GRIDS & CARDS ── */
  .eq-grid-3      { grid-template-columns: 1fr; }
  .eq-grid-4      { grid-template-columns: 1fr; }
  .cat-intro      { grid-template-columns: 1fr; }

  /* ── SERVICE / PILLAR / TESTI / INSIGHTS → SINGLE COLUMN ── */
  .svc-grid       { grid-template-columns: 1fr; }
  .why-pillars    { grid-template-columns: 1fr; }
  .testi-grid     { grid-template-columns: 1fr; }
  .insights-grid  { grid-template-columns: 1fr; }

  /* ── SECTION HEADER ── */
  .s-hdr { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-intro { margin-bottom: 48px; }

  /* ── CTA STRIP ── */
  .cta-strip-inner  { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-strip-actions { flex-direction: column; width: 100%; }
  .cta-strip-actions .btn-orange,
  .cta-strip-actions .btn-ghost { width: 100%; justify-content: center; }

  /* ── FOOTER ── */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-top > div:last-child { display: block; } /* restore hidden contact col */
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* ── FEATURE STATS ── */
  .feature-stats { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .s          { padding: 32px 16px 48px; }
  .page-hero  { padding: 88px 16px 20px; }
  .cta-strip  { padding: 32px 16px; }
  footer      { padding: 40px 16px 24px; }

  /* Stats bar: stack to 1 col */
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 14px 16px; }

  /* Section title tightening */
  .section-title { letter-spacing: -1px; }
  .page-hero-title { letter-spacing: -1px; }

  /* Buttons: full-width always */
  .btn-orange, .btn-ghost { width: 100%; justify-content: center; }

  /* Nav logo: shorter name on very small screens */
  .nav-logo { padding: 0 16px; }
}
