/* ============================================================
   TEQNIQLE — Enterprise Infrastructure & AI Networking
   Design System v1
   ============================================================ */

/* ------------------------------------------------------------
   THEME TOKENS
   Primary theme = LIGHT / FRESH (enterprise-friendly, Apple/Dell/
   Microsoft/Google lineage). Dark theme is an opt-in toggle,
   applied via [data-theme="dark"] on <html>.
   ------------------------------------------------------------ */
:root {
  /* Surfaces — clean, airy, near-white */
  --bg:        #ffffff;
  --bg-1:      #f6f8fb;
  --bg-2:      #eef2f8;
  --surface:   #ffffff;
  --surface-2: #f4f7fc;
  --line:      #e3e8f0;
  --line-2:    #ccd5e2;

  /* Text — deep slate, high readability */
  --text:      #0f1729;
  --text-dim:  #46546b;
  --text-mute: #6b7689;

  /* Accent — professional enterprise blue */
  --accent:     #0b63e5;
  --accent-2:   #0a52c2;
  --accent-dim: #6f93c9;
  --on-accent:  #ffffff;          /* text that sits on the accent */
  --glow:       rgba(11,99,229,.12);

  /* Secondary accent — AI violet (darkened for light-bg contrast) */
  --ai:        #6a4bdc;
  --ai-glow:   rgba(106,75,220,.12);

  /* Illustration surfaces (SVG node fills) — flip with theme */
  --svg-fill:   #f4f7fc;
  --svg-fill-2: #eef2f8;
  --svg-stroke: #ccd5e2;
  --svg-label:  #46546b;
  --svg-text:   #0f1729;

  /* Engineered grid backdrop opacity (subtle on light) */
  --grid-opacity: .55;

  --ok:        #16a34a;
  --warn:      #d97706;
  --bad:       #dc2626;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

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

/* ---------- DARK THEME (opt-in toggle) ---------- */
[data-theme="dark"] {
  --bg:        #06080d;
  --bg-1:      #0a0e16;
  --bg-2:      #0f1420;
  --surface:   #121826;
  --surface-2: #161d2e;
  --line:      #1f2738;
  --line-2:    #2a3346;

  --text:      #e8edf6;
  --text-dim:  #9aa6bd;
  --text-mute: #6b7689;

  --accent:     #2fe6e6;
  --accent-2:   #18b8d8;
  --accent-dim: #0e7f93;
  --on-accent:  #04121a;
  --glow:       rgba(47,230,230,.14);

  --ai:        #8a7dff;
  --ai-glow:   rgba(138,125,255,.14);

  --svg-fill:   #0e1622;
  --svg-fill-2: #0b121c;
  --svg-stroke: #1d3550;
  --svg-label:  #6d7a8c;
  --svg-text:   #cfe0f2;

  --grid-opacity: .25;

  --ok:        #34d399;
  --warn:      #fbbf24;
  --bad:       #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

/* subtle engineered grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: var(--grid-opacity);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.ai { color: var(--ai); }
.eyebrow.ai::before { background: var(--ai); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-dim); max-width: 60ch; }
.muted { color: var(--text-mute); }
.accent-text { color: var(--accent); }
.ai-text { color: var(--ai); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg, rgba(255,255,255,.78));
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .site-header { --header-bg: rgba(6,8,13,.72); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 120px; width: auto; display: block; object-fit: contain; margin: -28px -6px; }
.brand-logo--footer { height: 132px; margin: -34px -8px; }
@media (max-width: 640px) {
  .brand-logo { height: 96px; margin: -22px -12px; }
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-dim); font-size: .92rem; font-weight: 500;
  transition: color .18s; position: relative; padding: 6px 0;
}
.nav-links a:hover { color: var(--text); }
/* Active page — clear, enterprise-clean indicator */
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 1.5rem; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--bg-1); border: 1px solid var(--line-2); color: var(--text-dim);
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-ico { grid-area: 1 / 1; transition: opacity .2s, transform .3s; }
/* light theme: show moon (click → go dark); hide sun */
.theme-ico--sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-ico--moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-ico--sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-ico--moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 0 0 1px var(--glow), 0 8px 30px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin: 16px 0 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::after {
  content: ""; position: absolute; top: -10%; right: -5%; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--ai-glow), transparent 65%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; top: 10%; left: -10%; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero h1 { margin: 22px 0 24px; max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* dual badge for 50/50 positioning */
.dual-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-dim);
}
.tag.cyan { border-color: rgba(47,230,230,.4); color: var(--accent); }
.tag.violet { border-color: rgba(138,125,255,.4); color: var(--ai); }

/* ---------- Stat / proof strip ---------- */
.proof {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), transparent);
}
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.proof-cell { background: var(--bg); padding: 32px 24px; text-align: center; }
.proof-cell .num { font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  background: linear-gradient(135deg, var(--accent), var(--ai)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-cell .lbl { font-size: .82rem; color: var(--text-mute); margin-top: 8px; font-family: var(--mono); letter-spacing: .02em; line-height: 1.4; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .95rem; }
.card.ai-card { border-color: var(--ai-glow); }
.card.ai-card:hover { border-color: var(--ai); }
.card.ai-card .icon { border-color: var(--ai); color: var(--ai); }
.card.cy-card .icon { border-color: var(--accent); color: var(--accent); }

/* feature split blocks (AI vs Enterprise) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.split > div { padding: clamp(30px, 5vw, 54px); }
.split .pane-ai { background: linear-gradient(180deg, var(--ai-glow), transparent); border-right: 1px solid var(--line); }
.split .pane-ent { background: linear-gradient(180deg, var(--glow), transparent); }
.split h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 14px 0 14px; }
.split ul { list-style: none; margin-top: 22px; }
.split li { padding: 9px 0; padding-left: 26px; position: relative; color: var(--text-dim); border-bottom: 1px solid var(--line); font-size: .95rem; }
.split li:last-child { border-bottom: 0; }
.split li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.split .pane-ai li::before { color: var(--ai); }

/* ---------- Vendor logo strip ---------- */
.vendors { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.vendor {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .05em;
  color: var(--text-dim); padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg-1); transition: all .2s;
}
.vendor:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 18px 0 20px; }

/* ---------- Case / work ---------- */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.case:hover { border-color: var(--line-2); }
.case .sector { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case h3 { margin: 12px 0 14px; }
.case .outcome { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.case .outcome .o-num { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.case .outcome .o-lbl { font-size: .8rem; color: var(--text-mute); }

/* ---------- Steps (approach) ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 22px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { counter-increment: step; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--accent); min-width: 44px; }
.step .n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Assessment tool ---------- */
.tool-shell { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tool-head { padding: 24px 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(138,125,255,.07), transparent); display: flex; align-items: center; gap: 14px; }
.tool-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 12px var(--ai); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.tool-head h3 { font-size: 1.1rem; }
.tool-body { padding: 30px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .82rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.field select, .field input {
  width: 100%; padding: 13px 15px; background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: .95rem; transition: border-color .2s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--ai); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-1);
  color: var(--text-dim); font-size: .88rem; cursor: pointer; transition: all .18s; user-select: none;
}
.chip:hover { border-color: var(--ai); color: var(--text); }
.chip.active { background: var(--ai-glow); border-color: var(--ai); color: var(--ai); font-weight: 600; }
.tool-result {
  margin-top: 6px; padding: 26px 30px; border-top: 1px solid var(--line);
  background: var(--bg-1); display: none;
}
.tool-result.show { display: block; }
.tool-result .score-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 14px 0 24px; }
.tool-result .score-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ai), var(--accent)); width: 0; transition: width 1s ease; }
.dim-scores { margin: 4px 0 22px; display: grid; gap: 9px; }
.dim-row { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: 12px; }
.dim-name { font-size: .82rem; color: var(--text-dim); font-family: var(--mono); letter-spacing: .02em; }
.dim-bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dim-fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width .8s ease; }
.dim-fill.good { background: linear-gradient(90deg, var(--ai), var(--accent)); }
.dim-fill.mid  { background: var(--warn); }
.dim-fill.bad  { background: var(--bad); }
.dim-val { font-size: .82rem; font-family: var(--mono); color: var(--text); text-align: right; }
@media (max-width: 560px) { .dim-row { grid-template-columns: 110px 1fr 28px; } .dim-name { font-size: .72rem; } }
.tool-result .assessment-text { white-space: pre-wrap; color: var(--text-dim); font-size: .96rem; line-height: 1.7; }
.tool-result .assessment-text strong { color: var(--text); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--ai); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-note { font-size: .8rem; color: var(--text-mute); margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, var(--glow), transparent 50%), radial-gradient(circle at 70% 80%, var(--ai-glow), transparent 50%); pointer-events: none; }
.cta-band h2 { margin-bottom: 16px; position: relative; }
.cta-band .lead { margin: 0 auto 30px; position: relative; }
.phone-link { font-family: var(--mono); font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.phone-link:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); margin-top: 40px; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-dim); font-size: .92rem; padding: 5px 0; transition: color .18s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-mute); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .pane-ai { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================================
   Visual System v2 — depth, motion, illustrations
   ============================================================ */

/* Hero with split art + ambient glow */
.hero-services { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.fabric-svg { width: 100%; max-width: 540px; height: auto; filter: drop-shadow(0 18px 50px rgba(15,23,41,.12)); }
[data-theme="dark"] .fabric-svg { filter: drop-shadow(0 18px 50px rgba(0,0,0,.5)); }
.stack-svg { width: 100%; max-width: 360px; height: auto; }

/* SVG theming via CSS classes (var() in fill/stroke ATTRIBUTES isn't safe in
   Safari — drive it through CSS properties instead, which is fully supported). */
.svg-node        { fill: var(--svg-fill); }
.svg-node-2      { fill: var(--svg-fill-2); stroke: var(--svg-stroke); }
.svg-accent-fill { fill: var(--accent); }
.svg-ai-fill     { fill: var(--ai); }
.svg-accent-stroke { stroke: var(--accent); }
.svg-label       { fill: var(--svg-label); }
.svg-text        { fill: var(--svg-text); }
.g-accent        { stop-color: var(--accent); }
.g-ai            { stop-color: var(--ai); }
.svg-ok          { fill: var(--ok); }
.svg-bad         { fill: var(--bad); }

/* New illustrations sizing */
.ring-svg, .conv-svg { width: 100%; max-width: 360px; height: auto; }

/* Zero-trust rotating scan sweep */
.scan-sweep { animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* UCaaS hub ping (expanding ring) */
.hub-ping { animation: hubping 2.8s ease-out infinite; }
@keyframes hubping {
  0%   { opacity: .45; transform: scale(.7); }
  70%  { opacity: 0;   transform: scale(1.25); }
  100% { opacity: 0;   transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-sweep, .hub-ping, .conv-packet { animation: none; }
  .conv-packet { display: none; }
}

/* animated traffic pulse on fabric links */
.pulse { stroke-dasharray: 14 220; animation: flow 2.6s linear infinite; }
.pulse.p2 { animation-delay: .8s; }
.pulse.p3 { animation-delay: 1.5s; }
@keyframes flow { from { stroke-dashoffset: 234; } to { stroke-dashoffset: 0; } }

/* downward data-flow on the StackDiagram spine */
.flow-down { stroke-dasharray: 20 250; animation: flowdown 3s linear infinite; }
@keyframes flowdown { from { stroke-dashoffset: 270; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) { .pulse, .flow-down { animation: none; } }

/* Diagonal divider between sections */
.divider-diag {
  height: 80px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, transparent, var(--bg-1));
}
.divider-diag::before {
  content: ''; position: absolute; left: -5%; right: -5%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .35; transform: rotate(-1.2deg);
}

.section-tight { padding-top: 36px; }

/* Capability cards — richer than a flat list */
.cap-grid { gap: 22px; }
.cap-card {
  position: relative; display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.cap-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .22s;
}
.cap-card.ai-card::after { background: linear-gradient(90deg, var(--ai), transparent); }
.cap-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.cap-card:hover::after { opacity: 1; }
.cap-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cap-card .icon {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--accent); font-size: 1.1rem;
}
.cap-card .icon-ai { color: var(--ai); }
.cap-card h3 { font-size: 1.06rem; line-height: 1.25; }
.cap-tag { color: var(--text-dim); font-size: .92rem; margin: 2px 0 14px; }
.cap-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.cap-list li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: .9rem; line-height: 1.45; }
.cap-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-2); font-size: .8rem; top: 1px; }
.cap-card.ai-card .cap-list li::before { color: var(--ai); }

/* Process flow band */
.process-band { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: f; }
.flow-step {
  position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); transition: transform .2s, border-color .2s;
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.flow-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--accent-2); font-size: 1.1rem; z-index: 2;
}
.flow-n { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.flow-step h4 { margin: 8px 0 6px; font-size: 1.05rem; }
.flow-step p { color: var(--text-dim); font-size: .9rem; }

/* Approach — expanded phase list with deliverables */
.phase-list { display: grid; gap: 18px; }
.phase {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; transition: border-color .22s, transform .22s, box-shadow .22s;
}
.phase:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 16px 40px var(--glow); }
.phase-num { display: flex; align-items: flex-start; }
.phase-num span {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--ai));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phase-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.phase-tag { font-size: 1rem; font-weight: 600; }
.phase-deliverables {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2);
}
.phase-deliverables-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-mute); display: block; margin-bottom: 10px;
}
.phase-deliverables ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.phase-deliverables li {
  position: relative; padding: 7px 14px 7px 30px; font-size: .86rem; color: var(--text-dim);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px;
}
.phase-deliverables li::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: .8rem; font-weight: 700;
}
@media (max-width: 680px) {
  .phase { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .phase-deliverables li { width: 100%; }
}

/* Concept band — three distinct illustrations (Capabilities) */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.concept-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.concept-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 44px var(--glow); }
.concept-art {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-bottom: 1px solid var(--line); padding: 22px 18px; display: grid; place-items: center;
}
.concept-art svg { max-width: 100%; }
.concept-card figcaption { padding: 20px 22px 24px; }
.concept-card figcaption h4 { font-size: 1.05rem; margin-bottom: 8px; }
.concept-card figcaption p { color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) { .concept-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Work case — text + optional art side by side */
.case { padding: 30px; }
.case-art { display: flex; align-items: center; justify-content: center; padding-top: 18px; }
@media (min-width: 901px) {
  .case:has(.case-art) { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: center; }
}

/* Timeline (About) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--accent-dim), var(--ai)); opacity: .5; }
.tl-item { position: relative; padding-top: 26px; }
.tl-dot { position: absolute; top: 1px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.tl-year { font-family: var(--mono); font-size: .9rem; }
.tl-item h4 { margin: 4px 0 6px; font-size: 1.02rem; }
.tl-item p { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }

/* Quote band (About) */
.quote-band { position: relative; padding: 36px 40px 36px 70px; border-left: 3px solid var(--accent); background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); border-radius: var(--radius); }
.quote-band p { font-size: 1.18rem; line-height: 1.6; color: var(--text); max-width: 70ch; }
.quote-mark { position: absolute; left: 24px; top: 12px; font-size: 4rem; line-height: 1; color: var(--accent); opacity: .35; font-family: Georgia, serif; }

/* OEM tags (PartnerBand) */
.oem-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oem-tag { font-family: var(--mono); font-size: .76rem; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-dim); background: var(--bg-1); }

/* Responsive for new bits */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .timeline::before { display: none; }
}
@media (max-width: 680px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none !important; }
  .timeline { grid-template-columns: 1fr; }
  .quote-band { padding: 28px 24px 28px 50px; }
}
