/* ============================================================================
   Light / dark theme (pilot: homepage and About).
   html[data-theme="dark"]  = everything dark   (the light grey sections turn dark)
   html[data-theme="light"] = everything light  (the dark sections turn light)
   The hero photo and the full-screen menu stay dark in both modes.
   Colours here use !important only where the page itself sets colours inline.
   ============================================================================ */

/* ---- Toggle button (both modes) ---- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
html[data-theme="dark"] .theme-toggle { background: rgba(18, 18, 20, 0.82); color: #f4f4f0; border: 1px solid rgba(255, 255, 255, 0.3); }
html[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, 0.92); color: #141414; border: 1px solid rgba(0, 0, 0, 0.22); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.theme-toggle:hover { transform: rotate(14deg); }
.theme-toggle:focus-visible { outline: 2px solid #FF9A3D; outline-offset: 4px; }
@media (max-width: 480px) { .theme-toggle { width: 40px; height: 40px; } .header-actions { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }

/* ---- Homepage ambient glow and rising dots (js/ambient.js): statement, services and FAQ sections ---- */
.ambient-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#faq, .s8-sticky-wrap, .sec9-sticky-wrap { isolation: isolate; }
#faq { position: relative; }
.ambient-dust--glow { z-index: -1; }
/* The glow fades to nothing before the top and bottom edges, so neighbouring sections join without a visible step. */
html[data-theme="dark"] .ambient-dust { background: radial-gradient(ellipse 62% 42% at 50% 50%, rgba(255, 154, 61, 0.10) 0%, rgba(255, 154, 61, 0.04) 55%, rgba(255, 154, 61, 0) 100%); }
html[data-theme="light"] .ambient-dust { background: radial-gradient(ellipse 62% 42% at 50% 50%, rgba(255, 140, 40, 0.16) 0%, rgba(255, 140, 40, 0.06) 55%, rgba(255, 140, 40, 0) 100%); }

/* ============================ LIGHT MODE ============================ */
html[data-theme="light"], html[data-theme="light"] body { background-color: #f4f2ee; color: #141414; }
html[data-theme="light"] .main-wrapper, html[data-theme="light"] .hero-track { background-color: #f4f2ee; }

/* Section 2: statement, numbers, marquee */
html[data-theme="light"] #s2 { background: linear-gradient(rgba(244, 242, 238, 0), #f4f2ee 40%), #f4f2ee; }
html[data-theme="light"] .statement-text, html[data-theme="light"] .body-text, html[data-theme="light"] .massive-text { color: #141414; }
html[data-theme="light"] .small-caps { color: #6b6b6b; }
html[data-theme="light"] .massive-text .plus { color: #c4bfb5; }
html[data-theme="light"] .magnetic-btn-s2 { border-color: #141414; color: #141414; }
html[data-theme="light"] .magnetic-btn-s2:hover { background: #141414; color: #f4f2ee; }
html[data-theme="light"] .spinning-emblem { filter: invert(1); }
html[data-theme="light"] .bg-marquee { color: rgba(0, 0, 0, 0.05); }

/* Section 3: challenge cards */
html[data-theme="light"] #s3-master { background: #f4f2ee !important; }
html[data-theme="light"] .card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 30px 70px rgba(60, 40, 10, 0.14), inset 0 1px 1px #ffffff; }
html[data-theme="light"] .card::before, html[data-theme="light"] .card::after { display: none; }
html[data-theme="light"] .card-number { color: #8a8a8a; }
html[data-theme="light"] .card h3 { color: #141414; }
html[data-theme="light"] .card p { color: rgba(20, 20, 20, 0.74); }

/* Section 6: strategy flip cards (the coloured backs stay as they are) */
html[data-theme="light"] #s6, html[data-theme="light"] .s4-unified-section { background: #f4f2ee !important; }
html[data-theme="light"] .s4-intro h2, html[data-theme="light"] .s4-intro p { color: #141414; }
html[data-theme="light"] .s4-unified-window { background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.015)); border-color: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .s4-unified-window span { color: #141414; }
html[data-theme="light"] .s4-sweep { background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55), transparent); }
@media (max-width: 768px) {
    html[data-theme="light"] .s4-unified-window { background: rgba(0, 0, 0, 0.05) !important; }
    html[data-theme="light"] .s4-unified-window span::after { color: #141414; }
}

/* Section 7: services */
html[data-theme="light"] #s7 { background: #f4f2ee !important; box-shadow: none !important; }
html[data-theme="light"] .s7-main-heading { color: #141414 !important; }
/* Glass service cards: a see-through tint, a bright top-left edge, soft inner shading, and a blur that picks up the glow and dots behind */
html[data-theme="light"] .service-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.58) 100%); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.07), inset 0 1px 1px #ffffff, inset 0 -14px 30px rgba(210, 150, 80, 0.12), 0 22px 50px rgba(80, 50, 10, 0.13); }
html[data-theme="light"] .service-card:hover { box-shadow: 0 0 0 1px rgba(196, 90, 0, 0.25), inset 0 1px 1px #ffffff, inset 0 -14px 30px rgba(210, 150, 80, 0.12), 0 16px 40px rgba(196, 90, 0, 0.22); }
html[data-theme="dark"] .service-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.05) 100%); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -14px 30px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.4); }
/* The same glass on the challenge cards (#s3-master), the key-facts centre card and the circle number; photo cards get the glass edge */
html[data-theme="dark"] #s3-master .card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.05) 100%); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -14px 30px rgba(0, 0, 0, 0.35), 0 40px 90px rgba(0, 0, 0, 0.5); }
html[data-theme="light"] #s3-master .card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.58) 100%); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.07), inset 0 1px 1px #ffffff, inset 0 -14px 30px rgba(210, 150, 80, 0.12), 0 30px 70px rgba(80, 50, 10, 0.16); }
html[data-theme="dark"] .kf-card-center { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.05) 100%); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -14px 30px rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.45); }
html[data-theme="light"] .kf-card-center { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.58) 100%); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.07), inset 0 1px 1px #ffffff, inset 0 -14px 30px rgba(210, 150, 80, 0.12), 0 24px 50px rgba(80, 50, 10, 0.14); }
html[data-theme="dark"] .kf-circle-stat { background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -10px 24px rgba(0, 0, 0, 0.3); }
html[data-theme="light"] .kf-circle-stat { background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)); border: 1px solid #ffffff; box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.06), inset 0 -10px 24px rgba(210, 150, 80, 0.12), 0 12px 30px rgba(80, 50, 10, 0.12); }
.kf-card-left, .kf-card-right { border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 30px 60px rgba(0, 0, 0, 0.22); }
html[data-theme="dark"] .service-card:hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32), inset 0 -14px 30px rgba(0, 0, 0, 0.3), 0 14px 38px rgba(255, 154, 61, 0.24); }
html[data-theme="light"] .service-card .card-num { color: #C45A00; }
html[data-theme="light"] .service-card .card-title { color: #141414; }
html[data-theme="light"] .service-card .card-desc { color: #55565c; }
html[data-theme="light"] .bg-swirl { display: none; }
html[data-theme="light"] .border-glow { background: conic-gradient(from 0deg, transparent 70%, rgba(196, 90, 0, 0.5) 90%, #C45A00 100%); }

/* FAQ */
html[data-theme="light"] .faq-section { --faq-accent: #C45A00; --faq-line: rgba(0, 0, 0, 0.14); background: #f4f2ee; color: #141414; }
html[data-theme="light"] .faq-eyebrow { color: #666666; }
html[data-theme="light"] .faq-title, html[data-theme="light"] .faq-q { color: #141414; }
html[data-theme="light"] .faq-intro { color: #4d4d4d; }
html[data-theme="light"] .faq-a { color: #3c3c42; }
html[data-theme="light"] .faq-a p { color: #3c3c42; }
html[data-theme="light"] .faq-intro a:hover, html[data-theme="light"] .faq-a a:hover { color: #141414; border-color: #141414; }
html[data-theme="light"] .faq-icon { border-color: rgba(0, 0, 0, 0.28); }
html[data-theme="light"] .faq-icon::before, html[data-theme="light"] .faq-icon::after { background: #141414; }

/* Footer */
html[data-theme="light"] .footer-section { background-color: #f4f2ee; color: #141414; }
html[data-theme="light"] #footer-smoke-canvas { filter: invert(1); opacity: 0.18; }
html[data-theme="light"] .col-header { color: #777777; }
html[data-theme="light"] .footer-social-link, html[data-theme="light"] .footer-nav__link, html[data-theme="light"] .footer-partner__link { color: #141414; }
html[data-theme="light"] .footer-partner__link { border-bottom-color: rgba(0, 0, 0, 0.35); }
html[data-theme="light"] .footer-nav__link:hover, html[data-theme="light"] .footer-partner__link:hover { color: #C45A00; border-color: #C45A00; }
html[data-theme="light"] .footer-brand__word { background: linear-gradient(100deg, #141414 0%, #141414 38%, #C45A00 48%, #e0a36b 52%, #141414 62%, #141414 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .footer-brand__tag { color: #6b6b6b; }
html[data-theme="light"] .footer-section a { color: inherit; }
html[data-theme="light"] .footer-section a.footer-magnetic { color: #141414 !important; }
html[data-theme="light"] .footer-section a.footer-magnetic:hover { color: #C45A00 !important; }

/* ---- About page, light mode ----
   White page with a soft orange glow; the orange dots rise from the bottom just like in dark mode (the dust canvas is
   drawn in a deeper orange in js/about.js). The "standards" section is white too (its photos are washed out to a faint tint).
   FAQ, closing and footer follow the shared rules above. */
html[data-theme="light"] #master-portfolio-container { background-color: #ffffff; background-image: none; }
html[data-theme="light"] .cl { background: #f4f2ee; border-top-color: rgba(0, 0, 0, 0.14); }
html[data-theme="light"] .light-bg-layer { background: transparent; }
html[data-theme="light"] .intro-glow { background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 140, 40, 0.14) 0%, rgba(255, 140, 40, 0) 100%); }
html[data-theme="dark"] .intro-glow { background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 154, 61, 0.07) 0%, rgba(255, 154, 61, 0) 100%); }
html[data-theme="light"] .glow-wave { background: radial-gradient(circle, rgba(255, 140, 40, 0.22) 0%, rgba(255, 140, 40, 0.08) 40%, transparent 70%); }
/* journey timeline */
html[data-theme="light"] .service-name h2 { color: #141414; }
html[data-theme="light"] .subheading { color: #4d4d4d; }
html[data-theme="light"] .tag { color: #141414; background: rgba(255, 255, 255, 0.85); border-color: rgba(196, 90, 0, 0.45); box-shadow: 0 12px 26px rgba(80, 50, 10, 0.16); }
html[data-theme="light"] .journey-master .img { border-color: rgba(0, 0, 0, 0.12); box-shadow: 0 26px 50px rgba(80, 50, 10, 0.28); }
html[data-theme="light"] #global-scroll .scroll-mouse-line { background-color: rgba(0, 0, 0, 0.14) !important; }
html[data-theme="light"] #global-progress .progress-line { background: rgba(0, 0, 0, 0.14); }
html[data-theme="light"] #global-progress .dot { background: #ffffff; border-color: rgba(0, 0, 0, 0.28); }
html[data-theme="light"] #global-progress .dot.active { background: #FF9A3D; border-color: #FF9A3D; }
/* "What I do" and "My philosophy" */
html[data-theme="light"] .custom-gsap-wrapper { color: #141414; }
html[data-theme="light"] .custom-gsap-wrapper .animate-text { color: rgba(20, 20, 20, 0.16); }
html[data-theme="light"] .custom-gsap-wrapper .animate-text::before { color: #141414; }
html[data-theme="light"] .custom-gsap-wrapper .services-header img { filter: drop-shadow(0 10px 20px rgba(80, 50, 10, 0.12)); }

/* ============================ DARK MODE ============================ */
html[data-theme="dark"], html[data-theme="dark"] body { background-color: #030303; color: #e6e6e6; }

/* Section 5: selected client work (horizontal strip) */
html[data-theme="dark"] #s5 { background-color: #0b0b0d !important; color: #ececec !important; }
html[data-theme="dark"] .project-info p { color: #a8a8ae; }

/* Section 4: key facts */
html[data-theme="dark"] #s4 { background-color: #0b0b0d !important; color: #ececec !important; }
html[data-theme="dark"] .kf-section-header p { color: #a8a8ae; }
html[data-theme="dark"] .kf-card { background-color: #17171a; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .kf-card-center { background-color: #1a1a1e; border-color: #2c2c31; }
html[data-theme="dark"] .kf-card-center .kf-card-title { color: #9a9aa0; }
html[data-theme="dark"] .kf-circle-stat { background-color: #26262b; color: #f2f2f2; box-shadow: none; }
html[data-theme="dark"] .kf-card-center p { color: #b4b4ba; }

/* Section 8: client stories */
html[data-theme="dark"] #s8-client-stories-master { background-color: #0b0b0d; --s8-bg-color: #0b0b0d; --s8-border-color: #34343a; --s8-text-main: #f0f0f0; --s8-text-muted: #9c9ca2; }
html[data-theme="dark"] .s8-controls button:hover { background: rgba(255, 255, 255, 0.07); }

/* ---- About page, dark mode: the light intro and "My journey" screens turn dark ---- */
html[data-theme="dark"] .scroll-container { background-color: transparent; color: #ececec; }
html[data-theme="dark"] .noise-overlay { display: none; }
html[data-theme="dark"] .marquee span.plus { color: #464a53; }
html[data-theme="dark"] .experience-badge { border-color: #2c2f38; }
html[data-theme="dark"] .about-desc p, html[data-theme="dark"] .intro-text-2 p { color: #b9b9bf; }
html[data-theme="dark"] .connect-link { color: #f2f2f2; border-color: #f2f2f2; }
html[data-theme="dark"] .connect-link:hover { background-color: #f2f2f2; color: #111111; }
html[data-theme="dark"] .connect-link--ghost { border-color: rgba(242, 242, 242, 0.35); }
html[data-theme="dark"] .light-bg-layer { background: transparent; }
html[data-theme="dark"] .intro-text-1 h2, html[data-theme="dark"] .intro-text-2 h2 { color: #f2f2f2; }
#global-scroll .scroll-text { color: #8d8d8d; }
html[data-theme="dark"] #global-scroll .scroll-mouse-line { background-color: rgba(255, 255, 255, 0.15); }
#global-scroll .scroll-mouse-inner { background-color: #8d8d8d; }

/* Section 9: software screens */
html[data-theme="dark"] #s9-sec9-master, html[data-theme="dark"] .sec9-sticky-wrap { background-color: #0b0b0d; color: #dcdce0; }
html[data-theme="dark"] .bg-text { color: #8a8a90; }
html[data-theme="dark"] .center-text { color: #c4c4c9; }
html[data-theme="dark"] .corner-text-left { color: #9c9ca2; }
@media (max-width: 1199px), (hover: none) and (pointer: coarse) {
    html[data-theme="dark"] .sec9-mobile { color: #ececec; }
    html[data-theme="dark"] .sec9-m__kicker { color: #FF9A3D; }
    html[data-theme="dark"] .sec9-m__title { color: #f2f2f2; }
    html[data-theme="dark"] .sec9-m__title em { color: #FF9A3D; }
    html[data-theme="dark"] .sec9-m__grid figure { background: #1c1c20; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9); }
    html[data-theme="dark"] .sec9-m__note { color: #a8a8ae; }
}

/* ---- One base colour per mode, so neighbouring sections join without a visible step ----
   light: #f4f2ee everywhere (the grey #e6e6e6 sections included); dark: #0b0b0d from strategy to the footer */
html[data-theme="light"] #s5, html[data-theme="light"] #s4 { background-color: #f4f2ee !important; }
html[data-theme="light"] #s8-client-stories-master { background-color: #f4f2ee; --s8-bg-color: #f4f2ee; }
html[data-theme="light"] #s9-sec9-master, html[data-theme="light"] .sec9-sticky-wrap { background-color: #f4f2ee; }
html[data-theme="dark"] #s6, html[data-theme="dark"] .s4-unified-section { background: #0b0b0d !important; }
html[data-theme="dark"] #s7 { background: #0b0b0d !important; box-shadow: none !important; }
html[data-theme="dark"] .main-wrapper .faq-section { background: #0b0b0d; }
html[data-theme="dark"] body:has(.main-wrapper) .footer-section { background-color: #0b0b0d; }

/* ---- Strategy cards: no shadows at all, inside or outside (the page script animates an inline shadow, so !important) ---- */
html[data-theme] #s6 .s4-card, html[data-theme] #s6 .s4-card-back, html[data-theme] #s6 .s4-card-front { box-shadow: none !important; }

/* ---- About page: closing band, FAQ and footer are pure white in light mode; closing text was white on white ---- */
html[data-theme="light"] body:has(#master-portfolio-container) .faq-section,
html[data-theme="light"] body:has(#master-portfolio-container) .cl,
html[data-theme="light"] body:has(#master-portfolio-container) .footer-section { background: #ffffff; background-color: #ffffff; }
html[data-theme="light"] .cl { color: #141414; }
html[data-theme="light"] .cl__title { color: #141414; }
html[data-theme="light"] .cl__intro p { color: #4d4d4d; }
html[data-theme="light"] .cl__curve path { stroke: rgba(0, 0, 0, 0.3); }

/* ---- About page cards: glass, and no shadows (same as the homepage strategy cards) ---- */
html[data-theme="dark"] .experience-badge { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.05) 100%); border: 1px solid rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28); }
html[data-theme="light"] .experience-badge { background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.65) 100%); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.08), inset 0 1px 1px #ffffff; }
html[data-theme] .custom-telescope-wrapper .spotlight-card, html[data-theme] .journey-master .img, html[data-theme] .tag { box-shadow: none; }

/* ---- About "A strategic approach" and "The standard": white in light mode, with the same glow and dots ---- */
html[data-theme="light"] #ambientDust { z-index: 11; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 140, 40, 0.07) 0%, rgba(255, 140, 40, 0) 100%); }
html[data-theme="light"] .custom-telescope-wrapper { background: transparent; color: #141414; }
html[data-theme="light"] .custom-telescope-wrapper .main-title { color: #141414; text-shadow: none; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-intro-text p { color: #141414; text-shadow: none; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-titles h2 { color: #141414; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-header { color: #141414; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-bg-img img { filter: grayscale(0.15) brightness(1.2) contrast(0.92) saturate(0.9); }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-bg-img::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.16); z-index: 2; pointer-events: none; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-titles-container::before, html[data-theme="light"] .custom-telescope-wrapper .spotlight-titles-container::after { background: rgba(0, 0, 0, 0.28); box-shadow: none; }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 100%); border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.09); }
html[data-theme="light"] .custom-telescope-wrapper .spotlight-card::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 50%); }
html[data-theme="light"] .custom-telescope-wrapper .card-heading { color: #141414; }
html[data-theme="light"] .custom-telescope-wrapper .card-desc { color: #4d4d4d; }
html[data-theme="light"] .custom-telescope-wrapper .card-bullets li { color: #2d2d2d; }
html[data-theme="light"] .custom-telescope-wrapper .card-bullets li::before { box-shadow: none; }
/* About second section (intro, marquee, about text): glow like the homepage (dots come from ambient.js) */
/* About: the floating dust layer is switched off from the FAQ down (set by about.js), however the visitor got there */
html.dust-off #ambientDust { visibility: hidden !important; }
/* About "My journey": the glow waves grow to fill the whole section and were cut off at its top and bottom edge, which drew a hard line against the section above. Fade them out toward both edges. */
.intro-glow { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%); }
/* Light: the orange word in "A STRATEGIC approach" is set inline in the page; #FF9A3D on white is too pale (2.1:1), so use the deeper orange */
html[data-theme="light"] .custom-telescope-wrapper .main-title span[style*="255, 154, 61"], html[data-theme="light"] .custom-telescope-wrapper .main-title span[style*="FF9A3D"] { color: #C45A00 !important; }
/* About closing band, light: closing.js darkens the stage to #1c130b while the orange tile grows. On white that made a grey/brown patch and dark text on dark, so skip the darkening in light mode. */
html[data-theme="light"] .cl__stage { background-color: transparent !important; }

/* ============================ SERVICES PAGE ============================
   Dark = the page as it was. Light = #f4f2ee base like the homepage; the hero photo stays dark (like the homepage hero);
   the pinned service cards keep their photo under a light veil. Colours are mostly set through the .svc variables. */
html[data-theme="light"] .svc { --accent: #C45A00; --bg: #ebe8e2; --bg-soft: #f2efe9; --fg: #141414; --muted: #5a5a60; --line: rgba(0, 0, 0, 0.14); }
html[data-theme="light"] .svc :where(em) { color: #C45A00; }
html[data-theme="light"] .svc .num-label { color: #141414; }
html[data-theme="light"] .svc .num-val { text-shadow: none; }
html[data-theme="light"] .svc .showcase { background: #ebe8e2 !important; }
/* service cards */
html[data-theme="light"] .svc .card { --fg: #f4f4f0; --muted: #b4b6bd; --line: rgba(255, 255, 255, 0.18); --accent: #FF9A3D; background: linear-gradient(135deg, #17171a 0%, #101012 50%, #0a0a0b 100%); color: #f4f4f0; }
html[data-theme="light"] .svc .card :where(em) { color: #FF9A3D; }
html[data-theme="light"] .svc .card__img { filter: saturate(0.95) brightness(0.9); }
html[data-theme="light"] .svc .card__ui::before { background: linear-gradient(90deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.68) 45%, rgba(5, 5, 5, 0.58) 100%), linear-gradient(0deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 55%), linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0) 26%); }
html[data-theme="light"] .svc .card__shade { background: #ebe8e2; }
html[data-theme="light"] .svc .card .price-box { background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(255, 255, 255, 0.06) 100%); border-color: rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25); }
html[data-theme="light"] .svc .card .price-box__usd { color: #fff; }
html[data-theme="light"] .svc .card .price-box__inr, html[data-theme="light"] .svc .card .price-box__note { color: #d2d3d8; }
html[data-theme="light"] .svc .card .price-box__note + *, html[data-theme="light"] .svc .card__label { color: #c9cad0; }
html[data-theme="light"] .svc .card__progress span { box-shadow: none; }/* price boxes: glass in both modes */
html[data-theme="dark"] .svc .price-box { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.05) 100%); border-color: rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25); }
html[data-theme="light"] .svc .price-box { background: linear-gradient(135deg, rgba(247, 245, 240, 0.8) 0%, rgba(247, 245, 240, 0.42) 100%); border-color: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8); }
html[data-theme="light"] .svc .price-box__usd { color: #141414; }
html[data-theme="light"] .svc .price-box__inr { color: #4d4d53; }
html[data-theme="light"] .svc .price-box__note { color: #5a5a60; }
@media (hover: none) and (pointer: coarse) {
    html[data-theme="light"] .svc .price-box { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244, 241, 236, 0.94); }
    html[data-theme="dark"] .svc .price-box { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 12, 14, 0.82); }
}
/* statement, industries */
html[data-theme="light"] .svc .statement__text, html[data-theme="light"] .svc .ind__title, html[data-theme="light"] .svc .ind__name { color: #141414; }
html[data-theme="light"] .svc .ind__media { background: #e8e5df; }
html[data-theme="light"] .svc .ind__arrow { border-color: rgba(0, 0, 0, 0.25); color: #141414; }
html[data-theme="light"] .svc .ind__tile:hover .ind__arrow { color: #ffffff; }
html[data-theme="light"] .svc .ind__tile:hover .ind__name { color: #C45A00; }
/* "why" panels */
html[data-theme="light"] .svc .layer__title { color: #141414; }
html[data-theme="light"] .svc .layer__tags li { color: #3c3c42; }
html[data-theme="light"] .svc .layer__desc { color: #4d4d53; }
html[data-theme="light"] .svc .pager span { border-color: rgba(0, 0, 0, 0.25); color: rgba(20, 20, 20, 0.66); }
html[data-theme="light"] .svc .pager .is-active { color: #ffffff; }
/* process */
html[data-theme="light"] .svc .process { background: radial-gradient(50% 45% at 10% 100%, rgba(255, 140, 40, 0.12), rgba(255, 140, 40, 0) 70%), #ebe8e2; }
html[data-theme="light"] .svc .process__title, html[data-theme="light"] .svc .step h3 { color: #141414; }
html[data-theme="light"] .svc .process__sub { color: #4d4d53; }
html[data-theme="light"] .svc .process__cta:hover, html[data-theme="light"] .svc .process__cta:focus-visible { color: #ffffff; }
html[data-theme="light"] .svc .process__cta--ghost { border-color: rgba(0, 0, 0, 0.3); color: #141414; }
html[data-theme="light"] .svc .process__cta--ghost:hover, html[data-theme="light"] .svc .process__cta--ghost:focus-visible { background: #141414; border-color: #141414; color: #ffffff; }
html[data-theme="light"] .svc .node::before, html[data-theme="light"] .svc .node::after { background: rgba(20, 20, 20, 0.28); }
html[data-theme="light"] .svc .node.is-active::before, html[data-theme="light"] .svc .node.is-active::after { background: #C45A00; }
html[data-theme="light"] .svc .process__line { filter: none; }
/* the "who we are" section after the hero (the hero photo stays dark) */
html[data-theme="light"] .op-story { --op-fg: #141414; --op-muted: #5a5a60; --op-line: rgba(0, 0, 0, 0.2); --op-accent: #C45A00; background: #ebe8e2; }
html[data-theme="light"] .op-story__lead { color: #141414; }
html.op-motion[data-theme="light"] .op-story__lead .op-word { color: rgba(20, 20, 20, 0.38); }
html.op-motion[data-theme="light"] .op-story__lead .op-word.is-lit { color: #141414; }
html.op-motion[data-theme="light"] .op-story__lead strong .op-word.is-lit { color: #C45A00; }
html[data-theme="light"] .op-pic a { background: #e8e5df; }
html[data-theme="light"] .op-pic figcaption b { color: #141414; }
/* service pages: one soft base (#ebe8e2) for the whole page, including the shared FAQ, closing band and footer */
html[data-theme="light"] body:has(.svc, .pg--service) { background-color: #ebe8e2; }
html[data-theme="light"] body:has(.svc, .pg--service) :is(.faq-section, .cl, .footer-section) { background: #ebe8e2; background-color: #ebe8e2; }
/* services: glow and dots behind the story, statement, industries and process sections (ambient.js) need a stacking context */
.op-story, .statement, .ind, .process { isolation: isolate; }

/* ============================ DETAIL PAGES (.pg, pages.css) ============================ */
/* Dark is the default in pages.css. Light uses the same soft base as the services hub (#ebe8e2). */
html[data-theme="light"] .pg { --bg: #ebe8e2; --bg-soft: #e3e0da; --fg: #141414; --muted: #5a5a60; --line: rgba(0, 0, 0, 0.14); --accent: #C45A00; background: #ebe8e2; color: #141414; }
html[data-theme="light"] body:has(.pg) { background-color: #ebe8e2; }
html[data-theme="light"] body:has(.pg) :is(.faq-section, .cl, .footer-section) { background: #ebe8e2; background-color: #ebe8e2; }
html[data-theme="light"] .pg-hero { background: radial-gradient(60% 55% at 88% 0%, rgba(196, 90, 0, 0.1), rgba(196, 90, 0, 0) 70%), #ebe8e2; }
html[data-theme="light"] .pg :is(.pg-title, .pg-h2, .pg-rows h3, .pg-steps h3, .pg-card h3, .pg-tiles h3, .pg-topics h3, .pg-quote blockquote p, .pg-flow, .pg-group a, .pg-rates a, .pg-pager strong, .pg-cta__title, .pg-feature__title, .pg-quote figcaption b, .pg-lead strong, .pg--article .pg-body strong) { color: #141414; }
html[data-theme="light"] .pg :is(.pg-lead, .pg-body > p, .pg-head p, .pg-cta p:not(.pg-eyebrow), .pg-feature__text, .pg-hero__side p) { color: #3a3a40; }
html[data-theme="light"] .pg :is(.pg-rows p, .pg-steps p, .pg-tiles p, .pg-card p, .pg-topics p, .pg-overview dd, .pg-figures dd, .pg-facts dd) { color: #45454b; }
html[data-theme="light"] .pg :is(.pg-list li, .pg-signs li, .pg-tags li, .pg-tags a) { color: #1d1d21; }
html[data-theme="light"] .pg-signs li, html[data-theme="light"] .pg-card--text, html[data-theme="light"] .pg-group, html[data-theme="light"] .pg-rates, html[data-theme="light"] .pg-tiles li { background: rgba(255, 255, 255, 0.35); border-color: rgba(0, 0, 0, 0.14); }
html[data-theme="light"] .pg-card--text:hover { background: rgba(196, 90, 0, 0.06); border-color: var(--accent); }
html[data-theme="light"] .pg :is(.pg-tags li, .pg-tags a) { border-color: rgba(0, 0, 0, 0.25); }
html[data-theme="light"] .pg-tags li:first-child:not(:has(a)) { border-color: var(--accent); color: var(--accent); }
html[data-theme="light"] .pg-signs li::before { background-color: #C45A00; }
html[data-theme="light"] .pg-eyebrow::before { background: #C45A00; box-shadow: none; }
html[data-theme="light"] .pg-btn { border-color: rgba(0, 0, 0, 0.3); color: #141414; }
html[data-theme="light"] .pg-btn:hover, html[data-theme="light"] .pg-btn:focus-visible { border-color: #C45A00; color: #C45A00; }
html[data-theme="light"] .pg-btn--primary { background: #C45A00; border-color: #C45A00; color: #fff; box-shadow: none; }
html[data-theme="light"] .pg-btn--primary:hover, html[data-theme="light"] .pg-btn--primary:focus-visible { background: #141414; border-color: #141414; color: #fff; }
html[data-theme="light"] .pg-card__arrow, html[data-theme="light"] .pg-pager .pg-card__arrow { border-color: rgba(0, 0, 0, 0.28); color: #141414; }
html[data-theme="light"] .pg-card:hover .pg-card__arrow, html[data-theme="light"] .pg-pager__link:hover .pg-card__arrow, html[data-theme="light"] .pg-pager__link:focus-visible .pg-card__arrow { background: #C45A00; border-color: #C45A00; color: #fff; }
html[data-theme="light"] .pg-card__media, html[data-theme="light"] .pg-hero__media img, html[data-theme="light"] .pg-feature__media { background: #d8d5cf; }
html[data-theme="light"] .pg-body a:not([class]) { border-bottom-color: rgba(196, 90, 0, 0.45); }
html[data-theme="light"] .pg-body a:not([class]):hover { color: #141414; border-color: #141414; }
html[data-theme="light"] .pg-rates__dots { border-bottom-color: rgba(0, 0, 0, 0.25); }
html[data-theme="light"] .pg-cta { background: radial-gradient(55% 80% at 50% 110%, rgba(196, 90, 0, 0.12), rgba(196, 90, 0, 0) 70%), #e3e0da; }
html[data-theme="light"] .pg-section--light { background: #e3e0da; --accent: #C45A00; }
html[data-theme="light"] .pg-section--light .pg-btn--primary { background: #C45A00; border-color: #C45A00; color: #fff; }
html[data-theme="light"] .site-breadcrumb, html[data-theme="light"] .site-breadcrumb a { color: #5a5a60; }
html[data-theme="light"] .site-breadcrumb a:hover, html[data-theme="light"] .site-breadcrumb a:focus-visible, html[data-theme="light"] .site-breadcrumb__sep { color: #C45A00; }
html[data-theme="light"] .site-breadcrumb [aria-current] { color: #141414; }
/* closing band highlight and footer address: readable on the light base */
html[data-theme="light"] .cl__title em { color: #C45A00; }
html[data-theme="light"] .footer-section address { color: #5a5a60; }
html[data-theme="light"] .footer-section address strong { color: #141414; }
html[data-theme="light"] .footer-section address { color: #5a5a60 !important; }
html[data-theme="light"] .footer-section address strong { color: #141414; }
html[data-theme="light"] .footer-partner { color: #5a5a60; }
/* services hub: the pinned cards stay dark in light mode, so their text must stay light (beats the generic homepage ".card" rules above) */
html[data-theme="light"] .svc .card .card__lead h3, html[data-theme="light"] .svc .card h2, html[data-theme="light"] .svc .card h3 { color: #ffffff; }
html[data-theme="light"] .svc .card .card__lead p, html[data-theme="light"] .svc .card p { color: #d6d6dc; }
