/* Chazlytics public site. Tokens first; dark mode redefines them. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --surface: #ffffff;
  --ink: #0f1f24;
  --ink-2: #334148;
  --muted: #5d6b72;
  --line: #e2e8e7;
  --teal: #0f766e;
  --teal-2: #0e7490;
  --teal-soft: #e6f4f1;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --red: #dc2626;
  --ok: #059669;
  --shadow: 0 1px 2px rgba(15, 31, 36, .05), 0 8px 24px rgba(15, 31, 36, .06);
  --shadow-lg: 0 2px 6px rgba(15, 31, 36, .06), 0 24px 48px rgba(15, 31, 36, .12);
  /* the hero and proof bands stay dark in both themes */
  --deep: #062a2b;
  --deep-2: #0b3b3c;
  --deep-ink: #eaf6f4;
  --deep-muted: #9fc3be;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1417;
    --bg-alt: #0f1b1f;
    --surface: #132327;
    --ink: #e8f0ef;
    --ink-2: #c3d0cf;
    --muted: #93a5a6;
    --line: #22363a;
    --teal: #2dd4bf;
    --teal-2: #38bdf8;
    --teal-soft: #123a38;
    --gold-soft: #3a2e10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .4);
    --deep: #051a1c;
    --deep-2: #082a2c;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1417; --bg-alt: #0f1b1f; --surface: #132327; --ink: #e8f0ef;
  --ink-2: #c3d0cf; --muted: #93a5a6; --line: #22363a; --teal: #2dd4bf;
  --teal-2: #38bdf8; --teal-soft: #123a38; --gold-soft: #3a2e10;
  --deep: #051a1c; --deep-2: #082a2c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--teal-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.accent { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 10px;
  padding: 13px 22px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(15, 118, 110, .35); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: #0b3b3c; }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(6, 42, 43, .72);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background .2s;
}
.site-header.scrolled { background: rgba(6, 42, 43, .94); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.wordmark svg { width: 32px; height: 32px; flex: none; }
.wordmark .accent { color: #5eead4; }
.nav { display: none; gap: 28px; }
.nav a { color: rgba(234, 246, 244, .8); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 10px 2px; }
.nav a:hover { color: #fff; }
@media (min-width: 920px) { .nav { display: flex; } }
.site-header .btn-primary { background: #14b8a6; box-shadow: none; }

section { padding: 88px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Hero */
.hero {
  position: relative; color: var(--deep-ink); overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(14, 116, 144, .25), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  margin-top: -68px; padding: 168px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero .eyebrow { color: #5eead4; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(90deg, #5eead4, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #cfe6e2; font-size: 1.22rem; max-width: 36em; }
.hero .sub { color: var(--deep-muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Reconciliation panel (illustrative UI) */
.recon {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .95rem;
}
.recon-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.recon-title { font-weight: 700; color: #fff; }
.recon-title small { display: block; font-weight: 500; color: var(--deep-muted); font-size: .8rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip-warn { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.chip-ok { background: rgba(16, 185, 129, .16); color: #34d399; }
.recon-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); margin-bottom: 8px;
}
.recon-row .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(94, 234, 212, .12); color: #5eead4; }
.recon-row .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recon-row b { display: block; color: #fff; font-weight: 600; font-size: .93rem; }
.recon-row span.v { color: var(--deep-muted); font-size: .85rem; }
.recon-row .status { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.recon-row .status svg { width: 14px; height: 14px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.status.ok { background: rgba(16, 185, 129, .18); } .status.ok svg { stroke: #34d399; }
.status.warn { background: rgba(245, 158, 11, .2); } .status.warn svg { stroke: #fbbf24; }
.recon-row.flag { background: rgba(245, 158, 11, .08); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .3); }
.recon-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .78rem; color: var(--deep-muted); }
.meter { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, #fbbf24); border-radius: 6px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .4s; }
.is-in .meter i { width: var(--w); }

/* Source strip under the hero */
.sources { background: var(--deep-2); color: var(--deep-muted); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.sources .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: center; font-size: .9rem; }
.sources .lbl { color: #5eead4; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.sources span.s { display: inline-flex; align-items: center; gap: 8px; color: #d6ebe7; font-weight: 500; }
.sources svg { width: 18px; height: 18px; fill: none; stroke: #5eead4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Problem */
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.leaks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.leaks li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.leaks .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: #b45309; }
.leaks .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaks .ico { color: #fbbf24; } }
.leaks-title { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 16px; }

/* How it works */
.how-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.diagram { width: 100%; height: auto; display: block; }
.diagram .node { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.diagram .label { fill: var(--ink); font: 700 17px "Inter", system-ui, sans-serif; }
.diagram .sublabel { fill: var(--muted); font: 500 13px "Inter", system-ui, sans-serif; }
.diagram .icon { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .link { stroke: var(--teal-2); stroke-width: 2.5; stroke-dasharray: 6 7; fill: none; animation: flow 1.6s linear infinite; }
.diagram .core { fill: var(--teal); }
.diagram .core-ring { fill: none; stroke: var(--teal); stroke-opacity: .25; stroke-width: 2; }
.diagram .core-ring.r2 { stroke-opacity: .12; }
.diagram .core-label { fill: #ffffff; font: 700 13px "Inter", system-ui, sans-serif; }
@keyframes flow { to { stroke-dashoffset: -26; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

.pullquote {
  margin: 64px 0 0; padding: 36px clamp(20px, 4vw, 48px); border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--deep) 0%, #0b4a4a 100%); color: #fff;
}
.pullquote::after { content: "\201C"; position: absolute; right: 24px; top: -30px; font-size: 180px; line-height: 1; color: rgba(94, 234, 212, .15); font-family: Georgia, serif; }
.pullquote p { margin: 0; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; position: relative; }
.pullquote p em { font-style: normal; color: #5eead4; }

/* Platform cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--teal-soft); color: var(--teal);
}
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.feature {
  background: linear-gradient(160deg, var(--teal) 0%, #0b5f63 100%); color: #fff; border-color: transparent;
}
.card.feature p { color: rgba(255, 255, 255, .85); }
.card.feature .ico { background: rgba(255, 255, 255, .16); color: #fff; }
.card.feature .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(251, 191, 36, .22); color: #fde68a; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.feature { background: linear-gradient(160deg, #0f766e 0%, #0b4a4a 100%); } }

/* Industries */
.industries { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .industries { grid-template-columns: repeat(4, 1fr); } }
.industry {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.industry:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow); }
.industry .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 14px; }
.industry .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.industry h3 { font-size: 1rem; margin-bottom: 6px; }
.industry p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.note {
  margin-top: 40px; padding: 24px 28px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--teal) 40%, var(--line));
  color: var(--ink-2); max-width: 880px;
}

/* Proof (dark band) */
.proof { background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--deep-ink); position: relative; overflow: hidden; }
.proof::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 100% 0%, rgba(45, 212, 191, .14), transparent 60%);
}
.proof .wrap { position: relative; }
.proof .eyebrow { color: #5eead4; }
.proof .lede { color: var(--deep-muted); }
.stats { display: grid; gap: 16px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .stats { grid-template-columns: repeat(6, 1fr); } .stat { grid-column: span 2; } .stat.wide { grid-column: span 3; } }
.stat {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 26px;
}
.stat .big { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; margin-bottom: 14px; }
.stat .big small { font-size: .45em; font-weight: 700; color: #5eead4; letter-spacing: 0; margin-left: 4px; }
.stat h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.stat p { color: var(--deep-muted); margin: 0; font-size: .93rem; }
.caveat {
  margin: 32px 0 0; padding: 20px 24px; border-radius: 14px; background: rgba(255, 255, 255, .04);
  border-left: 3px solid #fbbf24; color: #cfe6e2; max-width: 880px; font-size: .98rem;
}

/* Approach */
.principles { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 18px 40px; }
@media (min-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: var(--ink-2); }
.principles li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}
.principles strong { color: var(--ink); }
.trio { display: grid; gap: 18px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .98rem; }
.trio li { margin-bottom: 6px; }

/* About */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.about-grid h3 { margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.badge b { color: var(--teal); }
.fact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); align-self: start; }
.fact-box dl { margin: 0; }
.fact-box dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-top: 18px; }
.fact-box dt:first-child { margin-top: 0; }
.fact-box dd { margin: 4px 0 0; color: var(--ink-2); }
.quotes-head { margin-top: 72px; }
.quotes { display: grid; gap: 18px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.quotes blockquote { margin: 0 0 18px; }
.quotes blockquote p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.quotes blockquote::before { content: "\201C"; display: block; font: 700 48px/0.6 Georgia, serif; color: var(--teal); margin: 10px 0 8px; }
.quotes figcaption { font-size: .88rem; color: var(--muted); }
.quotes figcaption strong { display: block; color: var(--ink); }
.quotes-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.drone-band {
  margin-top: 48px; padding: 28px; border-radius: 18px; display: grid; gap: 16px; align-items: center;
  background: linear-gradient(120deg, var(--teal-soft), transparent); border: 1px solid var(--line);
}
@media (min-width: 800px) { .drone-band { grid-template-columns: 56px 1fr; } }
.drone-band .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--teal); color: #fff; display: grid; place-items: center; }
.drone-band .ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drone-band p { margin: 0 0 6px; }
.drone-band .small { font-size: .88rem; color: var(--muted); margin: 0; }

/* Contact */
.contact {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(251, 191, 36, .14), transparent 60%),
    linear-gradient(135deg, var(--teal) 0%, #0b4a4a 100%);
  color: #fff;
}
.contact-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255, 255, 255, .85); }
.contact-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 28px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-card .label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #99f6e4; }
.contact-card a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }

.site-footer { background: #041617; color: #8fb3ae; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer .tag { color: #fff; font-weight: 700; }
.site-footer a { color: #5eead4; }

/* Scroll reveal: content is visible by default; JS opts in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .diagram .link { animation: none; }
  .meter i { transition: none; }
  .card, .industry, .btn { transition: none; }
}

/* Mobile menu */
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.menu-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .l2 { opacity: 0; }
.menu-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  display: grid; gap: 4px; padding: 8px 16px 20px; background: rgba(6, 42, 43, .98);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  color: #eaf6f4; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-menu .btn { margin-top: 12px; }
.menu-open { background: rgba(6, 42, 43, .98); }
@media (min-width: 920px) { .menu-btn, .mobile-menu { display: none !important; } }
@media (max-width: 479px) { .header-cta { display: none; } }
/* keep in-page anchors clear of the sticky header */
section[id], .sources { scroll-margin-top: 72px; }

/* Phone refinements */
.witness-mobile { display: none; }
@media (max-width: 599px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 120px 0 64px; }
  .hero-grid { gap: 40px; }
  .recon { padding: 16px; }
  .recon-row { padding: 10px; gap: 10px; }
  .card, .stat, .quotes figure, .fact-box { padding: 20px; }
  .pullquote { margin-top: 40px; padding: 28px 22px; }
  .note { padding: 18px 20px; margin-top: 28px; }

  /* readable witness graphic instead of the scaled-down SVG */
  .diagram { display: none; }
  .witness-mobile { display: grid; gap: 12px; justify-items: center; }
  .w-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .w {
    display: grid; gap: 2px; text-align: center; padding: 12px 6px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); line-height: 1.3;
  }
  .w b { color: var(--ink); font-size: .9rem; }
  .w-arrow { width: 2px; height: 28px; background: repeating-linear-gradient(var(--teal-2) 0 5px, transparent 5px 10px); }
  .w-core {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
    background: var(--teal); color: #fff; font-weight: 700;
  }
  .w-core svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

  /* industries as compact rows */
  .industries { gap: 10px; }
  .industry { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .industry .ico { grid-row: span 2; margin: 0; }
  .industry h3 { margin: 0 0 2px; }
}
@media (max-width: 380px) {
  .w { font-size: .75rem; padding: 10px 4px; }
  .w b { font-size: .85rem; }
}
/* two-column range: let the odd last item span the row instead of leaving a gap */
@media (min-width: 680px) and (max-width: 1019px) {
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 1019px) {
  .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Operations map */
.opsmap-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(12px, 1.6vw, 20px); box-shadow: var(--shadow);
}
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chipbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font: 600 .88rem "Inter", system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background .15s;
}
.chipbtn[style]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chipbtn:hover { border-color: var(--teal); }
.chipbtn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opsmap { display: block; width: 100%; height: auto; }
.opsmap .om-frame { fill: color-mix(in srgb, var(--teal) 5%, transparent); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.opsmap .om-frame-label { fill: var(--muted); font: 700 12px "Inter", system-ui, sans-serif; letter-spacing: .14em; }
.opsmap .om-flows path { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; marker-end: url(#om-arrow); }
.opsmap .om-flows path.dash { stroke-dasharray: 7 7; }
.opsmap .om-note { fill: var(--muted); font: 500 13px "Inter", system-ui, sans-serif; }
.opsmap .om-data path { fill: none; stroke: var(--teal-2); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.opsmap .om-bus { fill: var(--teal); opacity: .9; }
.opsmap .om-bus-label { fill: var(--teal); font: 700 12px "Inter", system-ui, sans-serif; letter-spacing: .06em; }
.opsmap .om-hubline { stroke: var(--teal); stroke-width: 3; }
.opsmap .om-node rect:first-child { fill: var(--bg); stroke: color-mix(in srgb, var(--c) 45%, var(--line)); stroke-width: 1.5; }
.opsmap .om-node .bar { fill: var(--c); }
.opsmap .om-node .t { fill: var(--ink); font: 700 15px "Inter", system-ui, sans-serif; }
.opsmap .om-node .s { fill: var(--muted); font: 500 13px "Inter", system-ui, sans-serif; }
.opsmap .om-hub .h1 { fill: #fff; font: 800 24px "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
.opsmap .om-hub .h2 { fill: #ccfbf1; font: 500 13px "Inter", system-ui, sans-serif; }
.opsmap .om-motion circle { fill: var(--c); }
.opsmap .om-motion circle.dp { fill: var(--teal-2); }
.opsmap [data-arm] { transition: opacity .25s; }
.opsmap[data-focus] [data-arm] { opacity: .12; }
.opsmap[data-focus] .om-data, .opsmap[data-focus] .om-motion .dp { opacity: .25; }
.opsmap[data-focus="intake"] [data-arm="intake"],
.opsmap[data-focus="stores"] [data-arm="stores"],
.opsmap[data-focus="processing"] [data-arm="processing"],
.opsmap[data-focus="quality"] [data-arm="quality"],
.opsmap[data-focus="packing"] [data-arm="packing"],
.opsmap[data-focus="transport"] [data-arm="transport"],
.opsmap[data-focus="sales"] [data-arm="sales"],
.opsmap[data-focus="admin"] [data-arm="admin"] { opacity: 1; }

/* phone and tablet: the same flow as a readable list */
.flow-list, .flow-hub { display: none; }
@media (max-width: 1099px) {
  .opsmap, .legend { display: none; }
  .flow-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: flow; }
  .flow-list li {
    position: relative; display: grid; gap: 2px; padding: 12px 0 12px 44px; counter-increment: flow;
  }
  .flow-list li::before {
    content: counter(flow); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  }
  .flow-list li:not(:last-child)::after {
    content: ""; position: absolute; left: 14px; top: 46px; bottom: -10px; width: 2px;
    background: color-mix(in srgb, var(--c) 45%, var(--line));
  }
  .flow-list b { color: var(--ink); font-size: 1rem; }
  .flow-list span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
  .flow-hub {
    display: grid; gap: 6px; margin-top: 16px; padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #0b4a4a); color: #ccfbf1;
  }
  .flow-hub b { color: #fff; font-size: 1.05rem; }
  .flow-hub span { font-size: .92rem; line-height: 1.6; }
}

/* steps in a row under the map */
.steps-row { margin-top: 28px; }
@media (min-width: 900px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
/* nine industries: three by three on wide screens */
@media (min-width: 1020px) { .industries { grid-template-columns: repeat(3, 1fr); } }
