/* XMATIQ colour layer. Disabled by the header switch (media="not all") to return to the graphite look. */
/* =================== colour layer ===================
   Base stays graphite. Colour = one warm "sunset" gradient (CTAs, headline words)
   + one signature colour per discipline. Change the tokens below to re-skin. */
:root {
  --c-ai: #ff7a59;      /* AI & ML        coral  */
  --c-fs: #4cc9f0;      /* Full-stack     sky    */
  --c-mob: #9be564;     /* Mobile         lime   */
  --c-iot: #ffc857;     /* IoT            amber  */
  --blue: #ffb454;      /* eyebrow labels + small numbers */
  --violet: #ff6fa5;
  --grad: linear-gradient(110deg, #ffd27a 0%, #ff8a5c 55%, #ff6fa5 100%);
  --grad-text: linear-gradient(100deg, #ffe3a3 0%, #ff9a6b 50%, #ff7fb0 100%);
}
.btn.primary, .btn.primary:hover { background: linear-gradient(110deg, #ffd27a 0%, #ff8a5c 40%, #ff6fa5 70%, #ffd27a 100%); background-size: 260% 100%; }
.btn.primary { background-position: 0 0; box-shadow: 0 8px 30px -10px rgba(255,120,90,.55), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 10px 40px -8px rgba(255,120,90,.8), inset 0 1px 0 rgba(255,255,255,.55); }
.glow.a { background: radial-gradient(circle, rgba(255,122,89,.42), transparent 70%); }
.glow.b { background: radial-gradient(circle, rgba(76,201,240,.32), transparent 70%); }
.cta-card::before { background: radial-gradient(ellipse, rgba(255,122,89,.5), rgba(255,200,87,.18) 45%, transparent 70%); }
.draw { stroke: url(#gl); }
.cell.sel { background: linear-gradient(135deg, var(--c1, #ffd27a), var(--c2, #ff6fa5)); box-shadow: 0 12px 40px -10px rgba(255,120,90,.55); }
.flow-svg .fdot { fill: var(--c-mob); }

/* discipline colours: bento, services, matrix, cases */
.bn[href$="#ai"], #ai { --c: var(--c-ai); } .bn[href$="#fullstack"], #fullstack { --c: var(--c-fs); }
.bn[href$="#mobile"], #mobile { --c: var(--c-mob); } .bn[href$="#iot"], #iot { --c: var(--c-iot); }
.bn, .disc-card { --c: #ffb454; }
.bn::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%); pointer-events: none; }
.bn .n, .disc-card .n { color: var(--c); }
.bn:hover { border-color: color-mix(in srgb, var(--c) 55%, #333); }
.bn:hover .more { background: var(--c); border-color: transparent; color: #0f1012; }
.bn li:hover, .stack span:hover { border-color: var(--c); color: var(--fg); }
.bn .art .a, .disc-card .art .a, .disc-card .viz .a { stroke: var(--c); } .bn .art .f, .disc-card .art .f { fill: var(--c); }
.disc-card::before { background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.cap:hover { border-color: color-mix(in srgb, var(--c) 60%, #333); }
.cap b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 1px; }
.mx-h.row[data-r="0"], .mx-h.col[data-c="0"] { color: var(--c-ai); } .mx-h.row[data-r="1"], .mx-h.col[data-c="1"] { color: var(--c-fs); }
.mx-h.row[data-r="2"], .mx-h.col[data-c="2"] { color: var(--c-mob); } .mx-h.row[data-r="3"], .mx-h.col[data-c="3"] { color: var(--c-iot); }
.cell[data-r="0"]:not(.sel)::after { background: var(--c-ai); } .cell[data-r="1"]:not(.sel)::after { background: var(--c-fs); }
.cell[data-r="2"]:not(.sel)::after { background: var(--c-mob); } .cell[data-r="3"]:not(.sel)::after { background: var(--c-iot); }
.cell:not(.sel)::after { opacity: .7; }
.cell.sel::after { background: #0f1012; }
.mx-detail .pair { color: var(--blue); }

/* success stories + case cards */
.story:nth-child(1), .ccard[data-cat="ai"] { --c: var(--c-ai); } .story:nth-child(2), .ccard[data-cat="iot"] { --c: var(--c-iot); }
.story:nth-child(3), .ccard[data-cat="fullstack"] { --c: var(--c-fs); } .ccard[data-cat="mobile"] { --c: var(--c-mob); }
.story, .ccard { --c: #ffb454; }
.story .num.gt, .cnum b.gt { background-image: linear-gradient(100deg, #fff 0%, var(--c) 75%); }
.story::after { background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
.story:hover, .ccard:hover { border-color: color-mix(in srgb, var(--c) 55%, #333); }
.story .tag span { border-color: color-mix(in srgb, var(--c) 45%, #333); color: color-mix(in srgb, var(--c) 70%, #fff); }
.story .spark-line { stroke: var(--c); } .spark path:first-child { fill: var(--c); }
.cover .art .a { stroke: var(--c); } .cover .art .f { fill: var(--c); } .cover .cat { color: var(--c); border-color: color-mix(in srgb, var(--c) 50%, #333); }

/* small touches */
.trust-i:nth-child(1) .ic { background: rgba(255,200,87,.12); color: var(--c-iot); } .trust-i:nth-child(2) .ic { background: rgba(255,122,89,.12); color: var(--c-ai); }
.trust-i:nth-child(3) .ic { background: rgba(155,229,100,.12); color: var(--c-mob); } .trust-i:nth-child(4) .ic { background: rgba(76,201,240,.12); color: var(--c-fs); }
.step:nth-child(1):hover .dot { background: var(--c-ai); } .step:nth-child(2):hover .dot { background: var(--c-fs); } .step:nth-child(3):hover .dot { background: var(--c-mob); } .step:nth-child(4):hover .dot { background: var(--c-iot); }
.why-i:nth-child(1) .n { color: var(--c-ai); } .why-i:nth-child(2) .n { color: var(--c-fs); } .why-i:nth-child(3) .n { color: var(--c-mob); } .why-i:nth-child(4) .n { color: var(--c-iot); }
.val:nth-child(1) .n { color: var(--c-ai); } .val:nth-child(2) .n { color: var(--c-fs); } .val:nth-child(3) .n { color: var(--c-iot); }
.model:nth-child(1) li::before { color: var(--c-fs); } .model:nth-child(2) li::before { color: var(--c-ai); } .model:nth-child(3) li::before { color: var(--c-mob); }
.model.hl { background: linear-gradient(180deg, rgba(255,122,89,.16), var(--card) 70%); border-color: rgba(255,122,89,.45); }
.tcard:nth-child(1) blockquote::before { background: var(--c-ai); } .tcard:nth-child(2) blockquote::before { background: var(--c-fs); } .tcard:nth-child(3) blockquote::before { background: var(--c-mob); }
.stage { box-shadow: 0 -30px 120px -40px rgba(255,122,89,.35); } .stage::before { background: linear-gradient(90deg, transparent, #ffb454, transparent); }
.pill i { background: var(--c-mob); box-shadow: 0 0 12px var(--c-mob); }
.site-footer:hover .bigmark { -webkit-text-stroke-color: var(--c-ai); }

/* colour-layer fixes: default accent on the section (ids override it), keep card text above the glow */
.disc-card { --c: inherit; }
.disc { --c: #ffb454; }
.bn > *:not(.art):not(.more) { position: relative; z-index: 1; }

/* shared SVG gradients: warm in colour mode (HTML holds the mono defaults) */
#gl stop:nth-child(1) { stop-color: #ffd27a; } #gl stop:nth-child(2) { stop-color: #ff6fa5; }
#ar stop:first-child { stop-color: #ff8a5c; }
