/* =========================================================
   RiseHill Data Analysis — site styles
   ========================================================= */
:root {
  --bg: #06100c;
  --bg-2: #0a1712;
  --surface: #0f1f19;
  --surface-2: #132821;
  --line: rgba(220, 255, 235, 0.09);
  --line-2: rgba(220, 255, 235, 0.16);
  --text: #eaf4ee;
  --muted: #9bb1a6;
  --dim: #6f857a;
  --brand: #12a058;
  --brand-2: #37d68a;
  --brand-3: #0b6b3b;
  --mint: #b8f5d2;
  --cyan: #46d3d8;
  --amber: #f5b84a;
  --rose: #f2756a;
  --paper: #f4f8f5;
  --paper-2: #e8f0eb;
  --ink: #0b1a14;
  --ink-muted: #4b5f55;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --max: 1200px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand-2); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad {
  background: linear-gradient(100deg, var(--brand-2) 0%, var(--mint) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #03140b;
  box-shadow: 0 10px 30px -10px rgba(55, 214, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(55, 214, 138, 0.75); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--brand-2); background: rgba(55, 214, 138, 0.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }

/* ---------- Eyebrow / pills ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.95em 0.42em 0.5em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.pill .dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(55, 214, 138, 0.15);
  color: var(--brand-2);
}
.pill .dot svg { width: 13px; height: 13px; }
.pill strong { color: var(--text); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 16, 12, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 0.5em 0.95em;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 0.7em 1.2em; font-size: 0.88rem; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(18, 160, 88, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, rgba(70, 211, 216, 0.12), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-meta div { min-width: 110px; }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hero-meta span { font-size: 0.85rem; color: var(--dim); }

/* ---------- Dashboard mockup ---------- */
.mock {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 40, 33, 0.92), rgba(10, 23, 18, 0.95));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(55, 214, 138, 0.05), 0 0 120px -40px rgba(55, 214, 138, 0.45);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.mock:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem; color: var(--dim);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3b34; }
.mock-bar i:nth-child(1) { background: #f2756a; }
.mock-bar i:nth-child(2) { background: #f5b84a; }
.mock-bar i:nth-child(3) { background: #37d68a; }
.mock-bar .url { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mock-side span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.mock-side span.on { background: rgba(55, 214, 138, 0.22); box-shadow: inset 0 0 0 1px rgba(55,214,138,0.5); }
.mock-main { padding: 16px; display: grid; gap: 12px; }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.kpi small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.62rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 0.68rem; color: var(--brand-2); margin-left: 4px; }
.kpi em.down { color: var(--rose); }
.mock-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.panel {
  border-radius: 12px; padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.panel-h { margin: 0 0 8px; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.panel-h span { color: var(--brand-2); text-transform: none; letter-spacing: 0; }
.chart-line path.area { fill: url(#gArea); }
.chart-line path.line { fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s 0.4s var(--ease) forwards; }
.chart-line path.line2 { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.7; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.risk { display: grid; gap: 8px; }
.risk-item { font-size: 0.7rem; color: var(--muted); }
.risk-item .bar { height: 7px; border-radius: 9px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 4px; }
.risk-item .bar i { display: block; height: 100%; border-radius: 9px; width: 0; transition: width 1.6s var(--ease); }
.risk-item .bar i.hi { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.risk-item .bar i.md { background: linear-gradient(90deg, var(--brand-2), var(--amber)); }
.risk-item .bar i.lo { background: var(--brand-2); }
.reco {
  display: flex; align-items: center; gap: 12px;
  border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(100deg, rgba(55,214,138,0.16), rgba(70,211,216,0.08));
  border: 1px solid rgba(55,214,138,0.35);
  font-size: 0.78rem;
}
.reco .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-2); color: var(--ink); }
.reco .ic svg { width: 16px; height: 16px; }
.reco b { color: var(--text); }
.reco span { color: var(--muted); }
.reco .rm { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--brand-2); white-space: nowrap; font-size: 0.95rem; }

.float-card {
  position: absolute;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 23, 18, 0.9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  display: flex; gap: 10px; align-items: center;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.float-card span { color: var(--dim); }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(55,214,138,0.15); color: var(--brand-2); }
.float-card .ic svg { width: 18px; height: 18px; }
.float-a { left: -34px; bottom: -26px; }
.float-b { right: -22px; top: -30px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-visual { position: relative; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); white-space: nowrap;
}
.marquee span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-2); transform: rotate(45deg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.light { background: var(--paper); color: var(--ink); }
.light .section-head p, .light p.muted { color: var(--ink-muted); }
.light .eyebrow { color: var(--brand); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(55, 214, 138, 0.12), transparent 40%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(55, 214, 138, 0.35); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(55, 214, 138, 0.1);
  border: 1px solid rgba(55, 214, 138, 0.25);
  color: var(--brand-2);
  margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.card li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--brand-2); }

.light .card { background: #fff; border-color: #dbe6df; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.light .card p, .light .card li { color: var(--ink-muted); }
.light .card .icon { background: #e4f5eb; border-color: #c4e9d3; color: var(--brand); }
.light .card:hover { border-color: #8fd6ad; box-shadow: 0 24px 50px -30px rgba(11, 107, 59, 0.35); }
.light .card li::before { background: var(--brand); }

/* ---------- DMIS spotlight ---------- */
.spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(18,160,88,0.35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(70,211,216,0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(55,214,138,0.15);
  color: var(--brand-2);
  margin-bottom: 18px;
}
.spotlight p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--brand-2); margin-top: 2px; }
.light .checks li svg { color: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  padding: 24px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text);
}
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Grant banner ---------- */
.grant {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #0f3b27 0%, #0b6b3b 50%, #12a058 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.grant::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 40px rgba(255,255,255,0.04), 0 0 0 80px rgba(255,255,255,0.03);
}
.grant .seal {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
}
.grant .seal svg { width: 46px; height: 46px; }
.grant h2, .grant h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 8px; }
.grant p { margin: 0; color: rgba(255,255,255,0.82); }
.grant .badge {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
}

/* ---------- Aviura collaboration ---------- */
.collab { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collab-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed #b9d8c6;
  animation: spin 60s linear infinite;
}
.orbit.o2 { inset: 14%; border-style: solid; border-color: #d3e7db; animation-duration: 40s; animation-direction: reverse; }
.orbit.o3 { inset: 30%; border-color: #c4e9d3; background: radial-gradient(circle, #ffffff 0%, #eef7f1 100%); border-style: solid; box-shadow: 0 30px 60px -30px rgba(11,107,59,0.35); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .bead {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); top: -7px; left: calc(50% - 7px);
  box-shadow: 0 0 0 6px rgba(18,160,88,0.15);
}
.orbit.o2 .bead { background: var(--cyan); top: auto; bottom: -7px; box-shadow: 0 0 0 6px rgba(70,211,216,0.18); }
.collab-core {
  position: absolute; inset: 30%;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display);
  color: var(--ink);
}
.collab-core b { display: block; font-size: 1.05rem; }
.collab-core small { display: block; font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.collab-core .x { font-size: 1.4rem; color: var(--brand); margin: 2px 0; }
.collab-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d3e7db;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 10px 30px -15px rgba(11,107,59,0.35);
  white-space: nowrap;
}
.collab-chip:nth-of-type(1) { top: 8%; left: 2%; }
.collab-chip:nth-of-type(2) { top: 18%; right: -2%; }
.collab-chip:nth-of-type(3) { bottom: 14%; left: -4%; }
.collab-chip:nth-of-type(4) { bottom: 4%; right: 6%; }
.light a.link { color: var(--brand); font-weight: 600; border-bottom: 1px solid currentColor; }
a.link { color: var(--brand-2); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Track record ---------- */
.record-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.record-top .stat { background: var(--surface); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  display: flex; flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.project:hover { border-color: rgba(55,214,138,0.35); transform: translateY(-3px); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip.green { background: rgba(55,214,138,0.12); color: var(--brand-2); border-color: rgba(55,214,138,0.3); }
.project h3 { font-size: 1.22rem; margin-bottom: 10px; }
.project p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.project .outcome {
  margin-top: auto;
  padding-top: 18px;
  display: flex; gap: 10px; align-items: center;
  font-size: 0.88rem; color: var(--text);
}
.project .outcome svg { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.project.featured { grid-column: span 2; background: linear-gradient(120deg, var(--surface-2), var(--surface)); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid #dbe6df; position: relative; }
.step::before {
  counter-increment: s;
  content: '0' counter(s);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #e4f5eb;
  margin-bottom: 18px;
}
.step h3 { color: var(--ink); }
.step p { color: var(--ink-muted); margin: 0; }

/* ---------- Video ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 140px -50px rgba(55,214,138,0.5);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-cover {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(6,16,12,0.15), rgba(6,16,12,0.65));
  transition: opacity 0.4s;
  border: 0; color: #fff; width: 100%;
}
.video-cover.hidden { opacity: 0; pointer-events: none; }
.play {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-2);
  color: var(--ink);
  box-shadow: 0 0 0 14px rgba(55,214,138,0.18), 0 0 0 28px rgba(55,214,138,0.08);
  transition: transform 0.3s var(--ease);
}
.video-cover:hover .play { transform: scale(1.07); }
.play svg { width: 34px; height: 34px; margin-left: 5px; }

/* ---------- Modules (DMIS page) ---------- */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.module:hover { border-color: rgba(55,214,138,0.35); background: var(--surface-2); }
.module .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(55,214,138,0.1); color: var(--brand-2); margin-bottom: 16px; }
.module .icon svg { width: 22px; height: 22px; }
.module h3 { font-size: 1.05rem; margin-bottom: 6px; }
.module p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Flow (data in → engines → decisions) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.flow-node {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbe6df;
}
.flow-node .k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.flow-node h3 { color: var(--ink); margin: 8px 0 10px; font-size: 1.3rem; }
.flow-node p { color: var(--ink-muted); font-size: 0.93rem; margin: 0; }
.flow-arrow { display: grid; place-items: center; color: var(--brand); }
.flow-arrow svg { width: 34px; height: 34px; }

/* Challenges table */
.challenges { display: grid; gap: 12px; }
.challenge {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.challenge .n { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--brand-2); }
.challenge h3 { font-size: 1.05rem; margin: 0 0 2px; }
.challenge small { color: var(--dim); font-size: 0.82rem; }
.challenge p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.challenge .proof { font-size: 0.85rem; color: var(--mint); padding: 10px 14px; border-radius: 12px; background: rgba(55,214,138,0.08); border: 1px solid rgba(55,214,138,0.2); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #dbe6df;
  display: flex; flex-direction: column;
}
.price.pop {
  background: linear-gradient(180deg, #0b2a1d, #06100c);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 40px 80px -40px rgba(11,107,59,0.6);
  transform: translateY(-12px);
}
.price .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.price.pop .label { color: var(--brand-2); }
.price .label em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--brand-2); color: var(--ink); }
.price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.price.pop .amount { color: #fff; }
.price .per { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 20px; }
.price.pop .per { color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 0.93rem; color: var(--ink-muted); }
.price.pop ul { color: var(--muted); }
.price li { display: flex; gap: 10px; }
.price li svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 3px; }
.price.pop li svg { color: var(--brand-2); }
.price .btn { margin-top: auto; justify-content: center; }

/* Tech */
.tech { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.tech-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tech-list div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 22px; background: var(--surface); font-size: 0.93rem; }
.tech-list b { font-family: var(--font-display); font-weight: 600; color: var(--brand-2); }
.tech-list span { color: var(--muted); }
.security { padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.security h3 { display: flex; align-items: center; gap: 10px; }
.security h3 svg { width: 24px; height: 24px; color: var(--brand-2); }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(55,214,138,0.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.cta h2 { max-width: 760px; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; }
.targets { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0 0 36px; }
.targets div { padding: 14px 22px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.targets b { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand-2); display: block; line-height: 1.1; }
.targets span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 32px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #e4f5eb; color: var(--brand); }
.info-row .icon svg { width: 22px; height: 22px; }
.info-row small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.info-row div { color: var(--ink); font-weight: 500; }
.map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #dbe6df;
  height: 240px;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.form {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #dbe6df;
  box-shadow: 0 40px 80px -50px rgba(11,107,59,0.4);
}
.form h3 { color: var(--ink); font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #d3e0d8;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(18,160,88,0.14);
}
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 1.2fr 1fr 1.4fr; gap: 40px; margin-bottom: 56px; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; }
.footer-h { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.footer-grid ul a { color: var(--muted); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 680px; }


/* ---------- Multi-page components ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand-2); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
.h3 { font-size: 1.25rem; }
.small { font-size: 0.85rem; }
.narrow { max-width: 860px; }
.footnote { color: var(--dim); font-size: 0.8rem; margin-top: 14px; }
.muted-d { color: var(--muted); }
.btn-outline { border-color: #b9d8c6; color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); background: #e4f5eb; }
.btn svg { flex: none; }

/* Dropdown navigation */
.nav-links > li { position: relative; }
.nav-links .caret { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-left: 2px; transition: transform 0.2s; }
.has-menu:hover .caret, .has-menu:focus-within .caret { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 280px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(10, 23, 18, 0.98);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.menu::before { content: ''; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: flex !important; gap: 12px; align-items: flex-start; padding: 10px 12px !important; border-radius: 12px !important; color: var(--text) !important; }
.menu a:hover { background: rgba(55, 214, 138, 0.08) !important; }
.menu a > svg { width: 20px; height: 20px; flex: none; color: var(--brand-2); margin-top: 2px; }
.menu b { display: block; font-weight: 600; font-size: 0.92rem; }
.menu small { display: block; color: var(--dim); font-size: 0.8rem; font-weight: 400; line-height: 1.4; }
.menu .menu-all { color: var(--brand-2) !important; font-weight: 600; font-size: 0.88rem; }
.menu-wide { display: grid; grid-template-columns: 220px 300px; gap: 10px; }
.menu-feature { padding: 18px; border-radius: 14px; background: radial-gradient(120% 120% at 100% 0%, rgba(18,160,88,0.35), transparent 60%), var(--surface); }
.menu-feature .tag { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--brand-2); }
.menu-feature p { font-size: 0.88rem; color: var(--muted); margin: 10px 0 14px; }
.menu-feature .link { font-size: 0.85rem; display: inline !important; padding: 0 !important; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: 0.84rem; color: var(--dim); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs [aria-current] { color: var(--text); }
.page-hero.compact { padding: 150px 0 60px; }
.page-hero h1 { max-width: 980px; }
.page-hero .hero-meta { margin-top: 40px; }

/* DMIS sub-navigation */
.subnav { position: sticky; top: 76px; z-index: 40; background: rgba(6, 16, 12, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; color: var(--muted); white-space: nowrap; font-weight: 500; }
.subnav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.subnav a.active { color: var(--ink); background: var(--brand-2); }
.subnav .subnav-ext { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--brand-2); }
.subnav .subnav-ext svg { width: 14px; height: 14px; }

/* Section heads */
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.section-head.split p { margin-bottom: 14px; }
.list-h { font-size: 1.4rem; margin: 56px 0 20px; color: var(--muted); }

/* Linked cards */
.card-link { display: flex; flex-direction: column; color: inherit; }
.card-link ul { margin-bottom: 18px; }
.card-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--brand-2); }
.card-more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card-link:hover .card-more svg { transform: translateX(4px); }
.light .card-more { color: var(--brand); }
.card p a, .step p a, .prose a { color: var(--brand-2); font-weight: 600; }
.light .card p a, .light .step p a, .light .prose a { color: var(--brand); }
a.grant { transition: transform 0.3s var(--ease); }
a.grant:hover { transform: translateY(-3px); }
a.pill:hover { border-color: var(--brand-2); }
.light-stats { margin: 40px 0 0; }
.light-stats .stat { background: #fff; border-color: #dbe6df; }
.light-stats .stat strong { color: var(--ink); }
.light-stats .stat span { color: var(--ink-muted); }
.stat-grid.one { grid-template-columns: 1fr; }
.reco-dark { margin-top: 28px; background: #0b2a1d; border-color: #12a058; color: #fff; padding: 20px 24px; font-size: 0.95rem; }
.footer-badge { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-2) !important; font-weight: 600; font-size: 0.85rem !important; }
.footer-badge svg { width: 18px; height: 18px; }
.site-footer address { font-style: normal; color: var(--muted); font-size: 0.92rem; }
.site-footer address a, .footer-bottom a { color: var(--brand-2); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #dbe6df; }
.role b { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 4px; }
.role span { font-size: 0.88rem; color: var(--ink-muted); }
.roles-dark { grid-template-columns: 1fr 1fr; }
.roles-dark .role { background: rgba(0,0,0,0.25); border-color: var(--line); }
.roles-dark .role b { color: var(--text); }
.roles-dark .role span { color: var(--muted); }

/* SIRI */
.siri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.siri-block { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #dbe6df; display: grid; gap: 10px; align-content: start; }
.siri-block h3 { color: var(--ink); margin-bottom: 4px; }
.siri-block span { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--paper); color: var(--ink-muted); font-size: 0.92rem; }
.siri-block span.on { background: #0b2a1d; color: #fff; }
.siri-block span svg { width: 16px; height: 16px; color: var(--brand-2); }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); color: var(--muted); font-weight: 600; background: var(--surface); }
.compare tbody th { color: var(--text); font-weight: 500; }
.compare td { color: var(--muted); }
.compare .hl { background: rgba(55,214,138,0.08); color: var(--mint); font-weight: 600; }
.compare thead .hl { color: var(--brand-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid #dbe6df; padding: 4px 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--brand); transition: transform 0.25s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--ink-muted); margin: 0 0 18px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.industry { display: flex; gap: 20px; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid #dbe6df; }
.industry.core { border-color: #8fd6ad; box-shadow: 0 24px 50px -34px rgba(11,107,59,0.45); }
.industry .icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #e4f5eb; color: var(--brand); }
.industry .icon svg { width: 26px; height: 26px; }
.industry h2 { color: var(--ink); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.industry p { color: var(--ink-muted); font-size: 0.95rem; }
.industry .chip.green { font-family: var(--font-body); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-muted); border: 1px solid #dbe6df; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-facts .stat { background: #fff; border-color: #dbe6df; }
.about-facts .stat strong { color: var(--ink); font-size: 1.8rem; }
.about-facts .stat span { color: var(--ink-muted); }

/* Insights */
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); margin-bottom: 14px; }
.light .article-meta { color: var(--ink-muted); }
.light .chip.green { background: #e4f5eb; color: var(--brand); border-color: #c4e9d3; }
.article-card h3 { font-size: 1.2rem; }
.feature-article {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 48px; border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #0f3b27 0%, #0b6b3b 60%, #12a058 100%); color: #fff;
  transition: transform 0.3s var(--ease);
}
.feature-article:hover { transform: translateY(-3px); }
.feature-article h2 { max-width: 720px; }
.feature-article p { color: rgba(255,255,255,0.85); max-width: 680px; }
.feature-article .card-more { color: #fff; }
.light .feature-article .chip.green { background: rgba(0,0,0,0.25); color: #fff; border-color: rgba(255,255,255,0.3); }
.light .feature-article .article-meta { color: rgba(255,255,255,0.8); }
.seal.big { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); }
.seal.big svg { width: 64px; height: 64px; }
.article-hero { padding-bottom: 60px; }
.article-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.prose { font-size: 1.08rem; line-height: 1.8; color: #24352d; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 0.6em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #dbe6df; }
.author-box b { display: block; color: var(--ink); }
.author-box span { font-size: 0.9rem; color: var(--ink-muted); }
.author-box a { color: var(--brand); font-weight: 600; }

/* Misc */
.video-caption { margin-top: 36px; }
.checks.two-col { grid-template-columns: 1fr 1fr; }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin: 12px 0 0; }
.form-note a { color: var(--brand); }
.contact-info address { font-style: normal; }
.price h2.label { font-family: var(--font-body); }
.float-card { z-index: 2; }

@media (max-width: 1080px) {
  .section-head.split, .about-grid, .feature-article { grid-template-columns: 1fr; gap: 20px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .siri, .industries { grid-template-columns: 1fr; }
  .feature-article .seal.big { display: none; }
}
@media (max-width: 880px) {
  .nav-links.open .menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; min-width: 0; display: block; }
  .nav-links.open .menu-feature { display: none; }
  .nav-links.open .menu small { display: none; }
  .nav-links.open .caret { display: none; }
  .nav-links.open { max-height: calc(100vh - 100px); overflow-y: auto; }
  .checks.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .roles, .roles-dark, .about-facts { grid-template-columns: 1fr; }
  .industry { flex-direction: column; padding: 24px; }
  .feature-article { padding: 30px 22px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line path.line { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .spotlight, .collab, .contact, .tech { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .mock { transform: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .record-top { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .challenge { grid-template-columns: 48px 1fr; }
  .challenge p, .challenge .proof { grid-column: 2; }
  .float-a { left: 10px; }
  .float-b { right: 10px; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 16px; right: 16px;
    padding: 12px; border-radius: 18px;
    background: rgba(10, 23, 18, 0.97);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 0.85em 1em; }
  .cards, .steps, .pricing, .projects { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .price.pop { transform: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .grant { grid-template-columns: 1fr; text-align: left; padding: 36px 28px; }
  .spotlight { padding: 36px 24px; }
  .cta { padding: 56px 24px; }
  .section { padding: 88px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .mock-row { grid-template-columns: repeat(2, 1fr); }
  .mock-split { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .float-card { display: none; }
  .modules, .record-top, .stat-grid { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-list div { grid-template-columns: 1fr; gap: 4px; }
  .nav-cta .btn-primary { display: none; }
  .collab-chip { font-size: 0.7rem; padding: 6px 10px; }
}

/* Wide DMIS menu anchors left so it never spills off-screen */
@media (min-width: 881px) {
  .menu-wide { left: -12px; transform: translate(0, 8px); }
  .has-menu:hover .menu-wide, .has-menu:focus-within .menu-wide { transform: translate(0, 0); }
}
@media (max-width: 880px) { .nav-links.open { background: #0a1712; } }

/* Quote & demo request pages */
.price .amount { font-size: 1.7rem; }
.steps-stack { grid-template-columns: 1fr; margin-top: 24px; }
.roles-4 { grid-template-columns: repeat(4, 1fr); }
.contact .faq { margin-top: 28px; }
@media (max-width: 1080px) { .roles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles-4 { grid-template-columns: 1fr; } }
