/* ==========================================================================
   Studio ATV
   1. Fonts and base
   2. Hero: Screen 1 (house) and Screen 2 (theater)
   3. Demos section
   4. Screen 3
   5. About, the logos, the frequent questions, and the footer: contact
   6. Menu overlay (narrow windows) and the curtain
   7. Demo player window
   8. Privacy policy page (privacy.html) and wrong address page (404.html)
   9. Cookie bar (assets/consent.js)
   10. The new name: window for visitors from abovethevoid.com
   ========================================================================== */

/* ---------- 1. Fonts and base ---------- */

/* Latin subsets of three variable fonts, all under the SIL Open Font License */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --accent: #e5876b;      /* the salmon of the patch on the house */
  --accent-soft: #f3ae98;
  --ink: #0a0a0b;        /* text on the bright house scene */
  --paper: #f6f1ea;      /* text on dark */
  --paper-dim: #e3dcd2;
  --paper-mute: #c9c2b8;
  --night: #0b0908;

  --sans: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 56px);

  /* A full-screen 16:9 picture that covers the window is this wide. The pictures
     above and below the demos use it too, so they line up with the videos. */
  --cover-w: max(100vw, calc(100svh * 16 / 9));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Until Screen 2 is on, the page is one screen tall and cannot scroll */
html { overscroll-behavior-y: contain; } /* a swipe down at the top goes back to Screen 1, it does not reload the page */
/* ([data-screen]: the home page only. privacy.html has no screens and scrolls as usual.) */
html[data-screen]:not([data-screen="theater"]) { overflow: hidden; }
html[data-screen]:not([data-screen="theater"]) .below { display: none; }

/* The scrollbar takes its place while the picture is black, a moment before the
   page becomes scrollable, so the videos do not change size in full view */
html.is-dark:not([data-screen="theater"]) { overflow-y: scroll; }

/* While a demo or the menu overlay is open the page behind cannot scroll. Its
   scrollbar goes, and the padding (the width of the scrollbar, measured in the
   scripts) keeps the page still. */
html.modal-open { overflow: hidden; }
html.modal-open body { padding-right: var(--scrollbar, 0px); }

body {
  margin: 0;
  background: #000;
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* A link inside a sentence (the names DreamReel and ALL IN): no line under it,
   it looks like the words around it and takes the salmon under the mouse */
.text-link { transition: color .2s; }
.text-link:hover { color: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper-dim);
}

/* ---------- 2. Hero ---------- */

.hero {
  --fg: var(--ink);          /* logo and menu: black on the house... */
  --fg-hover: #8a3c24;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #b9c4cf;
}
.is-dark .hero {
  --fg: var(--paper);        /* ...light on the theater */
  --fg-hover: var(--accent-soft);
  background: var(--night);
}
.is-dark .logo { --fg: #fff; }

.hero-media, .clip, .veil, .scrim { position: absolute; inset: 0; }

.clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}
.clip.is-on { opacity: 1; }
/* The first picture of each loop lies behind it, and shows until the video can
   play. A phone held upright has videos of its own, and so pictures of its own
   (the same rule as `phone` in site.js, and as the preloads in index.html). */
.clip-house { background: url("img/scene1-poster.jpg") center / cover no-repeat; }
.clip-theater { background: url("img/scene2-poster.jpg") center top / cover no-repeat; }
@media (max-aspect-ratio: 3 / 4) and (max-width: 720px) {
  .clip-house { background-image: url("img/scene1-poster-mobile.jpg"); }
  .clip-theater { background-image: url("img/scene2-poster-mobile.jpg"); }
}
/* Screen 2 is held to its top edge, whatever the shape of the window: the top
   of its picture is composed for the logo and the menu. The transition moves
   there while its picture is black (site.js adds is-dark at that moment), so
   the move cannot be seen and the theater loop carries on in the same place. */
.clip-theater, .is-dark .clip-transition, .is-dark .clip-return { object-position: center top; }
/* In a window wider than 16:9 that would cut the bottom off the theater, and
   the picture under it (screen2-bottom, section 3) starts where the whole video
   ends. So from the black of the transition on, the videos get their full
   height, and on Screen 2 what does not fit carries on under the top of the
   demos section. In a narrower window nothing changes. */
.is-dark .hero-media {
  bottom: auto;
  width: 100%; /* said outright, or the least height below would widen it to keep 16:9 */
  min-height: 100%;
  aspect-ratio: 16 / 9;
}
[data-screen="theater"] .hero { overflow: visible; }
/* The theater loop fades in over the end of the transition (CROSSFADE in site.js),
   and so does the way back out over the theater loop, and the house over its end */
.clip-theater, .clip-return { transition: opacity .3s linear; }

/* Screen 1: a light haze behind the menu. It clears as the camera moves in, so
   that it is gone before the picture turns dark. */
.veil {
  background: linear-gradient(180deg, rgba(246, 241, 234, .25) 0%, rgba(246, 241, 234, 0) 24%);
  transition: opacity .5s;
}
[data-screen="transition"] .veil, .is-dark .veil { opacity: 0; }

/* Screen 2: darker top and bottom, so the menu and the text stay readable */
.scrim {
  background: linear-gradient(180deg, rgba(11, 9, 8, .66) 0%, rgba(11, 9, 8, 0) 22%, rgba(11, 9, 8, 0) 50%, rgba(11, 9, 8, .88) 100%);
  opacity: 0;
  transition: opacity 1.2s;
}
[data-screen="theater"] .scrim { opacity: 1; }
[data-screen="transition"] .scrim { transition-duration: .4s; } /* on the way back to Screen 1 */
/* On a tall, narrow window the text reaches up to the cinema screen: start darker, sooner */
@media (max-aspect-ratio: 3 / 4) {
  .scrim {
    background: linear-gradient(180deg, rgba(11, 9, 8, .66) 0%, rgba(11, 9, 8, 0) 22%, rgba(11, 9, 8, 0) 44%, rgba(11, 9, 8, .72) 60%, rgba(11, 9, 8, .9) 100%);
  }
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px var(--pad);
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--fg);
  transition: color .35s;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(20px, 3vw, 36px);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  transition: color .35s;
}
.site-nav a:hover { color: var(--fg-hover); }

/* EN / FR: shows the language it switches to */
.lang {
  min-height: 34px;
  /* A little more on the left: the letter spacing leaves a gap after the last letter */
  padding: 0 12px 0 calc(12px + .04em);
  border: 1px solid currentColor;
  background: none;
  color: var(--fg);
  font: inherit;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .35s;
}
.lang:hover { color: var(--fg-hover); }

/* MENU / CLOSE / CONTINUE: the small capital-letter buttons */
.menu-open, .menu-close, .cue {
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
/* Narrow windows: the links move into the menu overlay (section 5) */
.menu-open {
  display: none;
  color: var(--fg);
  transition: color .35s;
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu-open { display: inline-flex; }
}

.hero-foot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--pad) 48px;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.hero-pitch {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  /* As on the Play buttons (section 3): the brighter colour is a second layer,
     zero wide, that grows from the left on hover */
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) left / 0% 100% no-repeat var(--accent);
  color: var(--night);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-size .5s ease;
}
.btn:not(:disabled):hover { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover { color: var(--accent-soft); }
.link-arrow:hover svg { transform: translateX(3px); }

/* The Screen 2 text is in the page from the start, out of sight, so nothing
   moves when it appears. It comes in once the theater loop is playing. */
.reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
[data-screen="theater"] .reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(.35s + var(--i, 0) * .12s);
}

/* CONTINUE, on Screen 1 / 2. Next to the word sits an arrow; once clicked, the
   arrow gives way to the loader, a ring. */
.cue {
  display: flex;
  margin: 0 0 0 auto;
  color: #fff;
  transition: opacity .4s, color .4s;
}
.cue-icon {
  position: relative;
  width: 16px;
  height: 16px;
}
.cue-icon svg {
  position: absolute;
  inset: 0;
  transition: opacity .25s, transform .2s;
}
.cue:hover .cue-arrow { transform: translateY(3px); }

/* The loader. It turns while the next videos are still downloading (is-waiting),
   then fills up over the time the loop needs to reach its end (is-timed; site.js
   gives that time in --wait). */
.cue-ring {
  opacity: 0;
  transform: rotate(-90deg);
}
.ring-track { opacity: .3; }
.ring-bar {
  stroke-dasharray: 100;
  stroke-dashoffset: 72;
}
.cue.is-waiting { cursor: default; }
.cue.is-waiting .cue-arrow { opacity: 0; }
.cue.is-waiting .cue-ring {
  opacity: 1;
  animation: ring-turn .9s linear infinite;
}
.cue.is-timed .cue-ring { animation: none; }
.cue.is-timed .ring-bar { animation: ring-fill var(--wait, 5s) linear forwards; }
@keyframes ring-turn { to { transform: rotate(270deg); } }
@keyframes ring-fill {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

[data-screen="transition"] .hero .cue {
  opacity: 0;
  pointer-events: none;
}
/* Back with the Screen 2 text, a little after it */
[data-screen="theater"] .hero .cue {
  color: var(--paper-dim);
  transition: color .2s;
  animation: cue-in .9s ease .8s backwards;
}
[data-screen="theater"] .hero .cue:hover { color: #fff; }
@keyframes cue-in { from { opacity: 0; } }
/* The mobile layout: Screen 2 has no CONTINUE, and its text comes down to the
   bottom of the screen in its place. (On Screen 1 the button stays: it is the
   way in. The text is out of sight while it moves down.)
   Both end 32px above the bottom of the screen. For the button that is the
   word itself: it stands in the middle of a box 48px tall, made for a finger,
   so the box goes 16px lower. */
@media (max-width: 720px) {
  .hero-foot { padding-bottom: 16px; }
  [data-screen="theater"] .hero .cue { display: none; }
  [data-screen="theater"] .hero-foot { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; }
}

/* ---------- 3. Demos section ---------- */

.demos {
  --bg-h: calc(var(--cover-w) * 1536 / 2752); /* height of the two background pictures */
  position: relative;
  overflow: hidden;
  /* No background of its own: the page behind is black, and the end of the
     theater video shows through at the top (see .demos-bg-top) */
}

/* screen2-bottom carries on from the bottom of the theater video;
   screen3-top closes the section. Both are as wide as the videos. */
.demos-bg {
  position: absolute;
  left: 50%;
  width: max(100%, calc(100vh * 16 / 9));
  width: max(100%, calc(100svh * 16 / 9));
  aspect-ratio: 2752 / 1536;
  transform: translateX(-50%);
  pointer-events: none;
}
.demos-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demos-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.demos-bg-top { top: 0; }
/* Darkest where the picture meets the video (as dark as the bottom of Screen 2,
   .scrim): the two are not the same to the pixel, and this hides the join */
.demos-bg-top::after {
  background: linear-gradient(180deg, rgba(11, 9, 8, .88) 0%, rgba(8, 6, 5, .35) 28%, rgba(0, 0, 0, .6) 62%, #000 100%);
}
/* screen2-bottom starts where the whole theater video ends. In a window wider
   than 16:9 that is lower than the bottom of Screen 2: the rest of the video
   carries on under the top of this section (.hero-media, section 2), and the
   picture starts below it. --rest is the height of that rest: 9/16 of the width
   of the section (100cqw) is the height of the whole video, and Screen 2 shows
   one window of it. In a narrower window the video ends with Screen 2, --rest
   is 0 and nothing changes. */
@supports (width: 1cqw) {
  .demos {
    container-type: inline-size; /* makes 100cqw the width of this section */
    --rest: max(0px, calc(56.25cqw - 100svh));
  }
  .demos-bg-top { top: var(--rest); }
  /* The shade reaches back up over the rest of the video, and stays as dark as
     the bottom of Screen 2 down to the join. From there it is the one above. */
  .demos-bg-top::after {
    top: calc(-1 * var(--rest));
    background: linear-gradient(180deg,
      rgba(11, 9, 8, .88) 0,
      rgba(11, 9, 8, .88) var(--rest),
      rgba(8, 6, 5, .35) calc(var(--rest) + var(--bg-h) * .28),
      rgba(0, 0, 0, .6) calc(var(--rest) + var(--bg-h) * .62),
      #000 100%);
  }
}
/* (index.html wraps the first picture in a <picture>; it must not get in the
   way of the sizes above) */
.demos-bg picture { display: contents; }
/* A phone held upright has a theater video of its own (`phone` in site.js),
   and the picture carries on from the wide one, not from it. So there the
   picture is left out: the bottom of Screen 2 fades to black, and the demos
   begin on the black of the page. (index.html has the same rule, so that the
   picture is not even fetched.) */
@media (max-aspect-ratio: 3 / 4) and (max-width: 720px) {
  .scrim {
    background: linear-gradient(180deg, rgba(11, 9, 8, .66) 0%, rgba(11, 9, 8, 0) 22%, rgba(11, 9, 8, 0) 44%, rgba(11, 9, 8, .72) 60%, rgba(5, 4, 4, .92) 86%, #000 100%);
  }
  .demos-bg-top { display: none; }
}
.demos-bg-bottom {
  bottom: -1px; /* a pixel past the edge, so no hairline can open under it */
  /* As wide as Screen 3's video is drawn under it, which site.js measures:
     where Screen 3 is taller than the window (phones) that is wider than the
     other videos, and the two skies would not meet */
  width: var(--sky-w, max(100%, calc(100svh * 16 / 9)));
}
/* Its last stretch darkens to meet the top of Screen 3 (--seam, section 4).
   The second layer is a trace of warmth: the bottom edge of screen3-top.png is
   a touch bluer than the top edge of the screen3-idle video, and this evens
   them out so no line shows where they meet. */
.demos-bg-bottom::after {
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 30%, rgba(11, 9, 8, 0) 70%, rgba(11, 9, 8, calc(var(--seam) * .72)) 88%, rgba(11, 9, 8, calc(var(--seam) * .96)) 96%, rgba(11, 9, 8, var(--seam)) 100%),
    linear-gradient(180deg, rgba(247, 141, 123, 0) 55%, rgba(247, 141, 123, .03) 100%);
}

.demos-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(104px, 12vw, 168px); /* between the two parts of the section */
  /* The last row of demos lies over the closing picture, where the black turns
     to sky, and stops a little above the clouds that lead into Screen 3 */
  padding: 120px var(--pad) max(96px, calc(var(--bg-h) * .12));
}
/* One part of the section: its heading, then its demos */
.demo-group {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head .lede { max-width: 640px; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 40px;
}
@media (max-width: 1000px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* The thumbnail is half original, half processed, with the same white line
   as the slider in the player */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--night);
  cursor: pointer;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .2s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.thumb::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
}
.thumb:hover img { filter: brightness(1.08); transform: scale(1.02); }

/* A demo that is one video, not a before and after: no line down the middle */
.card-single .thumb::after { content: none; }

/* A demo that is not made yet: an empty frame that says so (its Play button is
   switched off, further down) */
.card-soon .thumb {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(246, 241, 234, .28);
  background: rgba(246, 241, 234, .04);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  cursor: default;
}
.card-soon .thumb::after { content: none; }

.card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.card-text {
  margin: 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper-mute);
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 12px;
  /* The brighter colour is a second layer, zero wide, that grows from the left on hover */
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) left / 0% 100% no-repeat var(--accent);
  color: var(--night);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-size .5s ease;
}
.play:not(:disabled):hover { background-size: 100% 100%; }
/* On the card of a demo that is not made yet */
.play:disabled { opacity: .4; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .play { transition: none; }
  .thumb:hover img { transform: none; }
}

/* ---------- 4. Screen 3 ---------- */

:root {
  /* How dark the sky is where the demos section ends and Screen 3 begins (0 to 1).
     Both sides of that line use it, and level off towards it, so the sky runs
     through without a visible edge. */
  --seam: .45;
}

.services {
  --fg: var(--paper);
  --fg-hover: var(--accent-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #536c88; /* the sky at the top edge of the video, in case a hairline shows above it */
}
.services .logo { --fg: #fff; }

/* Its logo and menu stay away until Screen 3 has the window to itself, then
   fade in (site.js adds is-focused), and go again when the page moves on */
.services > .site-header {
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s, visibility 0s .6s;
}
.services.is-focused > .site-header {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s;
}

/* Held to its top edge, so it always carries on from the picture above it */
.services-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 1px); /* a pixel past the bottom edge, so no hairline of the background shows under it */
  object-fit: cover;
  object-position: center top;
}
/* With a mouse: the man turning his head, in place of the loop (site.js) */
.clip-look {
  opacity: 0;
  transition: opacity .3s linear;
}
.clip-look.is-on { opacity: 1; }

/* Darker behind the menu, clearing towards the face */
.services-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 8, var(--seam)) 0%, rgba(11, 9, 8, calc(var(--seam) * .96)) 4%, rgba(11, 9, 8, calc(var(--seam) * .6)) 18%, rgba(11, 9, 8, 0) 34%);
}

.services-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 var(--pad);
  text-align: center;
}
.services-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.services-head p {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.5;
  color: #e9e3da;
}

/* One list on each side of the face */
.services-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px var(--pad) 48px;
}
.service-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
}
.service-card {
  flex: 0 1 320px;
  min-width: min(280px, 100%);
  padding: 28px;
  background: rgba(11, 9, 8, .58);
  border: 1px solid rgba(246, 241, 234, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* The mobile layout: one list under the other, in the middle */
@media (max-width: 720px) {
  .service-cards {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }
  .service-card {
    flex: none;
    width: 100%;
    max-width: 320px;
  }
}
.service-card h3 { margin-bottom: 16px; }
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.35;
}
.service-card li {
  padding: 12px 0;
  border-top: 1px solid rgba(246, 241, 234, .16);
  cursor: default;
}
.service-card li:last-child { padding-bottom: 0; }
/* Under a finger a line is tapped (site.js). The pointer cursor is never seen
   there: it is what makes an iPhone take the line for something to tap. The
   second rule takes away the grey flash an iPhone then gives the tap: the
   line opening is answer enough. */
@media (hover: none) {
  .service-card li {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Each line has a few words more under it, in smaller letters. They open while
   the mouse is on the line or the keyboard has reached it, and on a touch
   screen after a tap (site.js adds is-open). The small plus at the end of the
   line says there is more, and becomes a minus while it shows. */
.service-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s;
}
.service-name::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .55;
  transition: background-size .35s ease, opacity .2s;
}
/* A row that goes from no height to the height of its text */
.service-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.service-more > div {
  min-height: 0;
  overflow: hidden;
}
.service-more p {
  margin: 0;
  padding-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper-dim);
  opacity: 0;
  transition: opacity .35s ease;
}

/* (:has(:focus-visible): the keyboard is on a link inside the line) */
.service-card li.is-open .service-more,
.service-card li:focus-visible .service-more,
.service-card li:has(:focus-visible) .service-more { grid-template-rows: 1fr; }
.service-card li.is-open .service-more p,
.service-card li:focus-visible .service-more p,
.service-card li:has(:focus-visible) .service-more p { opacity: 1; }
.service-card li.is-open .service-name,
.service-card li:focus-visible .service-name,
.service-card li:has(:focus-visible) .service-name { color: #fff; }
.service-card li.is-open .service-name::after,
.service-card li:focus-visible .service-name::after,
.service-card li:has(:focus-visible) .service-name::after {
  background-size: 100% 1.5px, 1.5px 0;
  opacity: 1;
}
@media (hover: hover) {
  .service-card li:hover .service-more { grid-template-rows: 1fr; }
  .service-card li:hover .service-more p { opacity: 1; }
  .service-card li:hover .service-name { color: #fff; }
  .service-card li:hover .service-name::after {
    background-size: 100% 1.5px, 1.5px 0;
    opacity: 1;
  }
}

/* With a mouse, on a window with room to spare, a list grows downwards only:
   the height of the text that opens (--more, measured by site.js) is taken off
   the room its card takes up, at the same pace, so the top of the card, the
   lines above the mouse and the other card all stay where they are.
   (The window is wide enough here for the two cards to sit side by side.) */
@media (hover: hover) and (min-width: 760px) and (min-height: 760px) {
  .service-card.rise {
    transition:
      opacity .9s ease calc(var(--i, 0) * .12s),
      transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .12s),
      margin-bottom .35s ease;
  }
  .service-card:has(li:hover, li:focus-visible, li :focus-visible) { margin-bottom: calc(-1 * var(--more, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .service-more, .service-more p, .service-card.rise { transition: none; }
}

/* Text that comes in the first time its screen scrolls into view (Screen 3, footer) */
.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * .12s);
}
.is-in .rise {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rise { transform: none; }
}

/* ---------- 5. About, the logos, the frequent questions, and the footer: contact ---------- */

/* About: a few words on the studio, then its dates and distinctions on one
   line, all in the middle like the logos and the contact form under it */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding: clamp(88px, 10vw, 136px) var(--pad) 0;
  background: #000;
  text-align: center;
}
.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
}
.about-intro h2,
.faq-intro h2 { /* the title of the frequent questions, further down, is the same */
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  width: 100%;
  max-width: 1080px;
  margin: 0;
}
.about-facts > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 234, .16);
}
.about-facts dt {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
}
.about-facts dd {
  margin: 0;
  max-width: 300px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper-mute);
  text-wrap: balance;
}
/* Narrow windows: the facts go under each other */
@media (max-width: 640px) {
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-facts dd { max-width: none; }
}

/* Clients, partners and selections: one line of logos that moves by itself */
.clients {
  --shown: 6; /* how many logos the window shows at a time */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: clamp(88px, 10vw, 136px) 0 clamp(24px, 4vw, 56px);
  background: #000;
}
.clients .eyebrow {
  padding: 0 var(--pad);
  text-align: center;
}
@media (max-width: 1000px) { .clients { --shown: 4; } }
@media (max-width: 640px) { .clients { --shown: 3; gap: 40px; } }

/* As wide as the window. The logos fade out towards its two edges. */
.logos-window {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each logo has the same share of the line, and stands in the middle of it */
.logos li {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: calc(100% / var(--shown));
  padding: 0 clamp(10px, 1.6vw, 28px);
}
/* --w (index.html) is larger for a wide logo; from 2.4 up, a logo fills its share */
.logos img {
  display: block;
  width: calc(var(--w) / 2.4 * 100%);
  max-width: 100%;
  height: auto;
  opacity: .88;
}
/* site.js puts a second copy of the logos after the first, and says how many
   there are in one copy (--count). The line moves left by the width of one
   copy, at the same speed all the way, and starts again: the second copy is
   then where the first one was, so the eye sees no jump. */
.logos.is-rolling {
  flex-wrap: nowrap;
  justify-content: flex-start;
  animation: logos-roll calc(var(--count) * 4s) linear infinite; /* 4 seconds for each logo to move up one place */
}
@keyframes logos-roll {
  to { transform: translateX(calc(-100% * var(--count) / var(--shown))); }
}
/* For a visitor who has asked for less movement the logos stand still, on as
   many lines as they need */
@media (prefers-reduced-motion: reduce) {
  .logos-window { -webkit-mask-image: none; mask-image: none; }
  .logos.is-rolling {
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
  .logos li[aria-hidden] { display: none; }
}

/* Frequent questions: a title, then one line for each question, in the middle
   like the sections around it. A click on a question, or the keyboard, opens
   its answer under it (<details> in index.html: no script). The plus at the
   end of the line is the one of the two lists of Screen 3, and becomes a
   minus the same way while the answer shows. */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding: clamp(88px, 10vw, 136px) var(--pad) 0;
  background: #000;
}
.faq-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  text-align: center;
}
.faq-list {
  width: 100%;
  max-width: 720px;
}
.faq-list details { border-top: 1px solid rgba(246, 241, 234, .16); }
.faq-list details:last-child { border-bottom: 1px solid rgba(246, 241, 234, .16); }
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  list-style: none; /* no triangle in front of the question */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .55;
  transition: background-size .35s ease, opacity .2s;
}
.faq-list details[open] summary { color: #fff; }
.faq-list details[open] summary::after {
  background-size: 100% 1.5px, 1.5px 0;
  opacity: 1;
}
@media (hover: hover) {
  .faq-list summary:hover { color: #fff; }
  .faq-list summary:hover::after { opacity: 1; }
}
.faq-list p {
  margin: 0;
  padding: 0 35px 24px 0; /* its right edge stops short of the plus */
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-dim);
}
/* The answer goes from no height to its own, where the browser can do that
   (elsewhere it is there at once) */
@media (prefers-reduced-motion: no-preference) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .35s ease, content-visibility .35s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* The footer */

.site-footer {
  padding: 0 var(--pad) 64px;
  background: #000;
}

/* The first screenful: a few words, and the form under them, in the middle */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px 0;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  text-align: center;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  width: 100%;
  max-width: 720px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-wide, .form-foot { grid-column: 1 / -1; }
/* The trap for robots (index.html): in the page, but where nobody sees it */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field > span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.field input, .field textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(246, 241, 234, .3);
  border-radius: 0;
  background: none;
  color: var(--paper);
  font: 400 17px/1.5 var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input:hover, .field textarea:hover { border-bottom-color: rgba(246, 241, 234, .6); }
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}
/* Keep the black when the browser fills a field in by itself */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--paper);
  box-shadow: 0 0 0 100px #000 inset;
  caret-color: var(--paper);
}
.form-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
/* What the details are used for, said above the Send button */
.form-note {
  max-width: 600px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-mute);
  text-wrap: pretty;
}
.form-note a, .policy a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.form-note a:hover, .policy a:hover { color: var(--accent-soft); }
/* The second note, about reCAPTCHA, in smaller letters. Google allows its
   floating badge to be hidden as long as these words are shown with the form. */
.form-note + .form-note {
  margin-top: -12px;
  font-size: 12px;
}
.grecaptcha-badge { visibility: hidden; }
.btn:disabled {
  opacity: .5;
  cursor: default;
}
.form-status {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper-dim);
}

/* The end of the page: the logo, the social links under it, then the credits */
.footer-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  border-top: 1px solid rgba(246, 241, 234, .16);
}
.footer-logo {
  width: clamp(60px, 14vw, 215px);
  height: auto;
  color: var(--paper);
}
/* The sections of the site, as in the menu at the top */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(20px, 3vw, 36px);
  font-size: 15px;
  font-weight: 500;
}
.footer-nav a, .footer-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  transition: color .2s;
}
.footer-nav a:hover, .footer-nav button:hover { color: var(--accent-soft); }
.socials {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--paper-dim);
  transition: color .2s;
}
.socials a:hover { color: var(--accent-soft); }
.credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-align: center;
  color: var(--paper-dim);
}
.credits p { margin: 0; }
@media (max-width: 520px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. Menu overlay (narrow windows) and the curtain ---------- */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(11, 9, 8, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--paper);
}
.menu[open] { animation: menu-in .3s ease; }
.menu::backdrop { background: none; }
@keyframes menu-in { from { opacity: 0; } }

/* Logo and CLOSE sit exactly where the logo and MENU were */
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
}
.menu {
  --fg: var(--paper);
  --fg-hover: var(--accent-soft);
}
.menu .logo { --fg: #fff; }
.menu-close {
  display: inline-flex;
  color: var(--paper);
}
.menu-links {
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad) 48px;
}
.menu-links a {
  padding: 18px 0;
  border-top: 1px solid rgba(246, 241, 234, .16);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  transition: color .2s;
}
.menu-links a:last-child { border-bottom: 1px solid rgba(246, 241, 234, .16); }
.menu-links a:hover { color: var(--accent-soft); }
.menu-links .lang {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 16px 0 calc(16px + .16em);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
}

/* Black over everything for a moment, while the site goes back to Screen 1 */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.curtain.is-down {
  opacity: 1;
  visibility: visible;
}

/* ---------- 7. Demo player window ---------- */
/* From demos/index.html, with the site's fonts */

.player {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #161618;
  color: #fff;
  font: 500 13px/1 var(--sans);
  overflow: visible;
}
.player::backdrop { background: rgba(0, 0, 0, .82); }
.player-inner { padding: 14px 20px 16px; }

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.player-title {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -.01em;
}
.close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
}
.close:hover { background: rgba(255, 255, 255, .22); }

.player-hint {
  margin: 12px 0 0;
  color: #a6a6ad;
  font-weight: 400;
  line-height: 18px;
}

.stage {
  --ar: 1.7778; /* aspect ratio, replaced with the video's real ratio */
  --pos: 50%;   /* slider position, set from JS */
  --zoom: 1;    /* zoom and pan, set from JS */
  --tx: 0%;
  --ty: 0%;
  position: relative;
  /* As large as the window allows, with the whole picture visible */
  width: min(calc(100vw - 88px), max(300px, calc((100vh - 156px) * var(--ar))));
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.layer { position: absolute; inset: 0; }
.layer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Both videos zoom and pan together; the slider and labels stay put */
  transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--zoom));
}

/* One video alone: no slider to drag */
.stage.single { cursor: default; }
.stage.zoomed { cursor: grab; }
.stage.zoomed.panning { cursor: grabbing; }

/* The processed video sits on top and is cut away to the left of the slider */
.top { clip-path: inset(0 0 0 var(--pos)); }

.label, .zoom-badge, .notice {
  position: absolute;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  letter-spacing: .02em;
}
.label { bottom: 16px; }
.bottom .label { left: 16px; }
.top .label { right: 16px; }

.zoom-badge {
  top: 16px;
  right: 16px;
  pointer-events: none;
  display: none;
}
.stage.zoomed .zoom-badge { display: block; }

/* Until a demo's first videos have downloaded, the stage shows its thumbnail,
   dimmed, under a bar that fills up */
.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  pointer-events: none;
}
.stage.loading { cursor: default; }
.stage.loading .poster { opacity: 1; visibility: visible; }
.stage.loading .divider { opacity: 0; } /* not `visibility`, so it can still take keyboard focus */

/* The other version (1080p or 4K) is downloading: the one on screen keeps
   playing, dimmed like the thumbnail, and the slider goes until it is there */
.layer video { transition: filter .3s; }
.stage.fetching .layer video { filter: brightness(.4); }
.stage.fetching .divider { opacity: 0; }

/* The loader, in the middle of the picture: one line, half as wide as the
   picture, that fills up from the left as the videos download, with the
   percentage above it. The same one for a demo's first videos and for a
   change of version. */
.loader {
  --p: 0; /* progress from 0 to 1, set from JS */
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(50% + 20px); /* half the window: the picture is 40px narrower than it (.player-inner) */
  transform: translate(-50%, -50%);
  color: #fff;
  pointer-events: none;
}
.loader[hidden] { display: none; }
.loader-percent {
  min-height: 1.2em; /* the line stays where it is when there is no percentage to show */
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums; /* the figures keep their width: the percentage does not shake */
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.loader-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}
.loader-bar {
  height: 100%;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  transition: transform .2s linear;
}
/* Size of the download not known (the server does not say, or the page was
   opened straight from disk): no percentage, and a short piece of the bar
   that crosses the line again and again */
.loader.unknown .loader-bar {
  width: 30%;
  transition: none;
  animation: loader-cross 1.2s ease-in-out infinite;
}
@keyframes loader-cross {
  from { transform: translateX(-100%); }
  to { transform: translateX(334%); }
}
@media (prefers-reduced-motion: reduce) {
  .loader.unknown .loader-bar { width: 100%; opacity: .5; transform: none; animation: none; }
}

/* Messages */
.notice {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 10px 14px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  background: rgba(0, 0, 0, .7);
}
.notice:empty { display: none; }

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
  outline: none;
  cursor: ew-resize;
}
/* Wider invisible grab area around the line */
.divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  right: -12px;
}
.knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.divider:focus-visible .knob { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* 1080p / 4K switch */
.controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  cursor: default;
}
.switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .55);
}
.switch[hidden] { display: none; }
.switch svg { margin: 0 5px 0 7px; }
.switch button {
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  letter-spacing: .02em;
  cursor: pointer;
}
.switch button:hover { background: rgba(255, 255, 255, .15); }
.switch button[aria-pressed="true"] { background: #fff; color: #111; }
.switch button:disabled { color: rgba(255, 255, 255, .4); background: transparent; cursor: not-allowed; }
.switch button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

/* ---------- 8. Privacy policy page (privacy.html) and wrong address page (404.html) ---------- */

/* The policy is written in the page in both languages; only the one in use
   shows (assets/lang.js sets lang on <html>) */
html[lang="fr"] .in-en, html:not([lang="fr"]) .in-fr { display: none; }

.plain {
  --fg: var(--paper);
  --fg-hover: var(--accent-soft);
}
/* Not .site-nav, which goes on narrow windows: these two always fit */
.plain-nav {
  display: flex;
  align-items: center;
  gap: 4px clamp(16px, 3vw, 36px);
  font-size: 15px;
  font-weight: 500;
}
.plain-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  transition: color .2s;
}
.plain-nav a:hover { color: var(--fg-hover); }

.policy {
  max-width: calc(720px + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--pad) 96px;
}
.policy h1 { margin: 16px 0 28px; }
.policy h2 {
  margin: 56px 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
}
.policy p, .policy li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-dim);
}
.policy p { margin: 0 0 16px; }
/* The date above the title keeps the look of the small salmon lines of the site */
.policy .eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent);
}
.policy ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.policy li { margin-bottom: 8px; }
.policy li::marker { color: var(--accent); }
.policy strong {
  font-weight: 600;
  color: var(--paper);
}

.plain-footer {
  padding: 40px var(--pad) 64px;
  border-top: 1px solid rgba(246, 241, 234, .16);
}

/* The page shown for an address that does not exist (404.html): the same
   plain page, with a few words and a way back to the home page */
.lost {
  box-sizing: border-box;
  max-width: calc(720px + 2 * var(--pad));
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 140px) var(--pad) 96px;
}
.lost h1 { margin: 16px 0 20px; }
.lost .lede { margin-bottom: 32px; }

/* ---------- 9. Cookie bar (assets/consent.js) ---------- */

/* Along the bottom of the window until the visitor has answered, and again
   after a click on "Cookie settings". assets/consent.js builds it. */
.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 20; /* over the curtain */
  max-height: 100vh;
  max-height: 100svh;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(246, 241, 234, .16);
  background: rgba(11, 9, 8, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--paper);
  animation: consent-in .5s ease .6s backwards; /* it comes up a moment after the page */
}
.consent.is-asked { animation-delay: 0s; } /* at once when it was asked for */
.consent[hidden], .consent [hidden] { display: none; }
@keyframes consent-in {
  from { opacity: 0; translate: 0 16px; }
}

/* The words on the left, the buttons on the right. With the switches open
   (is-choosing) they come between the two, and the buttons go under them. */
.consent-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 48px;
  padding: 18px var(--pad);
}
.consent-words {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consent-text, .consent-kept, .consent-choice span span {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-dim);
  text-wrap: pretty;
}
.consent-text { max-width: 760px; }
.consent-text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color .2s;
}
.consent-text a:hover { color: var(--accent-soft); }

/* Refuse and Accept look the same on purpose: the law wants a no to be as
   easy as a yes */
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
}
.consent-button, .consent-more, .consent-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.consent-button {
  /* A little more on the left: the letter spacing leaves a gap after the last letter */
  padding: 0 18px 0 calc(18px + .16em);
  border: 1px solid currentColor;
}
.consent-more {
  padding: 0 8px;
  color: var(--paper-dim);
}
.consent-button:hover, .consent-more:hover, .consent-close:hover { color: var(--accent-soft); }
/* Close, top right: only when the bar was brought back by "Cookie settings" */
.consent-close {
  position: absolute;
  top: 8px;
  right: calc(var(--pad) - 14px);
  width: 44px;
}

/* The two switches */
.consent-choices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
}
.is-choosing .consent-actions { grid-column: 1 / -1; }
.consent-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.consent-choice > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.consent-choice strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
}
/* A square switch: the block is on the left for no, and slides to the right
   on salmon for yes */
.consent-choice input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--paper-mute);
  border-radius: 0;
  background: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.consent-choice input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--paper-mute);
  transition: translate .2s, background-color .2s;
}
.consent-choice input:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.consent-choice input:checked::before {
  translate: 18px 0;
  background: var(--night);
}
.consent-kept {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--paper-mute);
}

/* Narrow windows: everything in one column. Refuse and Accept share a line,
   the same width, and Customize goes under them. */
@media (max-width: 720px) {
  .consent-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
  }
  .consent-choices { grid-template-columns: minmax(0, 1fr); }
  .consent-actions { gap: 8px; }
  .consent-button {
    flex: 1 1 0;
    padding: 0 10px 0 calc(10px + .16em);
  }
  .consent-button[data-do="save"] { flex-basis: 100%; }
  .consent-more {
    order: 1;
    flex: 1 0 100%;
    min-height: 40px;
  }
  .is-asked .consent-words { padding-right: 36px; } /* room for Close */
}

/* While the bar is there (consent-on, on <html>), the foot of Screens 1 and 2
   stands that much higher, so the bar hides neither CONTINUE nor the title and
   its buttons. --consent-h is the height of the bar, measured in
   assets/consent.js. The move waits for the bar to come up, and goes with it. */
.hero-foot { transition: translate .5s ease; }
.consent-on .hero-foot {
  translate: 0 calc(-1 * var(--consent-h, 0px));
  transition-delay: .6s;
}
/* On Screen 2 the text stops before it meets the logo and the menu: --foot-room
   is how far it can go (measured in assets/site.js). In a short window the bar
   then covers the end of the text until it is answered. */
.consent-on[data-screen="theater"] .hero-foot {
  translate: 0 calc(-1 * min(var(--consent-h, 0px), var(--foot-room, 0px)));
}
/* The end of the page can be scrolled clear of the bar */
.consent-on body { padding-bottom: var(--consent-h, 0px); }

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
  .hero-foot, .consent-choice input, .consent-choice input::before { transition: none; }
}

/* "Cookie settings": a button that looks like the links around it. Hidden
   until assets/consent.js is there to answer it. */
.consent-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.consent-open[hidden] { display: none; }
.policy .consent-open {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.policy .consent-open:hover { color: var(--accent-soft); }

/* ---------- 10. The new name: window for visitors from abovethevoid.com ---------- */

/* A small window in the middle of the page, over a dark veil, shown only to
   a visitor the old address has sent here (index.html and assets/site.js).
   It has the dark glass of the menu overlay and of the cookie bar. */
.renamed {
  --fg: var(--paper); /* the colours of its EN / FR switch */
  --fg-hover: var(--accent-soft);
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: 0; /* the room is inside (renamed-inner): a click on the window itself is a click around it */
  border: 1px solid rgba(246, 241, 234, .16);
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(11, 9, 8, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--paper);
}
.renamed[open] { animation: renamed-in .4s ease; }
.renamed::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes renamed-in {
  from { opacity: 0; translate: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .renamed[open] { animation: none; }
}
.renamed-inner { padding: clamp(28px, 6vw, 48px); }
.renamed .display {
  margin: 14px 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}
.renamed .lede { max-width: none; }
.renamed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 28px;
}
