/* Shared site palette. Load after page styles; layout and motion remain page-owned. */
:root {
  --brand-navy: var(--site-071023,#071023);
  --brand-navy-raised: var(--site-11264a,#11264A);
  --brand-blue: var(--site-1466f5,#1466F5);
  --brand-blue-strong: var(--site-1748b5,#1748B5);
  --brand-orange: var(--site-ffa461,#FFA461);
  --brand-orange-strong: var(--site-a64016,#A64016);
  --surface-paper: var(--site-fafaf7,#FAFAF7);
  --surface-white: var(--site-ffffff,#FFFFFF);
  --surface-blue: var(--site-eef4ff,#EEF4FF);
  --surface-warm: var(--site-fff0e4,#FFF0E4);
  --text-main: var(--site-13223a,#13223A);
  --text-muted: var(--site-4c5b70,#4C5B70);
  --text-on-dark: var(--site-fff7eb,#FFF7EB);
  --text-on-dark-muted: var(--site-d5e2f5,#D5E2F5);
  --border-soft: var(--site-cdd8e8,#CDD8E8);
  --border-control: var(--site-718199,#718199);
  --state-error: var(--site-a5262d,#A5262D);
  --state-error-dark: var(--site-ffb4b4,#FFB4B4);
  --focus-light: var(--brand-blue-strong);
  --focus-dark: var(--site-bcd8ff,#BCD8FF);
  --closing-ground: linear-gradient(180deg,var(--brand-navy-raised),var(--brand-navy));
  --paper: var(--surface-paper);
  --ink: var(--text-main);
  --dark: var(--brand-navy);
  --orange: var(--brand-orange);
  --surface: var(--surface-blue);
  --body-copy: var(--text-muted);
  --muted: var(--text-muted);
  --ember: var(--brand-orange-strong);
  --peach: var(--surface-warm);
  --line: var(--border-soft);
}
body { background: var(--paper); color: var(--ink); }
::selection { background: var(--surface-blue); color: var(--ink); }
:focus-visible { outline-color: var(--focus-light); }
.muted { color: var(--body-copy); }
.light { color: var(--text-on-dark-muted); }
.orange { background: var(--orange); color: var(--brand-navy); }
.orange:hover { background: var(--site-ffb67e,#FFB67E); color: var(--brand-navy); }
.orange:active { background: var(--site-f4924d,#F4924D); }
.dark { background: var(--dark); color: var(--text-on-dark); }
.dark:hover { background: var(--brand-navy-raised); }
.button:hover, .site-header.scrolled .brand:hover { transform: none; }
.text-link, .text-link:hover { color: var(--brand-blue-strong); }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.site-header { color: var(--text-on-dark); }
.site-footer .brand::before { display: none; }
.primary-nav > a:not(.nav-cta) { color: var(--text-on-dark-muted); }
.primary-nav > a:is(:hover,[aria-current="page"]):not(.nav-cta) { color: var(--text-on-dark); }
:is(.site-header,.site-footer,.hero,.page-hero,.contact-section,.home-service-feature,.services-feature,.services-start,.about-why,.about-next,.logo-intro) :focus-visible { outline-color: var(--focus-dark); }
.site-header[data-navigation-ready] .primary-nav a:focus-visible { outline-offset: 2px; }
.hero .light-link { color: var(--text-on-dark); }
.hero { background-color: var(--dark); color: var(--text-on-dark); }
.hero-shade { background: linear-gradient(90deg,rgb(var(--site-rgb-0d0d0d,13 13 13) / 0.94902),rgb(var(--site-rgb-0d0d0d,13 13 13) / 0.788235) 24%,rgb(var(--site-rgb-0d0d0d,13 13 13) / 0.25098) 53%,transparent 75%),linear-gradient(0deg,rgb(var(--site-rgb-0d0d0d,13 13 13) / 0.85098),transparent 35%); }
.hero-description,.hero-footer p,.hero .eyebrow,.hero .scroll-label { color: var(--surface); }
.hero h1 > span { color: var(--orange); }
.work-breadcrumb { color: var(--text-on-dark-muted); }
.work-breadcrumb > span[aria-hidden] { color: var(--site-b7bfcc,#B7BFCC); }
.home-work { background: var(--paper); }
:is(.case-copy>p:not(.case-sector),.home-service p,.craft-intro,.craft-tools-note,.technology-category p,.technology-tile,.process-section .section-note,.process-step p,.faq-list details p,.faq-intro,.work-entry-summary) { color: var(--body-copy); }
.case-copy .case-sector,.service-number,.process-index,.services-supporting-copy .eyebrow { color: var(--ember); }
.case-system { background: radial-gradient(ellipse at 82% 30%,rgb(var(--site-rgb-1466f5,20 102 245) / 0.639216),transparent 63%),radial-gradient(ellipse at 92% 2%,rgb(var(--site-rgb-ffa461,255 164 97) / 0.301961),transparent 48%),var(--brand-navy-raised); }
.case-system::before { background: var(--dark); }
.system-stack::before,.system-stack::after { background: linear-gradient(135deg,rgb(var(--site-rgb-bcd8ff,188 216 255) / 0.501961),rgb(var(--site-rgb-1466f5,20 102 245) / 0.14902)); border-color:rgb(var(--site-rgb-bcd8ff,188 216 255) / 0.4); }
.system-ledger { background: linear-gradient(130deg,var(--surface-white),var(--surface-blue)); color: var(--ink); }
.system-ledger > p,.ledger-report { color: var(--body-copy); }
.ledger-report { border-color: var(--line); }
.ledger-flow span:first-child { background: var(--orange); color: var(--ink); }
.ledger-flow i { background: var(--brand-blue-strong); }
.case-art figcaption { color: var(--text-on-dark-muted); }
.case-receipt { background: radial-gradient(ellipse at 86% 66%,rgb(var(--site-rgb-ffa461,255 164 97) / 0.360784),transparent 61%),radial-gradient(ellipse at 15% 18%,rgb(var(--site-rgb-1466f5,20 102 245) / 0.219608),transparent 61%),var(--surface-blue); }
.case-receipt figcaption,.receipt-top,.receipt-bottom { color: var(--body-copy); }
.receipt { background: var(--surface-white); }
.receipt-token em { color: var(--ember); }
.ticket-shadow { background: rgb(var(--site-rgb-333842,51 56 66) / 0.14902); }
.case-link { color: var(--brand-blue-strong); border-color: currentColor; }
.case-link:hover { color: var(--ink); }
.home-service-feature { background: radial-gradient(ellipse at 96% 18%,rgb(var(--site-rgb-1466f5,20 102 245) / 0.337255),transparent 62%),radial-gradient(ellipse at 8% 98%,rgb(var(--site-rgb-ffa461,255 164 97) / 0.12549),transparent 53%),var(--brand-navy-raised); color: var(--text-on-dark); }
.home-service-feature .text-link { color: var(--orange); }
.content-landscape { background: var(--paper); }
.content-landscape .craft-section { --craft-paper:var(--paper); --craft-ink:var(--ink); --craft-edge:var(--body-copy); --craft-line:var(--line); }
.craft-art :where(path,polygon,ellipse,line) { stroke:var(--site-718199,#718199); }
.craft-art .sil { stroke:var(--body-copy); }
.craft-art .lo { stroke:var(--site-c6ceda,#C6CEDA); }
.craft-art .hi { stroke:var(--orange); }
.craft-stage:focus-visible { outline-color:var(--focus-light); }
.technology-tile:hover { background:var(--peach); color:var(--ember); }
.technology-list { border-color:var(--line); }
.content-landscape .process-section { --process-paper:var(--paper); --process-ink:var(--ink); }
.process-piece > .sil { fill:var(--site-dfe9f8,#DFE9F8);stroke:var(--site-718199,#718199); }
.process-piece > .process-cap { fill:var(--paper);stroke:var(--body-copy); }
.process-piece > .lo { stroke:var(--site-b7bfcc,#B7BFCC); }
.process-art linearGradient stop { stop-color:var(--surface); }
.process-art linearGradient stop:nth-child(2) { stop-color:var(--site-cdddf4,#CDDDF4); }
.process-art linearGradient stop:last-child { stop-color:var(--surface-white); }
.process-piece.tone-ink > .process-cap { fill:var(--body-copy);stroke:var(--body-copy); }
.process-piece.tone-muted > .process-cap { fill:var(--site-a7b0be,#A7B0BE); }
.process-piece.tone-orange-soft > .sil { fill:var(--site-f3c3b1,#F3C3B1);stroke:var(--ember); }
.process-piece.tone-orange-soft > .process-cap { fill:var(--peach);stroke:var(--orange); }
.process-art path.process-piece { stroke:var(--site-707b8c,#707B8C); }
.process-art path.tone-guide { stroke:var(--site-718fc0,#718FC0); }
.process-art path.tone-ink { stroke:var(--body-copy); }
.process-art path.tone-orange,.process-signal { stroke:var(--ember); }
.process-art text { fill:var(--body-copy); }
.process-wire > path:first-child { stroke:var(--ember); }
.process-index::after { background:var(--orange); }
.faq-list details,.faq-page .faq-list details { border-color:var(--line); }
.faq-list summary > span::before,.faq-list summary > span::after,.faq-page .faq-list summary > span::before,.faq-page .faq-list summary > span::after { background:var(--body-copy); }
.faq-list summary:focus-visible,.faq-page .faq-list summary:focus-visible { outline-color:var(--focus-light); }
.faq-list summary { min-height: 44px; }
.faq-list details[open] > summary { color:var(--brand-blue-strong); }
.faq-list details[open] > summary + * { background:var(--surface-blue); border-radius:5px; }
.faq-page .faq-answer p,.faq-contact p { color:var(--body-copy); }
.contact-section,body:has(.content-landscape) .contact-section { background:var(--closing-ground);color:var(--text-on-dark); }
.site-footer,body:has(.content-landscape) .site-footer { background:var(--brand-navy);color:var(--text-on-dark); }
.contact-section h2 > span { color:var(--peach); }
.home-focus .contact-section h2 > span { color:var(--orange); }
.contact-section h2+p,.home-focus .contact-section h2+p,.contact-links a,.contact-links a span,.contact-location,.form-note,.home-focus .contact-section .form-note,.contact-section label,.form-feedback { color:var(--surface); }
.contact-section input,.contact-section textarea { color:var(--text-on-dark);border-color:var(--site-a5b6d0,#A5B6D0); }
.contact-section :is(input,textarea):user-invalid { border-color:var(--state-error-dark); }
.contact-section input::placeholder,.contact-section textarea::placeholder,.optional { color:var(--text-on-dark-muted); }
.contact-links a:hover { color:var(--orange); }
.footer-top p,.footer-bottom,.work-footer-bottom,.work-footer-invitation,.work-footer-email,.work-footer-whatsapp,.work-footer-nav,.work-footer .back-top { color:var(--text-on-dark-muted); }
.work-footer a:hover { color:var(--orange); }
dialog { background:var(--paper);color:var(--ink);border-color:var(--line); }
dialog::backdrop { background:rgb(var(--site-rgb-071023,7 16 35) / 0.741176); }
.dialog-close { background:var(--surface); }
.dialog-inner>p:not(.eyebrow),.dialog-inner ul,.dialog-outcome p { color:var(--body-copy); }
.dialog-outcome { background:var(--surface-blue); }
html[data-logo-intro="pending"]::before { background:var(--brand-navy); }
.logo-intro-backdrop { background:radial-gradient(ellipse at 52% 45%,rgb(var(--site-rgb-1466f5,20 102 245) / 0.301961),transparent 55%),radial-gradient(ellipse at 22% 68%,rgb(var(--site-rgb-ffa461,255 164 97) / 0.101961),transparent 52%),var(--brand-navy); }
@media(max-width:719px){.process-index{background:var(--paper);border-color:var(--orange)}}
@media(forced-colors:active){
 .orange,.dark,.nav-cta { border:1px solid ButtonText; }
 .orange:hover,.dark:hover { color:ButtonText; }
 .process-art text { fill:CanvasText; }
 .process-art path.tone-orange,.process-signal { stroke:Highlight; }
}

/* Shared UI details and supporting illustrations. */
.scroll-track { background:rgb(var(--site-rgb-13223a,19 34 58) / 0.219608); }
.scroll-thumb {
  --indicator-fill: linear-gradient(90deg, var(--indicator-edge, var(--ember)), var(--indicator-face, var(--orange)) 48%, var(--indicator-face, var(--orange)));
  --indicator-reflection: linear-gradient(transparent, rgb(var(--site-rgb-fff0e4,255 240 228) / .564706), transparent);
  --indicator-near-glow: rgb(var(--site-rgb-ffa461,255 164 97) / .333333);
  --indicator-far-glow: rgb(var(--site-rgb-ffa461,255 164 97) / .14902);
  background: var(--indicator-fill);
  box-shadow: 0 0 6px var(--indicator-near-glow), 0 0 15px var(--indicator-far-glow);
}
.scroll-thumb::after { background: var(--indicator-reflection); }
.scroll-readout { background:var(--brand-navy);color:var(--text-on-dark); }
.scroll-readout::after { background:var(--orange); }
.edge-scrollbar:focus-visible .scroll-thumb { outline-color:var(--text-on-dark);box-shadow:0 0 0 5px var(--brand-blue-strong),0 0 15px rgb(var(--site-rgb-ffa461,255 164 97) / 0.333333); }
.edge-scrollbar.is-dragging .scroll-thumb { box-shadow:0 0 8px rgb(var(--site-rgb-ffa461,255 164 97) / 0.533333),0 0 20px rgb(var(--site-rgb-ffa461,255 164 97) / 0.188235); }
@media(forced-colors:active){.design-study,.services-feature,.orange,.dark{border-color:CanvasText}}

@media(forced-colors:active){
 .faq-list summary>span::before,.faq-list summary>span::after,
 .faq-page .faq-list summary>span::before,.faq-page .faq-list summary>span::after { background:ButtonText; }
}
/* Keep dark-surface text readable above the legacy page selectors. */
.home-service-feature .home-service p { color:var(--text-on-dark-muted); }
.hero .text-link:hover,.page-hero .text-link:hover,.home-service-feature .text-link:hover,.services-feature .text-link:hover { color:var(--text-on-dark); }
.home-focus .content-landscape .faq-list details p { color:var(--body-copy); }
