﻿:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --ink: #202124;
  --body: #47484b;
  --muted: #5f6368;
  --faint: #9aa0a6;
  --line: #e8eaed;
  --line-strong: #d5d8dd;
  --accent: #1a73e8;
  --accent-deep: #1765cc;
  --accent-soft: #e8f0fe;
  --green: #188038;
  --amber: #b06000;
  --radius: 18px;
  --nav-h: 76px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 112.5%; /* reads best slightly enlarged */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d2e3fc; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 8px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }

.container {
  width: min(1128px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.gradient-text {
  background: linear-gradient(100deg, #174ea6, #1a73e8 55%, #4285f4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-head h2,
.contact-copy h2,
.about-copy h2,
.talent-copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}
.section-head p {
  color: var(--body);
  max-width: 520px;
  margin-top: 18px;
  font-size: 1.05rem;
}

/* ============ Ambient constellation ============ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark svg { width: 33px; height: 33px; }
.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a.is-active:not(.btn) { color: var(--ink); }

.nav-join { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(26, 115, 232, 0.55);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}
.btn--ghost:hover {
  border-color: #b3bccb;
  transform: translateY(-1px);
}
.btn--ghost:hover svg { transform: translateX(3px); }

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent-soft);
}

.btn--white-lg {
  background: #fff;
  color: var(--ink);
  padding: 16px 34px;
  font-size: 1rem;
  white-space: nowrap;
}
.btn--white-lg:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(0,0,0,.45); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--full { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ Hero ============ */
.hero {
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 96px)) 0 clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 24, 40, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 26px;
  max-width: 500px;
  color: var(--body);
  font-size: 1.09rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

/* Stack visual */
.hero-visual { position: relative; }

.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 28px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 24px 60px -32px rgba(16, 24, 40, 0.22);
}

.stack-title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  padding-left: 2px;
}

.stack-rows { display: grid; gap: 10px; }

.stack-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
  font-size: 0.92rem;
  font-weight: 550;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stack-row:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 16px -10px rgba(16, 24, 40, 0.18);
}
.stack-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  flex-shrink: 0;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(16, 24, 40, 0.28);
}
.float-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.float-chip--one { top: -16px; right: 26px; animation: floaty 6s ease-in-out infinite alternate; }
.float-chip--two { bottom: -14px; left: -12px; animation: floaty 7s 0.8s ease-in-out infinite alternate-reverse; }
@keyframes floaty {
  from { transform: translateY(-4px); }
  to   { transform: translateY(5px); }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 17px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.marquee-group span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-group i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c4cbd8;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section { padding: clamp(84px, 11vw, 136px) 0; }
.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(44px, 6vw, 68px);
}

/* ============ Engines ============ */
.engines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.engine {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.engine:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(16, 24, 40, 0.22);
}
.engine--mid {
  background: linear-gradient(170deg, var(--ink), #1d2939);
  color: #fff;
  border-color: transparent;
}
.engine--mid .engine-tag,
.engine--mid p { color: #c3cad6; }
.engine-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.engine h3 {
  font-size: 1.65rem;
  margin-bottom: 4px;
}
.engine-tag {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.engine > p { font-size: 0.95rem; color: var(--body); flex-grow: 1; }
.engine .card-tags { margin-block: 20px; }
.engine--mid .card-tags li {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #dfe4ec;
}
.engine .text-link { margin-top: auto; }
.engine--mid .text-link { color: #a5b4fc; }

/* ============ Cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px -24px rgba(16, 24, 40, 0.22);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Material icon tints per discipline */
.ic-blue   { background: #e8f0fe; color: #1967d2; }
.ic-green  { background: #e6f4ea; color: #188038; }
.ic-yellow { background: #fef7e0; color: #b06000; }
.ic-red    { background: #fce8e6; color: #c5221f; }
.ic-purple { background: #f3e8fd; color: #7627bb; }
.ic-teal   { background: #e4f7fb; color: #007b83; }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #1967d2;
}
.card-icon svg { width: 23px; height: 23px; }

.card-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.card h3 { font-size: 1.13rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { font-size: 0.92rem; color: var(--body); }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-tags li {
  font-size: 0.73rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

/* ============ Talent ============ */
.talent-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.talent-copy p {
  color: var(--body);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.97rem;
  color: var(--body);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.talent-steps {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 24px 60px -36px rgba(16, 24, 40, 0.25);
}
.step-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
}
.step-row + .step-row { border-top: 1px solid var(--line); }
.step-i {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.step-row b { display: block; font-size: 0.97rem; }
.step-row span, .step-row p { font-size: 0.88rem; color: var(--body); }

/* ============ About & principles ============ */
.about-inner { max-width: 780px; }
.about-copy p {
  color: var(--body);
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(40px, 5vw, 56px);
}
.principle {
  padding: 24px 22px;
  border-left: 2px solid var(--line-strong);
  transition: border-color 0.3s ease;
}
.principle:hover { border-left-color: var(--accent); }
.principle h3 { font-size: 1rem; margin-bottom: 7px; }
.principle p { font-size: 0.89rem; color: var(--body); }

/* ============ Join band ============ */
.join-band {
  background: linear-gradient(120deg, #0b2a5b, #174ea6 55%, #1a73e8);
  color: #fff;
  padding: clamp(56px, 8vw, 88px) 0;
}
.join-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.join-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.join-band p { color: #c6dafc; max-width: 52ch; }
.join-band .eyebrow { color: #a5b4fc; }

/* ============ Page hero (join.html) ============ */
.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 90px)) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 24, 40, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
  pointer-events: none;
}
.page-hero .container { position: relative; max-width: 720px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-hero .hero-sub { max-width: 54ch; margin-top: 22px; }

/* ============ Roles (join.html) ============ */
.roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.role-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px -24px rgba(16, 24, 40, 0.22);
}
.role-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.role-card > p { font-size: 0.93rem; color: var(--body); flex-grow: 1; }
.role-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.role-tags i {
  font-style: normal;
  font-size: 0.71rem;
  font-weight: 550;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.apply-btn {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  transition: 0.2s;
  white-space: nowrap;
}
.apply-btn:hover { background: var(--accent); color: #fff; }

.open-invite {
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.open-invite b { display: block; margin-bottom: 4px; }
.open-invite span { font-size: 0.92rem; color: var(--body); }

/* ============ Why grid (join.html) ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-card .w-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.why-card .w-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.94rem; color: var(--body); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.contact-copy p { color: var(--body); margin-top: 18px; max-width: 440px; }

.contact-rows { display: grid; gap: 16px; margin-top: 28px; }
.contact-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}
.contact-rows svg {
  width: 21px; height: 21px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-rows a:hover { color: var(--text, var(--ink)); }

.form-card {
  padding: 36px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -36px rgba(16, 24, 40, 0.25);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #98a2b3; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}
.form-note {
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

/* ============ Footer ============ */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 36px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--faint);
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease var(--d, 0s),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .cards, .engines { grid-template-columns: 1fr 1fr; }
  .talent-grid, .contact-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .roles, .why-grid { grid-template-columns: 1fr; }
  .float-chip--two { left: 6px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    box-shadow: 0 24px 40px -24px rgba(16, 24, 40, 0.18);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-links .btn { margin: 16px 0 0; justify-content: center; }
  .cards, .engines { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
}

/* ============================================================
   Spec-sheet additions (v2 single page)
   ============================================================ */

.mono-font { font-family: "IBM Plex Mono", Consolas, monospace; }

/* Hero schematic */
.schematic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 30px 70px -34px rgba(16, 24, 40, 0.3);
}
.vis-caption {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.hero-note {
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--faint);
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
}

/* Brief rows : problem -> deliverable */
.brief-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}
.brief-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.brief-row:hover {
  transform: translateX(4px);
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 16px 36px -22px rgba(16, 24, 40, 0.28);
}
.b-id { display: none; }
.b-problem em,
.b-solution em {
  display: block;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.b-problem em { color: var(--faint); }
.b-solution em { color: var(--accent); }
.b-problem p {
  font-size: 0.93rem;
  color: var(--body);
}
.b-solution p {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink);
}
.b-arrow {
  width: 26px;
  height: 26px;
  color: var(--accent);
  justify-self: center;
}

/* Service cards : applied-AI line */
.svc .ai-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--accent);
}
.svc .ai-line strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-size: 0.64rem;
  margin-bottom: 4px;
}

/* Consulting strip */
.consult-strip {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fff;
}
.consult-strip p {
  flex: 1 1 320px;
  font-size: 0.94rem;
  color: var(--body);
}
.mono-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.consult-strip .text-link { margin-top: 0; white-space: nowrap; }

/* Why-us four-up — two per line */
.why-four { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.why-num {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Footer stamp */
.stamp {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .brief-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .b-arrow { display: none; }
}

/* Quote band */
.quote-band {
  margin: clamp(48px, 7vw, 72px) auto 0;
  max-width: 760px;
  text-align: center;
  padding: clamp(36px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px -38px rgba(32, 33, 36, 0.35);
}
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
}
.quote-band em { color: var(--accent); }
.quote-band cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.step {
  border-top: 2px solid var(--line-strong);
  padding-top: 22px;
  transition: border-color 0.3s ease;
}
.step:hover { border-top-color: var(--accent); }
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--body); }

@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .why-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .why-four { grid-template-columns: 1fr; }
}

/* Form status + honeypot */
.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: #c5221f; font-weight: 600; }
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* News page */
.news-list {
  display: grid;
  gap: 14px;
  max-width: 840px;
}
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.news-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -24px rgba(32, 33, 36, 0.28);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.news-meta .src { color: var(--accent); }
.news-item h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.news-item h3 a:hover { color: var(--accent); }
.news-item p { font-size: 0.93rem; color: var(--body); }
.badge-demo {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid rgba(226, 116, 0, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
}
.news-empty {
  max-width: 640px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 56px);
}
.news-empty p { color: var(--body); margin-top: 10px; }
.news-updated {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin-bottom: 26px;
}

/* ============================================================
   News page v2 (schema v2: category chips, significance,
   why-it-matters, mermaid diagrams, refs, filter toolbar)
   ============================================================ */

.news-edition {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* Filter toolbar */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.news-chip {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.news-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.news-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.news-chip:focus-visible {
  outline-offset: 2px;
}

/* Item header row : category chip + significance badge */
.news-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-cat {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Material tints per category */
.news-cat--agentic   { background: #e8f0fe; color: #1967d2; }
.news-cat--applied   { background: #f3e8fd; color: #7627bb; }
.news-cat--mlops     { background: #e4f7fb; color: #007b83; }
.news-cat--cloud     { background: #e6f4ea; color: #188038; }
.news-cat--devsecops { background: #fef7e0; color: #b06000; }
.news-cat--security  { background: #fce8e6; color: #c5221f; }

.sig-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sig-high {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}
.sig-medium {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* Why it matters callout */
.news-why {
  margin-top: 16px;
  padding: 12px 16px 13px;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--body);
}
.news-why em,
.news-why .news-why-label {
  display: block;
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Mermaid diagram container */
.news-diagram {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mermaid svg,
.news-diagram svg {
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Primary references */
.news-refs {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  list-style: none;
}
.news-refs li { display: inline-flex; }
.news-refs a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.news-refs a::after { content: " \2197"; } /* ↗ */
.news-refs a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive : single column under 720px */
@media (max-width: 720px) {
  .news-toolbar {
    gap: 8px;
    margin-bottom: 22px;
  }
  .news-chip {
    font-size: 0.74rem;
    padding: 6px 13px;
  }
  .news-item {
    padding: 18px 18px;
  }
  .news-head {
    gap: 8px;
  }
}

/* Blog post — minimalist reading experience */
.post-wrap { max-width: 720px; padding: calc(var(--nav-h) + 48px) 0 80px; }
.post-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.post-lede { font-size: 1.15rem; line-height: 1.7; color: var(--body); margin-bottom: 32px; }
.post-body { font-size: 1.08rem; line-height: 1.75; color: var(--body); }
.post-body > * + * { margin-top: 1.25em; }
.post-body > h2 { margin-top: 2.2em; line-height: 1.15; }
.post-figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 32px 0; }
.post-figure pre { background: transparent; border: 0; padding: 0; overflow-x: auto; }
.post-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; }
.post-refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-refs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.post-wrap { max-width: 720px; padding: calc(var(--nav-h) + 48px) 0 80px; }
.post-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.post-lede { font-size: 1.15rem; line-height: 1.7; color: var(--body); margin-bottom: 32px; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > h2 { margin-top: 2.2em; line-height: 1.15; }
.post-figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 32px 0; }
.post-figure pre { background: transparent; border: 0; padding: 0; overflow-x: auto; }
.post-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; }
.post-refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-refs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.post-wrap { max-width: 720px; padding: calc(var(--nav-h) + 48px) 0 80px; }
.post-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.post-lede { font-size: 1.15rem; line-height: 1.7; color: var(--body); margin-bottom: 32px; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > h2 { margin-top: 2.2em; line-height: 1.15; }
.post-figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 32px 0; }
.post-figure pre { background: transparent; border: 0; padding: 0; overflow-x: auto; }
.post-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; }
.post-refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-refs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.post-wrap { max-width: 720px; padding: calc(var(--nav-h) + 48px) 0 80px; }
.post-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.post-lede { font-size: 1.15rem; line-height: 1.7; color: var(--body); margin-bottom: 32px; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > h2 { margin-top: 2.2em; line-height: 1.15; }
.post-figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 32px 0; }
.post-figure pre { background: transparent; border: 0; padding: 0; overflow-x: auto; }
.post-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; }
.post-refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-refs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }

/* Blog article — minimalist reading experience */
.post-wrap { max-width: 720px; padding: calc(var(--nav-h) + 48px) 0 80px; }
.post-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.post-lede { font-size: 1.15rem; line-height: 1.7; color: var(--body); margin-bottom: 32px; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > h2 { margin-top: 2.2em; line-height: 1.15; }
.post-figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 32px 0; }
.post-figure figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; }
.post-refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-refs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }

/* ============================================================
   Capabilities — Master/Detail (left tabs, right detail)
   ============================================================ */

.cap-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.cap-tabs {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cap-tab:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px -12px rgba(16,24,40,.18);
  transform: translateX(2px);
}

.cap-tab.is-active,
.cap-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 28px -14px rgba(26,115,232,.38);
}

.cap-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cap-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
}

.cap-icon svg { width: 21px; height: 21px; }

.cap-tab-label { flex: 1; min-width: 0; }

.cap-title {
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.cap-tab[aria-selected="true"] .cap-title { color: var(--accent); }

.cap-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: .7;
  transition: transform .25s cubic-bezier(.2,1,.3,1), opacity .2s ease, stroke .2s ease;
}

.cap-tab.is-active .cap-chevron,
.cap-tab[aria-selected="true"] .cap-chevron {
  transform: rotate(90deg);
  stroke: var(--accent);
  opacity: 1;
}

.cap-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px -24px rgba(16,24,40,.22);
}

.cap-panel { display: none; flex: 1; flex-direction: column; }
.cap-panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: capIn .38s cubic-bezier(.2,.7,.2,1);
}

@keyframes capIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.cap-detail-viz {
  flex: 1;
  min-height: 340px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.svc-viz {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 340px;
  display: block;
}

.cap-panel[data-disc="ai-eng"]    { --viz: #1967d2; }
.cap-panel[data-disc="applied"]   { --viz: #7627bb; }
.cap-panel[data-disc="mlops"]     { --viz: #007b83; }
.cap-panel[data-disc="cloud"]     { --viz: #188038; }
.cap-panel[data-disc="devsec"]    { --viz: #b06000; }
.cap-panel[data-disc="security"]  { --viz: #c5221f; }

.svc-viz [data-anim] { animation-play-state: paused; }
.cap-panel.armed .svc-viz [data-anim] { animation-play-state: running; }

.cap-body { padding: 26px 28px 28px; }
.cap-body p { color: var(--body); line-height: 1.7; font-size: 1rem; margin-bottom: 12px; }
.cap-body .cap-meta {
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .cap-layout { grid-template-columns: 1fr; gap: 18px; }
  .cap-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
    gap: 10px;
  }
  .cap-tab { flex: 0 0 auto; min-width: 260px; }
  .cap-detail { min-height: auto; }
  .cap-detail-viz { height: 200px; padding: 14px; }
  .svc-viz { height: 172px; }
}

@media (max-width: 720px) {
  .cap-tab { min-width: 240px; padding: 14px 16px; }
  .cap-detail-viz { height: 188px; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-panel.is-active { animation: none; }
  .svc-viz, .svc-viz [data-anim] { animation: none !important; }
  .cap-tab, .cap-chevron { transition: none !important; }
}

@media print {
  .cap-panel { display: block !important; }
  .cap-panel[hidden] { display: block !important; }
  .cap-tabs { display: none; }
}
