/* Shared by the three homepage directions: reset, brand colours (Brand Style
   Guide v1.0), accessibility helpers, scroll reveals and the review switcher.
   Each direction's own look is in d1.css, d2.css, d3.css. */

:root {
  --yellow: #F7B600;
  --yellow-deep: #F59F00;
  --ink: #333333;
  --grey: #666666;
  --soft: #F5F5F5;
  --white: #FFFFFF;
  --night: #161618;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --intro: 1.9s; /* when the launch hands over to the hero */
}
html.no-intro { --intro: .15s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, address, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stars { color: var(--yellow); letter-spacing: .12em; }
.todo { background: #FFF3B0; color: #5A4600; border: 1px dashed #C9A000; padding: 8px 12px; font-size: .8rem; line-height: 1.4; border-radius: 6px; }

/* Hero media: stills that drift and cross-fade, or the film over the top. */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--night); isolation: isolate; }
.media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.media .slide.is-on { opacity: 1; z-index: 2; }
.media .slide.was-on { opacity: 1; z-index: 1; transition: none; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .slide img { transform: scale(1.03); }
.media .slide.is-on img, .media .slide.was-on img { animation: drift 9s linear forwards; }
.media > video { opacity: 0; transition: opacity 1s ease; z-index: 3; }
/* A clip as a slide: its first frame shows until it plays. */
.media .slide video { background: center / cover no-repeat; }
.media.has-video video { opacity: 1; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13); } }

/* Scroll reveals. Only when JS is running, so nothing is hidden without it. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Review switcher (staging only): flip between the three directions. */
.dswitch { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(22, 22, 24, .88); backdrop-filter: blur(8px); font: 600 12px/1 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.dswitch a { color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 999px; }
.dswitch a:hover { background: rgba(255, 255, 255, .14); }
.dswitch a[aria-current] { background: var(--yellow); color: var(--ink); }

/* Staging only: says so on the homepage, where there is no staging bar. */
.staging-pill { position: fixed; right: 14px; bottom: 14px; z-index: 90; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(22, 22, 24, .88); color: #FFD34D; font: 600 12px/1 system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; --intro: 0s; }
  .intro { display: none !important; }
  .media .slide.is-on img, .media .slide.was-on img { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
