/* DeepSentrics — defence site components (extends styles.css) */

/* ———————— Dark hero band ———————— */
.hero-dark {
  --ink: #F2F5FA; --ink-2: #D5DCE8; --ink-3: #A3AEC2; --ink-4: #7E8899; --ink-5: #5C6678;
  --line: #1E2B40; --line-2: #172235; --bg: #0A1628; --bg-2: #0F1D33; --bg-3: #13243D;
  --accent: #4A8BFF; --accent-2: #78A8FF; --accent-soft: #12223F; --accent-ink: #CFE0FF;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(74,139,255,0.16), transparent 60%),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,0.035) 0) 0 0 / 100% 48px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,0.035) 0) 0 0 / 48px 100%,
    #0A1628;
  color: var(--ink);
}
.hero-dark .eyebrow { background: rgba(255,255,255,0.04); }
.hero-dark .btn-ghost { color: var(--ink); border-color: rgba(255,255,255,0.18); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.hero-dark .hero-meta { border-top-color: rgba(255,255,255,0.08); }
.hero-sm { padding: 80px 0 64px; }
.hero-sm .h1 { font-size: clamp(36px, 4.6vw, 58px); }

.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* ———————— Fusion console (hero visual) ———————— */
.console {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(15,29,51,0.82); backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3);
  overflow: hidden;
}
.console-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px;
}
.console-live { display: inline-flex; align-items: center; gap: 8px; color: #34D399; }
.console-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34D399; animation: pulse 2s infinite; }
.console-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.node {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.02);
}
.node-tag { color: var(--accent-2); }
.node-name { color: var(--ink-2); }
.node-delta { color: #FBBF24; }
.node.is-offline { opacity: 0.55; }
.node.is-offline .node-delta { color: var(--ink-4); }
.fuse-arrow { text-align: center; color: var(--ink-5); font-size: 11px; letter-spacing: 0.1em; padding: 2px 0; }
.entity {
  border: 1px solid rgba(74,139,255,0.45); border-radius: 10px; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(74,139,255,0.12), rgba(74,139,255,0.03));
}
.entity-head { display: flex; justify-content: space-between; color: var(--ink); font-size: 13.5px; margin-bottom: 10px; }
.entity-conf { color: #34D399; }
.entity-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 12px; }
.entity-bar span { display: block; height: 100%; width: 91%; background: linear-gradient(90deg, var(--accent), #34D399); animation: barIn 1.8s cubic-bezier(.2,.7,.3,1); }
@keyframes barIn { from { width: 0; } }
.entity-row { display: flex; justify-content: space-between; padding: 3px 0; }
.entity-row b { font-weight: 500; color: var(--ink-2); }
.console-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); }

/* ———————— Proof strip ———————— */
.proof { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.proof-inner { display: grid; grid-template-columns: auto repeat(4, 1fr); align-items: stretch; }
.proof-logos { display: flex; align-items: center; gap: 20px; padding: 24px 32px 24px 0; border-right: 1px solid var(--line); }
.proof-logos img { height: 44px; width: auto; display: block; }
.proof-item { padding: 22px 24px; border-right: 1px solid var(--line-2); }
.proof-item:last-child { border-right: none; }
.proof-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.proof-v { font-size: 14px; line-height: 1.4; color: var(--ink-2); font-weight: 500; }
@media (max-width: 1080px) {
  .proof-inner { grid-template-columns: 1fr 1fr; }
  .proof-logos { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .proof-item { border-bottom: 1px solid var(--line-2); }
  .proof-item:nth-child(odd) { border-right: none; }
}
@media (max-width: 560px) { .proof-inner { grid-template-columns: 1fr; } .proof-item { border-right: none; } }

/* ———————— Product cards ———————— */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .products { grid-template-columns: 1fr; } }
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg);
  padding: 32px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.product-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent-ink);
}
.badge-green { background: #E7F7EF; color: #065F46; }
.badge-amber { background: #FEF3E2; color: #7C3A06; }
.product h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
.product-tag { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; font-weight: 500; }
.product p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.product-stats { display: flex; gap: 28px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.product-stats div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-4); }
.product-stats strong { font-size: 20px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product-link { margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ———————— Numbers band ———————— */
.numbers { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 56px; position: relative; overflow: hidden; }
.numbers::before {
  content: ''; position: absolute; right: -10%; top: -60%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(11,95,255,0.28), transparent 60%); pointer-events: none;
}
.numbers-head { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.numbers-head h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.02em; margin: 0; max-width: 560px; }
.numbers-head h2 em { font-style: normal; font-weight: 400; color: #7FB8FF; }
.numbers-head p { margin: 0; color: rgba(255,255,255,0.6); font-size: 14px; max-width: 360px; }
.numbers-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.num { padding: 0 28px; border-left: 1px solid rgba(255,255,255,0.12); }
.num:first-child { padding-left: 0; border-left: none; }
.num-v { font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-v small { font-size: 0.5em; color: rgba(255,255,255,0.55); font-weight: 500; margin-left: 4px; }
.num-l { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.num-s { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); text-transform: uppercase; }
@media (max-width: 960px) {
  .numbers { padding: 40px 28px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .num:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) { .numbers-grid { grid-template-columns: 1fr; } .num { padding-left: 0; border-left: none; } }

/* ———————— Case study cards ———————— */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; } }
.case-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.case-card:hover { border-color: var(--ink-5); transform: translateY(-2px); box-shadow: var(--shadow); }
.case-card-media { aspect-ratio: 16 / 7; background: var(--bg-3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card-media.is-logo { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.case-card-media.is-logo img { width: auto; height: 64px; object-fit: contain; }
.case-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case-card-client { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.case-card h3 { font-size: 21px; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 10px; line-height: 1.25; }
.case-card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.case-card .product-link { padding-top: 18px; }

/* ———————— Featured case (home) ———————— */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: 36px; } }
.feature-lede { font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: 20px 0 0; }

/* ———————— Pipeline ———————— */
.pipeline { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.pipe { padding: 22px 20px; border-right: 1px solid var(--line-2); position: relative; }
.pipe:last-child { border-right: none; }
.pipe-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 10px; }
.pipe h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pipe p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.pipeline.is-vertical { grid-template-columns: 1fr; }
.pipeline.is-vertical .pipe { border-right: none; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.pipeline.is-vertical .pipe:last-child { border-bottom: none; }
.pipeline.is-vertical .pipe-n { grid-row: span 2; margin: 2px 0 0; }
@media (max-width: 880px) {
  .pipeline:not(.is-vertical) { grid-template-columns: 1fr; }
  .pipeline:not(.is-vertical) .pipe { border-right: none; border-bottom: 1px solid var(--line-2); }
  .pipeline:not(.is-vertical) .pipe:last-child { border-bottom: none; }
}

/* ———————— Capability grid ———————— */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.cap { padding: 32px 28px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .2s; }
.cap:nth-child(3n) { border-right: none; }
.cap:nth-last-child(-n+3) { border-bottom: none; }
.cap:hover { background: var(--bg-2); }
.cap .value-icon { margin-bottom: 18px; }
.cap h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.cap p { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.cap-ref { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-4); text-transform: uppercase; }
.cap-ref a { color: var(--accent); }
@media (max-width: 960px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .cap:nth-child(2n) { border-right: none; }
  .cap:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .cap:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .cap { border-right: none !important; border-bottom: 1px solid var(--line-2) !important; }
  .cap:last-child { border-bottom: none !important; }
}

/* ———————— Partners ———————— */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .partners { grid-template-columns: 1fr; } }
.partner { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.partner-logo { height: 52px; display: flex; align-items: center; }
.partner-logo img { max-height: 52px; max-width: 150px; width: auto; display: block; }
.partner-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.partner p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ———————— Article layout (product / case pages) ———————— */
.article { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 40px; } }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 14px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; background: #fff; }
.prose figcaption { font-size: 13px; color: var(--ink-4); margin-top: 10px; line-height: 1.5; }
.prose .pipeline, .prose .spec, .prose .qa { margin: 24px 0 8px; }

.aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); padding: 22px; }
.aside-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.aside-v { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.aside-d { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.aside-card + .aside-card { margin-top: 0; }
.aside-row + .aside-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside .btn { width: 100%; }

/* ———————— Spec table ———————— */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line-2); }
.spec-row:last-child { border-bottom: none; }
.spec-row > div { padding: 14px 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.spec-row > div:first-child { font-weight: 600; color: var(--ink); background: var(--bg-2); }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; } .spec-row > div:first-child { padding-bottom: 4px; } }

/* ———————— Trick-question table ———————— */
.qa { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.qa-row { display: grid; grid-template-columns: 1.6fr 0.7fr 1fr; border-bottom: 1px solid var(--line-2); }
.qa-row:last-child { border-bottom: none; }
.qa-row > div { padding: 14px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.qa-head > div { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); background: var(--bg-2); padding-top: 10px; padding-bottom: 10px; }
.qa-a { font-weight: 600; color: var(--ink) !important; }
@media (max-width: 640px) { .qa-row { grid-template-columns: 1fr; } .qa-head { display: none; } .qa-row > div { padding: 6px 16px; } .qa-row > div:first-child { padding-top: 14px; } .qa-row > div:last-child { padding-bottom: 14px; } }

/* ———————— Stat row ———————— */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); }
.stat-v { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-l { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.35; }

.note { font-size: 13px; color: var(--ink-4); line-height: 1.55; border-left: 2px solid var(--line); padding-left: 14px; margin: 16px 0; }

/* ———————— Roles grid ———————— */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
@media (max-width: 720px) { .roles { grid-template-columns: 1fr; } }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.role-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; }
.role h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.role p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; }

/* ———————— Founder ———————— */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.founder-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #0A1628, #0B5FFF); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.founder h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.015em; }
.founder-role { color: var(--ink-4); font-size: 14px; margin-bottom: 14px; }
.founder ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.founder li { font-size: 15px; color: var(--ink-3); display: flex; gap: 10px; line-height: 1.5; }
.founder li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* ———————— Footer additions ———————— */
.footer-grid.footer-grid-4 { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 960px) { .footer-grid.footer-grid-4 { grid-template-columns: 1fr 1fr; } }
.disclaimer { font-size: 12px; color: var(--ink-4); line-height: 1.55; margin-top: 24px; max-width: 880px; }

.section-alt { background: var(--bg-2); }
.center-actions { display: flex; justify-content: center; margin-top: 40px; }

/* ———————— Overflow guards (grid children shrink below content width) ———————— */
.hero-grid > *, .products > *, .cases > *, .feature > *, .article > *, .caps > *, .partners > * { min-width: 0; }
.product-top { flex-wrap: wrap; }
@media (max-width: 560px) {
  .product { padding: 24px; }
  .badge { white-space: normal; }
  .node { grid-template-columns: auto 1fr; }
  .node-delta { grid-column: 2; }
  .entity-row { flex-direction: column; gap: 2px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .proof-logos img { height: 36px; }
}

.values.values-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .values.values-3 { grid-template-columns: 1fr; }
  .values.values-3 .value { border-right: none; border-bottom: 1px solid var(--line-2); }
  .values.values-3 .value:last-child { border-bottom: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .section { padding: 72px 0; }
}

.founder-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; display: block; border: 1px solid var(--line); }
.founder-li { color: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.founder-li:hover { text-decoration: underline; }
.partner-link { color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.partner-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ———————— Media card ———————— */
.media-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-2); padding: 28px; max-width: 880px; }
.media-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.media-card-name { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.media-card-outlet { font-size: 14px; color: var(--ink-4); margin-left: 6px; }
.media-card-video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0A1628; }
.media-card-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-card-play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; background: rgba(10,22,40,0.75); color: #fff; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(6px); transition: background .2s;
}
.media-card-video:hover .media-card-play { background: var(--accent); }
.media-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 22px 0 8px; }
.media-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); max-width: 720px; }
.media-card p a { color: var(--accent); }
@media (max-width: 560px) { .media-card { padding: 18px; } .media-card-outlet { display: block; margin: 4px 0 0; } }

.partners { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ext-link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.ext-link:hover { text-decoration-color: var(--accent); }

/* ———————— Product brand marks ———————— */
.product h3.product-brand { display: flex; align-items: center; gap: 12px; }
.product-brand img { width: 40px; height: 40px; flex: none; display: block; }
.bc-word { font-weight: 700; letter-spacing: 0.14em; font-size: 0.86em; }
.case-card-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.case-card-brand img { width: 32px; height: 32px; display: block; }
.case-card-brand .badge { margin-left: auto; }
.h1-brand { display: flex; align-items: center; gap: 18px; }
.h1-brand img { width: 64px; height: 64px; flex: none; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
@media (max-width: 560px) { .h1-brand img { width: 48px; height: 48px; } }

/* ———————— News grid ———————— */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-grid > * { min-width: 0; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.news-card:hover { border-color: var(--ink-5); transform: translateY(-2px); box-shadow: var(--shadow); }
.news-card-media { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .news-card-media img { transform: scale(1.03); }
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.news-card-tag { color: var(--accent); }
.news-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 8px; }
.news-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.news-card .product-link { padding-top: 16px; }

/* ———————— Homepage hero: keep the proof strip above the fold ———————— */
.hero-home { padding: 56px 0 48px; }
.hero-home .h1 { font-size: clamp(40px, 5vw, 64px); }
.hero-home .lede { margin-top: 18px; }
.hero-home .hero-ctas { margin-top: 28px; }
.hero-home .console-body { gap: 8px; padding: 14px 18px 16px; }
.hero-home .node { padding: 8px 12px; }
.hero-home .entity { padding: 12px 14px; }
@media (max-width: 960px) { .hero-home { padding: 40px 0 40px; } }

/* ———————— Homepage first screen: hero fills the viewport, proof strip sits on the bottom edge ———————— */
.home-fold { min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; flex-direction: column; }
.home-fold .hero-home { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.home-fold .hero-home > .shell { width: 100%; }
.hero-home .hero-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.hero-home .h1 { font-size: clamp(42px, 4.8vw, 72px); }
.hero-home .lede { font-size: 19px; max-width: 440px; }
@media (max-width: 960px) {
  .hero-home .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-fold { min-height: 0; }
}
.nowrap { white-space: nowrap; }
.home-fold .hero-home { padding: 32px 0; }
.hero-home .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.hero-home .h1 { font-size: clamp(40px, 4.4vw, 66px); }
/* Size the animation by whichever runs out first: column width or screen height
   (screen − nav − proof strip − hero padding − card header/caption), keeping its 500:330 ratio */
.hero-home stratasense-demo { margin-left: auto; max-width: min(100%, calc((100svh - 370px) * 1.515)); }
@media (max-width: 960px) { .hero-home stratasense-demo { max-width: 100%; margin: 0; } }
/* v3: smaller type, smaller right-aligned animation */
.hero-home .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
.hero-home .h1 { font-size: clamp(36px, 3.8vw, 54px); }
.hero-home .lede { font-size: 17px; max-width: 400px; }
.hero-home .eyebrow { font-size: 11.5px; }
.hero-home .hero-visual { display: flex; justify-content: flex-end; }
.hero-home stratasense-demo { width: 100%; max-width: min(580px, calc((100svh - 370px) * 1.515)); margin-left: auto; }
@media (max-width: 960px) { .hero-home .hero-visual { display: block; } .hero-home stratasense-demo { max-width: 100%; } }
/* v4: left column +10% */
.hero-home .h1 { font-size: clamp(40px, 4.18vw, 59px); }
.hero-home .lede { font-size: 18.7px; max-width: 440px; }
.hero-home .eyebrow { font-size: 12.6px; height: 31px; padding: 0 13px; }
.hero-home .hero-ctas .btn-lg { height: 53px; padding: 0 24px; font-size: 16.5px; border-radius: 13px; }
.news-card-video { position: relative; background: #0A1628; }
.news-card-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.news-card-video .media-card-play { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 12px; }
.news-card:hover .news-card-video .media-card-play { background: var(--accent); }

/* Images keep their aspect ratio when width/height attributes are present (class rules still override) */
img { max-width: 100%; height: auto; }
