/* Brahma — shared design system for brahmasystems.ai (master) and brahma.digital (media practice).
   Source of truth lives in /shared; build.py copies it into each site's /assets. */

:root {
  --bg: #FFFFFF;
  --surface: #F5F4F0;
  --ink: #111214;
  --text: #2B2C2F;
  --muted: #62646A;
  --line: #E4E3DF;
  --deep: #0E1B2E;
  --deep-2: #15253C;
  --deep-text: #EEF1F5;
  --deep-muted: #A3AEBF;
  --deep-line: #27364D;
  --accent: #D80C14;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.22; }
h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.eyebrow { display: block; font: 600 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--text); max-width: 40em; }
.statement { font-family: var(--serif); font-size: clamp(28px, 3.3vw, 44px); line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; max-width: 24em; margin: 0; }
.muted { color: var(--muted); }

/* Utility bar: ties the two sites together */
.ubar { background: var(--deep); color: var(--deep-muted); font-size: 13px; }
.ubar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.ubar a { color: var(--deep-text); }
.ubar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ubar .ubar-r { display: none; }
@media (min-width: 760px) { .ubar .ubar-r { display: block; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; color: var(--ink); }
.wordmark { font: 600 26px/1 var(--serif); letter-spacing: .01em; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.brand-sub { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-l10n { gap: 20px; }
@media (max-width: 1199px) { .nav, .nav-l10n { gap: 16px; } }
.nav a { white-space: nowrap; font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav .nav-cta { font-weight: 600; color: var(--ink); }
.menu { display: none; }
@media (max-width: 1079px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 600 14px var(--sans); color: var(--ink); padding: 8px 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 14px); width: min(320px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,.10); display: grid; }
  .menu-panel a { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .menu-panel a:last-child { border-bottom: 0; font-weight: 600; }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--sans); padding: 17px 26px; background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.arrow { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.arrow::after { content: "→"; transition: transform .2s; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Hero with full-bleed photograph */
.hero-img { position: relative; min-height: min(84vh, 820px); display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(180deg, rgba(10,19,34,.25) 0%, rgba(10,19,34,.50) 45%, rgba(10,19,34,.90) 100%), var(--img, none) center/cover no-repeat, var(--deep); }
.hero-img .wrap { width: 100%; padding-bottom: clamp(56px, 8vw, 104px); padding-top: 120px; }
.hero-img h1 { color: #fff; max-width: 14em; }
.hero-img .lead { color: rgba(255,255,255,.86); margin-top: 26px; max-width: 36em; }
.hero-img .eyebrow { color: rgba(255,255,255,.72); }

/* Plain hero for inner pages */
.hero-plain { padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero-plain h1 { max-width: 16em; }
.hero-plain .lead { margin-top: 28px; }

/* Sections */
.section { padding: var(--space) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.surface { background: var(--surface); border-top: 0; }
.section.surface + .section { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { max-width: 18em; }

/* Dark */
.dark { background: var(--deep); color: var(--deep-muted); }
.section.dark + .section { border-top: 0; }
.dark h1, .dark h2, .dark h3, .dark .statement { color: var(--deep-text); }
.dark .eyebrow { color: var(--deep-muted); }
.dark .arrow { color: var(--deep-text); }
.dark .line-list, .dark .line-list li { border-color: var(--deep-line); }
.dark .line-list p { color: var(--deep-muted); }

/* Image cards */
.cards { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; color: inherit; }
.card-img { aspect-ratio: 4 / 3; background: var(--img, none) center/cover no-repeat, var(--surface); overflow: hidden; margin-bottom: 22px; transition: filter .3s; }
.card:hover .card-img { filter: brightness(.9); }
.card .eyebrow { margin-bottom: 12px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.card .arrow { margin-top: auto; }
.dark .card p { color: var(--deep-muted); }

/* Feature: image beside text */
.feature { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-img { aspect-ratio: 5 / 4; background: var(--img, none) center/cover no-repeat, var(--surface); }
@media (min-width: 920px) { .feature { grid-template-columns: 1fr 1fr; } .feature.flip .feature-img { order: 2; } }
.feature h2 { margin-bottom: 24px; }
.feature p { color: var(--muted); }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }

/* Impact figures */
.figures { display: grid; gap: 0; border-top: 1px solid var(--line); }
.figures > div { padding: 40px 32px 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .figures { grid-template-columns: repeat(3, 1fr); }
  .figures > div { border-bottom: 0; }
  .figures > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
}
.fig-num { font: 400 clamp(56px, 6.4vw, 92px)/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; }
.fig-what { margin-top: 18px; font-size: 17px; color: var(--ink); }
.fig-who { margin-top: 8px; font-size: 15px; color: var(--muted); }
.dark .figures, .dark .figures > div { border-color: var(--deep-line); }
.dark .fig-num, .dark .fig-what { color: var(--deep-text); }
.dark .fig-who { color: var(--deep-muted); }

/* Line list (index rows) */
.line-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line-list li { border-bottom: 1px solid var(--line); }
.line-list a, .line-list .row { display: grid; gap: 8px 40px; padding: 30px 0; align-items: baseline; }
@media (min-width: 860px) { .line-list a, .line-list .row { grid-template-columns: 5fr 7fr; } }
.line-list h3 { transition: color .2s; }
.line-list a:hover h3 { color: var(--accent); }
.line-list p { margin: 0; color: var(--muted); }

/* Case studies: client type and industry, never names */
.case { display: grid; gap: 20px 56px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.case:first-child { border-top: 1px solid var(--line); }
@media (min-width: 920px) { .case { grid-template-columns: 5fr 7fr; } }
.case h3 { font-size: clamp(24px, 2.3vw, 32px); margin-top: 8px; }
.case .client { font-size: 15px; color: var(--muted); margin-top: 14px; }
.case p { color: var(--text); margin: 0 0 22px; }
.case-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-figs b { display: block; font: 400 38px/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.case-figs span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Text columns */
.cols { display: grid; gap: 40px; }
@media (min-width: 860px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.cols h3 { margin-bottom: 14px; }
.cols p { color: var(--muted); margin: 0; }
.col { padding-top: 26px; border-top: 1px solid var(--ink); }
.dark .col { border-color: var(--deep-text); }
.dark .cols p { color: var(--deep-muted); }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article p, .article li { font: 400 20px/1.7 var(--serif); color: var(--text); }
.article h2 { font-size: clamp(28px, 3vw, 36px); margin: 56px 0 20px; }
.article blockquote { margin: 48px 0; padding: 0 0 0 28px; border-left: 2px solid var(--accent); font: 400 clamp(24px, 2.6vw, 30px)/1.4 var(--serif); color: var(--ink); }
.article ol, .article ul { padding-left: 24px; }
.article-meta { font-size: 14px; color: var(--muted); margin-top: 28px; }
.table-wrap { overflow-x: auto; margin: 32px 0; }
table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); min-width: 520px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }

/* CTA band */
.cta-band { background: var(--deep); color: var(--deep-muted); padding: var(--space) 0; }
.cta-band h2 { color: var(--deep-text); max-width: 16em; }
.cta-band p { font-size: 19px; max-width: 36em; margin-top: 22px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--deep-muted); font-size: 14.5px; border-top: 1px solid var(--deep-line); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 4fr 3fr 3fr 3fr; } }
.site-footer .wordmark { color: var(--deep-text); font-size: 24px; }
.site-footer h4 { color: var(--deep-text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--deep-text); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--deep-text); }

/* Cookie consent (track.js) */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 22px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: 14.5px; }
.consent-bar p { flex: 1 1 320px; margin: 0; color: var(--muted); }
.consent-bar a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-bar .btn { padding: 11px 18px; font-size: 14px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--deep-line); font-size: 13px; }

.mt-l { margin-top: 64px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Stack diagram: four engines feeding media buying */
.stack { display: grid; gap: 0; }
.stack-parts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .stack-parts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .stack-parts { grid-template-columns: repeat(4, 1fr); } }
.stack-part { background: var(--bg); padding: 28px 26px 30px; }
.stack-part .eyebrow { margin-bottom: 14px; color: var(--accent); }
.stack-part h3 { margin-bottom: 10px; }
.stack-part p { margin: 0; color: var(--muted); font-size: 15.5px; }
.stack-flow { height: 44px; display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.stack-base { background: var(--ink); color: #fff; padding: 26px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.stack-base h3 { color: #fff; }
.stack-base p { margin: 0; color: rgba(255,255,255,.72); max-width: 34em; }
.surface .stack-part { background: #fff; }

/* Three clocks */
.clocks { display: grid; gap: 0; border-top: 1px solid var(--deep-line); }
.clocks > div { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--deep-line); }
@media (min-width: 860px) {
  .clocks { grid-template-columns: repeat(3, 1fr); }
  .clocks > div { border-bottom: 0; }
  .clocks > div + div { border-left: 1px solid var(--deep-line); padding-left: 36px; }
}
.clock-speed { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--deep-text); letter-spacing: -0.02em; }
.clock-who { margin-top: 16px; font-size: 17px; color: var(--deep-text); font-weight: 600; }
.clock-note { margin-top: 8px; color: var(--deep-muted); font-size: 15.5px; }
.clocks .unseen .clock-speed { color: #FF5A4A; }

/* ---------- Charts ---------- */
.chart { margin: 0; --c-surface: #fff; --c-brahma: #D80C14; --c-base: #77787E; --c-s1: #2F62A8; --c-s2: #E8741E; --c-s3: #4D6A0F;
  --c-grid: #ECEBE7; --c-text: #2B2C2F; --c-muted: #62646A; --c-lane: #F5F4F0; }
.dark .chart, .app .chart-dark { --c-surface: var(--deep); --c-brahma: #FF4D40; --c-base: #8A93A3; --c-s1: #5B8FD6; --c-s2: #F08A3A; --c-s3: #A3B84A;
  --c-grid: #22324A; --c-text: var(--deep-text); --c-muted: var(--deep-muted); --c-lane: #15253C; }
.chart figcaption { display: grid; gap: 4px; margin-bottom: 18px; }
.chart-title { font: 600 17px/1.3 var(--sans); color: var(--c-text); }
.chart-sub { font-size: 14.5px; color: var(--c-muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; font-size: 13.5px; color: var(--c-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chart .chart-legend svg { width: auto; flex: none; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-scroll svg { min-width: 560px; }
.chart .axis { stroke: var(--c-muted); stroke-width: 1; }
.chart .grid { stroke: var(--c-grid); stroke-width: 1; }
.chart .lane { fill: var(--c-lane); }
.chart .tick { font-size: 12px; fill: var(--c-muted); }
.chart .lbl { font-size: 13.5px; fill: var(--c-text); }
.chart .val { font-size: 14px; font-weight: 600; fill: var(--c-text); }
.chart .note { font-size: 12.5px; fill: var(--c-muted); }
.chart .hit { fill: transparent; }
.chart [data-tip] { cursor: default; outline: none; }
.chart path[data-tip]:hover, .chart rect[data-tip]:hover { opacity: .85; }
.chart-note { font-size: 13px; color: var(--c-muted); margin: 14px 0 0; }
.chart-data { margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.chart-data summary { cursor: pointer; }
.chart-data table { min-width: 0; margin-top: 10px; font-size: 13px; }
.chart-data caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.dark .chart-data th, .dark .chart-data td { border-color: var(--deep-line); color: var(--deep-muted); }
.viz-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--ink); color: #fff; font: 500 13px/1.4 var(--sans); padding: 8px 11px; border-radius: 3px; max-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; transition: opacity .12s; }
.viz-tip.on { opacity: 1; }

/* ---------- Product window ---------- */
.app { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(12,13,16,.25), 0 2px 6px rgba(12,13,16,.05); overflow: hidden; color: var(--text); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFAF8; font-size: 12.5px; color: var(--muted); }
.app-dots { display: flex; gap: 6px; } .app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #DAD9D4; display: block; }
.app-title { font-weight: 600; color: var(--ink); }
.app-body { padding: 22px; }
.dark .app { border-color: #2A2B30; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; }
.ledger th { font-size: 11px; letter-spacing: .08em; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ledger td { padding: 11px 10px 11px 0; border-bottom: 1px solid #F0EFEB; color: var(--text); vertical-align: top; }
.ledger td:first-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: #F0EFEB; color: var(--ink); white-space: nowrap; }
.pill.ok { background: #E3F2EA; color: #1C6B43; } .pill.wait { background: #FDF0DC; color: #8A5A00; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.kpis div { background: #fff; padding: 12px 14px; } .kpis b { display: block; font: 600 20px/1.1 var(--sans); color: var(--ink); } .kpis span { font-size: 11.5px; color: var(--muted); }
.kpis em { font-style: normal; color: #1C6B43; font-size: 12px; font-weight: 600; margin-left: 6px; }

/* ---------- Hero with product ---------- */
.hero-split { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); background: linear-gradient(180deg, #F5F4F0 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-split .wrap { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1040px) { .hero-split .wrap { grid-template-columns: 11fr 10fr; } }
.hero-split h1 { font-size: clamp(40px, 5vw, 68px); }
.hero-split .lead { margin-top: 24px; }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.proof div { padding: 18px 16px 0 0; }
.proof b { display: block; font: 400 34px/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.proof span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (min-width: 640px) { .proof { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Argument (bottom line → premise → conclusion) ---------- */
.argument { counter-reset: arg; }
.arg-label { display: inline-flex; gap: 10px; align-items: baseline; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.dark .arg-label { color: #FF5A4A; }
.two { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } .two-wide { grid-template-columns: 5fr 7fr; } }
.two h2 { margin-bottom: 22px; }
.two p { color: var(--muted); }
.dark .two p { color: var(--deep-muted); }
.panel { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); }
.dark .panel { background: var(--deep-2); border-color: var(--deep-line); }

/* ---------- Architecture ---------- */
.arch { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 1040px) { .arch { grid-template-columns: 1fr 26px 1.5fr 26px 1.2fr 26px 1fr; } }
.arch-col { border: 1px solid var(--deep-line); background: var(--deep-2); padding: 20px; display: grid; gap: 10px; align-content: start; }
.arch-col h4 { color: var(--deep-text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.arch-item { border: 1px solid #33343A; padding: 10px 12px; font-size: 14px; color: var(--deep-text); border-radius: 3px; }
.arch-item small { display: block; color: var(--deep-muted); font-size: 12.5px; margin-top: 2px; }
.arch-core { border-color: #D4502F; }
.arch-core .arch-item { border-color: rgba(212,80,47,.45); }
.arch-gate { font-size: 12.5px; color: #FF5A4A; border: 1px dashed rgba(224,121,95,.6); padding: 8px 12px; border-radius: 3px; }
.arch-arrow { display: grid; place-items: center; color: var(--deep-muted); font-size: 20px; }
@media (max-width: 1039px) { .arch-arrow { transform: rotate(90deg); height: 22px; } }
.arch-loop { margin-top: 14px; border: 1px dashed #3A3B41; padding: 12px 16px; text-align: center; font-size: 14px; color: var(--deep-muted); }

/* ---------- Roles ---------- */
.roles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { background: #fff; padding: 30px 28px 32px; }
.role .eyebrow { margin-bottom: 14px; }
.role h3 { font-size: 23px; margin-bottom: 14px; }
.role ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.role li { margin: 6px 0; }

/* ---------- Global ---------- */
.geo { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .geo { grid-template-columns: repeat(4, 1fr); } .geo > div + div { border-left: 1px solid var(--line); padding-left: 28px; } }
.geo > div { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .geo > div { border-bottom: 0; } }
.geo h3 { margin-bottom: 10px; }
.geo p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Stat pair (when the form is two numbers, not a chart) */
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.stat-pair div { padding: 22px 16px 0 0; }
.stat-pair div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.stat-pair b { display: block; font: 400 clamp(48px, 5vw, 72px)/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; }
.stat-pair .hl b { color: var(--accent); }
.stat-pair span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #CFCDC7; border-radius: 3px; padding: 13px 14px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 30em; }
.form-error { display: none; padding: 14px 16px; background: #FBEDEA; color: #8E1F12; border-left: 3px solid var(--accent); font-size: 15px; }
.has-error .form-error { display: block; }
.form-aside { display: grid; gap: 22px; align-content: start; }
.form-aside .col h3 { font-size: 20px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { background: #fff; padding: 34px 30px 36px; display: flex; flex-direction: column; gap: 14px; }
.price .eyebrow { margin: 0; }
.price-num { font: 400 clamp(44px, 4.6vw, 64px)/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; }
.price-num small { font: 400 16px/1.3 var(--sans); color: var(--muted); letter-spacing: 0; display: block; margin-top: 10px; }
.price ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.price li { margin: 6px 0; }
.price .btn { margin-top: auto; align-self: flex-start; }
.calc { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc > div { background: #fff; padding: 30px; display: grid; gap: 18px; align-content: start; }
.calc .field input { max-width: 180px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-out b { display: block; font: 400 34px/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.calc-out span { font-size: 13.5px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid #CFCDC7; border-radius: 3px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 16px; font-size: 14.5px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 400 21px/1.35 var(--serif); color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--muted); max-width: 48em; }
.checklist { columns: 2; column-gap: 40px; padding-left: 18px; color: var(--muted); }
@media (max-width: 720px) { .checklist { columns: 1; } }
.checklist li { margin: 0 0 10px; break-inside: avoid; }

/* Results stack in hero */
.results-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.results-stack div { background: #fff; padding: 24px 22px; }
.results-stack b { display: block; font: 400 clamp(40px, 4vw, 56px)/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; }
.results-stack span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink); }
.results-stack em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 860px) { .geo-6 { grid-template-columns: repeat(3, 1fr); } .geo-6 > div:nth-child(3n+1) { border-left: 0; padding-left: 0; } .geo-6 > div { border-bottom: 1px solid var(--line); } }

/* Modules */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .modules { grid-template-columns: repeat(3, 1fr); } .module-wide { grid-column: 1 / -1; } }
.module { background: #fff; padding: 28px 26px 30px; }
.module-n { display: block; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; }
.module h3 { margin-bottom: 10px; }
.module p { margin: 0; color: var(--muted); font-size: 15.5px; }
.module-wide { background: var(--ink); } .module-wide h3 { color: #fff; } .module-wide p { color: rgba(255,255,255,.72); } .module-wide .module-n { color: #FF5A4A; }
.dark table.methods td { color: var(--deep-muted); } .dark table.methods td:first-child { color: var(--deep-text); font-weight: 600; } .dark table.methods th { color: var(--deep-muted); border-bottom-color: var(--deep-text); }
.topic-group + .topic-group { margin-top: 72px; }
.topic-h { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
a.chip:hover { border-color: var(--ink); }

.ubar .langs { margin-left: 14px; } .ubar .langs a { color: var(--deep-muted); } .ubar .langs a[aria-current="true"] { color: var(--deep-text); font-weight: 600; }
@media (max-width: 759px) { .ubar .ubar-r { display: block; } .ubar .ubar-r { font-size: 0; } .ubar .ubar-r .langs { font-size: 13px; margin: 0; } }
.nav a.btn { color: #fff; border-bottom: 1px solid var(--ink); padding: 11px 16px; }
.nav a.btn:hover, .nav a.btn[aria-current="page"] { color: #fff; background: #000; }
.seg { justify-self: start; }

/* Generated art */
.hero-img.hero-art { background: linear-gradient(90deg, rgba(10,19,34,.96) 0%, rgba(10,19,34,.75) 34%, rgba(10,19,34,0) 58%), linear-gradient(0deg, rgba(10,19,34,.6) 0%, rgba(10,19,34,0) 40%), var(--img) right center/cover no-repeat, #0A1322; }
@media (max-width: 860px) { .hero-img.hero-art { background: linear-gradient(0deg, rgba(10,19,34,.95) 0%, rgba(10,19,34,.55) 55%, rgba(10,19,34,.2) 100%), var(--img) 70% center/cover no-repeat, #0A1322; } }
.card-img.art, .feature-img.art { background: var(--img) center/contain no-repeat; }
.card:hover .card-img.art { filter: none; transform: translateY(-3px); transition: transform .3s; }
.dark .card-img.art { background-color: transparent; }
.fx { max-width: 220px; margin-bottom: 16px; }

@media (min-width: 861px) { .hero-art h1 { max-width: 11em; } .hero-art .lead { max-width: 30em; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); } .consent input { margin-top: 3px; }

/* Round 3: mobile overflow, focus, hero legibility, forms */
.two > *, .calc > div, .feature > *, .cols > *, .panel, .cards > *, .price-grid > *, .modules > * { min-width: 0; }
.seg { flex-wrap: wrap; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-img.hero-art { background: linear-gradient(90deg, rgba(10,19,34,.97) 0%, rgba(10,19,34,.82) 38%, rgba(10,19,34,0) 72%), linear-gradient(0deg, rgba(10,19,34,.6) 0%, rgba(10,19,34,0) 40%), var(--img) right center/cover no-repeat, #0A1322; }
@media (min-width: 861px) { .hero-art h1 { max-width: 9.5em; } }
@media (max-width: 860px) { .hero-img.hero-art { background: linear-gradient(0deg, rgba(10,19,34,.97) 0%, rgba(10,19,34,.93) 62%, rgba(10,19,34,.35) 100%), var(--img) right top/auto 70% no-repeat, #0A1322; } }
.hdr-cta { display: none; }
@media (max-width: 1079px) { .hdr-cta { display: inline-flex; margin-left: auto; margin-right: 14px; } .site-header .wrap { gap: 10px; } }
@media (max-width: 420px) { .brand-sub { display: none; } }
.more { border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.more[open] { display: grid; gap: 18px; }
.form-error:focus { outline: none; }
.foot-h { color: var(--deep-text); font: 600 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.related { font: 400 15px/1.6 var(--sans) !important; color: var(--muted) !important; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-date { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 20px; }

/* chips (restored) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--text); background: #fff; }
.dark .chip { background: transparent; border-color: var(--deep-line); color: var(--deep-text); }
@media (min-width: 861px) { .hero-art h1 { max-width: min(9.5em, 52vw); } }
.payoff { color: var(--accent); }
.dark .payoff { color: #FF5A4A; }
.agentic-band .statement { max-width: none !important; }
@media (min-width: 900px) { .results-wide { grid-template-columns: repeat(4, 1fr); } }
.hero-img h1 .payoff { color: #FF5A4A; }

/* Contrast table: traditional agency vs Brahma */
.contrast { padding-top: clamp(56px, 7vw, 96px); }
table.vs { min-width: 640px; font-size: 16px; }
table.vs th, table.vs td { padding: 20px 20px 20px 0; }
table.vs thead th { font-size: 13px; }
table.vs thead th:last-child { color: var(--accent); }
table.vs tbody th { font: 600 15px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; width: 22%; border-bottom: 1px solid var(--line); }
table.vs td:nth-child(2) { color: var(--muted); width: 33%; }
table.vs td:last-child { color: var(--ink); font-weight: 600; background: linear-gradient(90deg, rgba(216,12,20,.06), rgba(216,12,20,0)); padding-left: 18px; border-left: 2px solid var(--accent); }
table.vs td:first-child { font-weight: 400; }
@media (min-width: 861px) { .hero-art h1.h1-contrast { max-width: 13em; font-size: clamp(44px, 4.6vw, 70px); } }
.hero-img .lead.outcome { font: 400 clamp(22px, 2.2vw, 30px)/1.35 var(--serif); color: #fff; letter-spacing: -0.005em; margin-top: 30px; }

/* Scripts the brand fonts don't cover: use the reader's system fonts */
:lang(hi) body, :lang(hi) .lead, :lang(hi) .field { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", var(--sans); }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .statement, :lang(hi) .lead.outcome { font-family: "Noto Serif Devanagari", "Kohinoor Devanagari", "Mangal", var(--serif); line-height: 1.3; }
:lang(ja) body { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", var(--sans); }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .statement, :lang(ja) .lead.outcome { font-family: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", var(--serif); letter-spacing: 0; line-height: 1.35; }
:lang(zh-Hans) body { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", var(--sans); }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .statement, :lang(zh-Hans) .lead.outcome { font-family: "Songti SC", "Noto Serif SC", "SimSun", var(--serif); letter-spacing: 0; line-height: 1.35; }
:lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow, :lang(hi) .eyebrow { letter-spacing: .04em; }
:lang(ja) h1, :lang(zh-Hans) h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
:lang(hi) h1 { font-size: clamp(34px, 4.2vw, 60px); }
:lang(ja) .hero-art h1, :lang(zh-Hans) .hero-art h1, :lang(hi) .hero-art h1 { max-width: 14em; }

/* Language dropdown in the top bar */
.lang-menu { position: relative; display: inline-block; margin-left: 16px; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--deep-text); font-weight: 600; padding: 2px 18px 2px 0; position: relative; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; position: absolute; right: 0; top: 1px; font-size: 11px; color: var(--deep-muted); }
.lang-menu[open] summary::after { content: "▴"; }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 170px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10,19,34,.18); display: grid; padding: 6px; }
.lang-list a { color: var(--ink) !important; padding: 9px 12px; font-size: 14px; border-radius: 3px; }
.lang-list a:hover { background: var(--surface); text-decoration: none !important; }
.lang-list a[aria-current="true"] { color: var(--accent) !important; font-weight: 600; }
.ubar .langs { display: none; }
@media (max-width: 759px) { .ubar .ubar-r { display: block; font-size: 0; } .ubar .ubar-r .lang-menu { font-size: 13px; margin: 0; } }
.h1-lines span { display: block; white-space: nowrap; }
@media (min-width: 861px) { .hero-art h1.h1-lines { max-width: none; } }
@media (max-width: 520px) { .h1-lines span { white-space: normal; display: inline; } }

/* brahmasystems.ai: graphite where Brahma Media uses navy, and a warmer stone surface,
   so the two sites read as one family but are never mistaken for each other. */
html[data-site="sys"] { --deep: #17181B; --deep-2: #212226; --deep-text: #F2F1ED; --deep-muted: #ABAAA4; --deep-line: #36373C; --surface: #F0EEE7; }
html[data-site="sys"] .dark .chart { --c-grid: #303136; --c-lane: #212226; }
html[data-site="sys"] .hero-img.hero-art { background: linear-gradient(90deg, rgba(15,16,18,.97) 0%, rgba(15,16,18,.82) 38%, rgba(15,16,18,0) 72%), linear-gradient(0deg, rgba(15,16,18,.6) 0%, rgba(15,16,18,0) 40%), var(--img) right center/cover no-repeat, #0F1012; }
@media (max-width: 860px) { html[data-site="sys"] .hero-img.hero-art { background: linear-gradient(0deg, rgba(15,16,18,.97) 0%, rgba(15,16,18,.93) 62%, rgba(15,16,18,.35) 100%), var(--img) right top/auto 70% no-repeat, #0F1012; } }

/* ---------------------------------------------------------------------------
   Brahma AI Systems: an engineered look, so it is never mistaken for Brahma Media.
   Media: dark navy heroes, serif headlines. Systems: light blueprint heroes, sans headlines. */
html[data-site="sys"] { --serif: var(--sans); }
html[data-site="sys"] .wordmark { font-family: "Source Serif 4", Georgia, serif; }
html[data-site="sys"] h1, html[data-site="sys"] h2 { font-weight: 500; letter-spacing: -0.035em; }
html[data-site="sys"] h1 { line-height: 1.04; }
html[data-site="sys"] h3 { font-weight: 500; letter-spacing: -0.015em; }
html[data-site="sys"] .statement { letter-spacing: -0.025em; line-height: 1.22; }
html[data-site="sys"] .fig-num, html[data-site="sys"] .results-stack b, html[data-site="sys"] .case-figs b { font-weight: 500; letter-spacing: -0.04em; }
html[data-site="sys"] .eyebrow { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; letter-spacing: .06em; }

/* Light blueprint hero: stone ground, a faint engineering grid, the scene drawn in ink. */
html[data-site="sys"] .hero-img.hero-art {
  color: var(--ink); min-height: min(76vh, 740px); border-bottom: 1px solid var(--line);
  background: var(--img) right 2% center / 42% auto no-repeat,
              linear-gradient(rgba(17,18,20,.05) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, rgba(17,18,20,.05) 1px, transparent 1px) 0 0 / 56px 56px,
              var(--surface); }
html[data-site="sys"] .hero-img h1 { color: var(--ink); }
html[data-site="sys"] .hero-img .lead { color: var(--text); }
html[data-site="sys"] .hero-img .eyebrow { color: var(--muted); }
html[data-site="sys"] .hero-img .btn-light { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-site="sys"] .hero-img .btn-light:hover { background: #000; }
@media (max-width: 860px) {
  html[data-site="sys"] .hero-img.hero-art { background: var(--img) center top 24px / auto 42% no-repeat,
    linear-gradient(rgba(17,18,20,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(17,18,20,.05) 1px, transparent 1px) 0 0 / 40px 40px, var(--surface); }
}
html[data-site="sys"] .hero-img h1 { font-size: clamp(40px, 4.8vw, 68px); }
@media (min-width: 861px) { html[data-site="sys"] .hero-art h1 { max-width: min(9em, 44vw); } html[data-site="sys"] .hero-art .lead { max-width: min(30em, 44vw); } }

/* /start/ campaign landing: one question, five routes, a three-step flow. */
.start-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.routes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 720px) { .routes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .routes { grid-template-columns: repeat(5, 1fr); } }
.route { display: flex; flex-direction: column; gap: 12px; background: var(--bg); padding: 28px 24px 30px; transition: background .2s; }
.route:hover { background: var(--surface); }
.route svg { width: 44px; height: 44px; color: var(--ink); }
.route-q { font: 400 17px/1.45 var(--serif); color: var(--muted); font-style: italic; min-height: 3em; }
.route h2 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; }
.route p { font-size: 15px; color: var(--text); margin: 0; flex: 1; }
.route-fact { font: 600 14px/1.3 var(--sans); color: var(--accent); }
.route-sys { background: var(--surface); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 0; } .flow li { padding-right: 48px; position: relative; }
  .flow li:not(:last-child)::after { content: "→"; position: absolute; right: 16px; top: 8px; font-size: 28px; color: var(--accent); } }
.flow-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 15px var(--sans); margin-bottom: 14px; }
.flow h3 { margin-bottom: 8px; }

/* Comparison tables: the first column (ours) is highlighted. */
table.compare { min-width: 980px; font-size: 14.5px; }
table.compare thead th:nth-child(2) { color: var(--accent); }
table.compare tbody th { font: 600 14px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; width: 14%; }
table.compare td:nth-child(2) { background: rgba(216,12,20,.04); color: var(--ink); font-weight: 500; }
table.compare td { padding-right: 18px; }

/* "Starting at" above a price: prices are floors, quoted on scope. */
.price-from { display: block; font: 600 12.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { font-size: 15.5px; color: var(--text); margin-bottom: 8px; }

/* ---------------------------------------------------------------------------
   Brahma Media: modern agency. Same palette (black, white, red #D80C14, with orange
   and yellow as glow), played bold: near-black instead of navy, Inter headlines like
   Brahma AI Systems, pill buttons, rounded cards, a red closing band.
   Systems stays calm and engineered (stone blueprint, graphite, square corners). */
html[data-site="dig"] {
  --serif: var(--sans);
  --deep: #0B0B0C; --deep-2: #161618; --deep-text: #FFFFFF; --deep-muted: #A7A7AD; --deep-line: #2A2A2E;
  --surface: #F3F3F4; --line: #E6E6E8; --ink: #0B0B0C; --muted: #5F6068;
  --radius: 20px;
}
html[data-site="dig"] .wordmark { font-family: "Source Serif 4", Georgia, serif; }
html[data-site="dig"] h1, html[data-site="dig"] h2 { font-weight: 600; letter-spacing: -0.045em; }
html[data-site="dig"] h1 { line-height: 1.0; }
html[data-site="dig"] h2 { line-height: 1.05; }
html[data-site="dig"] h3 { font-weight: 600; letter-spacing: -0.02em; }
html[data-site="dig"] .statement { font-weight: 500; letter-spacing: -0.035em; line-height: 1.18; }
html[data-site="dig"] .fig-num, html[data-site="dig"] .results-stack b, html[data-site="dig"] .case-figs b,
html[data-site="dig"] .price-num, html[data-site="dig"] .stat-pair b, html[data-site="dig"] .proof b, html[data-site="dig"] .calc-out b { font-weight: 600; letter-spacing: -0.05em; }
html[data-site="dig"] .faq summary { font-weight: 600; letter-spacing: -0.01em; }
html[data-site="dig"] ::selection { background: var(--accent); color: #fff; }

/* Labels become tags */
html[data-site="dig"] .eyebrow { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 7px 13px 7px 11px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 11.5px; letter-spacing: .08em; color: var(--ink); background: #fff; }
html[data-site="dig"] .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
html[data-site="dig"] .dark .eyebrow, html[data-site="dig"] .hero-img .eyebrow, html[data-site="dig"] .cta-band .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
html[data-site="dig"] .price .eyebrow, html[data-site="dig"] .card .eyebrow { margin-bottom: 4px; }

/* Buttons: pills, red for the main action */
html[data-site="dig"] .btn { border-radius: 999px; padding: 16px 26px; }
html[data-site="dig"] .site-header .btn, html[data-site="dig"] .hdr-cta, html[data-site="dig"] .hero-img .btn-light:first-child,
html[data-site="dig"] .hero-split .actions .btn:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-site="dig"] .site-header .btn:hover, html[data-site="dig"] .hdr-cta:hover { background: #B80A11; border-color: #B80A11; }
html[data-site="dig"] .arrow::after { color: var(--accent); }
html[data-site="dig"] .ubar { background: #000; }

/* Surfaces: cool light grey, rounded */
html[data-site="dig"] .price-grid, html[data-site="dig"] .results-stack, html[data-site="dig"] .routes { border-radius: var(--radius); overflow: hidden; }
html[data-site="dig"] .price { border-radius: 0; }
html[data-site="dig"] .panel, html[data-site="dig"] .app { border-radius: var(--radius); }
html[data-site="dig"] .card-img { border-radius: var(--radius); }
html[data-site="dig"] .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; background: #fff; }
html[data-site="dig"] .faq details { border-radius: 14px; }
html[data-site="dig"] .field input, html[data-site="dig"] .field select, html[data-site="dig"] .field textarea { border-radius: 12px; border-color: #D5D5D9; }
html[data-site="dig"] .hero-split { background: radial-gradient(60% 80% at 85% 10%, rgba(216,12,20,.08), transparent 70%),
  radial-gradient(40% 60% at 100% 90%, rgba(240,127,46,.10), transparent 70%), #fff; }

/* Dark: near-black with a red and orange glow */
html[data-site="dig"] .dark { background: radial-gradient(50% 70% at 90% 0%, rgba(216,12,20,.20), transparent 70%),
  radial-gradient(40% 60% at 0% 100%, rgba(240,127,46,.12), transparent 70%), var(--deep); }
html[data-site="dig"] .dark .chart, html[data-site="dig"] .app .chart-dark { --c-surface: #0B0B0C; --c-grid: #26262A; --c-lane: #161618; }
html[data-site="dig"] .hero-img.hero-art { background: linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.7) 36%, rgba(11,11,12,0) 64%), var(--img) right center/cover no-repeat, #0B0B0C; }
@media (max-width: 860px) { html[data-site="dig"] .hero-img.hero-art { background: linear-gradient(0deg, rgba(11,11,12,.97) 0%, rgba(11,11,12,.9) 60%, rgba(11,11,12,.3) 100%), var(--img) right top/auto 70% no-repeat, #0B0B0C; } }
html[data-site="dig"] .hero-img h1 .payoff, html[data-site="dig"] .hero-img .lead.outcome { color: #fff; }

/* Closing call to action: solid red */
html[data-site="dig"] .cta-band { background: var(--accent); color: rgba(255,255,255,.9); }
html[data-site="dig"] .cta-band h2 { color: #fff; }
html[data-site="dig"] .cta-band .btn-light { background: #0B0B0C; border-color: #0B0B0C; color: #fff; }
html[data-site="dig"] .cta-band .btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
html[data-site="dig"] .cta-band .btn-light[style*="transparent"] { background: transparent !important; border-color: rgba(255,255,255,.7); color: #fff !important; }

/* Non-Latin scripts: sans to match */
html[data-site="dig"]:lang(hi) h1, html[data-site="dig"]:lang(hi) h2, html[data-site="dig"]:lang(hi) h3, html[data-site="dig"]:lang(hi) .statement, html[data-site="dig"]:lang(hi) .lead.outcome { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", var(--sans); }
html[data-site="dig"]:lang(ja) h1, html[data-site="dig"]:lang(ja) h2, html[data-site="dig"]:lang(ja) h3, html[data-site="dig"]:lang(ja) .statement, html[data-site="dig"]:lang(ja) .lead.outcome { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", var(--sans); letter-spacing: 0; }
html[data-site="dig"]:lang(zh-Hans) h1, html[data-site="dig"]:lang(zh-Hans) h2, html[data-site="dig"]:lang(zh-Hans) h3, html[data-site="dig"]:lang(zh-Hans) .statement, html[data-site="dig"]:lang(zh-Hans) .lead.outcome { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", var(--sans); letter-spacing: 0; }
html[data-site="dig"] .eyebrow { align-self: flex-start; justify-self: start; }

/* Brahma Media hero: the same light blueprint feel as Brahma AI Systems, on a cooler grey,
   with Media's own accents (red pill for the main action, rounded shapes elsewhere). */
html[data-site="dig"] .hero-img.hero-art {
  color: var(--ink); min-height: min(76vh, 740px); border-bottom: 1px solid var(--line);
  background: var(--img) right 2% center / 42% auto no-repeat,
              linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 56px 56px,
              radial-gradient(45% 60% at 88% 30%, rgba(216,12,20,.07), transparent 70%),
              var(--surface); }
@media (max-width: 860px) {
  html[data-site="dig"] .hero-img.hero-art { background: var(--img) center top 24px / auto 42% no-repeat,
    linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 40px 40px, var(--surface); }
}
html[data-site="dig"] .hero-img h1, html[data-site="dig"] .hero-img h1 .payoff { color: var(--ink); }
html[data-site="dig"] .hero-img h1 .payoff { color: var(--accent); }
html[data-site="dig"] .hero-img .lead { color: var(--text); }
html[data-site="dig"] .hero-img .lead.outcome { color: var(--ink); }
html[data-site="dig"] .hero-img .eyebrow { background: #fff; border-color: var(--line); color: var(--ink); }
html[data-site="dig"] .hero-img .btn-light { background: transparent !important; color: var(--ink) !important; border-color: var(--ink); }
html[data-site="dig"] .hero-img .btn-light:hover { background: var(--ink) !important; color: #fff !important; }
html[data-site="dig"] .hero-img .actions .btn-light:first-child { background: var(--accent) !important; border-color: var(--accent); color: #fff !important; }
html[data-site="dig"] .hero-img h1 { font-size: clamp(40px, 4.8vw, 68px); }
@media (min-width: 861px) { html[data-site="dig"] .hero-art h1 { max-width: min(9.5em, 46vw); } html[data-site="dig"] .hero-art .lead { max-width: min(30em, 44vw); } }
/* Dark sections: graphite-black without the glow, to sit with the light heroes */
html[data-site="dig"] .dark { background: var(--deep); }

/* Red is an accent, not the colour: black actions, and the full palette as a thin stripe. */
html[data-site="dig"] { --palette-stripe: linear-gradient(90deg, #D80C14 0 25%, #F07F2E 25% 50%, #F2B531 50% 75%, #9DB23F 75% 100%); }
html[data-site="dig"] .site-header .btn, html[data-site="dig"] .hdr-cta,
html[data-site="dig"] .hero-img .actions .btn-light:first-child, html[data-site="dig"] .hero-split .actions .btn:first-child {
  background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
html[data-site="dig"] .site-header .btn:hover, html[data-site="dig"] .hdr-cta:hover { background: #000 !important; }
html[data-site="dig"] .hero-img.hero-art { background: var(--img) right 2% center / 42% auto no-repeat,
  linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 56px 56px, var(--surface);
  box-shadow: inset 0 -4px 0 0 transparent; position: relative; }
html[data-site="dig"] .hero-img.hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--palette-stripe); }
@media (max-width: 860px) { html[data-site="dig"] .hero-img.hero-art { background: var(--img) center top 24px / auto 42% no-repeat,
  linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px) 0 0 / 40px 40px, var(--surface); } }
html[data-site="dig"] .hero-img h1 .payoff { color: var(--ink); }
html[data-site="dig"] .cta-band { background: var(--deep); color: var(--deep-muted); position: relative; }
html[data-site="dig"] .cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--palette-stripe); }
html[data-site="dig"] .cta-band .btn-light { background: #fff; border-color: #fff; color: var(--ink); }
html[data-site="dig"] .cta-band .btn-light:hover { background: transparent; color: #fff; }
html[data-site="dig"] .route-fact { color: var(--ink); }
html[data-site="dig"] .hero-split { background: #fff; }
html[data-site="dig"] table.compare td:nth-child(2) { background: var(--surface); }
/* Tables inside dark sections keep a dark container so their light text stays readable. */
html[data-site="dig"] .dark .table-wrap { background: var(--deep-2); border-color: var(--deep-line); }
html[data-site="dig"] .dark th, html[data-site="dig"] .dark td { border-color: var(--deep-line); }
html[data-site="dig"] .dark td { color: #C9C9CE; }
html[data-site="dig"] .dark td:first-child { color: #fff; font-weight: 600; }
html[data-site="dig"] .dark thead th { color: var(--deep-muted); border-bottom-color: #4A4A50; }
