/* =========================================================================
   Frontline Electronics Ltd. — Design System v3
   Editorial · Industrial · Premium. Red · White · Black.
   Built mobile-first, fully responsive, accessible.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:    #FFFFFF;
  --mist:     #FAFAFA;
  --cloud:    #F4F4F5;
  --line:     #E5E7EB;
  --line-2:   #D4D4D8;

  /* Ink (text & dark surfaces) */
  --ink:      #0A0A0A;
  --carbon:   #1A1A1A;
  --graphite: #404040;
  --slate:    #6B7280;
  --silver:   #9CA3AF;

  /* Brand Red */
  --red:        #DC2626;
  --red-bright: #EF4444;
  --red-deep:   #991B1B;
  --red-dark:   #7F1D1D;
  --red-soft:   #FEE2E2;
  --red-tint:   #FEF2F2;

  /* Legacy aliases (keep templates working) */
  --violet:      var(--red);
  --violet-soft: var(--red-soft);
  --violet-deep: var(--red-deep);
  --purple-600:  var(--red);
  --purple-500:  var(--red-bright);
  --purple-400:  #FCA5A5;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadow */
  --shadow-sm:   0 1px 2px rgba(10,10,15,.04), 0 4px 12px rgba(10,10,15,.04);
  --shadow:      0 4px 16px rgba(10,10,15,.06), 0 24px 48px rgba(10,10,15,.08);
  --shadow-lift: 0 12px 32px rgba(10,10,15,.10), 0 32px 80px rgba(10,10,15,.10);
  --shadow-red:  0 14px 36px rgba(220,33,33,.28);

  /* Layout */
  --container: 1280px;
  --nav-h: 70px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--red); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--graphite); }

/* ---------- Layout primitives ---------- */
.wrap,
.container-x {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .wrap, .container-x { padding-inline: 1.5rem; } }
@media (min-width: 768px)  { .wrap, .container-x { padding-inline: 2rem; } }
@media (min-width: 1280px) { .wrap, .container-x { padding-inline: 2.5rem; } }

.section { padding-block: 3.5rem; }
@media (min-width: 640px)  { .section { padding-block: 4.5rem; } }
@media (min-width: 768px)  { .section { padding-block: 6rem; } }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }

.section--tight { padding-block: 2.5rem; }
@media (min-width: 768px)  { .section--tight { padding-block: 3.5rem; } }
@media (min-width: 1024px) { .section--tight { padding-block: 5rem; } }

.section--mist { background: var(--mist); }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--ink); color: var(--paper); }
.on-dark, .on-dark * { color: var(--paper); }
.on-dark .muted { color: rgba(255,255,255,.65); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5,
.display,
.headline {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.on-dark .eyebrow,
.eyebrow--light { color: var(--red-bright); }
.on-dark .eyebrow::before,
.eyebrow--light::before { background: var(--red-bright); }

.lede {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--graphite);
}
.muted   { color: var(--slate); }
.accent  { color: var(--red); }
.red-em  { color: var(--red); }
.b-line  { color: var(--ink); border-bottom: 3px solid var(--red); padding-bottom: 2px; }

/* Headline scale.
   The duplicated class selectors (.h-1.h-1, .h-2.h-2, …) raise specificity
   to (0,2,0) so these rules always win over Tailwind's same-named height
   utilities (.h-1 = height:0.25rem etc.), even though Tailwind's CDN
   injects its stylesheet after style.css. `height: auto` is set explicitly
   as a final guarantee that no Tailwind utility can collapse the heading
   box and cause the headline text to overflow on top of sibling content. */
.h-display { font-size: clamp(2.25rem, 6.6vw, 5.25rem); letter-spacing: -0.04em; line-height: 1.02; }
.h-1.h-1 { font-size: clamp(2rem,   4.8vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.05; height: auto; }
.h-2.h-2 { font-size: clamp(1.625rem, 3.4vw, 2.625rem); letter-spacing: -0.03em;  line-height: 1.1;  height: auto; }
.h-3.h-3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.02em;  line-height: 1.2;  height: auto; }
.h-4.h-4 { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); letter-spacing: -0.015em; line-height: 1.3;  height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9375rem 1.625rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              transform .25s ease, box-shadow .25s ease;
  min-height: 48px;
}
.btn svg { width: 16px; height: 16px; }

.btn-red,
.btn-violet,
.btn-primary  { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn-red:hover,
.btn-violet:hover,
.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.btn-dark    { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.btn-line    { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-white   { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-white:hover { background: var(--red); color: var(--paper); border-color: var(--red); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--paper); border-color: rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  transition: gap .25s ease, color .25s ease, border-color .25s ease;
}
.btn-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn-arrow:hover { gap: 14px; color: var(--red); border-color: var(--red); }
.btn-arrow:hover svg { transform: translateX(2px); }
.on-dark .btn-arrow { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-arrow:hover { color: var(--red-bright); border-color: var(--red-bright); }

/* ---------- Header / full-width bar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(10,10,15,.06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 18px rgba(10,10,15,.06);
  border-bottom-color: rgba(10,10,15,.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.625rem 1rem;
  min-height: 64px;
}
@media (min-width: 768px)  { .site-nav { padding: 0.625rem 1.5rem; min-height: 72px; } }
@media (min-width: 1280px) { .site-nav { padding: 0.625rem 2.5rem; } }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-text {
  display: none;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}
@media (min-width: 480px) { .brand-text { display: inline-block; } }

.brand-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: var(--red);
}
.brand-mark span {
  display: inline-block;
  position: relative;
  z-index: 2;
  transform: translateY(-1px);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  display: inline-flex;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite);
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.875rem; right: 0.875rem;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-cta .btn {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  min-height: 40px;
}
@media (max-width: 559.9px) { .nav-cta .btn { display: none; } }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.menu-btn span { position: relative; }
.menu-btn span::before,
.menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top:  6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); background: var(--red); }
body.menu-open .menu-btn span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--red); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin-block: 0.25rem; border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color .2s ease, padding-left .3s ease;
}
.mobile-menu a:hover { color: var(--red); padding-left: 0.5rem; }
.mobile-menu .m-foot {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
  font-size: 0.875rem;
  color: var(--slate);
}
.mobile-menu .m-foot p { margin: 0.25rem 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 3rem;
  overflow: hidden;
}
@media (min-width: 768px)  { .hero { padding: 8rem 0 4.5rem; } }
@media (min-width: 1024px) { .hero { padding: 10rem 0 6rem; } }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,10,15,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,15,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%; top: 0;
  width: 80vw; max-width: 900px; aspect-ratio: 1/1;
  transform: translate(-50%, -45%);
  background: radial-gradient(circle, rgba(220,33,33,.25), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
}
.hero-eyebrow { justify-content: center; }
.hero-headline {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.125rem, 6.5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-top: 1.25rem;
  color: var(--ink);
}
.hero-headline em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.hero-headline em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.12em;
  background: var(--red-soft);
  z-index: -1;
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 680px;
  color: var(--graphite);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  line-height: 1.7;
}
.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .hero-cta { margin-top: 2.5rem; } }
.hero-trust {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  color: var(--slate);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}
@media (min-width: 768px) { .hero-trust { margin-top: 4.5rem; } }
.hero-trust span { color: var(--ink); font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.75rem;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--silver);
  letter-spacing: -0.015em;
  flex-shrink: 0;
  transition: color .3s ease;
}
@media (min-width: 640px) { .marquee-item { font-size: 1.25rem; } }
.marquee-item:hover { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section header ----------
   Use an explicit flex column so the eyebrow, headline and lede
   ALWAYS stack vertically and can never visually collide — even
   if some other stylesheet, animation or browser quirk tries to
   collapse the heading box. Children inherit normal block flow
   with the margins below for spacing. */
.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section-head > * { width: 100%; max-width: 100%; }
@media (min-width: 768px) { .section-head { margin-bottom: 3.25rem; } }
.section-head .eyebrow { width: auto; }
.section-head h1,
.section-head h2,
.section-head h3 { margin-top: 0.875rem; }
.section-head p {
  margin-top: 1.125rem;
  color: var(--graphite);
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .section-head p { font-size: 1.0625rem; } }

/* Row variant overrides the column flow for header + CTA pairs.
   Use full container width so the headline has room to breathe and
   the trailing CTA can sit on the far right edge. */
.section-head--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  max-width: none;
  width: 100%;
}
.section-head--row > * { width: auto; }
.section-head--row > :first-child { flex: 1 1 480px; min-width: 0; max-width: 760px; }
.section-head--row > :last-child  { flex: 0 0 auto; align-self: flex-end; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}
@media (min-width: 768px)  { .stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.stat-num em {
  font-style: normal;
  color: var(--red);
}
.stat-label {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Stats block — editorial side-by-side layout
   (heading on the left, stats on the right) so wrapped
   headings can never visually collide with the stat grid. */
.stats-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .stats-block {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}
.stats-block__head { max-width: 560px; min-width: 0; }
.stats-block__title { margin-top: 0.875rem; }

/* On the side-by-side layout the right column is narrower,
   so render stats as 2×2 to keep numbers readable. */
@media (min-width: 1024px) {
  .stats-block .stats--paired {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .bento { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento-card {
  position: relative;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s ease, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
  overflow: hidden;
}
@media (min-width: 768px) { .bento-card { padding: 1.875rem; } }
.bento-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.bento-card::after {
  content: '';
  position: absolute; inset: auto -40% -40% auto;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(220,33,33,.10), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }

@media (min-width: 1024px) {
  .bento-card.col-3 { grid-column: span 3; }
  .bento-card.col-4 { grid-column: span 4; }
  .bento-card.col-2 { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 1023.9px) {
  .bento-card.col-3, .bento-card.col-4, .bento-card.col-2 { grid-column: span 1; }
}

/* Uniform bento — 3 equal columns on desktop, 2 on tablet, 1 on mobile.
   `grid-auto-rows: 1fr` + flex card body keeps every card the exact same
   height so the row reads as a neat 3×2 / 2×3 grid. */
.bento--uniform { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .bento--uniform { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
}
@media (min-width: 1024px) {
  .bento--uniform { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-auto-rows: 1fr; }
}
.bento--uniform .bento-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
  border: 2px solid var(--red-deep);
  box-shadow: none;
}
.bento--uniform .bento-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.bento--uniform .bento-text { flex: 1 1 auto; }

/* Light grey borders for product / content bento grids on mist backgrounds */
.bento--light-border .bento-card {
  border: 1.5px solid var(--line-2);
  box-shadow: none;
}
.bento--light-border .bento-card:hover {
  border-color: var(--red-soft);
  box-shadow: var(--shadow-sm);
}
.bento-title--sm {
  margin-top: 0.5rem;
  font-size: 1.125rem;
}
.bento--uniform .bento-icon {
  margin-left: auto;
  margin-right: auto;
}
.bento--uniform .bento-title {
  width: 100%;
  text-align: center;
}
.bento-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--red-soft);
  border-radius: 12px;
  color: var(--red);
  margin-bottom: 1.25rem;
  transition: background .3s ease, color .3s ease;
}
.bento-card:hover .bento-icon { background: var(--red); color: var(--paper); }
.bento-title { font-size: 1.1875rem; letter-spacing: -0.02em; }
.bento-text {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.65;
}
.bento-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.bento-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--graphite);
}
.bento-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ---------- Work / case studies ---------- */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 768px)  { .work-grid { gap: 4.5rem; } }
@media (min-width: 1024px) { .work-grid { gap: 6rem; } }

.work-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .work-item { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .work-item:nth-child(even) .work-visual { order: 2; }
}
.work-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 4/3;
}
.work-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.work-item:hover .work-visual img { transform: scale(1.04); }
.work-tag {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.work-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.work-title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -0.03em;
}
.work-summary {
  margin-top: 1.125rem;
  color: var(--graphite);
  line-height: 1.7;
  font-size: 0.9375rem;
}
@media (min-width: 768px) { .work-summary { font-size: 1rem; } }
.work-stats {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.work-stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  color: var(--red);
  margin: 0;
}
.work-stat-label {
  margin: 0.25rem 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  font-weight: 600;
}
.work-cta { margin-top: 1.75rem; }

/* ---------- Industries pill grid ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: all .25s ease;
  min-height: 44px;
}
.pill .pill-num {
  font-size: 11px; font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
}
.pill:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.pill:hover .pill-num { color: var(--red-bright); }

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.step {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.step-num {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.14em;
  margin: 0;
}
.step-title {
  margin-top: 0.625rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.step-text {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* ---------- Certifications row ---------- */
.cert-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .cert-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cert-row { grid-template-columns: repeat(6, 1fr); } }
.cert {
  display: grid; place-items: center;
  padding: 1.25rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--graphite);
  text-align: center;
  transition: all .25s ease;
  min-height: 70px;
}
.cert:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ---------- Doc cards (investor / downloads) ---------- */
.doc-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: all .25s ease;
}
.doc-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.doc-icon {
  flex-shrink: 0;
  width: 44px; height: 52px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  position: relative;
}
.doc-icon::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.doc-card:hover .doc-icon { background: var(--red); }
.doc-main { flex: 1; min-width: 0; }
.doc-cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--red); font-weight: 700; margin: 0;
}
.doc-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-date { font-size: 12px; color: var(--slate); margin: 2px 0 0; }
.doc-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.doc-card:hover .doc-arrow { background: var(--red); color: var(--paper); }

/* ---------- Investor relations page (documents) ---------- */
.doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.375rem;
  margin-bottom: 2rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.doc-filter {
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--graphite);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.doc-filter:hover { color: var(--ink); }
.doc-filter.is-active {
  background: var(--red);
  color: var(--paper);
  box-shadow: var(--shadow-red);
}

.inv-doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .inv-doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .inv-doc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.inv-doc-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
  min-height: 100%;
}
.inv-doc-card:hover {
  border-color: var(--red-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.inv-doc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}
.inv-doc-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  border: 1px solid var(--red-soft);
  border-radius: 10px;
  color: var(--red);
}
.inv-doc-card:hover .inv-doc-card__icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.inv-doc-card__badge {
  flex-shrink: 0;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--red-soft);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-deep);
  background: var(--red-tint);
}
.inv-doc-card__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.inv-doc-card__desc {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--graphite);
  flex: 1 1 auto;
}
.inv-doc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.inv-doc-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
}
.inv-doc-card__arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.inv-doc-card:hover .inv-doc-card__arrow {
  background: var(--red);
  color: var(--paper);
}

.inv-doc-count {
  margin: 2rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
}

.inv-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--mist);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.inv-empty-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.inv-empty-text {
  margin: 0.75rem auto 0;
  max-width: 480px;
  color: var(--graphite);
  line-height: 1.7;
}

/* ---------- Dark CTA band ---------- */
.cta-band {
  position: relative;
  margin-inline: auto;
  max-width: var(--container);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 1.25rem;
  text-align: center;
}
@media (min-width: 768px)  { .cta-band { padding: 2.5rem 2rem; border-radius: var(--r-xl); } }
@media (min-width: 1024px) { .cta-band { padding: 3rem 2.5rem; } }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(220,33,33,.45), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(220,33,33,.25), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 720px;
  margin-inline: auto;
  color: var(--paper);
}
.cta-sub {
  margin: 0.875rem auto 0;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.65;
  font-size: 0.875rem;
}
@media (min-width: 768px) { .cta-sub { font-size: 0.9375rem; } }
.cta-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.cta-actions .btn-ghost-light {
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* Tighter section spacing around page-end CTA bands */
.section--cta {
  padding-block: 1.5rem 3rem;
}
@media (min-width: 768px) { .section--cta { padding-block: 2rem 3.5rem; } }

/* ---------- About teaser (image + copy) ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-visual {
  position: relative;
}
.about-visual__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.about-visual__frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10,10,10,.5), transparent);
  pointer-events: none;
  z-index: 1;
}
.about-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: about-visual-pan 18s ease-in-out infinite alternate;
}
.about-visual:hover .about-visual__frame img {
  animation-play-state: paused;
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}

@keyframes about-visual-pan {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, -1%); }
}

.about-visual__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.about-visual__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: about-pulse 2s ease-in-out infinite;
}

@keyframes about-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.85); }
}

.about-visual__chip {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem 1.125rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
}
.about-visual__chip strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--red);
}
.about-visual__chip span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.about-copy p {
  color: var(--graphite);
  line-height: 1.8;
  font-size: 1.0625rem;
  margin: 0;
}
.about-copy p + p { margin-top: 1rem; }
.about-copy__cta { margin-top: 1.75rem; }

@media (prefers-reduced-motion: reduce) {
  .about-visual__frame img { animation: none; transform: none; }
  .about-visual__badge::before { animation: none; }
}

/* ---------- Contact two-up ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

/* ---------- Forms ---------- */
.input, .textarea, .select {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--silver); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220,33,33,.12);
}
.textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 640px) { .form-row.row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 1.75rem;
  background: var(--paper);
}
@media (min-width: 768px)  { .site-footer { padding-block: 3rem 1.75rem; } }
@media (min-width: 1024px) { .site-footer { padding-block: 3.5rem 2rem; } }
.footer-mega {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 720px;
  margin: 0;
}
.footer-mega em {
  font-style: normal;
  color: var(--red);
}
.footer-mega-cta {
  margin-top: 1.25rem;
}
.footer-cols {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px)  { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; margin-top: 2.5rem; } }
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  font-weight: 700;
  margin: 0 0 1.125rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-block: 0.5rem; }
.footer-col a {
  font-size: 0.9375rem;
  color: var(--ink);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--red); }
.footer-col .muted { font-size: 0.9375rem; color: var(--slate); line-height: 1.6; display: block; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--slate);
}
.footer-bottom a { color: var(--slate); }
.footer-bottom a:hover { color: var(--red); }
.footer-bottom .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Loader ---------- */
#page-loader {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { display: flex; gap: 6px; }
.loader-bar {
  width: 4px; height: 28px; border-radius: 4px;
  background: var(--ink);
  animation: loader 1s ease-in-out infinite;
}
.loader-bar:nth-child(2) { animation-delay: .12s; background: var(--red); }
.loader-bar:nth-child(3) { animation-delay: .24s; background: var(--graphite); }
@keyframes loader {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1);  }
}

/* ---------- Animation helpers ---------- */
.reveal-up   { opacity: 0; transform: translateY(28px); }
.reveal-fade { opacity: 0; }
/* split-line MUST be safe for multi-line text — no overflow:hidden,
   no vertical-align tricks, no negative margins. Otherwise wrapped
   headings collapse onto themselves and overlap surrounding content. */
.split-line  { display: inline-block; line-height: inherit; }
.split-line > span { display: inline-block; will-change: transform; }

.no-js .reveal-up,
.no-js .reveal-fade { opacity: 1 !important; transform: none !important; }
.no-js .split-line > span { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-fade { opacity: 1 !important; transform: none !important; }
  .split-line { overflow: visible; }
  .marquee-track { animation: none; }
}

/* ---------- Focus ---------- */
button:focus-visible, a:focus-visible, .input:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Page heading (reusable on subpages) ---------- */
.page-hero {
  position: relative;
  padding: 5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 768px)  { .page-hero { padding: 6rem 0 2rem; } }
@media (min-width: 1024px) { .page-hero { padding: 6.5rem 0 2.25rem; } }
.page-hero .hero-grid { position: absolute; inset: 0; }
.page-hero-inner { position: relative; max-width: 920px; }
.page-hero h1 {
  margin-top: 0.875rem;
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero p {
  margin-top: 1rem;
  max-width: 600px;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (min-width: 768px) { .page-hero p { font-size: 1rem; margin-top: 1.125rem; } }

/* ---------- Generic card (reused) ---------- */
.card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s ease,
              transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s ease;
}
@media (min-width: 768px) { .card { padding: 1.875rem; } }
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.12em;
  margin: 0;
}
.card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0.625rem 0 0;
  color: var(--ink);
}
.card-text {
  margin: 0.75rem 0 0;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Service card alias ---------- */
.service-card { /* same as .card */
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
@media (min-width: 768px) { .service-card { padding: 1.875rem; } }
.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---------- Project card ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.project-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.proj-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--mist);
}
.proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.project-card:hover .proj-img img { transform: scale(1.04); }

/* ---------- Job row (Careers page) ---------- */
.job-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.5rem;
  border-radius: 6px;
  transition: padding-inline .35s ease, background .25s ease;
}
@media (min-width: 768px) {
  .job-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.75rem;
  }
}
.job-row:hover { padding-inline: 0.75rem; }

/* ---------- Dark band section (forms / CTAs on sub-pages) ---------- */
.dark-section {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-inline: 1rem;
}
@media (min-width: 768px)  { .dark-section { margin-inline: 1.5rem; border-radius: var(--r-xl); } }
@media (min-width: 1280px) {
  .dark-section {
    margin-inline: auto;
    max-width: calc(var(--container) - 1rem);
  }
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(220,33,33,.40), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(220,33,33,.22), transparent 60%);
  pointer-events: none;
}
.dark-section > * { position: relative; z-index: 1; }
.dark-section .eyebrow { color: var(--red-bright); }
.dark-section .eyebrow::before { background: var(--red-bright); }
.dark-section .container-x { max-width: 100%; }

.dark-section input[type="text"],
.dark-section input[type="email"],
.dark-section input[type="tel"],
.dark-section input[type="url"],
.dark-section input[type="number"],
.dark-section input[type="search"],
.dark-section input[type="password"],
.dark-section input:not([type]),
.dark-section textarea {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.dark-section input::placeholder,
.dark-section textarea::placeholder { color: rgba(255,255,255,.42); }
.dark-section input:focus,
.dark-section textarea:focus {
  outline: none;
  border-color: var(--red-bright);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(220,33,33,.20);
}
.dark-section textarea { resize: vertical; min-height: 140px; }
.dark-section input[type="file"] {
  width: 100%;
  padding: 0.5rem 0;
  color: rgba(255,255,255,.75);
  font: inherit;
  font-size: 0.875rem;
}

/* ---------- Image reveal ---------- */
.reveal-scale {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .9s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.is-in { opacity: 1; transform: none; }
.no-js .reveal-scale { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-scale { opacity: 1 !important; transform: none !important; }
}

/* ---------- Stagger ---------- */
[data-stagger-item] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease,
              transform .8s cubic-bezier(.16,1,.3,1);
}
[data-stagger-item].is-in { opacity: 1; transform: none; }
.no-js [data-stagger-item] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-stagger-item] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Native input safety on light pages ---------- */
main section:not(.dark-section) input[type="text"]:not(.input),
main section:not(.dark-section) input[type="email"]:not(.input),
main section:not(.dark-section) input[type="tel"]:not(.input),
main section:not(.dark-section) input[type="url"]:not(.input),
main section:not(.dark-section) input[type="number"]:not(.input),
main section:not(.dark-section) input[type="search"]:not(.input),
main section:not(.dark-section) input[type="password"]:not(.input),
main section:not(.dark-section) input:not([type]):not(.input),
main section:not(.dark-section) textarea:not(.textarea) {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
main section:not(.dark-section) input:focus,
main section:not(.dark-section) textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220,33,33,.12);
}

/* ---------- Plant card ---------- */
.plant-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
@media (min-width: 1024px) { .plant-card { grid-template-columns: 0.85fr 1.15fr; } }
.plant-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.plant-img {
  background: var(--ink);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
@media (min-width: 1024px) { .plant-img { aspect-ratio: auto; } }
.plant-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.plant-img::after {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,.55), transparent);
  pointer-events: none;
}
.plant-card:hover .plant-img img { transform: scale(1.06); }
.plant-tag {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 1;
  padding: 6px 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.plant-body { padding: 1.75rem; }
@media (min-width: 768px)  { .plant-body { padding: 2rem; } }
@media (min-width: 1024px) { .plant-body { padding: 2.5rem; } }
.plant-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.5rem 0 0;
}
.plant-desc {
  color: var(--graphite);
  line-height: 1.7;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}
.plant-features {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}
@media (min-width: 640px) { .plant-features { grid-template-columns: 1fr 1fr; } }
.plant-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.5;
}
.plant-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 2px;
  background: var(--red);
}

/* ---------- Leader card ---------- */
.leader-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.leader-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.leader-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: grid; place-items: center;
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.leader-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.leader-role {
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.375rem 0 0;
}
.leader-edu {
  font-size: 0.8125rem;
  color: var(--slate);
  margin: 0.5rem 0 0;
}
.leader-bio {
  color: var(--graphite);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 1rem 0 0;
}
.leader-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 600;
  word-break: break-all;
  transition: color .2s ease;
}
.leader-email:hover { color: var(--red-deep); }

/* ---------- Customer logo grid ---------- */
.cust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px)  { .cust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cust-grid { grid-template-columns: repeat(5, 1fr); } }
.cust-item {
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem;
  background: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--graphite);
  text-align: center;
  letter-spacing: -0.01em;
  transition: color .25s ease, background .25s ease;
  min-height: 90px;
}
.cust-item:hover { color: var(--red); background: var(--mist); }

/* ---------- Why-choose feature grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item {
  padding: 1.5rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  transition: all .25s ease;
}
.why-item:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.why-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.625rem;
  color: var(--red);
  letter-spacing: -0.03em;
  margin: 0;
}
.why-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.4;
  margin: 0.625rem 0 0;
}

/* ---------- Flash messages ---------- */
.flash {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.flash-ok { background: rgba(34,197,94,.12); color: #166534; border-color: rgba(34,197,94,.3); }
.flash-error { background: rgba(220,33,33,.10); color: var(--red-deep); border-color: rgba(220,33,33,.3); }
.dark-section .flash-ok { color: #86EFAC; background: rgba(34,197,94,.10); }
.dark-section .flash-error { color: #FCA5A5; background: rgba(220,33,33,.15); border-color: rgba(220,33,33,.4); }

/* ---------- One-off page grids (replaces inline <style> blocks) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.grid-form-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) { .grid-form-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobile refinements ---------- */
@media (max-width: 639.9px) {
  .dark-section { margin-inline: 0.75rem; border-radius: var(--r-lg); }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom .links { justify-content: center; }
  .section--cta > .wrap { padding-inline: 1rem; }
  .cta-band {
    border-radius: var(--r-lg);
    margin-inline: 0;
    padding: 2rem 1.125rem 2.25rem;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }
  .cta-actions .btn {
    width: 100%;
    white-space: normal;
    min-width: 0;
  }
  .cta-actions .btn-ghost-light {
    font-size: 0.8125rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .marquee-item { font-size: 0.9375rem; }
  .marquee-track { gap: 2.25rem; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Print safety ---------- */
@media print {
  .site-header, .site-footer, .mobile-menu, #page-loader, .cta-band, .dark-section { display: none !important; }
  body { color: #000; background: #fff; }
}
