/* TitanLabs V7.7 · Site-wide BLACK / MEDIUM-ORANGE section rhythm (colour system only, no layout changes).
   Every visible top-level section carries .tl-tone plus .tl-black or .tl-orange (alternating, set by v77_apply.py).
   Light cards become matching dark panels; text, borders and buttons are re-pointed through shared variables. */
:root{
  --bo-black:#101116;          /* premium graphite black */
  --bo-orange:#b85120;         /* comfortable medium burnt orange */
  --bo-panel:#1a1b22;          /* dark panel on black */
  --bo-panel-2:#22232b;        /* raised / inner panel */
  --bo-panel-o:#141519;        /* dark panel on orange */
  --bo-text:#f4f1ec;           /* primary text on both tones */
  --bo-muted:#c8c4bf;          /* secondary text on black (≥ 9:1) */
  --bo-muted-o:#fff3ea;        /* secondary text on orange (≥ 4.6:1) */
  --bo-line:rgba(255,255,255,.12);
  --bo-line-o:rgba(255,255,255,.28);
  --bo-accent:#ff9a5c;         /* orange accent text on black */
}
html,body{background:var(--bo-black)}

/* ---------- section tones ---------- */
.tl-tone{position:relative;color:var(--bo-text);
  --ink:var(--bo-text);--muted:var(--bo-muted);--paper:var(--bo-panel);--line:var(--bo-line);--lab-paper:var(--bo-text);--lab-muted:var(--bo-muted)}
.tl-tone.tl-black{background-color:var(--bo-black)!important;background-image:none!important}
.tl-tone.tl-orange{--bo-text:#fff;background-color:var(--bo-orange)!important;background-image:none!important;--muted:var(--bo-muted-o);--line:var(--bo-line-o);--paper:var(--bo-panel-o);--bo-accent:#fff}
.tl-tone.tl-orange+.tl-tone.tl-orange,.tl-tone.tl-black+.tl-tone.tl-black{box-shadow:inset 0 1px 0 var(--bo-line)}

/* text sitting directly on the section background */
.tl-tone :is(h1,h2,h3,h4,h5,h6){color:var(--bo-text)}
.tl-tone :is(p,li,dd,dt,figcaption,blockquote,label,small){color:inherit}
.tl-black .eyebrow{color:var(--bo-accent)}
.tl-orange .eyebrow{color:#fff}
.tl-tone h2 em,.tl-tone h1 em{color:var(--bo-accent)}
.tl-orange h2 em,.tl-orange h1 em{color:#ffd9bf}
.tl-tone .lead,.tl-tone .studio-head>p,.tl-tone .v61-head p{color:var(--muted)}

/* ---------- matching dark panels (cards, forms, tables that were white or cream) ---------- */
.tl-black{--bo-pnl:var(--bo-panel);--bo-pnl-2:var(--bo-panel-2);--bo-pline:rgba(255,255,255,.09)}
.tl-orange{--bo-pnl:var(--bo-panel-o);--bo-pnl-2:#1d1e24;--bo-pline:rgba(0,0,0,.28)}
.tl-tone :is(.faq details,.catalogue-item,.v75-card,.v75-feature,.cards3>.card,.v5-host-note,.v73-stats>p,
  .v61-steps>li,.v62-steps>li,.v73-card,.v53-eco-p,.v53-world,.v53-tile,.catalogue-controls,.v62-local-card,.contact-guide,form.brief,
  .split>.tool,.commerce-ribbon,.tablewrap>table,.v5-creative-chapter,.v64-kai,.v76-show,.v72-card,.v75-dialog-box,.v73-growth,.production-rail>article,.about-character-note){
  background-color:var(--bo-pnl)!important;background-image:none!important;border-color:var(--bo-pline)!important;color:var(--bo-text)}
.tl-tone :is(.v75-facts>div,.tool .notice,.tr th,table th,.v6-catalogue-more>button){background-color:var(--bo-pnl-2)!important;border-color:var(--bo-pline)!important;color:var(--bo-text)}
.tl-tone table td{border-color:var(--bo-pline)!important}

/* form controls in dark mode */
.tl-tone :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#0c0d11!important;color:var(--bo-text)!important;border-color:rgba(255,255,255,.2)!important}
.tl-tone :is(input,textarea)::placeholder{color:#9b97a1!important;opacity:1}
.tl-tone select option{background:#16171c;color:var(--bo-text)}
.tl-tone :is(input,select,textarea):focus{border-color:#ff9a5c!important;outline-color:#ff9a5c}

/* ---------- Our Work (V7.5 system) re-pointed through its own variables ---------- */
.tl-tone :is(.v75-grid,.v75-dialog){--ink:var(--bo-text);--muted:var(--bo-muted);--line:rgba(255,255,255,.12);--accent:#ff9a5c}

/* ---------- Solutions Showroom (V7.6) ---------- */
.tl-tone .v76-show{--ink:var(--bo-text);--muted:var(--bo-muted);--line:rgba(255,255,255,.1);--soft:#22232b;box-shadow:0 30px 60px -40px rgba(0,0,0,.6)}
.tl-tone .v76-show [data-div="commerce"]{--acc-ink:#5fd6e6;--acc-soft:rgba(34,184,204,.16)}
.tl-tone .v76-show [data-div="marketing"]{--acc-ink:#ff9a5c;--acc-soft:rgba(255,122,26,.16)}
.tl-tone .v76-show [data-div="creative"]{--acc-ink:#ff86b8;--acc-soft:rgba(246,75,147,.16)}
.tl-tone .v76-show [data-div="digital"]{--acc-ink:#bc9bff;--acc-soft:rgba(155,99,255,.18)}
.tl-tone .v76-show :is(.v76-board,.v76-proof,.v76-refs a,.v76-platforms b,.v76-journey,.v76-flow li,.v76-wire,.v76-opts li,.v76-picker button,.v76-need span,.v76-tag,.v76-autos li){background:#16171d;border-color:rgba(255,255,255,.1);color:var(--bo-text)}
.tl-tone .v76-show .v76-picker button[aria-pressed="true"],.tl-tone .v76-show .v76-need input:checked+span{background:var(--bo-text);border-color:var(--bo-text);color:#101116}
.tl-tone .v76-show .v76-cta{background:#ff7a1a;color:#101116}
.tl-tone .v76-show .v76-cta:hover{background:#ff9a5c}
.tl-tone .v76-show .v76-next{background:linear-gradient(90deg,var(--acc-soft),transparent 60%)}
.tl-tone .v76-show .v76-label,.tl-tone .v76-show .v76-platforms span,.tl-tone .v76-show .v76-journey-t,.tl-tone .v76-show .v76-wire-t{color:#a9a5ae}
.tl-tone .v76-show .v76-tab:not([aria-selected="true"]) :is(i,.v76-tab-n){color:#fff}
.tl-tone .v76-show :is(.v76-wire-k,.v76-wire-c,.v76-wire-l){background:#22232b;color:var(--bo-muted)}
.tl-tone .v76-show .v76-wire-k::after,.tl-tone .v76-show .v76-wire-l i{background:rgba(255,255,255,.14)}
.tl-tone .v76-show .v76-tabs{background:#9c4316;border-bottom-color:#7f360f}
.tl-tone .v76-show .v76-tab:hover{background:#8a3b12}
.tl-tone .v76-show .v76-tab[aria-selected="true"]{background:var(--bo-pnl);color:var(--bo-text)}
.tl-tone .v76-show .v76-tab[aria-selected="true"] i{color:#a9a5ae}
.tl-tone .v76-show .v76-tab[aria-selected="true"] .v76-tab-n{color:var(--acc-ink)}
.tl-tone .v76-show .v76-receive svg{background:var(--acc-soft);color:var(--acc-ink)}
.tl-tone .v76-show .v76-fin{background:#f4f1ec}
.tl-tone .v76-show .v76-ref-logo--liga,.tl-tone .v76-show .v76-ref-logo:not([class*="--"]){background:#fff}
@media (max-width:760px){
  .tl-tone .v76-show .v76-acc button{background:#9c4316}
  .tl-tone .v76-show .v76-acc button[aria-expanded="true"]{background:var(--acc-soft);color:var(--bo-text)}
  .tl-tone .v76-show .v76-acc button[aria-expanded="true"] .v76-chev{border-color:var(--bo-text)}
  .tl-tone .v76-show .v76-acc button[aria-expanded="true"] i{color:#a9a5ae}
}

/* ---------- places that used the old dark --ink as a BACKGROUND: keep them dark/inverted ---------- */
.tl-tone :is(.channel-options button[aria-pressed=true],.filter button[aria-pressed=true]){background:var(--bo-text)!important;color:#101116!important;border-color:var(--bo-text)!important}
.tl-tone :is(.channel-options button,.filter button,.social-tabs button){color:var(--bo-text);border-color:rgba(255,255,255,.3)}
.tl-tone :is(.art-label,.ticker,.preview){background:#22232b}
.tl-tone .hero-note:before{background:currentColor}
.tl-tone .v75-cta:hover{background:var(--bo-text);color:#101116}
.tl-tone .v76-ref-logo--text{background:#2a2b33}

/* ---------- orange-section text: white family only (#B85120 needs ≥ #fff3ea for 4.5:1) ---------- */
.tl-orange :is(.eyebrow,.v76-head a.v76-all,.discipline-line span,.buyer-journey span,.buyer-journey i,.innovation-list span,
  .v73-foot-label,.social-label,.live-kicker,.campaign-frame>span,.campaign-footnote,.device-label,.route-stage>b,.head>p,.command-copy .textlink,.v5-kicker){color:#fff!important}
.tl-orange .v76-head h2 em,.tl-orange .statement em{color:#ffe0c9}

/* ---------- accents on dark panels / black sections: lift dark accents to readable tints ---------- */
.tl-tone :is(.catalogue-item>a,.v5-chapter-copy .v5-kicker,.v5-chapter-cta,.v61-case-tag,.v62-local-card>b,.contact-guide button,.contact-grid button.textlink){color:var(--bo-accent)!important}
.tl-tone :is(.faq details p,.v5-host-note span,.v53-cap,.v73-stats span,.v73-stats p>span){color:var(--bo-muted)!important}
.tl-tone .v64-select-label{color:var(--bo-text)}
.tl-tone .v73-card--fellera{--accent:#ff8fb8}
.tl-tone .v73-card--lazada{--accent:#ff9a5c}
.tl-tone .v73-card--tambadana{--accent:#c2b2ff}
.tl-tone .v73-stats b,.tl-tone .v73-stats p>b{color:#ff9ab8}
.tl-tone .v73-also a{color:#c2b2ff}
.tl-tone .v73-growth :is(.v73-lede,.v73-note,p){color:var(--bo-muted)}
.tl-tone .v73-growth .v73-kicker{color:#ff9ab8}
.tl-tone .v73-growth :is(h3,h4,b,strong){color:var(--bo-text)}
.tl-tone .v53-jstrip li{color:var(--bo-text)}
.tl-tone .v53-jstrip li:last-child{background:#c2410c!important;color:#fff}
.tl-orange p>b{color:#fff}
.tl-tone [class*="nana"] span,.tl-tone .v62-nana span,.tl-tone .contact-guide span{color:var(--bo-accent)}
/* light mockups (device, browser, logo tiles) keep their own dark text */
.tl-tone .device :is(h1,h2,h3,h4,h5,h6){color:#19181c}

.tl-orange .v53-journey b{color:#fff}
.tl-black .v53-journey b{color:var(--bo-accent)}
.tl-tone .commerce-ribbon span{color:var(--bo-accent)}
/* logo tiles stay white so every brand logo keeps its own colours */
.tl-tone .v62-preview>li{background:#fff;border-color:transparent}
.tl-orange article.value::before{color:#ffe0c9}
.tl-tone .steps .step::before{background-color:#c2410c}
.tl-tone .command-deck{background-color:var(--bo-pnl)!important;border-color:var(--bo-pline)!important}
/* filter chips: outline on dark, inverted when selected */
.tl-tone :is([data-catalogue-division],.v62-filters button){background:transparent!important;color:var(--bo-text)!important;border:1px solid rgba(255,255,255,.34)!important}
.tl-tone :is([data-catalogue-division],.v62-filters button)[aria-pressed="true"]{background:var(--bo-text)!important;color:#101116!important;border-color:var(--bo-text)!important}
/* orange buttons that sit directly on an orange section become graphite so they stay distinct */
.tl-orange .innovation-copy .btn.orange{background:var(--bo-black)!important;color:#fff!important;border-color:var(--bo-black)!important}
/* creative print chapter: warm dark backdrop like the other chapters, so its light caption stays readable */
.tl-tone .v5-creative-print .v5-chapter-art{background-image:linear-gradient(135deg,#3b2a20,#1f1916)!important}
.tl-tone .v73-fin-badge{background:#6646e6}
.tl-tone .sc-live{background:#c9256f}
.tl-tone .v76-show .v76-step-n{background:#16171d}
