/* ============================================================
   BRIGHTFORGE — Design System v2 (Corporate Light)
   Light surfaces, navy brand, restrained blue accent.
   Less decoration. More intention.
   ============================================================ */

:root {
  --navy: #07111F;
  --mid: #0B1728;

  --blue: #2563EB;
  --blue-2: #3B82F6;
  --blue-soft: rgba(37, 99, 235, 0.08);

  /* light surfaces (dominant) */
  --paper: #FFFFFF;
  --paper-2: #F4F6FA;
  --ink: #0B1728;          /* headings */
  --text: #3E4E63;         /* body */
  --muted: #64748B;        /* secondary */
  --line: #E2E8F0;         /* hairlines */
  --line-soft: rgba(15, 23, 42, 0.1);

  /* navy-surface text (header, footer, CTA) */
  --on-navy: #B7C3D6;
  --on-navy-muted: #7C8BA3;
  --on-navy-line: rgba(255, 255, 255, 0.09);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
  --shadow: 0 24px 50px -28px rgba(7, 17, 31, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(37, 99, 235, 0.18); color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; font-size: 0.875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.text-link:hover { color: var(--mid); gap: 0.7rem; }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}
.section-note { max-width: 38ch; color: var(--muted); font-size: 0.98rem; margin-top: 1.1rem; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--light { background: var(--paper-2); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.75rem;
}
.section-head--split .section-note { margin: 0 0 0.25rem; text-align: right; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--mid); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid #C7D2E2; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn span[aria-hidden] { transition: transform 0.2s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ---------- Header (solid corporate navy) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--on-navy-line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 12px 32px -18px rgba(7, 17, 31, 0.55); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-weight: 700; font-size: 0.98rem; letter-spacing: 0.22em; color: #fff; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: var(--on-navy-muted);
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-navy-muted);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn-primary:hover { background: var(--blue-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (light, corporate) ---------- */
.hero {
  position: relative;
  padding: clamp(9rem, 14vw, 12rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  background: linear-gradient(180deg, #FBFCFE 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--blue); }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}
.hero-title .hl { color: var(--blue); }
.hero-sub { margin-top: 1.5rem; max-width: 52ch; font-size: 1.05rem; color: var(--muted); }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }

/* hero micro indicators */
.hero-indicators { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-ind {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-ind::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* hero abstract visual — light panels */
.hero-aside { position: relative; }
.hv-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; margin-left: auto; width: 100%; }
.hv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.8;
}
.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-svg path, .hv-svg line { stroke-dasharray: 6 8; animation: dashmove 14s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -280; } }

.hv-panel {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 44px -22px rgba(7, 17, 31, 0.22);
}
.hv-panel--sales { top: 4%; left: 6%; width: 46%; padding: 1rem; animation: floaty 7s ease-in-out infinite; }
.hv-panel--order { top: 36%; right: 2%; width: 38%; padding: 1rem; animation: floaty 8s ease-in-out 1.2s infinite; }
.hv-panel--code  { bottom: 4%; left: 8%; width: 52%; padding: 1rem; animation: floaty 9s ease-in-out 0.6s infinite; }
.hv-panel--status { bottom: 16%; right: 6%; padding: 0.8rem 1rem; animation: floaty 6.5s ease-in-out 1.8s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hv-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.7rem;
}
.hv-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.hv-bar { flex: 1; background: linear-gradient(180deg, var(--blue-2), var(--blue)); border-radius: 1px; opacity: 0.9; }
.hv-rows { display: flex; flex-direction: column; gap: 7px; }
.hv-row { display: flex; align-items: center; gap: 8px; }
.hv-row-l { width: 58%; height: 6px; background: var(--line); border-radius: 1px; }
.hv-row-v { width: 26%; height: 6px; background: var(--blue); opacity: 0.55; border-radius: 1px; }
.hv-code { display: flex; flex-direction: column; gap: 6px; }
.hv-code-line { height: 7px; background: var(--line); border-radius: 1px; }
.hv-code-line--blue { background: var(--blue); opacity: 0.5; width: 82%; }
.hv-dot-row { display: flex; align-items: center; gap: 0.6rem; }
.hv-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: ring 2.6s infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 11px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.hv-glow {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: 6%; top: 22%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}
.hv-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--blue);
  padding: 0.42rem 0.7rem;
  border-radius: 2px;
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.5);
}
.hv-chip--a { top: 12%; right: -2%; }
.hv-chip--b { bottom: 30%; left: -2%; }

/* hero marquee strip */
.hero-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.strip-track { display: inline-flex; gap: 3rem; padding: 1rem 0; animation: marquee 36s linear infinite; will-change: transform; }
.strip-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.strip-item::after { content: "●"; font-size: 0.4rem; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / statement ---------- */
.section-intro { padding-top: clamp(5rem, 10vw, 8rem); }
.intro-statement {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
}
.intro-statement em { font-style: normal; color: var(--blue); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.intro-copy p { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }
.intro-copy .text-link { margin-top: 1.5rem; }

.what-list { border-top: 1px solid var(--line); }
.what-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.25s var(--ease);
}
.what-item:hover { padding-left: 0.5rem; }
.what-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); letter-spacing: 0.1em; }
.what-title { font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.what-title span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Services (vertical list) ---------- */
.service-list { position: relative; }
.service-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 1.65rem 1rem;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.service-row:hover { background: var(--blue-soft); padding-left: 1.6rem; }
.service-row:hover::before { transform: scaleY(1); }
.srv-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); letter-spacing: 0.1em; }
.srv-title {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.service-row:hover .srv-title { color: var(--blue); }
.srv-desc { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; max-width: 56ch; }
.srv-arrow { font-size: 1.3rem; color: var(--muted); text-align: right; transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.service-row:hover .srv-arrow { color: var(--blue); transform: translateX(4px); }

.service-preview {
  position: fixed;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, 30vw);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.service-preview.is-visible { opacity: 1; }
.service-preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
  background: #fff;
}
.preview-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: right;
}

/* ---------- Solutions (industries) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.solutions-list { display: flex; flex-direction: column; }
.sol-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.sol-item:last-child { border-bottom: 1px solid var(--line); }
.sol-item:hover { background: #fff; padding-left: 0.9rem; }
.sol-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.sol-name { font-weight: 600; font-size: 1.08rem; color: var(--ink); transition: color 0.2s var(--ease); }
.sol-item:hover .sol-name, .sol-item.is-active .sol-name { color: var(--blue); }
.sol-arrow { color: var(--muted); text-align: right; opacity: 0; transform: translateX(-6px); transition: all 0.2s var(--ease); }
.sol-item:hover .sol-arrow, .sol-item.is-active .sol-arrow { opacity: 1; transform: translateX(0); }
.sol-item.is-active { background: #fff; border-left: 3px solid var(--blue); padding-left: calc(0.5rem - 3px); }

.sol-panel { display: none; animation: fadein 0.35s var(--ease); }
.sol-panel.is-active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sol-blurb { font-size: 1.05rem; color: var(--ink); max-width: 48ch; margin-bottom: 2rem; }
.sol-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.sol-h {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.sol-col ul li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.93rem;
  margin-bottom: 0.55rem;
  line-height: 1.55;
}
.sol-col ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  background: var(--blue-2);
  border-radius: 1px;
}

/* ---------- Products ---------- */
.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.product-showcase--compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.product-name { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin: 0.6rem 0 0.5rem; }
.product-tagline { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 0.9rem; }
.product-desc { color: var(--muted); font-size: 0.97rem; max-width: 50ch; }
.product-actions { margin-top: 1.6rem; }

.product-visual { position: relative; }
.product-cover {
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-cover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-cover-label {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(59, 130, 246, 0.5);
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* CSS dashboard mock (product UI stays dark for contrast) */
.mock-dash {
  position: relative;
  background: var(--navy);
  border: 1px solid #0F1E33;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 400px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(7, 17, 31, 0.55);
}
.md-sidebar { background: #0A1524; border-right: 1px solid rgba(255, 255, 255, 0.07); padding: 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 1rem; }
.md-logo { width: 26px; height: 26px; background: var(--blue); border-radius: 2px; margin-bottom: 0.6rem; }
.md-nav { height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); opacity: 0.8; }
.md-nav--on { background: var(--blue); opacity: 1; }
.md-main { padding: 1.3rem; display: flex; flex-direction: column; gap: 1.1rem; }
.md-top { display: flex; justify-content: space-between; align-items: center; }
.md-title { width: 110px; height: 12px; background: rgba(255, 255, 255, 0.75); border-radius: 2px; }
.md-chip { width: 74px; height: 20px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; }
.md-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.md-kpi { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; padding: 0.8rem; background: #0A1524; }
.md-kpi-label { display: block; width: 70%; height: 7px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; margin-bottom: 0.6rem; }
.md-kpi-val { display: block; width: 52%; height: 11px; background: var(--blue-2); border-radius: 2px; opacity: 0.9; }
.md-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.9rem; flex: 1; }
.md-chart { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; background: #0A1524; padding: 1rem; display: flex; align-items: flex-end; gap: 0.5rem; }
.md-bar { flex: 1; background: linear-gradient(180deg, var(--blue-2), var(--blue)); border-radius: 2px 2px 0 0; opacity: 0.85; }
.md-table { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; background: #0A1524; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.md-row { display: flex; justify-content: space-between; align-items: center; }
.md-row-label { width: 55%; height: 7px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; }
.md-row-val { width: 24%; height: 7px; background: var(--blue); opacity: 0.6; border-radius: 2px; }
.md-float {
  position: absolute;
  right: 1.2rem; bottom: 1.2rem;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 0.7);
}
.md-float-label { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.16em; opacity: 0.8; }
.md-float-val { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }

/* ---------- Selected work ---------- */
.work-list { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.project { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: end; }
.project--feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.project--mid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.project--mid .project-visual { order: 2; }
.project--row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.project--row .project-meta { grid-column: 1 / -1; }
.project-visual { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.project-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s var(--ease); }
.project:hover .project-visual img { transform: scale(1.03); }
.project-cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.8rem; }
.project-dot { margin: 0 0.5rem; color: var(--muted); }
.project-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.project-title a { transition: color 0.2s var(--ease); }
.project-title a:hover { color: var(--blue); }
.project-summary { color: var(--muted); font-size: 0.95rem; margin-top: 0.8rem; max-width: 52ch; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}
.project--row .project-title { font-size: 1.15rem; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.process-item { border-top: 1px solid var(--line); padding-top: 1.75rem; position: relative; }
.process-item::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
}
.process-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue); letter-spacing: 0.12em; }
.process-title { display: block; font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0.7rem 0 0.5rem; }
.process-desc { font-size: 0.9rem; color: var(--muted); max-width: 24ch; }

/* ---------- Engineering ---------- */
.eng-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.eng-copy .section-note { margin-top: 1.25rem; max-width: 44ch; }
.eng-stack { margin-top: 2rem; }
.eng-stack-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.eng-stack li { font-family: var(--font-mono); font-size: 0.88rem; color: var(--text); padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

.eng-principles { border-top: 1px solid var(--line); }
.eng-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.2s var(--ease);
}
.eng-item:hover { padding-left: 0.6rem; }
.eng-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue); }
.eng-name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.eng-name span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.2rem; }

.arch-diagram {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.arch-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; }
.arch-box {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
}
.arch-box--accent { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.arch-arrow { color: var(--blue); font-size: 0.85rem; }
.arch-caption { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 1rem; text-align: center; text-transform: uppercase; }

/* ---------- Proof / testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.testimonial { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.testimonial-quote { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.testimonial:not(.testimonial--lead) .testimonial-quote { font-size: 1rem; font-weight: 400; color: var(--text); }
.testimonial-attrib { margin-top: 1.2rem; }
.testimonial-name { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.testimonial-role { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- About teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-statement {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}
.about-statement em { font-style: normal; color: var(--blue); }
.about-teaser-copy p { color: var(--muted); margin-bottom: 1rem; font-size: 0.98rem; }
.about-teaser-copy .text-link { margin-top: 0.5rem; }

/* ---------- CTA (navy band) ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--navy);
  border: 1px solid #0F1E33;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--on-navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-navy-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta-copy, .cta-action { position: relative; }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.cta-text { color: var(--on-navy-muted); margin-top: 0.8rem; max-width: 46ch; }
.cta-action { flex: none; }
.cta-action .btn-primary:hover { background: var(--blue-2); }

/* ---------- Footer (navy) ---------- */
.site-footer {
  border-top: 1px solid var(--on-navy-line);
  background: var(--navy);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-tagline { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); margin: 1.1rem 0 0.9rem; }
.footer-about { color: var(--on-navy-muted); font-size: 0.9rem; max-width: 34ch; line-height: 1.7; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.social-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  border: 1px solid var(--on-navy-line);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: #fff; border-color: var(--blue-2); }
.footer-h {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-h--mt { margin-top: 1.8rem; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: var(--on-navy-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: var(--on-navy-muted); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--on-navy-line);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--on-navy-muted); }
.footer-bottom-note { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.68rem !important; }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: clamp(8.5rem, 13vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFCFE 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-grid-bg { opacity: 0.4; }
.page-hero-inner { position: relative; max-width: 900px; }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}
.page-hero-sub { margin-top: 1.3rem; color: var(--muted); font-size: 1.03rem; max-width: 60ch; }
.crumb {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.crumb a { color: var(--blue); }
.crumb a:hover { color: var(--mid); }
.crumb .sep { color: #C7D2E2; }

/* ---------- Detail / prose ---------- */
.detail-body { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.prose { max-width: 76ch; }
.prose p { color: var(--text); margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.prose h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
}
.prose ul { margin: 0 0 1.25rem; }
.prose ul li { position: relative; padding-left: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 6px; height: 6px;
  background: var(--blue-2);
  border-radius: 1px;
}

.detail-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.detail-label::before { content: ""; width: 22px; height: 2px; background: var(--blue); }
.detail-body-text { max-width: 68ch; }
.detail-body-text p { color: var(--text); margin-bottom: 1.15rem; line-height: 1.8; }
.detail-body-text ul li { position: relative; padding-left: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.detail-body-text ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--blue-2); border-radius: 1px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-item:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--blue); letter-spacing: 0.12em; }
.feature-title { display: block; font-weight: 600; font-size: 1.08rem; color: var(--ink); margin: 0.5rem 0 0.4rem; }
.feature-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

.steps { counter-reset: step; }
.steps > p {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.8;
}
.steps > p::before {
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  background: #fff;
}
.gallery { display: grid; gap: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--line); border-radius: 4px; width: 100%; background: #fff; }
.gallery figcaption { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }

/* product hero meta */
.product-hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.product-hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
}

/* ---------- Blog ---------- */
.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.blog-feature-visual { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.blog-feature-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-feature:hover .blog-feature-visual img { transform: scale(1.02); }
.article-cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem; display: flex; gap: 0.75rem; align-items: center; }
.article-cat .date { color: var(--muted); }
.article-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.article-title a { transition: color 0.2s var(--ease); }
.article-title a:hover { color: var(--blue); }
.article-excerpt { color: var(--muted); margin-top: 0.9rem; font-size: 0.97rem; max-width: 52ch; }
.article-read { margin-top: 1.2rem; }

.article-list { border-top: 1px solid var(--line); }
.article-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.article-row:hover { background: var(--blue-soft); padding-left: 1.2rem; }
.article-row-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.article-row-main .article-cat { margin-bottom: 0.4rem; }
.article-row-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.article-row-title a:hover { color: var(--blue); }
.article-row-excerpt { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; max-width: 70ch; }
.article-row-arrow { font-size: 1.2rem; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.article-row:hover .article-row-arrow { transform: translateX(4px); color: var(--blue); }

/* article detail */
.article-hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.article-cover { margin-top: clamp(2rem, 4vw, 3rem); }
.article-cover img { width: 100%; border: 1px solid var(--line); border-radius: 4px; max-height: 520px; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info p { color: var(--text); margin-bottom: 1rem; max-width: 44ch; }
.contact-rows { border-top: 1px solid var(--line); margin-top: 2rem; }
.contact-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.contact-row dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.contact-row dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; word-break: break-word; }
.contact-row dd a:hover { color: var(--blue); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 60px -40px rgba(7, 17, 31, 0.25);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field-label .req { color: var(--blue); }
.input, .select, .textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.form-actions { margin-top: 1.5rem; }
.form-success {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--blue-soft);
  color: var(--ink);
  padding: 1.1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.form-error {
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.06);
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.field-error { color: #DC2626; font-size: 0.78rem; }

/* ---------- 404 ---------- */
.error-page { padding: clamp(10rem, 18vw, 14rem) 0; text-align: left; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 10vw, 7rem); font-weight: 500; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
.error-page h1 { color: var(--ink); font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 1rem 0 0.6rem; font-weight: 600; }
.error-page p { color: var(--muted); max-width: 44ch; }

/* ---------- Reveal on scroll (subtle) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--on-navy-line);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.25rem;
  }
  .site-nav.is-open .nav-link { padding: 0.8rem 0; font-size: 1.02rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hv-stage { margin: 0 auto; max-width: 520px; }
  .intro-grid, .solutions-grid, .eng-layout, .contact-layout { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial:first-child { grid-column: 1 / -1; }
  .product-showcase, .product-showcase--compact { grid-template-columns: 1fr; }
  .product-visual { order: -1; }
  .project--feature, .project--mid { grid-template-columns: 1fr; }
  .project--mid .project-visual { order: 0; }
  .project--row { grid-template-columns: 1fr 1fr; }
  .blog-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .service-preview { display: none; }
}

@media (max-width: 640px) {
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-head--split .section-note { text-align: left; }
  .what-item { grid-template-columns: 2.75rem 1fr; }
  .service-row { grid-template-columns: 2.75rem minmax(0, 1fr) 2rem; padding: 1.35rem 0.5rem; }
  .service-row:hover { padding-left: 0.9rem; }
  .sol-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-top: 1px solid var(--line); }
  .project--row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial:first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .article-row-arrow { display: none; }
  .step { grid-template-columns: 2.5rem 1fr; }
  .eng-item { grid-template-columns: 2.25rem 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

/* industry filter chips (light context) */
.filter-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.6rem; }
.filter-link {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-link:hover { color: var(--blue); border-color: var(--blue); }
.filter-link.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
