/* ===================================================================
   Incomati Warehousing & Distribution — "Engineered Motion"
   World-class static site. No framework, no build step for CSS.
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --red: #D92F2C;
  --red-dark: #B4231F;
  --red-tint-04: rgba(217,47,44,.04);
  --red-tint-08: rgba(217,47,44,.08);
  --red-tint-14: rgba(217,47,44,.14);

  --charcoal: #23232A;
  --charcoal-2: #2E2E36;
  --ink: #16161B;

  --grey-700: #52525B;
  --grey-500: #8A8A92;
  --grey-300: #C7C8CC;

  --surface: #F5F6F7;
  --surface-2: #ECEEF0;
  --surface-3: #E3E5E8;
  --white: #FFFFFF;
  --line: #E3E5E8;
  --line-strong: #D3D5D9;
  --success: #1E8A46;

  /* type */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.7rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.75rem, 1.9rem + 4vw, 4.25rem);
  --text-5xl: clamp(3.25rem, 2rem + 6vw, 6rem);

  /* space */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 80px; --space-10: 96px; --space-11: 128px; --space-12: 160px;

  --maxw: 1280px;
  --maxw-wide: 1440px;
  --maxw-text: 760px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 100px;

  --shadow: 0 10px 30px rgba(20,20,30,.08);
  --shadow-lg: 0 24px 64px rgba(20,20,30,.18);
  --shadow-red: 0 12px 32px rgba(217,47,44,.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); font-weight: 600; }
h1 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); font-weight: 500; }
.accent { color: var(--red); }
strong { font-weight: 600; color: var(--ink); }

.eyebrow, .section-eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em;
  font-size: var(--text-xs); font-weight: 500; color: var(--red);
}

/* mono chrome / section index */
.section-index {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey-500); display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--space-5);
}
.section-index::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.section-index .idx { color: var(--red); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: radial-gradient(130% 130% at 15% 0%, var(--charcoal-2), var(--charcoal)); color: #fff; }
.section-ink { background: var(--ink); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head .section-index { justify-content: center; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-sub { color: var(--grey-700); font-size: var(--text-lg); }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.grid-media-first .col-media { order: -1; }
.lead { font-size: var(--text-lg); color: var(--grey-700); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-base);
  padding: 15px 30px; border-radius: var(--radius-full); border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; opacity: .95; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand-logo { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; color: var(--charcoal); font-size: .98rem; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); border-radius: 2px;
}
.nav a.nav-cta {
  background: var(--charcoal); color: #fff; padding: 10px 22px; border-radius: var(--radius-full);
  transition: background .2s, transform .2s;
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--red); transform: translateY(-1px); color: #fff; }
.nav a.nav-cta.active { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--charcoal); transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Wing motif ---------- */
.wing-watermark {
  position: absolute; pointer-events: none; z-index: 0; opacity: .10;
  width: min(520px, 60vw); color: var(--red);
}
.wing-watermark svg { width: 100%; height: auto; }
.wing-bullet { color: var(--red); flex: none; width: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--charcoal); color: #fff; isolation: isolate;
  padding: clamp(96px, 14vw, 168px) 0 clamp(64px, 9vw, 112px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(.35) contrast(1.05) brightness(.82); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(16,16,21,.95) 0%, rgba(16,16,21,.82) 42%, rgba(16,16,21,.35) 100%),
    linear-gradient(0deg, rgba(16,16,21,.9) 0%, rgba(16,16,21,0) 46%);
}
.hero .wing-watermark { bottom: -8%; right: -4%; transform: rotate(14deg); opacity: .12; z-index: -1; }
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { color: #fff; margin: 22px 0; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 620px; margin-bottom: var(--space-7); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--space-9); }

/* compact hero for inner pages */
.hero-inner-page { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px); }
.hero-inner-page h1 { margin-bottom: 16px; }
.hero-inner-page .hero-lead { margin-bottom: 0; }

/* ---------- Stats / counters ---------- */
.stat-strip { display: flex; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--space-6); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,.6); margin-top: 8px; }
/* light-bg stat block */
.stats-light .stat-num { color: var(--ink); }
.stats-light .stat-label { color: var(--grey-500); }
.stats-light { border-top-color: var(--line); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-tint-08); color: var(--red); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--grey-700); font-size: .98rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 34px 32px; }
.feature-num { font-family: var(--font-mono); font-weight: 500; color: var(--red); font-size: var(--text-sm); letter-spacing: .06em; }
.feature h3 { margin: 12px 0 8px; font-weight: 600; }
.feature p { color: var(--grey-700); }

/* ---------- Ticks ---------- */
.ticks { display: grid; gap: 14px; margin-top: var(--space-5); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

/* ---------- Duotone / photos ---------- */
.col-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 12; background: var(--surface-2); }
.col-media img { width: 100%; height: 100%; object-fit: cover; }
.photo-duotone { position: relative; }
.photo-duotone img { filter: grayscale(1) contrast(1.1) brightness(.9); }
.photo-duotone::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(160deg, rgba(217,47,44,.5), rgba(35,35,42,.85));
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-500); white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.marquee-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split teaser (two ways) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: #fff;
  background: var(--charcoal); isolation: isolate;
}
.split-card .split-bg { position: absolute; inset: 0; z-index: -2; }
.split-card .split-bg img { width: 100%; height: 100%; object-fit: cover; }
.split-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16,16,21,.92) 12%, rgba(16,16,21,.35) 100%); }
.split-card .split-kicker { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 12px; }
.split-card h3 { color: #fff; font-size: var(--text-2xl); font-weight: 600; margin-bottom: 10px; }
.split-card p { color: rgba(255,255,255,.8); margin-bottom: 20px; }
.split-link { font-family: var(--font-head); font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.split-link svg { width: 18px; transition: transform .25s var(--ease); }
.split-card:hover .split-link svg { transform: translateX(5px); }

/* ---------- Vision / Mission / Edge ---------- */
.vme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.vme-item { border-top: 3px solid var(--red); padding-top: 22px; }
.vme-tag { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-sm); color: var(--red); margin-bottom: 14px; }
.vme-item p { color: rgba(255,255,255,.78); font-size: .98rem; }

/* ---------- Timeline ---------- */
.timeline-v { display: grid; grid-template-columns: 200px 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.timeline-rail { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 6px; }
.timeline-rail li { position: relative; padding: 10px 0 10px 26px; color: var(--grey-500); font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: .04em; transition: color .3s; }
.timeline-rail li::before { content: ""; position: absolute; left: 0; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: var(--grey-300); border: 2px solid var(--surface); transition: background .3s, transform .3s; }
.timeline-rail li.active { color: var(--ink); }
.timeline-rail li.active::before { background: var(--red); transform: scale(1.25); }
.story-blocks { display: grid; gap: 40px; }
.story-block h3 { font-size: var(--text-2xl); margin-bottom: 10px; }
.story-block p { color: var(--grey-700); font-size: var(--text-lg); }
.story-block .yr { font-family: var(--font-mono); color: var(--red); font-size: var(--text-sm); letter-spacing: .06em; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: clamp(40px,6vw,60px) auto 0; }
.timeline li { position: relative; padding-top: 22px; border-top: 3px solid var(--line); text-align: center; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
.tl-year { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.tl-text { display: block; color: var(--grey-700); font-size: .9rem; margin-top: 8px; }

/* ---------- Process flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow-step { text-align: center; position: relative; padding-top: 44px; }
.flow-step .flow-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--red); display: grid; place-items: center; color: var(--red); z-index: 2; }
.flow-step .flow-dot svg { width: 22px; height: 22px; }
.flow-line { position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); z-index: 0; }
.flow-line .flow-line-fill { height: 100%; width: 0; background: var(--red); transition: width 1.4s var(--ease); }
.flow.in .flow-line-fill { width: 100%; }
.flow-step h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: 6px; }
.flow-step p { font-size: var(--text-sm); color: var(--grey-700); }

/* ---------- Product cards (Technology) ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.product-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--red-tint-08); color: var(--red); display: grid; place-items: center; flex: none; }
.product-mark svg { width: 24px; height: 24px; }
.product h3 { font-size: var(--text-xl); font-weight: 600; }
.product-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; color: var(--grey-500); text-transform: uppercase; }
.product > p { color: var(--grey-700); margin: 14px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { font-size: var(--text-xs); font-family: var(--font-mono); letter-spacing: .02em; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--radius-full); color: var(--grey-700); }

/* featured product (QWRI spotlight) */
.product-feature { grid-column: 1 / -1; background: var(--ink); color: #fff; border: 0; }
.product-feature h3, .product-feature .product-top h3 { color: #fff; }
.product-feature > p { color: rgba(255,255,255,.75); }
.product-feature .product-mark { background: rgba(255,255,255,.08); color: var(--red); }
.product-feature .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

/* Sophia chat mock */
.chat-mock { background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.bubble.user { justify-self: end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: rgba(255,255,255,.08); color: rgba(255,255,255,.92); border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 4px; }

/* ---------- Architecture diagram ---------- */
.arch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; position: relative; max-width: 960px; margin: 0 auto; }
.arch-node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.section-dark .arch-node, .section-ink .arch-node { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.arch-node .arch-tier { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.arch-node h4 { font-size: var(--text-base); margin-bottom: 6px; }
.arch-node p { font-size: var(--text-sm); color: var(--grey-500); }
.section-dark .arch-node p { color: rgba(255,255,255,.6); }
.arch-flow { text-align: center; margin-top: 22px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--grey-500); letter-spacing: .06em; }

/* ---------- Module pills group ---------- */
.modgroups { display: grid; gap: 16px; }
.modgroup-label { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* ---------- Contact / branches ---------- */
.branches { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; border-left: 4px solid var(--red); }
.branch h3 { margin-bottom: 14px; font-weight: 600; }
.branch-addr { color: var(--grey-700); line-height: 1.7; margin-bottom: 18px; }
.branch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--grey-700); }
.branch-row svg { width: 18px; color: var(--red); flex: none; }
.branch-tel { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.branch-tel:hover { color: var(--red); }

/* contact method tiles */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.contact-method { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 5px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.contact-method:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cm-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--red-tint-08); color: var(--red); display: grid; place-items: center; margin-bottom: 12px; }
.cm-icon svg { width: 24px; height: 24px; }
.cm-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--grey-500); }
.cm-value { font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); color: var(--ink); }
.contact-method:hover .cm-value { color: var(--red); }
@media (max-width: 820px) { .contact-methods { grid-template-columns: 1fr; } }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-title { font-family: var(--font-head); font-weight: 600; font-size: var(--text-xl); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--charcoal); }
.opt { color: var(--grey-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; margin-top: 14px; min-height: 1.2em; }
.form-status.ok { color: var(--success); font-weight: 600; }
.form-status.err { color: var(--red-dark); font-weight: 600; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/6; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Blog listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--grey-500); margin-bottom: 12px; }
.post-card-meta span:first-child { color: var(--red); }
.post-card-title { font-size: var(--text-xl); font-weight: 600; margin-bottom: 10px; line-height: 1.2; color: var(--ink); }
.post-card-excerpt { color: var(--grey-700); font-size: var(--text-base); margin-bottom: 18px; flex: 1; }
.post-card-link { font-family: var(--font-head); font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-base); }
.post-card-link svg { width: 16px; transition: transform .25s var(--ease); }
.post-card:hover .post-card-link svg { transform: translateX(4px); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Article / prose ---------- */
.article-meta { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); display: flex; gap: 18px; margin-top: 14px; }
.prose { max-width: var(--maxw-text); margin: 0 auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--text-2xl); margin-top: 1.7em; }
.prose h3 { font-size: var(--text-xl); }
.prose p { color: var(--grey-700); font-size: var(--text-lg); line-height: 1.7; }
.prose p.lead { color: var(--ink); }
.prose ul { display: grid; gap: 11px; padding-left: 0; }
.prose ul li { display: flex; gap: 12px; color: var(--grey-700); font-size: var(--text-lg); line-height: 1.6; }
.prose ul li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 12px; flex: none; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-dark); }
.callout { background: var(--surface); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 22px 26px; }
.callout p { margin: 0; color: var(--ink); font-size: var(--text-base); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ctable { width: 100%; border-collapse: collapse; font-size: var(--text-base); min-width: 520px; }
.ctable th, .ctable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { font-family: var(--font-head); background: var(--surface); color: var(--ink); }
.ctable tbody td:first-child { font-weight: 600; color: var(--ink); }
.ctable tbody tr:last-child td { border-bottom: 0; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.related-card h3 { font-weight: 600; }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 44px 20px 0; position: relative; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 12px; height: 12px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--grey-700); padding: 0 44px 22px 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(120% 140% at 20% 0%, var(--charcoal-2), var(--charcoal)); color: #fff; text-align: center; padding: clamp(64px, 9vw, 104px) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band .wing-watermark { top: -20%; left: -6%; transform: rotate(-16deg); opacity: .1; z-index: -1; }
.cta-inner { max-width: 660px; margin: 0 auto; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; font-size: var(--text-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--grey-500); font-weight: 500; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .flow-line-fill { transition: none; width: 100%; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .col-media { order: -1; }
  .cards, .products { grid-template-columns: repeat(2, 1fr); }
  .vme { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .timeline-v { grid-template-columns: 1fr; }
  .timeline-rail { position: static; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-line { display: none; }
  .arch { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-140%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 15px 24px; }
  .nav a.active { border-left: 3px solid var(--red); }
  .nav a.active::after { display: none; }
  .nav a.nav-cta { margin: 8px 24px; text-align: center; }
  .nav-toggle { display: flex; }
  .cards, .products, .features, .timeline { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
