@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* WHITE base · BLACK text · RED accent (default theme) */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f7f8fa;
  --color-bg-tertiary: #f1f3f7;
  --color-bg-card: #ffffff;
  --color-bg-dark: #0c0d10;
  --color-bg-dark-soft: #16181d;

  --color-accent: #c8102e;
  --color-accent-hover: #a30d23;
  --color-accent-soft: #fdecef;
  --color-accent-glow: rgba(200, 16, 46, 0.18);
  --color-accent-strong-glow: rgba(200, 16, 46, 0.42);

  --color-text-primary: #0c0d10;
  --color-text-secondary: #54575f;
  --color-text-muted: #8a8d96;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #b9bcc4;

  --color-border: #e5e7ec;
  --color-border-strong: #cdd1d8;
  --color-divider: #eef0f4;

  /* Header bar */
  --header-bg: #0c0d10;
  --header-bg-scrolled: rgba(12, 13, 16, 0.95);
  --header-text: #ffffff;
  --header-text-muted: rgba(255, 255, 255, 0.7);

  /* Per-category accent overrides — applied via body.theme-* */
  /* Order: Blue (IT), Gold (Office), Green (MRO), Orange (OLM) */
  --color-it: #2563eb;
  --color-it-hover: #1d4ed8;
  --color-it-soft: #eff6ff;
  --color-it-glow: rgba(37, 99, 235, 0.22);

  --color-office: #d4a017;
  --color-office-hover: #b8860b;
  --color-office-soft: #fef9e6;
  --color-office-glow: rgba(212, 160, 23, 0.25);

  --color-mro: #059669;
  --color-mro-hover: #047857;
  --color-mro-soft: #ecfdf5;
  --color-mro-glow: rgba(5, 150, 105, 0.22);

  --color-olm: #ea580c;
  --color-olm-hover: #c2410c;
  --color-olm-soft: #fff1e6;
  --color-olm-glow: rgba(234, 88, 12, 0.22);

  --font-display: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(12, 13, 16, 0.04), 0 4px 16px rgba(12, 13, 16, 0.05);
  --shadow-card: 0 2px 6px rgba(12, 13, 16, 0.04), 0 12px 36px rgba(12, 13, 16, 0.07);
  --shadow-card-hover: 0 6px 14px rgba(12, 13, 16, 0.06), 0 24px 60px var(--color-accent-glow);
  --shadow-cta: 0 8px 24px rgba(200, 16, 46, 0.28);
  --shadow-cta-hover: 0 14px 34px rgba(200, 16, 46, 0.36);

  --container: 1240px;
  --section-pad: clamp(72px, 10vw, 140px);
  --nav-height: 76px;
}

/* ===================== Per-category page themes ===================== */
body.theme-it {
  --color-accent: var(--color-it);
  --color-accent-hover: var(--color-it-hover);
  --color-accent-soft: var(--color-it-soft);
  --color-accent-glow: var(--color-it-glow);
  --shadow-cta: 0 8px 24px rgba(37, 99, 235, 0.32);
  --shadow-cta-hover: 0 14px 34px rgba(37, 99, 235, 0.40);
  --header-bg: var(--color-it);
  --header-bg-scrolled: var(--color-it);
}
body.theme-office {
  --color-accent: var(--color-office);
  --color-accent-hover: var(--color-office-hover);
  --color-accent-soft: var(--color-office-soft);
  --color-accent-glow: var(--color-office-glow);
  --shadow-cta: 0 8px 24px rgba(212, 160, 23, 0.36);
  --shadow-cta-hover: 0 14px 34px rgba(212, 160, 23, 0.44);
  --header-bg: var(--color-office);
  --header-bg-scrolled: var(--color-office);
  --header-text: #0c0d10;
  --header-text-muted: rgba(12, 13, 16, 0.72);
}
body.theme-mro {
  --color-accent: var(--color-mro);
  --color-accent-hover: var(--color-mro-hover);
  --color-accent-soft: var(--color-mro-soft);
  --color-accent-glow: var(--color-mro-glow);
  --shadow-cta: 0 8px 24px rgba(5, 150, 105, 0.32);
  --shadow-cta-hover: 0 14px 34px rgba(5, 150, 105, 0.40);
  --header-bg: var(--color-mro);
  --header-bg-scrolled: var(--color-mro);
}
body.theme-olm {
  --color-accent: var(--color-olm);
  --color-accent-hover: var(--color-olm-hover);
  --color-accent-soft: var(--color-olm-soft);
  --color-accent-glow: var(--color-olm-glow);
  --shadow-cta: 0 8px 24px rgba(234, 88, 12, 0.32);
  --shadow-cta-hover: 0 14px 34px rgba(234, 88, 12, 0.40);
  --header-bg: var(--color-olm);
  --header-bg-scrolled: var(--color-olm);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.1rem; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--color-text-secondary); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; position: relative; }
.section--alt { background: var(--color-bg-secondary); }
.section--primary { background: var(--color-bg-primary); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--dark p, .section--dark .lead { color: var(--color-text-on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-text-on-dark); }

/* ========================= Eyebrow ========================= */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 22px;
  position: relative;
  padding-left: 32px;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.section-head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head .section-eyebrow { padding-left: 0; }
.section-head .section-eyebrow::before { display: none; }

/* ========================= Navigation — header logo contained ========================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.nav--scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--header-text);
  height: 100%;
}
.nav__brand img {
  height: 56px;
  width: auto;
  display: block;
}
body.theme-office .nav__brand img { filter: brightness(0); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--header-text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color .2s ease, background .2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__link:hover {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.10);
}
body.theme-office .nav__link:hover {
  background: rgba(0, 0, 0, 0.08);
}
.nav__link--active {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.10);
}
body.theme-office .nav__link--active {
  background: rgba(0, 0, 0, 0.08);
}
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, 0);
  box-shadow: 0 0 10px var(--color-accent);
}
body.theme-it .nav__link--active::after,
body.theme-office .nav__link--active::after,
body.theme-mro .nav__link--active::after,
body.theme-olm .nav__link--active::after {
  background: var(--header-text);
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
}
body.theme-office .nav__link--active::after { box-shadow: 0 0 10px rgba(0,0,0,0.4); }

.nav__cta { margin-left: 14px; }
.nav__cta.btn--primary { background: var(--color-accent); color: #ffffff; }
.nav__cta.btn--primary:hover { background: var(--color-accent-hover); }
body.theme-it .nav__cta.btn--primary,
body.theme-office .nav__cta.btn--primary,
body.theme-mro .nav__cta.btn--primary,
body.theme-olm .nav__cta.btn--primary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--header-text);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.35);
}
body.theme-office .nav__cta.btn--primary {
  background: rgba(0, 0, 0, 0.12);
  color: #0c0d10;
  border-color: rgba(0, 0, 0, 0.25);
}
body.theme-it .nav__cta.btn--primary:hover,
body.theme-office .nav__cta.btn--primary:hover,
body.theme-mro .nav__cta.btn--primary:hover,
body.theme-olm .nav__cta.btn--primary:hover {
  background: rgba(255, 255, 255, 0.28);
}
body.theme-office .nav__cta.btn--primary:hover {
  background: rgba(0, 0, 0, 0.22);
}
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--header-text);
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
body.theme-office .nav__toggle { border-color: rgba(0,0,0,0.25); }
.nav__toggle span {
  position: relative;
  width: 20px; height: 2px;
  background: var(--header-text);
  display: block;
  border-radius: 1px;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: var(--header-text);
  border-radius: 1px;
  transition: transform .25s ease;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  background: var(--color-bg-primary);
  border-left: 1px solid var(--color-divider);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1100;
  padding: 90px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -20px 0 40px rgba(12, 13, 16, 0.08);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer .nav__link {
  padding: 16px 14px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-divider);
  border-radius: 0;
  color: var(--color-text-primary);
  text-align: left;
  width: 100%;
}
.nav__drawer .nav__link:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.nav__drawer .btn { margin-top: 18px; justify-content: center; }
.nav__backdrop {
  position: fixed; inset: 0;
  background: rgba(12, 13, 16, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ========================= Buttons ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}
body.theme-office .btn--primary { color: #0c0d10; }
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--color-accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-cta-hover);
}
body.theme-office .btn--primary:hover { color: #0c0d10; }
.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}
.btn--small { padding: 10px 18px; font-size: 0.85rem; }
.btn .icon { width: 16px; height: 16px; }

/* ========================= Hero ========================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 90px) 0 130px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 12%, var(--color-accent-glow), transparent 70%),
    radial-gradient(800px 600px at 0% 100%, var(--color-accent-glow), transparent 70%),
    var(--color-bg-primary);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero__content { position: relative; z-index: 3; }
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  margin-bottom: 26px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}
.hero__title-accent { color: var(--color-accent); }
.hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-text-primary);
  text-stroke: 2px var(--color-text-primary);
  display: inline-block;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  max-width: 560px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.hero__chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  padding: 10px 22px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  text-align: center;
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.hero__chip:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.hero__chip strong { font-weight: 700; }
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 60px;
}
.hero__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.hero__badge {
  padding: 22px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all .25s ease;
  text-align: center;
}
.hero__badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
}
.hero__badge-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.hero__badge-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ========================= Hero right-side visual ========================= */
.hero__visual {
  position: relative;
  width: 100%;
  height: clamp(380px, 60vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: var(--hero-fade, 1);
  transform: translateY(calc(var(--hero-shift, 0) * 1px));
  transition: opacity .12s linear, transform .12s linear;
}
.hero__visual::before {
  content: "";
  position: absolute;
  width: 80%; height: 80%;
  background: radial-gradient(circle at center, var(--color-accent-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.12); opacity: 0.7; }
}
.hero__visual::after {
  content: "";
  position: absolute;
  width: 70%; height: 70%;
  background-image:
    repeating-linear-gradient(45deg, var(--color-divider) 0 1px, transparent 1px 18px);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, black 30%, transparent 70%);
          mask: radial-gradient(circle, black 30%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
  animation: gridSpin 60s linear infinite;
}
@keyframes gridSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero__visual-symbol {
  position: relative;
  width: clamp(160px, 22vw, 260px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.10));
  z-index: 2;
  animation: symbolBob 6s ease-in-out infinite;
}
@keyframes symbolBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.02); }
}
.hero__visual-chips {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero__visual-chip {
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: chipFloat 3.4s ease-in-out infinite;
}
.hero__visual-chip span {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
}
.hero__visual-chip:nth-child(1) { animation-delay: 0s; }
.hero__visual-chip:nth-child(2) { animation-delay: -0.85s; }
.hero__visual-chip:nth-child(3) { animation-delay: -1.7s; }
.hero__visual-chip:nth-child(4) { animation-delay: -2.55s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25%      { transform: translateY(-6px) translateX(2px); }
  50%      { transform: translateY(-12px) translateX(0); }
  75%      { transform: translateY(-6px) translateX(-2px); }
}

/* Sub-page hero (shorter) */
.hero--sub {
  min-height: auto;
  padding: calc(var(--nav-height) + 80px) 0 90px;
}
.hero--sub .hero__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero--sub .hero__visual { height: clamp(300px, 45vh, 460px); }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* ========================= Cards ========================= */
.cards-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .cards-grid--3, .cards-grid--6, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cards-grid, .cards-grid--3, .cards-grid--2, .cards-grid--4, .cards-grid--6 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card-hover);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 14px;
  line-height: 1.15;
}
.card__text {
  font-size: 0.96rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Category cards — color-coded per type */
.card--cat {
  border-top: 3px solid var(--accent, var(--color-accent));
  padding-top: 32px;
}
.card--cat .card__sin {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, var(--color-accent));
  padding: 5px 12px;
  background: var(--accent-soft, var(--color-accent-soft));
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.card--cat:hover {
  box-shadow: 0 6px 14px rgba(12, 13, 16, 0.06), 0 24px 60px var(--accent-glow, var(--color-accent-glow));
  border-color: var(--accent, var(--color-accent));
}
.card--cat .card__cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent, var(--color-accent));
}
.card--cat .card__cta::after {
  content: "→";
  transition: transform .2s ease;
  font-weight: 400;
}
.card--cat:hover .card__cta::after { transform: translateX(6px); }

.card--it     { --accent: var(--color-it);     --accent-soft: var(--color-it-soft);     --accent-glow: var(--color-it-glow); }
.card--office { --accent: var(--color-office); --accent-soft: var(--color-office-soft); --accent-glow: var(--color-office-glow); }
.card--mro    { --accent: var(--color-mro);    --accent-soft: var(--color-mro-soft);    --accent-glow: var(--color-mro-glow); }
.card--olm    { --accent: var(--color-olm);    --accent-soft: var(--color-olm-soft);    --accent-glow: var(--color-olm-glow); }

@media (hover: none), (max-width: 900px) {
  .card--cat {
    box-shadow: 0 6px 14px rgba(12, 13, 16, 0.05), 0 18px 50px var(--accent-glow, var(--color-accent-glow));
    border-color: var(--accent, var(--color-accent));
  }
}

/* SIN Badge — soft chip style */
.sin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 8px 16px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-pill);
}

/* ========================= Compliance callout ========================= */
.compliance-callout {
  margin-top: 70px;
  padding: 38px 42px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.04);
}
.compliance-callout h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.compliance-callout p { margin-bottom: 14px; color: var(--color-text-primary); }
.compliance-callout .naics {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.compliance-callout .naics strong { color: var(--color-accent); margin-right: 6px; }

/* ========================= Federal IDs strip (horizontal one-liner) ========================= */
.fed-id-strip {
  margin-top: 40px;
  padding: 22px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--color-text-primary);
  text-align: center;
}
.fed-id-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fed-id-strip__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.fed-id-strip__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-accent);
}
.fed-id-strip__dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--color-border-strong);
  border-radius: 50%;
}
@media (max-width: 700px) {
  .fed-id-strip { flex-direction: column; padding: 22px 22px; }
  .fed-id-strip__dot { display: none; }
}

/* ========================= Feature bar ========================= */
.feature-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 900px) { .feature-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-bar { grid-template-columns: 1fr; } }
.feature-bar__item {
  padding: 32px 28px;
  background: var(--color-bg-card);
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}
@media (min-width: 901px) {
  .feature-bar__item:nth-child(3n) { border-right: none; }
  .feature-bar__item:nth-last-child(-n+3) { border-bottom: none; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .feature-bar__item:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .feature-bar__item { border-right: none; }
}
.feature-bar__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 3px;
  background: var(--color-accent);
}
.feature-bar__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.feature-bar__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ========================= CTA Banner — light, with red gradient ========================= */
.cta-banner {
  text-align: center;
  padding: clamp(80px, 9vw, 120px) 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 1100px; height: 1100px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, var(--color-accent-glow) 0%, rgba(200,16,46,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.cta-banner__inner { position: relative; z-index: 2; }
.cta-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 30px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.cta-banner__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}

/* Stacked headline variant for the home CTA */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin-bottom: 40px;
}
.cta-stack__line {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0;
}
.cta-stack__line--accent { color: var(--color-accent); }

/* ========================= Footer ========================= */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 80px 0 30px;
  position: relative;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 50px;
  align-items: start;
}
@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr; gap: 40px; }
}
.footer__brand img {
  height: 96px;
  width: auto;
  margin-bottom: 16px;
  margin-left: -10px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-on-dark);
  margin-bottom: 4px;
}
.footer__brand-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.footer__brand-text {
  color: var(--color-text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 36ch;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  margin-bottom: 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  color: var(--color-text-on-dark-muted);
  font-size: 0.93rem;
  transition: color .2s ease;
}
.footer__list a:hover { color: var(--color-accent); }
.footer__contact-line {
  color: var(--color-text-on-dark-muted);
  font-size: 0.93rem;
  margin-bottom: 8px;
}
.footer__contact-line a { color: var(--color-text-on-dark-muted); }
.footer__contact-line a:hover { color: var(--color-accent); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer__copyright {
  color: var(--color-text-on-dark-muted);
  font-size: 0.82rem;
  margin: 0;
}
.footer__ids {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--color-text-on-dark-muted);
  margin: 0;
}
.footer__ids span { color: rgba(255, 255, 255, 0.55); margin-right: 4px; }

/* ========================= Modal ========================= */
.modal {
  position: fixed; inset: 0;
  background: rgba(12, 13, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 50px 44px 44px;
  box-shadow: 0 30px 80px rgba(12, 13, 16, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform .3s ease;
}
.modal__panel--form { max-width: 620px; }
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.modal__close:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: rotate(90deg);
}
.modal__title {
  font-size: 1.7rem;
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal__sub {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}
.modal__list { display: flex; flex-direction: column; gap: 10px; }
.modal__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--color-bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all .2s ease;
}
.modal__item:hover {
  transform: translateX(4px);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.modal__item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.modal__item-icon svg { width: 20px; height: 20px; }
.modal__item-body { flex: 1; min-width: 0; }
.modal__item-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 4px;
  color: var(--color-text-primary);
}
.modal__item-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.modal__item-arrow { color: var(--color-accent); flex-shrink: 0; font-size: 1.2rem; }
body.modal-open { overflow: hidden; }

/* Per-category color of modal items */
.modal__item--it     { --modal-accent: var(--color-it);     --modal-accent-soft: var(--color-it-soft); }
.modal__item--office { --modal-accent: var(--color-office); --modal-accent-soft: var(--color-office-soft); }
.modal__item--mro    { --modal-accent: var(--color-mro);    --modal-accent-soft: var(--color-mro-soft); }
.modal__item--olm    { --modal-accent: var(--color-olm);    --modal-accent-soft: var(--color-olm-soft); }
.modal__item--it .modal__item-icon,
.modal__item--office .modal__item-icon,
.modal__item--mro .modal__item-icon,
.modal__item--olm .modal__item-icon {
  background: var(--modal-accent-soft);
  color: var(--modal-accent);
}
.modal__item--it:hover, .modal__item--office:hover, .modal__item--mro:hover, .modal__item--olm:hover {
  border-color: var(--modal-accent);
  background: var(--modal-accent-soft);
}
.modal__item--it .modal__item-arrow,
.modal__item--office .modal__item-arrow,
.modal__item--mro .modal__item-arrow,
.modal__item--olm .modal__item-arrow {
  color: var(--modal-accent);
}

/* ========================= Contact form (in modal + on contact page) ========================= */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form__hp { position: absolute; left: -9999px; visibility: hidden; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg-primary);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}
.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.contact-form__submit { min-width: 180px; justify-content: center; }
.contact-form__status {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: none;
}
.contact-form__status.is-pending {
  display: block;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}
.contact-form__status.is-success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.contact-form__status.is-error {
  display: block;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border: 1px solid var(--color-border-strong);
}

/* ========================= Contact / RFQ ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
  transition: all .25s ease;
}
.contact-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.contact-card h3 {
  font-size: 1.15rem;
  color: var(--color-text-primary);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.contact-card .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}
.contact-card .contact-line .label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  width: 70px;
  flex-shrink: 0;
}
.contact-card .contact-line a { color: var(--color-text-primary); }
.contact-card .contact-line a:hover { color: var(--color-accent); }

.action-card {
  display: flex; flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 42px 38px;
  text-decoration: none;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-soft);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.action-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: translateX(-100%);
  transition: transform .35s ease;
}
.action-card:hover::before { transform: translateX(0); }
.action-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card-hover);
}
.action-card__icon {
  width: 56px; height: 56px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  margin-bottom: 26px;
}
.action-card__icon svg { width: 24px; height: 24px; }
.action-card__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.action-card__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 8px;
  word-break: break-word;
}
.action-card__hint {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* RFQ checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.96rem;
  line-height: 1.55;
  box-shadow: var(--shadow-soft);
  transition: all .2s ease;
}
.checklist li:hover {
  border-color: var(--color-accent);
  transform: translateX(3px);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 0;
  background: var(--color-accent);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/24px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/24px no-repeat;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
  position: relative;
}
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; } }
.timeline__step {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all .25s ease;
}
.timeline__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
}
.timeline__step-num {
  position: absolute;
  top: -22px; left: 26px;
  width: 44px; height: 44px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-cta);
}
body.theme-office .timeline__step-num { color: #0c0d10; }
.timeline__step h4 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.timeline__step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.note-callout {
  margin-top: 50px;
  padding: 22px 28px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.94rem;
  text-align: center;
}
.note-callout strong { color: var(--color-accent); }

/* ========================= Scroll-fade ========================= */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-fade-delay="1"] { transition-delay: .08s; }
[data-fade-delay="2"] { transition-delay: .16s; }
[data-fade-delay="3"] { transition-delay: .24s; }
[data-fade-delay="4"] { transition-delay: .32s; }
[data-fade-delay="5"] { transition-delay: .40s; }
[data-fade-delay="6"] { transition-delay: .48s; }

/* ========================= Mobile ========================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 90px; }
  .hero__title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .modal__panel { padding: 50px 24px 28px; }
  .modal__item { padding: 14px 16px; gap: 14px; }
  .modal__item-title { font-size: 0.95rem; }
  .modal__item-meta { font-size: 0.72rem; }
  .footer__brand img { height: 80px; margin-left: 0; }
  .nav__brand img { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-fade] { opacity: 1; transform: none; }
}
