/* Shared daylight system. Loaded after each page stylesheet so every hard-coded dark surface has a visible light equivalent. */
html[data-theme="light"] { color-scheme: light; background: #edf3fb; }
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] body,
html[data-theme="light"] body.home-v2,
html[data-theme="light"] body.work-archive,
html[data-theme="light"] body.lab-v2 { color: #071426; background: #edf3fb; }

html[data-theme="light"] .nav-shell,
html[data-theme="light"] .home-v2 .nav-shell,
html[data-theme="light"] .work-archive .nav-shell,
html[data-theme="light"] .lab-v2 .nav-shell {
  border-color: rgba(18, 52, 98, .14);
  color: #071426;
  background: rgba(248, 251, 255, .92);
  box-shadow: 0 15px 50px rgba(24, 55, 96, .1);
}
html[data-theme="light"] .nav-shell nav a,
html[data-theme="light"] .home-v2 .nav-shell nav a,
html[data-theme="light"] .lab-v2 .nav-shell nav a { color: #52647d; }
html[data-theme="light"] .nav-shell nav a:hover,
html[data-theme="light"] .nav-shell nav a[aria-current="page"] { color: #071426; background: rgba(6, 54, 232, .08); }
html[data-theme="light"] .home-v2 .lang-button,
html[data-theme="light"] .home-v2 .theme-button,
html[data-theme="light"] .home-v2 .menu-button,
html[data-theme="light"] .lab-v2 .lang-button,
html[data-theme="light"] .lab-v2 .theme-button,
html[data-theme="light"] .lab-v2 .menu-button { color: #10233e; background: rgba(255,255,255,.8); }

html[data-theme="light"] #pointerGlow { mix-blend-mode: multiply; }
html[data-theme="light"] .project-dialog { color: #071426; background: #f8fbff; }
html[data-theme="light"] .project-dialog-head,
html[data-theme="light"] .project-story { border-color: rgba(23, 55, 101, .14); }
html[data-theme="light"] .whatsapp-inline { color: #07385b; background: linear-gradient(135deg, rgba(6,54,232,.1), rgba(0,220,232,.12)); }
html[data-theme="light"] .whatsapp-float { color: #fff; box-shadow: 0 16px 40px rgba(0, 76, 175, .22); }

/* Home and scroll film */
html[data-theme="light"] .home-v2 {
  --am-bg: #edf3fb;
  --am-panel: rgba(255,255,255,.9);
  --am-line: rgba(25, 58, 106, .15);
  --am-blue: #0636e8;
  --am-cyan: #008da8;
  --am-white: #071426;
  --am-muted: #55677f;
}
html[data-theme="light"] .cinema-v3 .am-story,
html[data-theme="light"] .capability-home,
html[data-theme="light"] .home-contact { background: #edf3fb; }
html[data-theme="light"] .cinema-v3 .am-story-sticky::before { opacity: .09; mix-blend-mode: multiply; }
html[data-theme="light"] .cinema-v3 .am-story-sticky::after {
  background: radial-gradient(circle at var(--pointer-light-x,50%) var(--pointer-light-y,45%), rgba(0,155,193,.09), transparent 24%), linear-gradient(90deg, rgba(237,243,251,.88), rgba(237,243,251,.08) 43%, rgba(237,243,251,.08) 60%, rgba(237,243,251,.84));
}
html[data-theme="light"] .cinema-v3 #cinemaCanvas { opacity: .12; mix-blend-mode: multiply; }
html[data-theme="light"] .cinema-v3 .cinema-ready #cinemaCanvas { opacity: .15; }
html[data-theme="light"] .cinema-v3 #amGeometryCanvas { filter: saturate(.9) contrast(1.12); }
html[data-theme="light"] .cinema-v3 .story-panel {
  border-color: rgba(38, 83, 150, .16);
  color: #071426;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,246,255,.9));
  box-shadow: 0 28px 80px rgba(35, 69, 113, .14);
}
html[data-theme="light"] .story-panel h1,
html[data-theme="light"] .story-panel h2 { color: #071426; }
html[data-theme="light"] .story-panel > p:not(.story-kicker),
html[data-theme="light"] .worlds-intro > p:last-child,
html[data-theme="light"] .worlds-exit > p:not(.story-kicker),
html[data-theme="light"] .world-copy > p:not(.story-kicker) { color: #4f627c; }
html[data-theme="light"] .story-tags span { color: #24415f; background: rgba(255,255,255,.8); }
html[data-theme="light"] .story-button { color: #10233e; background: rgba(255,255,255,.75); }
html[data-theme="light"] .story-button.primary { color: #fff; background: #0636e8; border-color: #0636e8; }
html[data-theme="light"] .cinema-frame-readout,
html[data-theme="light"] .am-story-ui { color: #4d607b; }

html[data-theme="light"] .worlds-section { color: #071426; background: radial-gradient(circle at 50% 28%, rgba(42, 92, 255, .12), transparent 31%), linear-gradient(180deg, #edf3fb, #f8fbff 52%, #edf3fb); }
html[data-theme="light"] .worlds-stage { background: radial-gradient(circle at center, rgba(52, 105, 228, .13), transparent 43%), linear-gradient(rgba(41,83,145,.07) 1px,transparent 1px), linear-gradient(90deg,rgba(41,83,145,.07) 1px,transparent 1px); background-size:auto,72px 72px,72px 72px; }
html[data-theme="light"] .worlds-stage::after { background: linear-gradient(90deg, rgba(237,243,251,.72), transparent 23%, transparent 77%, rgba(237,243,251,.72)); }
html[data-theme="light"] .world-copy h2,
html[data-theme="light"] .worlds-intro h2,
html[data-theme="light"] .worlds-exit h2 { color: #071426; }
html[data-theme="light"] .world-copy small { color: #516681; }
html[data-theme="light"] .world-core { background: #061225; box-shadow: 0 28px 70px rgba(23, 58, 105, .2); }
html[data-theme="light"] .worlds-ui { color: #536780; }

html[data-theme="light"] .showcase-section,
html[data-theme="light"] .capability-home { background: #edf3fb; }
html[data-theme="light"] .capability-card { color: #071426; background: rgba(255,255,255,.58); }
html[data-theme="light"] .capability-card:hover { background: #fff; }
html[data-theme="light"] .capability-card b { background: #e7f3ff; }
html[data-theme="light"] .capability-card p,
html[data-theme="light"] .home-heading > p { color: #566a82; }
html[data-theme="light"] .studio-band { color: #071426; background: linear-gradient(135deg, #dce9ff, #f8fbff 55%, #dff7f8); }
html[data-theme="light"] .studio-layout p,
html[data-theme="light"] .studio-proof span { color: #50657e; }
html[data-theme="light"] .studio-proof div,
html[data-theme="light"] .lab-teaser { border-color: rgba(29,81,154,.15); background: rgba(255,255,255,.7); }
html[data-theme="light"] .home-contact { background: radial-gradient(circle at center, rgba(40,102,255,.12), transparent 40%), #edf3fb; }
html[data-theme="light"] .home-contact h2,
html[data-theme="light"] .contact-email { color: #071426; }
html[data-theme="light"] .home-v2 footer { color: #53657d; background: #e5edf7; }
html[data-theme="light"] .home-v2 footer img { filter: brightness(.25) saturate(1.4); }

/* Work archive */
html[data-theme="light"] .work-archive { --archive-bg:#edf3fb; --archive-cyan:#007f9a; }
html[data-theme="light"] .archive-hero { color:#071426; background:#edf3fb; }
html[data-theme="light"] .archive-grid::after { background:linear-gradient(90deg,#edf3fb 4%,transparent 44%,rgba(237,243,251,.18) 70%,#edf3fb); }
html[data-theme="light"] .archive-orbit span { color:#006f88; background:#f8fbff; }
html[data-theme="light"] .archive-hero-copy>p:not(.archive-kicker),
html[data-theme="light"] .archive-heading>p,
html[data-theme="light"] .archive-card-copy>div,
html[data-theme="light"] .archive-contact>div>p:not(.archive-kicker) { color:#52657e; }
html[data-theme="light"] .archive-down,
html[data-theme="light"] .archive-contact a { color:#10233e; background:rgba(255,255,255,.8); }
html[data-theme="light"] .archive-section { color:#071426; background:linear-gradient(180deg,#edf3fb,#f8fbff); }
html[data-theme="light"] .archive-filters { border-color:rgba(24,67,130,.14); background:rgba(248,251,255,.92); box-shadow:0 18px 50px rgba(34,65,107,.1); }
html[data-theme="light"] .archive-filters button { color:#53667e; }
html[data-theme="light"] .archive-filters button.active { color:#071426; background:rgba(6,54,232,.08); }
html[data-theme="light"] .archive-card { color:#071426; border-color:rgba(27,70,133,.14); background:#fff; box-shadow:0 28px 70px rgba(31,61,103,.12); }
html[data-theme="light"] .archive-card-copy small { color:#61748d; }
html[data-theme="light"] .archive-open { color:#073f5b; background:#eef8ff; }
html[data-theme="light"] .archive-contact { color:#071426; background:radial-gradient(circle at center,rgba(47,96,255,.1),transparent 40%),#edf3fb; }

/* Lab */
html[data-theme="light"] .lab-hero { color:#071426; background:radial-gradient(circle at 62% 42%,rgba(43,95,255,.15),transparent 32%),linear-gradient(145deg,#edf3fb,#f8fbff); }
html[data-theme="light"] .lab-hero p { color:#536780; }
html[data-theme="light"] .lab-index a { color:#10233e; border-color:rgba(24,71,141,.15); background:rgba(255,255,255,.75); }
html[data-theme="light"] .lab-v2 .builder-section,
html[data-theme="light"] .lab-v2 .arena-section,
html[data-theme="light"] .lab-v2 .lab-section { color:#071426; background:#edf3fb; }
html[data-theme="light"] .lab-v2 footer { color:#52657d; background:#e5edf7; }

/* Final light-theme contrast pass. */
html[data-theme="light"] footer .footer-brand b { color:#243b56; }
html[data-theme="light"] .capability-card > span,
html[data-theme="light"] .capability-card b { color:#006477; }
html[data-theme="light"] .capability-card small { color:#435874; }
html[data-theme="light"] .archive-orbit span { color:#315c70; }
html[data-theme="light"] .archive-orbit { opacity:1; }
html[data-theme="light"] .work-archive footer { color:#52657d; background:#e5edf7; }
html[data-theme="light"] .lab-v2 .arena-copy > p { color:#3f536d; }
html[data-theme="light"] .lab-v2 .arena-stats div { border-color:#c5d2e2; background:#fff; }
html[data-theme="light"] .lab-v2 .arena-stats span { color:#3f536d; }
html[data-theme="light"] .lab-v2 .arena-stats b { color:#006477; }

@media (max-width:760px) {
  html[data-theme="light"] .cinema-v3 .am-story-sticky::after { background:linear-gradient(0deg,rgba(237,243,251,.98),rgba(237,243,251,.84) 44%,transparent 72%,rgba(237,243,251,.38)); }
  html[data-theme="light"] .cinema-v3 .story-panel { background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,251,255,.98)); }
  html[data-theme="light"] .worlds-stage::after { background:linear-gradient(0deg,rgba(237,243,251,.94),transparent 34%,transparent 72%,rgba(237,243,251,.5)); }
}
