/* Light mode is an explicit layer. The original dark palette and artwork remain intact. */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #f6f7f2;
  --theme-surface: #fff;
  --theme-soft: #e9eee3;
  --theme-text: #172015;
  --theme-muted: #526049;
  --theme-border: #cad3c3;
  --theme-accent: #416321;
  --theme-accent-bg: #d4fa68;
}

/* These dialogs already have a fixed light surface in the original design. */
.dialog { color-scheme: light; }

:root[data-theme="light"] body {
  background: var(--theme-bg);
  color: var(--theme-text);
}
:root[data-theme="light"] :is(.text-muted, .intro-copy p, .section-head .section-note) {
  color: var(--theme-muted);
}
:root[data-theme="light"] :is(.lime, .hero h1 em, .intro-mini .mini-mark, .process-icon) {
  color: var(--theme-accent);
}
:root[data-theme="light"] :focus-visible {
  outline-color: var(--theme-accent);
}
:root[data-theme="light"] .pill-outline {
  color: var(--theme-text);
  border-color: #78886a;
}
:root[data-theme="light"] .pill-outline:hover { background: var(--theme-soft); }

/* Shared desktop navigation and all disclosure panels. Accent buttons stay lime. */
:root[data-theme="light"] .site-header.shared-header {
  --nav-paper: #fff;
  --nav-emphasis: var(--theme-accent);
  background: rgba(246,247,242,.97);
  border-bottom-color: var(--theme-border);
  color: var(--theme-text);
}
:root[data-theme="light"] .shared-header :is(.brand, .menu-toggle) { color: var(--theme-text); }
:root[data-theme="light"] .shared-header .brand-symbol { color: var(--theme-accent); }
:root[data-theme="light"] .shared-header :is(.main-nav>a, .nav-services, .nav-about, .nav-hire) {
  color: var(--theme-muted);
}
:root[data-theme="light"] .shared-header :is(.main-nav>a, .nav-services, .nav-about, .nav-hire):hover,
:root[data-theme="light"] .shared-header :is(.nav-services, .nav-about, .nav-hire)[aria-expanded="true"],
:root[data-theme="light"] .shared-header .is-current-section,
:root[data-theme="light"] .shared-header .main-nav>a[aria-current] {
  color: var(--theme-accent);
}
:root[data-theme="light"] .shared-header :is(.mega-menu, .nav-company-menu, .nav-hire-menu) {
  border-color: var(--theme-border);
  box-shadow: 0 20px 40px #17201518;
}
:root[data-theme="light"] .shared-header :is(.nav-eyebrow, .nav-category-kicker, .nav-category-promise, .nav-panel-footer p, .nav-child-list a, .nav-company-menu span, .nav-hire-heading>p:last-child, .contact-channel-description, .contact-channel-status, .nav-hire-footer>p) {
  color: var(--theme-muted);
}
:root[data-theme="light"] .shared-header :focus-visible { outline-color: var(--theme-accent); }

/* The mobile disclosure uses the same light surfaces and readable active states. */
@media (max-width:950px) {
  :root[data-theme="light"] .shared-header .mobile-menu:not([hidden]) {
    background: var(--theme-surface);
    color: var(--theme-text);
    border-bottom-color: var(--theme-border);
    box-shadow: 0 20px 40px #17201518;
  }
  :root[data-theme="light"] .shared-header :is(.nav-mobile-top>a, .nav-mobile-bottom>a, .nav-mobile-child-list a) {
    color: var(--theme-muted);
  }
  :root[data-theme="light"] .shared-header :is(.nav-mobile-top>a, .nav-mobile-bottom>a):hover,
  :root[data-theme="light"] .shared-header .mobile-menu a[aria-current],
  :root[data-theme="light"] .shared-header :is(.nav-mobile-category-title svg, .nav-disclosure-mark, .nav-mobile-services-heading>a, .nav-mobile-child-list .nav-category-overview, .nav-mobile-hire summary) {
    color: var(--theme-accent);
  }
  :root[data-theme="light"] .shared-header :is(.nav-mobile-category, .nav-mobile-category:last-child, .nav-mobile-services-heading, .nav-mobile-hire) {
    border-color: var(--theme-border);
  }
  :root[data-theme="light"] .shared-header :is(.nav-mobile-services-heading .nav-eyebrow, .nav-mobile-hire-intro, .nav-mobile-hire-note) {
    color: var(--theme-muted);
  }
  :root[data-theme="light"] .shared-header .nav-mobile-child-list a:hover,
  :root[data-theme="light"] .shared-header .nav-mobile-child-list a[aria-current] {
    background: var(--theme-soft);
    color: var(--theme-accent);
  }
  :root[data-theme="light"] .shared-header .nav-mobile-hire .hire-channel {
    background: var(--theme-bg);
    color: var(--theme-text);
    border-color: var(--theme-border);
  }
  :root[data-theme="light"] .shared-header .nav-mobile-hire .contact-channel-icon {
    background: var(--theme-soft);
    color: var(--theme-accent);
  }
  :root[data-theme="light"] .shared-header .nav-mobile-hire :is(.contact-channel-description, .contact-channel-status) {
    color: var(--theme-muted);
  }
  :root[data-theme="light"] .shared-header .nav-mobile-hire a.hire-channel:hover {
    background: var(--theme-soft);
    border-color: #91a77b;
  }
  :root[data-theme="light"] .shared-header .mobile-menu .nav-mobile-cta[aria-current] { color: var(--nav-ink); }
}

/* Homepage story: warm white canvas, dark typography, and the original lime banners. */
:root[data-theme="light"] :is(.hero .eyebrow, .hero-description, .hero-note, .hero-baseline, .intro .eyebrow, .intro h2 .dim) {
  color: var(--theme-muted);
}
:root[data-theme="light"] .hero-baseline span:last-child { color: var(--theme-text); }
:root[data-theme="light"] .hero-note {
  background: rgba(246,247,242,.94);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
}
/* The existing dark-backed sculpture stays clear of dark typography in light mode. */
@media (min-width:721px) {
  :root[data-theme="light"] .hero-visual { width: 50%; right: -80px; }
}
:root[data-theme="light"] :is(.hero-baseline, .hero-note, .service, .service:last-child, .service-actions, .process-step, .engagements, .engagement+.engagement, .engagement) {
  border-color: var(--theme-border);
}
:root[data-theme="light"] :is(.work, .faq) { background: var(--theme-surface); }
:root[data-theme="light"] :is(.about, .team) { background: var(--theme-soft); }
:root[data-theme="light"] :is(.work .section-head .section-note, .project-meta p, .project-meta>span, .work-bottom, .about-copy>p, .about-values, .team-card p, .team-note, .team .section-note, .faq-intro p, .faq-item p) {
  color: var(--theme-muted);
}
:root[data-theme="light"] :is(.service-symbol, .service[open] .service-symbol, .service-actions .link-line) {
  color: var(--theme-accent);
}
:root[data-theme="light"] :is(.service summary p, .service-intro, .service-group ul, .service-actions span, .service-footnote, .process-step p) {
  color: var(--theme-muted);
}
:root[data-theme="light"] :is(.service-group h4, .process-step .deliverable) { color: var(--theme-text); }
:root[data-theme="light"] .service-toggle { border-color: #78886a; }
:root[data-theme="light"] :is(.service-toggle:before, .service-toggle:after) { background: var(--theme-text); }
:root[data-theme="light"] .service[open] .service-toggle { border-color: var(--lime); }
:root[data-theme="light"] .service-group { border-color: var(--theme-border); }
:root[data-theme="light"] .sample-label {
  color: var(--theme-muted);
  border-color: #91a280;
}
:root[data-theme="light"] .quote-mark { color: var(--theme-accent); }
:root[data-theme="light"] .quote-avatar { background: var(--theme-soft); color: var(--theme-accent); }
:root[data-theme="light"] :is(.quote-author span, .engagement .eyebrow, .engagement p) { color: var(--theme-muted); }
:root[data-theme="light"] .engagement .link-line { color: var(--theme-accent); }
:root[data-theme="light"] .testimonial-dots button:after { background: #9eae90; }
:root[data-theme="light"] .testimonial-dots button.active:after { background: var(--theme-accent); }
:root[data-theme="light"] .faq-plus { color: var(--theme-accent); }

/* Reusable recognition section. Award artwork is never filtered or recolored. */
:root[data-theme="light"] .recognition-section {
  background: var(--theme-soft);
  color: var(--theme-text);
  border-color: var(--theme-border);
}
:root[data-theme="light"] .recognition-section .recognition-card {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}
:root[data-theme="light"] .recognition-section :is(.recognition-kicker, .recognition-year) { color: var(--theme-accent); }
:root[data-theme="light"] .recognition-section :is(.recognition-card-copy h3, .recognition-intro .recognition-link) { color: var(--theme-text); }
:root[data-theme="light"] .recognition-section :is(.recognition-intro, .recognition-note) { color: var(--theme-muted); }

/* Footer, contact cards and social destinations are shared across every route. */
:root[data-theme="light"] .footer { background: var(--theme-surface); color: var(--theme-text); }
:root[data-theme="light"] .footer .brand-symbol { color: var(--theme-accent); }
:root[data-theme="light"] .footer :is(.footer-brand p, .footer-col h3, .footer-bottom, .footer-bottom button, .footer-social-heading, .footer-contact-label, .footer-contact-card.is-pending .footer-contact-value, .footer-contact-meta>span, .footer-hire-label, .footer-contact-note) {
  color: var(--theme-muted);
}
:root[data-theme="light"] .footer :is(.footer-col a, .footer-col button, .footer-policies a, .footer-contact-heading .link-line, .footer-marketplace, .footer-marketplace.is-pending) {
  color: var(--theme-text);
}
:root[data-theme="light"] .footer :is(.footer-col a, .footer-col button, .footer-policies a, .footer-contact-heading .link-line):hover {
  color: var(--theme-accent);
}
:root[data-theme="light"] .footer :is(.footer-bottom, .footer-contact-band, .footer-marketplace, .footer-marketplace.is-pending) {
  border-color: var(--theme-border);
}
:root[data-theme="light"] .footer :is(.footer-contact-kicker, .footer-contact-icon, .footer-contact-meta .contact-channel-svg, .footer-marketplace .contact-channel-svg, .footer-marketplace.is-pending .contact-channel-svg) {
  color: var(--theme-accent);
}
:root[data-theme="light"] .footer :is(.footer-social-link, .footer-social-link.is-pending, .footer-contact-card) {
  background: var(--theme-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
}
:root[data-theme="light"] .footer :is(.footer-social-link, .footer-social-link.is-pending) { color: var(--theme-accent); }
:root[data-theme="light"] .footer a.footer-social-link:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: #96ae71;
}
:root[data-theme="light"] .footer :is(a.footer-contact-card, a.footer-marketplace):hover {
  background: var(--theme-soft);
  color: var(--theme-text);
  border-color: #91a77b;
}
:root[data-theme="light"] .footer :focus-visible { outline-color: var(--theme-accent); }

/* Fixed light dialogs and success states retain clear controls in either theme. */
:root[data-theme="light"] .dialog { background: var(--theme-surface); border-color: var(--theme-border); }
:root[data-theme="light"] .dialog::backdrop { background: #17201580; }
:root[data-theme="light"] .dialog :is(.dialog-intro, .text-muted, .form-note, .form-footer>span) { color: var(--theme-muted); }
:root[data-theme="light"] .toast { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); }

@media print {
  :root[data-theme="light"] .recognition-section,
  :root[data-theme="light"] .recognition-section .recognition-card { background: white; }
}
