/* A second world, revealed only after sound is deliberately enabled. */
.cinema-world, .cinema-hud { display: none; }
html[data-cinema="on"] {
  color-scheme: dark;
  --paper: #060914;
  --paper-light: #10182b;
  --ink: #edf4ff;
  --muted: #a7b7d1;
  --line: #b1cbff26;
  --accent: #72d9ff;
  --accent-dark: #a6ceff;
}
html[data-cinema="on"] body { isolation: isolate; background: #060914; color: #edf4ff; }
html[data-cinema="on"] body::before { opacity: .045; mix-blend-mode: screen; }
html[data-cinema="on"] .cinema-world { position: fixed; display: block; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 72% 20%, #24204b66, transparent 57%), #060914; }
#cinema-canvas { display: block; width: 100%; height: 100%; }
.cinema-grain, .cinema-vignette, .cinema-frame { position: absolute; inset: 0; pointer-events: none; }
.cinema-grain { opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23g)' fill='%23fff' opacity='.65' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.cinema-vignette { background: radial-gradient(ellipse at 50% 43%, transparent 22%, #03050b55 74%, #03050bb3 100%); }
.cinema-frame { inset: 15px; opacity: .24; background: linear-gradient(#a2daff, #a2daff) left top/28px 1px no-repeat, linear-gradient(#a2daff, #a2daff) left top/1px 28px no-repeat, linear-gradient(#a2daff, #a2daff) right top/28px 1px no-repeat, linear-gradient(#a2daff, #a2daff) right top/1px 28px no-repeat, linear-gradient(#a2daff, #a2daff) left bottom/28px 1px no-repeat, linear-gradient(#a2daff, #a2daff) left bottom/1px 28px no-repeat, linear-gradient(#a2daff, #a2daff) right bottom/28px 1px no-repeat, linear-gradient(#a2daff, #a2daff) right bottom/1px 28px no-repeat; }

/* Light is free to move around the page; the words always stay in focus. */
html[data-cinema="on"] .site-header, html[data-cinema="on"] .hero, html[data-cinema="on"] .projects-section, html[data-cinema="on"] .about-section, html[data-cinema="on"] .services-section, html[data-cinema="on"] .site-footer { position: relative; }
html[data-cinema="on"] .site-header { border-color: #9fc8ff2b; }
html[data-cinema="on"] .brand-mark, html[data-cinema="on"] .map-center img { filter: brightness(1.6) saturate(.55) drop-shadow(0 0 16px #71bbff55); }
html[data-cinema="on"] .brand-name { color: #f0f5ff; }
html[data-cinema="on"] .language-switch { background: #111b2ce6; border-color: #a8caff38; }
html[data-cinema="on"] .language-switch a { color: #c6d8f3; }
html[data-cinema="on"] .language-switch a:hover { background: #304775; color: #fff; }
html[data-cinema="on"] .language-switch a[aria-current] { background: #9bcdff; color: #071325; }
html[data-cinema="on"] .hero-title { color: #f3f7ff; text-shadow: 0 5px 42px #040814b3; }
/* Gradient text needs paint space for the italic j descender and side bearings. */
html[data-cinema="on"] .hero-title em { color: #a6dcff; background: linear-gradient(110deg, #8ceaff 8%, #b9ccff 54%, #e7b6e7 94%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 .035em .22em; margin-inline: -.035em; margin-bottom: -.22em; }
html[data-cinema="on"] .hero-top .eyebrow { color: #d8e7ff; }
html[data-cinema="on"] .hero-intro > p, html[data-cinema="on"] .detail-content > p, html[data-cinema="on"] .about-copy p, html[data-cinema="on"] .services-heading > p, html[data-cinema="on"] .service-list p { color: #c0cee2; }
html[data-cinema="on"] .button { border-color: #a5d5ff7a; }
html[data-cinema="on"] .button.primary { color: #061321; background: #c4e9ff; border-color: #c4e9ff; box-shadow: 0 0 34px #72bfff1c; }
html[data-cinema="on"] .button:hover { background: #d9eeff; border-color: #d9eeff; color: #071325; }
html[data-cinema="on"] .sound-invite { color: #c6dfff; }
html[data-cinema="on"] .ticker { background: #091021b3; border-color: #a8caff2b; }
html[data-cinema="on"] .ticker-track span { color: #adc3e4; }
html[data-cinema="on"] .filters button { color: #c9d9ef; background: #0d172977; border-color: #a3c4ff30; }
html[data-cinema="on"] .filters button:hover { background: #1c3150dd; border-color: #90c6ff; }
html[data-cinema="on"] .filters button.active { color: #0a1221; background: #d5e7ff; border-color: #d5e7ff; }

/* A glass constellation with a quiet plate under each label. */
html[data-cinema="on"] .project-map { border-color: #98baff3b; background-color: #0a1226ba; background-image: radial-gradient(#829ed645 .75px, transparent .75px); box-shadow: inset 0 0 100px #21344a2b, 0 25px 85px #00000035; }
html[data-cinema="on"] .project-map::after { background: radial-gradient(circle, #5771b72b, #1d3a6622 42%, transparent 70%); }
html[data-cinema="on"] .map-label { color: #b1c7e7; }
html[data-cinema="on"] .connection { stroke: #6989ba; opacity: .7; }
html[data-cinema="on"] .connection.active { stroke: #94dfff; opacity: 1; }
html[data-cinema="on"] .connection.dimmed { opacity: .13; }
html[data-cinema="on"] .map-center { color: #eef5ff; background: radial-gradient(circle at 40% 30%, #253c60, #111a31 76%); border-color: #a2c8ff4d; box-shadow: 0 0 65px #6dc8ff23, inset 0 0 30px #8daeff0d; }
html[data-cinema="on"] .map-center::before { border-color: #abcaff26; }
html[data-cinema="on"] .map-center small { color: #b7c9e5; }
html[data-cinema="on"] .center-orbit { border-color: #a4c7ff39; }
html[data-cinema="on"] .project-node { color: #edf4ff; background: linear-gradient(145deg, #19253e, #11192b); border-color: #a4c5ff3b; box-shadow: 0 8px 24px #02040c66; }
html[data-cinema="on"] .project-node:hover { background: linear-gradient(145deg, #253a5d, #19253e); border-color: #a8dbffb3; box-shadow: 0 0 25px #66beff21; }
html[data-cinema="on"] .project-node.selected { border-color: #8bd8ff; background: linear-gradient(145deg, #243b61, #182a45); box-shadow: 0 0 0 3px #7cd3ff1a, 0 9px 32px #02040c5e; }
html[data-cinema="on"] .node-text small { color: #bacbe3; }
html[data-cinema="on"] .node-icon { color: #96caff; }
html[data-cinema="on"] .project-node.selected .node-icon, html[data-cinema="on"] .node-arrow { color: #9de9ff; }
html[data-cinema="on"] .detail-icon { background: #111b2ca6; border-color: #adcaff3b; }
html[data-cinema="on"] .detail-identity .eyebrow, html[data-cinema="on"] .detail-meta, html[data-cinema="on"] .feature-list li { color: #b3c6e3; }
html[data-cinema="on"] .detail-tagline { color: #abcdf1; }
html[data-cinema="on"] .detail-links a { color: #d5ebff; }
html[data-cinema="on"] .detail-links a:hover { color: #97e7ff; }

/* The story passes through a screening room, an edit suite and a final frame. */
html[data-cinema="on"] .film-section { color: #edf4ff; background: linear-gradient(145deg, #10142ae8, #080f1dd9); border-top: 1px solid #b4c9ff26; border-bottom: 1px solid #b4c9ff26; }
html[data-cinema="on"] .film-intro h2 em, html[data-cinema="on"] .tool-icon { color: #b5d3ff; }
html[data-cinema="on"] .film-intro > p, html[data-cinema="on"] .film-tool p { color: #c0cee2; }
html[data-cinema="on"] .film-tools, html[data-cinema="on"] .film-tool { border-color: #aec7ff29; }
html[data-cinema="on"] .film-tool a { color: #e3f0ff; }
html[data-cinema="on"] .about-visual { background: linear-gradient(145deg, #1f2943e6, #101a2de6); border-color: #b5d2ff38; box-shadow: 0 24px 70px #01051240; }
html[data-cinema="on"] .timeline-top, html[data-cinema="on"] .timeline-ruler, html[data-cinema="on"] .timeline-caption { color: #aec4e6; }
html[data-cinema="on"] .clip { border-color: #91baff45; }
html[data-cinema="on"] .clip.clip-orange { color: #e4efff; background: #366ba1; }
html[data-cinema="on"] .clip.clip-sage { color: #e0e8ff; background: #4a4c8d; }
html[data-cinema="on"] .clip.clip-dark { color: #e6deff; background: #654c7e; }
html[data-cinema="on"] .about-copy .about-signature { color: #b4d8ff; }
html[data-cinema="on"] .service-number { color: #a5bddf; }
html[data-cinema="on"] .service-list article:hover { background: #789dff0b; }
html[data-cinema="on"] .contact-section { background: linear-gradient(125deg, #182b50e6, #35234ce8 65%, #18374ae6); border-block: 1px solid #b1ceff2b; }
html[data-cinema="on"] .contact-actions .button { color: #14213e; background: #e6f3ff; border-color: #e6f3ff; }
html[data-cinema="on"] .site-footer small, html[data-cinema="on"] .footer-links a, html[data-cinema="on"] .footer-links .text-link { color: #aec1df; }
html[data-cinema="on"] #privacy-dialog { background: #111b2cf5; color: #edf4ff; border-color: #aacbff4d; }
html[data-cinema="on"] #privacy-dialog p:not(.eyebrow), html[data-cinema="on"] #privacy-dialog .eyebrow, html[data-cinema="on"] #privacy-dialog > button.dialog-close:first-child { color: #c3d3ec; }
html[data-cinema="on"] #privacy-dialog > button.dialog-close:first-child:hover { background: #284064; color: #fff; }
html[data-cinema="on"] #privacy-dialog::backdrop { background: #02040bb3; }
html[data-cinema="on"] :focus-visible { outline-color: #9bdfff; }
html[data-cinema="on"] .cursor-glow { background: radial-gradient(circle, #8dcdff12, transparent 70%); }

/* An unobtrusive camera monitor, separate from the site's working controls. */
html[data-cinema="on"] .cinema-hud { position: fixed; display: grid; grid-template-columns: 6px 1fr auto; align-items: center; gap: 5px 9px; z-index: 30; left: 24px; bottom: 24px; width: 304px; padding: 12px 14px; border: 1px solid #aacbff29; border-radius: 12px; background: #080f20f0; color: #bdcde5; pointer-events: auto; font-family: var(--sans); font-size: 8px; line-height: 1.4; letter-spacing: .07em; box-shadow: 0 7px 26px #00000026; }
.cinema-hud-dot { width: 5px; height: 5px; background: #efb5c8; border-radius: 50%; box-shadow: 0 0 10px #efb5c84d; }
.cinema-hud-label { text-transform: uppercase; }
.cinema-timecode { color: #eef5ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.cinema-scene { grid-column: 2 / -1; color: #a6c3e8; font-size: 8px; }
.cinema-hint { grid-column: 2 / -1; margin-top: 3px; color: #a4adca; font-size: 7px; letter-spacing: .065em; }
.universe-readout { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0 5px; border-top: 1px solid #b1cbff20; margin-top: 4px; }
.universe-region { font-size: 10px; color: #dfedff; letter-spacing: .06em; font-weight: 500; }
.universe-zoom { font-family: ui-monospace, monospace; color: #91deff; font-size: 12px; letter-spacing: 0; }
.universe-radar { grid-column: 1 / -1; position: relative; height: 37px; margin-bottom: 3px; overflow: hidden; border: 1px solid #a8caff18; border-radius: 5px; background: linear-gradient(90deg,transparent 49.7%,#a8caff14 50%,transparent 50.3%),linear-gradient(transparent 49%,#a8caff14 50%,transparent 51%),#03091477; }
.universe-landmark { position: absolute; width: 5px; height: 5px; border-radius: 50%; transform: translate(-50%,-50%); background: hsl(var(--system-hue) 90% 75%); box-shadow: 0 0 8px hsl(var(--system-hue) 90% 65% / .4); }
.universe-position { position: absolute; z-index: 2; width: 5px; height: 5px; transform: translate(-50%,-50%) rotate(45deg); background: #fff; box-shadow: 0 0 7px #fff8; }
.universe-window { position: absolute; z-index: 1; transform: translate(-50%,-50%); border: 1px solid #e8f4ff77; background: #b5d5ff09; }
.universe-destinations { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.universe-destinations button { min-width: 0; min-height: 44px; padding: 7px 2px; border-radius: 7px; border: 1px solid hsl(var(--system-hue) 70% 75% / .2); background: hsl(var(--system-hue) 55% 40% / .08); color: #cbdcef; font-size: 8px; letter-spacing: 0; transition: border-color .2s, background .2s; }
.universe-destinations button::before { content: ''; display: block; width: 5px; height: 5px; margin: 0 auto 5px; border-radius: 50%; background: hsl(var(--system-hue) 95% 75%); box-shadow: 0 0 9px hsl(var(--system-hue) 95% 65% / .4); }
.universe-destinations button:hover, .universe-destinations button[aria-pressed="true"] { border-color: hsl(var(--system-hue) 90% 80% / .7); background: hsl(var(--system-hue) 60% 55% / .18); color: #fff; }
#universe-reset { display: none; }
#universe-follow { display: none; }
html[data-cinema="on"] #universe-follow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #9cbbec4d; border-radius: 50%; background: #101c30; color: #deebff; font-size: 24px; }
html[data-cinema="on"] #universe-follow:hover, html[data-cinema="on"] #universe-follow[aria-pressed="true"] { background: #294459; border-color: #9ae6ff; color: #fff; box-shadow: 0 0 18px #84dfff25; }
html[data-cinema="on"] #universe-follow:disabled { opacity: .45; cursor: default; }
html[data-cinema="on"] #universe-reset { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #9cbbec4d; border-radius: 50%; background: #101c30; color: #deebff; font-size: 21px; }
html[data-cinema="on"] #universe-reset:hover { background: #284267; border-color: #b5dcff; }
html[data-exploring="on"] body { cursor: grabbing; user-select: none; }
html[data-cinema="on"] #sound-toggle { color: #f0f5ff; background: #221d3c; border-color: #c2b8ff66; box-shadow: 0 0 32px #b5a2ff1c, 0 5px 22px #02040c66; }
html[data-cinema="on"] #sound-toggle:hover { color: #fff; background: #37305b; border-color: #e0cbff; }
html[data-cinema="on"] #motion-toggle { color: #deebff; background: #101c30; border-color: #9cbbec4d; }
html[data-cinema="on"] #motion-toggle:hover { background: #284267; border-color: #b5dcff; }

/* A small invitation on hover; sound and the dark world still require a click. */
@media (hover: hover) and (pointer: fine) {
  html:not([data-cinema="on"]) #sound-toggle:hover { background: #172744; border-color: #b0b4ff; box-shadow: 0 0 0 4px #8f9dff17, -15px 0 36px #72c5ff30, 15px 0 36px #b084ff30; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-cinema="on"] body { transition: background-color .7s, color .7s; }
  html[data-cinema="on"] .project-node, html[data-cinema="on"] .project-map, html[data-cinema="on"] .map-center { transition: background-color .7s, border-color .4s, box-shadow .4s; }
}
@media (max-width: 760px) {
  .cinema-frame { inset: 7px; opacity: .16; }
  .cinema-grain { opacity: .07; }
  html[data-cinema="on"] .cinema-hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-cinema="on"] *, html[data-cinema="on"] *::before, html[data-cinema="on"] *::after { animation: none !important; transition: none !important; }
}
@media print {
  .cinema-world, .cinema-hud { display: none !important; }
  html[data-cinema="on"] { color-scheme: light; --paper: #fff; --paper-light: #fff; --ink: #15233d; --muted: #50637f; --line: #bbb; --accent: #2563eb; --accent-dark: #1d4ed8; }
  html[data-cinema="on"] body, html[data-cinema="on"] .film-section, html[data-cinema="on"] .contact-section { color: #15233d; background: #fff; }
  html[data-cinema="on"] .project-node, html[data-cinema="on"] .project-map, html[data-cinema="on"] .about-visual { color: #15233d; background: #fff; box-shadow: none; }
  html[data-cinema="on"] .hero-title em { background: none; -webkit-text-fill-color: #1d4ed8; }
  html[data-cinema="on"] main *, html[data-cinema="on"] .site-footer * { color: #15233d !important; text-shadow: none !important; }
}
