/* DAIC Labs — design system */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: #e3e6ee;
  --text: #12141a;
  --muted: #5f6673;

  /* One colour per discipline. DAIC is Data, AI and Cloud, so colour carries
     meaning here rather than decorating: a reader learns that teal is Cloud.
     Each has a -ink variant dark enough for text on white (>= 4.5:1). */
  --data: #2b5cff;
  --data-ink: #1e46d2;
  --ai: #7c3aed;
  --ai-ink: #6d28d9;
  --cloud: #0d9488;
  --cloud-ink: #0f766e;
  --sec: #f59e0b;
  --sec-ink: #b45309;

  /* --tone is the active discipline colour. Sections and cards override it, and
     every accented element reads from it, so one declaration re-colours a block. */
  --tone: var(--data);
  --tone-ink: var(--data-ink);

  --accent: var(--tone);
  --accent-2: var(--tone-ink);
  --accent-ink: #ffffff;
  --danger: #d12a3c;
  --success: #0b7a55;
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell: min(1220px, 100% - 2.5rem);
  --grad: linear-gradient(100deg, var(--tone) 0%, var(--tone-ink) 100%);
  --shadow: 0 1px 2px rgba(18, 20, 26, 0.04), 0 12px 32px -20px rgba(18, 20, 26, 0.18);
}

/* Scope a block to a discipline: <article class="card tone--ai"> */
.tone--data  { --tone: var(--data);  --tone-ink: var(--data-ink); }
.tone--ai    { --tone: var(--ai);    --tone-ink: var(--ai-ink); }
.tone--cloud { --tone: var(--cloud); --tone-ink: var(--cloud-ink); }
.tone--sec   { --tone: var(--sec);   --tone-ink: var(--sec-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.rule { border-top: 1px solid var(--border); }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.02rem, 1.45vw, 1.16rem); color: var(--muted); max-width: 64ch; line-height: 1.75; }
.center { text-align: center; margin-inline: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.7rem 1.1rem; background: var(--tone-ink); color: var(--accent-ink); }
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tone-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--tone); border-radius: 1px; }

/* ------------------------------------------------------------- header */

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand em { font-style: normal; color: var(--data-ink); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: 0.9rem; color: var(--muted); text-decoration: none; position: relative; padding: 0.3rem 0; transition: color 0.15s ease; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav a:not(.btn)[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--tone); }
.nav-cta { margin-left: 0.3rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 2.5rem; height: 2.5rem; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer;
}
.nav-toggle svg { margin-inline: auto; }

@media (max-width: 900px) {
  .nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 1rem 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font: inherit; font-size: 0.92rem; font-weight: 500;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--tone-ink); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: var(--tone); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--tone); color: var(--tone-ink); background: color-mix(in srgb, var(--tone) 6%, transparent); }
.btn--lg { padding: 0.92rem 1.7rem; font-size: 0.98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3rem, 7vw, 5rem); }
/* Two slow-drifting colour fields built from the three discipline colours. They
   give the hero depth and life without an image, and cost nothing to download.
   Transform-only animation so it stays on the compositor. */
.hero::before,
.hero::after {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  will-change: transform;
}
.hero::before {
  background:
    radial-gradient(38rem 26rem at 78% 18%, color-mix(in srgb, var(--cloud) 20%, transparent), transparent 62%),
    radial-gradient(34rem 24rem at 22% 30%, color-mix(in srgb, var(--data) 18%, transparent), transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero::after {
  background:
    radial-gradient(32rem 22rem at 56% 8%, color-mix(in srgb, var(--ai) 18%, transparent), transparent 60%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(2%, 1%, 0) scale(1.08); }
  to   { transform: translate3d(-3%, -2%, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero > * { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.ticker {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.ticker span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------- hero card */

.metric-card {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow);
}
.metric-card header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.metric-card header b { color: var(--cloud-ink); font-weight: 500; }
.metric-rows { display: grid; }
.metric-row { display: grid; gap: 0.5rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: 0; }
.metric-row .top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.86rem; }
.metric-row .top b { font-family: var(--font-mono); font-size: 1rem; color: var(--text); }
.metric-row .top span { color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tone), var(--tone-ink)); border-radius: 2px; }

/* --------------------------------------------------------------- grid */

.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid > .cell { background: var(--surface); padding: 2rem 1.85rem; transition: background 0.2s ease; }
.grid > .cell:hover { background: var(--surface-2); }
.cell h3 { margin-bottom: 0.5rem; }
.cell p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.cell-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--tone-ink); display: block; margin-bottom: 1.15rem; }

.cards { display: grid; gap: 1.1rem; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
/* auto-fit would place six cards as 4+2 on a wide screen; three columns keeps
   the rows balanced. */
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; padding: 1.7rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.card--link:hover { border-color: var(--tone); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card-icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 1.15rem; display: grid; place-items: center;
  border-radius: 7px; background: color-mix(in srgb, var(--tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); color: var(--tone-ink);
}
.card-link { margin-top: 1.1rem; display: inline-flex; gap: 0.4rem; font-size: 0.86rem; color: var(--tone-ink); text-decoration: none; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.tick-list li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.tick-list li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--tone-ink); font-family: var(--font-mono); }
.tick-list strong { color: var(--text); font-weight: 600; }

.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--aside { grid-template-columns: 1.2fr 0.8fr; } }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { padding: 0.3rem 0.75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }

.panel { padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }

.quote { padding: 2rem; border: 1px solid var(--border); border-left: 3px solid var(--tone); border-radius: 0 12px 12px 0; background: var(--surface); }
.quote p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.25rem; }
.quote footer { font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.04em; color: var(--tone-ink); }
.stat span { font-size: 0.83rem; color: var(--muted); }

.steps { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.step { display: grid; gap: 0.35rem; padding: 1.6rem 1.75rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step b { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--tone-ink); }
.step h3 { margin: 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font: 500 1rem var(--font-display); text-align: left; color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.faq-item button::after { content: "+"; color: var(--tone-ink); font-family: var(--font-mono); flex: none; }
.faq-item.is-open button::after { content: "\2212"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-answer { max-height: 24rem; }
.faq-answer p { margin: 0; padding: 0 0 1.4rem; color: var(--muted); font-size: 0.93rem; max-width: 68ch; }

.cta-band {
  padding: clamp(2.6rem, 6vw, 4.2rem);
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 13%, var(--surface)), var(--surface) 58%);
}
.cta-band p { max-width: 54ch; color: var(--muted); }

/* ------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.7fr repeat(3, 1fr); } }
.footer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--tone-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.83rem; color: var(--muted);
}
.social { display: flex; gap: 0.5rem; }
.social a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--border); border-radius: 6px; }
.social a:hover { border-color: var(--accent); color: var(--accent); }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

.contact-card { padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.contact-card + .contact-card { margin-top: 0.9rem; }
.contact-card h3 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.contact-card a { color: var(--tone-ink); font-size: 0.94rem; text-decoration: none; }
.contact-card p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.86rem; }

/* Headings that wrap a link should read as headings, not as links. */
.card h3 a, .cell h3 a, .step h3 a { color: inherit; text-decoration: none; }


/* ------------------------------------------------------- animated hero panel */

/* Bars fill from zero once the card is in view, so the panel demonstrates a live
   system rather than asserting one. --fill is set per row in the markup. */
.bar i {
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-panel-in .bar i { width: var(--fill, 0%); }

.metric-row .top b { font-variant-numeric: tabular-nums; }

/* A quietly pulsing dot next to the status, the way a real console shows liveness. */
.metric-card header b { display: inline-flex; align-items: center; gap: 0.45rem; }
.metric-card header b::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cloud); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cloud) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cloud) 60%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Rows arrive in sequence rather than all at once. */
.hero-panel-in { animation: panel-in 0.6s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-panel-in .metric-row { opacity: 0; animation: row-in 0.5s ease forwards; }
.hero-panel-in .metric-row:nth-child(1) { animation-delay: 0.25s; }
.hero-panel-in .metric-row:nth-child(2) { animation-delay: 0.35s; }
.hero-panel-in .metric-row:nth-child(3) { animation-delay: 0.45s; }
.hero-panel-in .metric-row:nth-child(4) { animation-delay: 0.55s; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bar i { transition: none; width: var(--fill, 0%); }
  .metric-card header b::before { animation: none; }
  .hero-panel-in, .hero-panel-in .metric-row { animation: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- pipeline diagram */

.pipeline { margin: 0 0 2.5rem; }
.pipeline svg { width: 100%; height: auto; overflow: visible; }
.pipeline-caption {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

.pl-track { stroke: var(--border); stroke-width: 2; }
.pl-seg { stroke-width: 2.5; stroke-linecap: round; }
.pl-seg--data  { stroke: var(--data); }
.pl-seg--ai    { stroke: var(--ai); }
.pl-seg--cloud { stroke: var(--cloud); }

.pl-lane {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.pl-lane--data  { fill: var(--data-ink); }
.pl-lane--ai    { fill: var(--ai-ink); }
.pl-lane--cloud { fill: var(--cloud-ink); }

.pl-node circle { fill: var(--surface); stroke-width: 2.5; }
.pl-node text {
  font-family: var(--font);
  font-size: 12.5px;
  fill: var(--text);
}
.pl-node--data circle  { stroke: var(--data); }
.pl-node--ai circle    { stroke: var(--ai); }
.pl-node--cloud circle { stroke: var(--cloud); }

/* A packet travelling each lane. Staggered so the three read as one continuous
   flow rather than three separate loops. */
.pl-pulse { opacity: 0; }
.pl-pulse--data  { fill: var(--data);  animation: flow-data 4.5s linear infinite; }
.pl-pulse--ai    { fill: var(--ai);    animation: flow-ai 4.5s linear infinite 0.35s; }
.pl-pulse--cloud { fill: var(--cloud); animation: flow-cloud 4.5s linear infinite 0.7s; }

@keyframes flow-data {
  0%, 4%   { cx: 90px;  opacity: 0; }
  10%      { opacity: 1; }
  28%      { cx: 375px; opacity: 1; }
  34%,100% { cx: 375px; opacity: 0; }
}
@keyframes flow-ai {
  0%, 4%   { cx: 375px; opacity: 0; }
  10%      { opacity: 1; }
  28%      { cx: 755px; opacity: 1; }
  34%,100% { cx: 755px; opacity: 0; }
}
@keyframes flow-cloud {
  0%, 4%   { cx: 755px;  opacity: 0; }
  10%      { opacity: 1; }
  28%      { cx: 1040px; opacity: 1; }
  34%,100% { cx: 1040px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-pulse { animation: none; opacity: 0; }
}

/* Below ~700px the labels collide, so the diagram is decorative only. */
@media (max-width: 700px) {
  .pipeline svg { display: none; }
  .pipeline-caption { margin-bottom: 0; }
}

/* ------------------------------------------------------------- logo strip */

.logo-strip-section { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }

.logo-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.logo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

/* Client marks come in wildly different aspect ratios and colours. Normalising
   to a common optical height and desaturating keeps the row calm and stops any
   one brand shouting over the others. */
.logo-strip img {
  height: 26px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-strip li:hover img,
.logo-strip img:focus-visible {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .logo-strip { gap: 1.5rem 2rem; }
  .logo-strip img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip img { transition: none; }
}

/* ------------------------------------------------- use-case visualisations */

/* Small animated scenes that show what an engagement actually did. Pure SVG and
   CSS: no images, no library, a couple of KB. Each inherits its section's tone. */

.viz {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.viz svg { width: 100%; height: auto; display: block; }
.viz figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.viz-grid line { stroke: var(--border); stroke-width: 1; }
.viz-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.viz-line--actual { stroke: var(--tone); }
.viz-line--forecast { stroke: var(--tone); stroke-dasharray: 6 5; opacity: 0.85; }
.viz-split { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.viz-dot { fill: var(--surface); stroke: var(--tone); stroke-width: 2.5; }
.viz-label { font-family: var(--font); font-size: 10px; fill: var(--text); }
.viz-label--muted { fill: var(--muted); font-size: 9px; }

.viz-key { width: 14px; height: 2px; display: inline-block; background: var(--tone); }
.viz-key--dash { background: repeating-linear-gradient(90deg, var(--tone) 0 4px, transparent 4px 7px); }

/* Lines draw themselves in once scrolled to. */
.viz-line, .viz-answer-line, .viz-fan path, .viz-lineage path {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
[data-reveal].is-visible .viz-line,
[data-reveal].is-visible .viz-answer-line,
[data-reveal].is-visible .viz-fan path,
[data-reveal].is-visible .viz-lineage path {
  animation: draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.viz-band, .viz-area { opacity: 0; }
[data-reveal].is-visible .viz-band,
[data-reveal].is-visible .viz-area { animation: fade-in 0.9s ease 0.7s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.viz-area { fill: color-mix(in srgb, var(--tone) 12%, transparent); }

.viz-guard { stroke: var(--sec); stroke-width: 2; stroke-dasharray: 5 4; }
.viz-guard-label { font-family: var(--font-mono); font-size: 8.5px; fill: var(--sec-ink); }

/* retrieval */
.viz-query, .viz-answer { fill: color-mix(in srgb, var(--tone) 10%, transparent); stroke: var(--tone); stroke-width: 1.5; }
.viz-fan path { fill: none; stroke: var(--border); stroke-width: 1.5; }
.viz-docs rect { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.viz-docs rect.is-hit { stroke: var(--tone); fill: color-mix(in srgb, var(--tone) 12%, transparent); }
.viz-answer-line { fill: none; stroke: var(--tone); stroke-width: 2; }
.viz-cite { font-family: var(--font-mono); font-size: 8px; fill: var(--tone-ink); }

/* layered stack */
.viz-layer rect { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.viz-layer { opacity: 0; }
[data-reveal].is-visible .viz-layer { animation: layer-in 0.5s ease forwards; }
[data-reveal].is-visible .viz-layer[data-i="3"] { animation-delay: 0.05s; }
[data-reveal].is-visible .viz-layer[data-i="2"] { animation-delay: 0.2s; }
[data-reveal].is-visible .viz-layer[data-i="1"] { animation-delay: 0.35s; }
[data-reveal].is-visible .viz-layer[data-i="0"] { animation-delay: 0.5s; }
@keyframes layer-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.viz-lineage path { stroke: var(--tone); stroke-width: 2; fill: none; }
.viz-lineage-dot { fill: var(--tone); }

/* Nothing here is load-bearing, so it all stops cleanly. */
@media (prefers-reduced-motion: reduce) {
  .viz-line, .viz-answer-line, .viz-fan path, .viz-lineage path { stroke-dashoffset: 0; animation: none; }
  .viz-band, .viz-area, .viz-layer { opacity: 1; animation: none; }
}
