/* ============================================
   Quimera Technology — style.css
   Premium dark theme, Krub typography
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #c41428;
  --color-primary-hover: #e01830;
  --color-primary-soft: #8a1828;
  --color-primary-glow: rgba(196, 20, 40, 0.2);
  --color-bg: #0a0a0f;
  --color-bg-alt: #0e0e15;
  --color-bg-card: #141420;
  --color-bg-elevated: #1e1926;
  --color-swoosh: #1a1018;
  --color-text: #e8e8ed;
  --color-text-muted: #8888a0;
  --color-text-dim: #5f5d6e;
  --color-white: #f5f4f8;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);

  --nav-height: 72px;
  --max-width: 1180px;
  --max-width-narrow: 780px;
  --transition: 0.25s ease;
  --transition-slow: 0.5s ease;

  --font: 'Krub', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  hanging-punctuation: first allow-end last;
}

::selection {
  background: rgba(176, 16, 32, 0.4);
  color: var(--color-white);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  color: transparent;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Inline link underline for article body text */
.article__body a,
.approach-body a,
.legal-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: rgba(176, 16, 32, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.article__body a:hover,
.approach-body a:hover,
.legal-content a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p + p {
  margin-top: 1.25rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-dim {
  color: var(--color-text-dim);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.text-upper {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 7.5rem 0;
}

.section--lg {
  padding: 7.5rem 0;
}

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

.section--alt {
  background-color: var(--color-bg-alt);
  position: relative;
}

.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(176, 16, 32, 0.12) 30%, rgba(176, 16, 32, 0.12) 70%, transparent 100%);
}

.section--alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(176, 16, 32, 0.12) 30%, rgba(176, 16, 32, 0.12) 70%, transparent 100%);
}

/* --- Red Accent Line --- */
.accent-line {
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin-bottom: 1.5rem;
}

.accent-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-primary);
}

.section-heading {
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

.section-intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0.625rem;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  color: #e8e8ed;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.nav__logo-text .nav__logo-text-full {
  display: none;
}

.nav__logo:hover .nav__logo-text {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .nav__logo img {
    height: 36px;
  }
  .nav__logo-text {
    font-size: 0.9375rem;
  }
  .nav__logo-text .nav__logo-text-short {
    display: none;
  }
  .nav__logo-text .nav__logo-text-full {
    display: inline;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4375rem 1.125rem;
  border-radius: 0;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.nav__cta:hover {
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 1px;
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 11, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    font-weight: 300;
  }

  .nav__cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero--short {
  min-height: auto;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Layered background for hero */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at 65% 45%, rgba(176, 16, 32, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}

/* Hero SVG network topology */
.hero__svg {
  position: absolute;
  right: -2%;
  top: 8%;
  width: 60%;
  height: 85%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__svg {
    width: 100%;
    right: -20%;
    top: 15%;
    opacity: 0.25;
  }
}

/* Hero layout — two column: content left, mark right */
.hero__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 680px;
}

.hero__headline {
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__sub {
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero__actions {
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero__aside {
  flex-shrink: 0;
  animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__mark {
  width: 130px;
  height: auto;
  opacity: 0.15;
}

@media (max-width: 960px) {
  .hero__aside {
    display: none;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}

.hero__sub {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #d81830 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(196, 20, 40, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #f02040 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(196, 20, 40, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}

.btn--outline:hover {
  color: var(--color-white);
  border-color: var(--color-text-muted);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding-left: 0;
  padding-right: 0;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.875rem;
}

.btn--ghost:hover {
  color: var(--color-white);
}

.btn--ghost .btn__arrow {
  transition: transform var(--transition);
}

.btn--ghost:hover .btn__arrow {
  transform: translateX(4px);
}

.btn__arrow {
  font-size: 1.1em;
  transition: transform var(--transition);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 2.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--color-border-hover);
}

.card--accent-top {
  border-top: 2px solid var(--color-primary);
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card--link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 1rem;
}

/* --- Pillar rows (services on home) — horizontal, not cards --- */
.pillars {
  border-top: 1px solid var(--color-border);
}

.pillar-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  position: relative;
}

.pillar-row:hover {
  color: inherit;
  background: rgba(176, 16, 32, 0.03);
  padding-left: 1.5rem;
  margin-left: -1.5rem;
  padding-right: 1.5rem;
  margin-right: -1.5rem;
}

.pillar-row:hover .pillar-row__number {
  color: var(--color-primary);
}

.pillar-row__number {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}

.pillar-row__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.375rem;
  transition: color var(--transition);
}

.pillar-row:hover .pillar-row__title {
  color: var(--color-primary);
}

.pillar-row__desc {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.pillar-row__arrow {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  transition: transform var(--transition), color var(--transition);
  padding-top: 0.15rem;
}

.pillar-row:hover .pillar-row__arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .pillar-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .pillar-row__arrow {
    display: none;
  }
}

/* Legacy pillar cards (services page may still use) */
.pillar__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.pillar__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Sector links — simple text flow --- */
.sector-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.sector-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.5rem 0;
}

.sector-link::after {
  content: '\00a0\00a0/\00a0\00a0';
  color: var(--color-text-dim);
  font-weight: 300;
}

.sector-link:last-child::after {
  content: '';
}

.sector-link:hover {
  color: var(--color-white);
}

/* --- Sector Cards — rich grid with descriptions --- */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.sector-card {
  background: var(--color-bg);
  padding: 2rem;
  text-decoration: none;
  transition: background var(--transition);
}

.sector-card:hover {
  background: var(--color-bg-card);
}

.sector-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.625rem;
  transition: color var(--transition);
}

.sector-card:hover .sector-card__title {
  color: var(--color-primary-hover);
}

.sector-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .sector-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* --- Split Section (statement + points side by side) --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.split-section__lead {
  max-width: 480px;
}

.split-section__statement {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 200;
  line-height: 1.45;
  color: var(--color-white);
  letter-spacing: -0.015em;
}

.split-section__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
  }

  .split-section__lead {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
  }
}

/* --- Difference / Feature Points --- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.diff-item__marker {
  width: 2px;
  min-height: 48px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(176, 16, 32, 0.2));
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.diff-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.375rem;
}

.diff-item__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Service Detail Sections --- */
.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail__list {
  display: grid;
  gap: 0.75rem;
}

.service-detail__list-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.service-detail__list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.service-detail__who {
  margin-top: 2rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 1px solid var(--color-primary);
}

.service-detail__who-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .service-detail__content {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Case Study Cards --- */
.case-study {
  padding: 2.5rem;
  border-left: 3px solid var(--color-primary);
}

.case-study__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.case-study__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.case-study__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.case-study__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-dim);
  background: rgba(176, 16, 32, 0.06);
  border: 1px solid rgba(176, 16, 32, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Insights / Article Cards --- */
.insight-card {
  display: flex;
  flex-direction: column;
  border-left: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card--link.insight-card:hover {
  border-left-color: var(--color-primary);
}

.insight-card__category {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  margin-bottom: 0.625rem;
}

.insight-card__title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  transition: color var(--transition);
}

.card--link:hover .insight-card__title {
  color: var(--color-primary);
}

.insight-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
}

.insight-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 1rem;
}

/* Insights filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-dim);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0;
  margin-right: 1.5rem;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-btn:hover {
  color: var(--color-white);
}

.filter-btn--active {
  color: var(--color-white);
  border-bottom-color: var(--color-primary);
}

/* --- Article Page --- */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.article__author-img {
  width: 36px;
  height: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.article__author-name {
  font-weight: 500;
  color: var(--color-white);
}

.article__author-name a {
  color: inherit;
}

.article__author-name a:hover {
  color: var(--color-primary);
}

.article__date {
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.article__body h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article__body h2 + p {
  margin-top: 0;
}

.article__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.625rem;
}

.article__body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.85;
}

.article__body > p:first-child {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-white);
}

.article__body ul,
.article__body ol {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.article__body li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

.article__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
}

.article__body ol {
  counter-reset: ol-counter;
}

.article__body ol li {
  counter-increment: ol-counter;
}

.article__body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.article__body blockquote {
  border-left: 1px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(176, 16, 32, 0.06) 0%, transparent 100%);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  position: relative;
}

.article__body blockquote p {
  color: var(--color-text);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
}

.article__body blockquote p:last-child {
  margin-bottom: 0;
}

.article__body strong {
  color: var(--color-white);
  font-weight: 600;
}

/* Article CTA */
.article-cta {
  margin-top: 3.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-cta__text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 0;
}

/* Related articles */
.related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.related__title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}

/* --- Stat Row (about page) --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.stat__number {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 200;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(176, 16, 32, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Approach page body text --- */
.approach-body {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.approach-body p {
  margin-bottom: 1.25rem;
}

.approach-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.approach-body h3:first-child {
  margin-top: 0;
}

/* --- About / Team --- */
.team-member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.team-member__avatar {
  width: 120px;
  height: 120px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.team-member__name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.team-member__bio {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.team-member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.team-member__link:hover {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .team-member {
    grid-template-columns: 120px 1fr;
  }
}

/* Global map */
.global-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}

.global-locations__item {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.global-locations__item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-dim);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-primary);
  margin-top: 0.375rem;
  display: none;
}

.form-group--error .form-input,
.form-group--error .form-textarea {
  border-color: var(--color-primary);
}

.form-group--error .form-error {
  display: block;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.form-success--visible {
  display: block;
}

.form-success__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.form-success__text {
  color: var(--color-text-muted);
}

.contact-info__item {
  margin-bottom: 2rem;
}

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  margin-bottom: 0.375rem;
}

.contact-info__value {
  font-size: 1.125rem;
  color: var(--color-white);
}

.contact-info__value a {
  color: var(--color-white);
}

.contact-info__value a:hover {
  color: var(--color-primary);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--color-text-dim);
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

.breadcrumbs__sep {
  color: var(--color-text-dim);
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer__logo img {
  height: 22px;
  width: auto;
  opacity: 0.7;
}

.footer__logo-text {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  color: #e8e8ed;
  opacity: 0.7;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.footer__logo:hover .footer__logo-text,
.footer__logo:hover img {
  opacity: 1;
}

.footer__brand-text {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.footer__nav-title {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-dim);
  margin-bottom: 0.875rem;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav-link {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer__legal {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  max-width: 720px;
}

.footer__legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
}

.footer__legal-links a {
  color: var(--color-text-dim);
}

.footer__legal-links a:hover {
  color: var(--color-white);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle glow + geometric dot pattern on page headers */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -5%;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(176, 16, 32, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(rgba(176, 16, 32, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, transparent 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-header__sub {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  line-height: 1.7;
}

/* --- Legal pages --- */
.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1rem;
}

.legal-content li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.375rem;
  color: var(--color-text-muted);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
}

.legal-content a {
  color: var(--color-primary);
}

.legal-content a:hover {
  color: var(--color-primary-hover);
}

/* --- Trust Bar / Brand Family --- */
.trust-bar {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.trust-bar__text {
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

/* Brand family links */
.brand-family {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.brand-family__item {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.brand-family__item a {
  color: var(--color-text-muted);
}

.brand-family__item a:hover {
  color: var(--color-white);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children in grids */
.grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.grid .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__content {
    animation: none;
  }
  .hero__svg circle animate {
    display: none;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 3px;
}

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section--lg {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: 85vh;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 2rem;
  }

  .page-header__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card::before,
  .card::after {
    display: none;
  }

  .split-section__statement {
    font-size: 1.375rem;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat__number {
    font-size: 2rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer__grid {
    gap: 2rem;
  }
}

/* --- Print --- */
@media print {
  .nav, .footer, .btn, .nav__toggle, .hero__svg, .hero__bg, .skip-link, .scroll-progress {
    display: none !important;
  }
  body {
    background: white;
    color: #1a1a1a;
  }
  h1, h2, h3, h4 {
    color: #1a1a1a;
  }
  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
  .section {
    padding: 1.5rem 0;
  }
  a {
    color: #1a1a1a;
    text-decoration: underline;
  }
}

/* --- Sector card hover accent --- */
.sector-card {
  border-left: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.sector-card:hover {
  border-left-color: var(--color-primary);
}

/* --- Scroll progress bar (articles) --- */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  z-index: 999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Back to top link in footer --- */
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.footer__top-link:hover {
  color: var(--color-white);
}

.footer__top-link:hover span {
  transform: translateY(-2px);
}

.footer__top-link span {
  display: inline-block;
  transition: transform var(--transition);
}

/* --- Focus-visible outlines --- */
.btn:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible,
.card--link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: none;
}

/* --- Diff-item spacing --- */
.diff-item + .diff-item {
  margin-top: 2rem;
}

/* --- Breadcrumb hover --- */
.breadcrumbs a:hover {
  color: var(--color-white);
}

/* --- Footer link hover --- */
.footer__nav-link {
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.footer__nav-link:hover {
  transform: translateX(2px);
}

/* --- Nav toggle animation --- */
.nav__toggle-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Nav logo on scroll --- */
.nav--scrolled .nav__logo img {
  opacity: 0.9;
}

/* --- Approach body first h3 --- */
.approach-body > h3:first-child,
.approach-body > p:first-child + h3 {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

/* --- Global locations --- */
.global-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.global-locations__item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), color var(--transition);
}

.global-locations__item:hover {
  border-color: var(--color-primary-soft);
  color: var(--color-white);
}

/* --- Insight card category colors --- */
.insight-card[data-category="critical-connectivity"] .insight-card__category {
  color: var(--color-primary-soft);
}

.insight-card[data-category="security"] .insight-card__category {
  color: #8a6820;
}

/* --- Article code styling --- */
.article__body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  color: var(--color-primary-hover);
  background: rgba(176, 16, 32, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}

/* --- Form loading state --- */
.form-loading .btn--primary {
  opacity: 0.7;
  pointer-events: none;
}

/* --- Mobile refinements --- */
@media (max-width: 640px) {
  .hero {
    min-height: 85vh;
  }
  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1.25rem;
  }
  .hero__sub {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero__actions .btn,
  #contact-form .btn {
    width: 100%;
    justify-content: center;
  }
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stat__number {
    font-size: 2.5rem;
  }
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .sector-card {
    padding: 1.5rem;
  }
}

/* --- Desktop refinements --- */
@media (min-width: 768px) {
  .card,
  .insight-card {
    padding: 2.25rem;
  }
  .contact-grid {
    gap: 5rem;
  }
}

@media (min-width: 1024px) {
  .article {
    max-width: 820px;
  }
  .article__body {
    max-width: 700px;
  }
  .footer__grid {
    gap: 3rem;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  outline: none;
}
