/* Self-hosted accent font — placeholder files, swap in the real
   licensed Flaviotte-Regular.woff2 / .otf before going live. */
@font-face {
  font-family: 'Flaviotte';
  src: url('assets/fonts/Flaviotte-Regular.woff2') format('woff2'),
       url('assets/fonts/Flaviotte-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Trigun Robotic Systems — styles.css
   Palette: base #F7F8FA · panels #FFFFFF · band #EEF1F6
   accent #3E6FB5 (tint #EEF3FB, soft #7FA8DB)
   text #141C27 / #1B2430 · muted #56606E / #6B7683 / #97A2B0
   ============================================================ */

:root {
  --base: #F7F8FA;
  --panel: #FFFFFF;
  --band: #EEF1F6;
  --accent: #3E6FB5;
  --accent-tint: #EEF3FB;
  --accent-soft: #7FA8DB;
  --ink: #141C27;
  --ink-2: #1B2430;
  --muted: #56606E;
  --muted-2: #6B7683;
  --muted-3: #97A2B0;
  --hairline: rgba(27, 36, 48, 0.05);
  --shadow: 0 8px 26px rgba(27, 36, 48, 0.04);
  --shadow-lift: 0 18px 44px rgba(27, 36, 48, 0.10);
  --radius: 20px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-accent: 'Flaviotte', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--base);
  color: var(--ink-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

section { padding: 6.5rem 0; }

.band { background: var(--band); }

.accent { color: var(--accent); }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-fill {
  background: var(--accent);
  color: #fff;
}
.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(62, 111, 181, 0.30);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--hairline);
  color: var(--ink);
}
.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ---------- Motion stack support ---------- */
/* Lenis owns scrolling when active — native smooth-scroll must be off. */
html.lenis, html.lenis-smooth { scroll-behavior: auto; }

/* When GSAP drives the animations (html.gsap-motion is set by main.js),
   the CSS transition/max-height fallbacks below must not compete. */
.gsap-motion [data-reveal] { transition: none; }
.gsap-motion .acc-panel { max-height: none; height: 0; transition: none; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(247, 248, 250, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  transition: padding 0.35s ease;
}
.nav.scrolled .nav-inner { padding: 0.75rem 0; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }

/* Site wordmark: all caps, solid ink color, sized to match the logo —
   deliberately plain so it reads clearly against the nav instead of
   blending in like the surrounding body/nav-link text. No shadow,
   glow, or outline effects. */
.nav-wordmark {
  /* Flaviotte was requested here, but its font files in the repo are
     broken placeholder stubs (fail to parse, fall back to plain
     serif) and the real typeface requires a paid commercial license
     for business use. Playfair Display is a free, open-license (SIL
     OFL) elegant high-contrast serif used as a substitute — reads
     much better than the body/heading sans at this large a size. */
  font-family: 'Playfair Display', serif;
  /* Matches the 36px logo at rest; scales down fluidly on narrower
     viewports so the full all-caps text always fits on one line next
     to the logo and the nav-links/toggle button without overlapping. */
  font-size: clamp(13px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: none;
  white-space: nowrap;
}
.nav-brand em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  margin-left: 0.35rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent-tint);
  color: var(--accent) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* Soft fade concentrated over the text band only (roughly where the
     badge through the CTAs sit) — fully transparent at the very top
     and bottom of the hero, peaking at 0.22 opacity in the middle so
     the video stays clearly visible everywhere, not washed out. */
  background:
    linear-gradient(180deg,
      rgba(247, 248, 250, 0) 0%,
      rgba(247, 248, 250, 0.22) 30%,
      rgba(247, 248, 250, 0.22) 68%,
      rgba(247, 248, 250, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 92%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: #141C27;
  /* No text-shadow, no glow — legibility comes purely from font-weight,
     solid opaque color, and the .hero-scrim fade behind it. */
}

/* Accent font applies ONLY to the hero H1 highlight phrase —
   Space Grotesk stays the heading font everywhere else. The blue
   accent color is an intentional highlight, left as-is: only the
   base headline text was asked to go solid navy. */
.hero h1 .accent { font-family: var(--font-accent); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.4rem;
  /* No text-shadow, matching the headline — the scrim fade above now
     carries this text's contrast instead. */
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  color: var(--muted-2);
  box-shadow: var(--shadow);
  animation: cue-bob 2.4s ease-in-out infinite;
}
.hero-scroll-cue svg { width: 18px; height: 18px; }

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Stats ---------- */
.stats-section { padding: 0 0 5rem; margin-top: -3.4rem; position: relative; z-index: 3; }

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-2);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about-text p { color: var(--muted); font-size: 1.02rem; max-width: 56ch; margin-bottom: 1.2rem; }

.about-intro {
  color: var(--ink-2);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 52ch;
}

.about-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.about-closing {
  color: var(--muted);
  font-size: 1rem;
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.pillar-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.pillar-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 0.9rem;
}
.pillar-card p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.partnership {
  background: linear-gradient(120deg, #141C27 0%, #1B2A40 55%, #24405F 100%);
  border-radius: var(--radius);
  padding: 2.6rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.partnership p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 300;
}
.partnership strong { color: #fff; font-weight: 600; }

/* ---------- Products ---------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 2.6rem;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lift);
}
.product-card.filter-hide { display: none; }

.product-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--band);
}
.product-media img,
.product-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.product-media video { opacity: 0; }
.product-card.video-playing .product-media video { opacity: 1; }
.product-card.video-playing .product-media img { opacity: 0; }
.product-card:hover .product-media img { transform: scale(1.04); }

.product-body { padding: 1.3rem 1.4rem 1.5rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 0.26rem 0.75rem;
  margin-bottom: 0.7rem;
}

.product-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.product-body p {
  font-size: 0.9rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ---------- Product modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 28, 39, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* The backdrop itself is the only scroll container — it fills the
     whole viewport, so scrolling it reads as native page scroll while
     the modal is open (body scroll is suppressed by main.js). No
     separate fixed-height/internal-scroll box inside the modal. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* Native single-finger vertical pan/swipe must reach this element —
     don't let a parent's touch-action rule block it. */
  touch-action: pan-y;
  /* Scroll works via native browser scroll; the scrollbar track itself
     is just hidden for a cleaner look (Firefox / IE-Edge legacy). */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-backdrop::-webkit-scrollbar { display: none; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.open { opacity: 1; }

.modal {
  background: var(--panel);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(20, 28, 39, 0.25);
  width: min(680px, 100%);
  /* Auto vertical margins inside a column-flex scroll container center
     short content and collapse to 0 for tall content, so the backdrop
     stays scrollable to the very top instead of clipping it. */
  margin: auto 0;
  position: relative;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

/* Zero-height sticky wrapper: keeps the close button pinned to the top
   of the viewport as the backdrop scrolls, without reserving layout
   space (the button still visually overlaps the media like before). */
.modal-sticky-bar {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 5;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.modal-close:hover { transform: rotate(90deg); }

.modal-media {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.modal-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-body { padding: 1.8rem 2rem 2.2rem; }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.modal-body p { color: var(--muted); }

#modal-desc { color: var(--muted); }
#modal-desc p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.modal-detail-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
}
.modal-subhead {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.4rem 0 0.6rem;
}
#modal-desc h5.modal-subhead:first-child { margin-top: 0; }
#modal-desc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
#modal-desc ul li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
#modal-desc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
}
#modal-desc ul li strong { color: var(--ink); font-weight: 600; }
#modal-desc ul ul {
  margin: 0.5rem 0 0 1.2rem;
  gap: 0.5rem;
}
#modal-desc ul ul li::before { background: var(--muted-3); width: 4px; height: 4px; }

.modal-website-cta {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-start;
}
.modal-website-cta .btn { padding: 0.7rem 1.6rem; font-size: 0.92rem; }

.modal-contact-cta {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-start;
}
.modal-contact-cta .btn { padding: 0.7rem 1.6rem; font-size: 0.92rem; }

/* ---------- Training ---------- */
.training-intro {
  color: var(--ink-2);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1.2rem;
}

.training-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 70ch;
  margin-top: 1rem;
}

.training-closing {
  color: var(--muted);
  font-size: 1rem;
  max-width: 70ch;
  margin: 2.2rem auto 0;
  text-align: center;
}

.accordion { margin-top: 2.2rem; }

.acc-item {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
}

.acc-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
}

.acc-title {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.acc-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.35s ease;
}
.acc-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc-item.open .acc-icon::before { transform: rotate(45deg); }
.acc-item.open .acc-icon::after { transform: rotate(45deg); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-panel-inner {
  padding: 0 1.6rem 1.6rem;
}

.acc-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.acc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.acc-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.acc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.acc-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.acc-sublist {
  margin-top: 0.5rem;
  margin-left: 1.2rem;
  gap: 0.5rem;
}

.acc-sublist li::before {
  background: var(--muted-3);
  width: 4px;
  height: 4px;
}

/* ---------- Careers ---------- */
.career-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem;
  margin-top: 2rem;
}

.career-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.8rem;
}
.career-head h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.career-meta { color: var(--muted-2); font-size: 0.94rem; }

.career-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.career-cols h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.career-cols p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-blurb {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.6rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.contact-card svg { width: 28px; height: 28px; margin-bottom: 0.7rem; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.contact-value {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--base);
  border-top: 1px solid var(--hairline);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  margin-bottom: 1.1rem;
}
.footer-logo-chip img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }

.footer-brand p {
  color: var(--muted-2);
  font-size: 0.95rem;
  max-width: 34ch;
  margin-bottom: 1.4rem;
}

.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--muted-2);
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.footer-social svg { width: 17px; height: 17px; }

.footer-col h5 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-products ul {
  columns: 2;
  column-gap: 2rem;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet band: the toggle button is hidden and the full nav-links row
   is back in flow (below the 768px slide-in-menu breakpoint), so the
   36px wordmark needs to shrink further here to avoid overlapping the
   links — most acutely right after the 768px breakpoint, where the
   nav-links row is at its narrowest before the container has room to
   grow. */
@media (min-width: 769px) and (max-width: 899px) {
  .nav-wordmark { font-size: 15px; }
}
@media (min-width: 900px) and (max-width: 1079px) {
  .nav-wordmark { font-size: 22px; }
}

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    flex-direction: column;
    justify-content: center;
    background: rgba(247, 248, 250, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .career-cols { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .partnership { justify-content: center; text-align: center; }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .hero-scroll-cue { animation: none; }
}
