/* exposphere.ca — the feature pages (written by scripts/site/build.mjs from scripts/site/pages/) and the links
   to them on the home page. Builds on styles.css (its tokens, wrap, hero, sec, frame, checks, more, cta) and
   only adds what those pages need: a breadcrumb, a text beside its screen, cards that are links. */

/* ---- Breadcrumb ----------------------------------------------------------------------------- */
.crumbs {
  padding-top: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: 13px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  opacity: 0.6;
}
.crumbs a {
  color: inherit;
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---- Home page: the H1 says what Exposphere is (the kicker's words, as small as before); the slogan,
   now a <p>, keeps the H1's look (the same values as « .hero h1 » in styles.css: keep them together). */
.hero h1.kicker {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.3;
}
.hero__title {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* ---- A feature page's top: the home page's hero, a step smaller --------------------------- */
.page .hero__in {
  padding-top: clamp(24px, 4vw, 48px);
}
.page .hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.page__note {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ---- A section: its text beside its screen, on the other side every other time ------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.split--flip > :first-child {
  order: 2;
}
.split .sec__lead + .sec__lead {
  margin-top: 12px;
}
.split figure {
  margin: 0;
}
.frame--tablet {
  max-width: 92%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  background: #141414;
}
.frame--tablet img {
  border-radius: 18px;
}

/* ---- Cards that are links (the other pages; the home page's « Pour aller plus loin ») -------- */
.more--links li {
  padding: 0;
}
.more--links a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.more--links b::after {
  content: ' →';
  color: var(--accent);
}
.more--links a:hover b {
  color: var(--accent);
}
.more--links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.deeper {
  margin-top: clamp(40px, 5vw, 64px);
}
.deeper h3 {
  margin-top: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.deeper .more {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.cta--page {
  padding-top: clamp(56px, 7vw, 88px);
}

@media (max-width: 1080px) {
  .deeper .more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip > :first-child {
    order: 0;
  }
}
@media (max-width: 640px) {
  .deeper .more {
    grid-template-columns: minmax(0, 1fr);
  }
  .frame--tablet {
    max-width: 100%;
    padding: 6px;
    border-radius: 18px;
  }
}

/* ---- The top of every page fades in from its first paint ------------------------------------
   Without waiting for the script, which reveals the rest on scroll; the same rise and timing as .reveal.
   It starts at 0.01, not 0: an element at opacity 0 is not painted, so browsers never counted the hero as
   the page's largest paint (Lighthouse found no LCP at all). */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal {
    animation: hero-in 600ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}
@keyframes hero-in {
  from {
    opacity: 0.01;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Intro: the film's last scene, once per visit, on the home page ------------------------
   Shown only when the head's script put .intro-on on <html>. The scene is drawn on the film's own
   1920 × 1080 frame (.sig__frame), scaled to fit the screen (--s, set by site.js); site.js plays it, then
   .is-leaving lifts the curtain. If the script never runs, the intro hides itself after 6 s. */
.intro {
  display: none;
}
.intro-on .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #071233 0%, #040817 62%);
  color: rgb(255 255 255 / 0.94);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  animation: intro-safety 0s 6s forwards;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
}
.intro-on .intro.is-leaving {
  transform: translateY(-100%);
}
@keyframes intro-safety {
  to {
    visibility: hidden;
  }
}
/* The page's top waits under the curtain, and rises as it lifts (only while site.js plays the intro). */
.intro-playing:not(.intro-lift) .hero .reveal {
  animation-play-state: paused;
}
.intro__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.8);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.intro__skip:hover {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}
/* The blueprint grid of a show floor, and the vignette. */
.sig__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgb(140 175 255 / 0.1) 1px, transparent 1px), linear-gradient(90deg, rgb(140 175 255 / 0.1) 1px, transparent 1px),
    linear-gradient(rgb(140 175 255 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(140 175 255 / 0.07) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(90% 80% at 55% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 55% 45%, #000 30%, transparent 85%);
}
.intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 50%, transparent 55%, rgb(0 0 0 / 0.55) 100%);
  pointer-events: none;
}
.sig__frame {
  --s: 0.5;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s));
}
/* ExpoSphere's light: teal, a touch of violet, sky blue. */
.sig__halo {
  position: absolute;
  top: 20px;
  left: 260px;
  width: 1400px;
  height: 900px;
  opacity: 0.25;
  transform: scale(0.5);
  filter: blur(70px);
  background:
    radial-gradient(38% 46% at 24% 50%, rgb(20 184 196 / 0.53), transparent 70%),
    radial-gradient(30% 40% at 50% 46%, rgb(139 92 246 / 0.4), transparent 70%),
    radial-gradient(40% 50% at 78% 52%, rgb(96 165 250 / 0.6), transparent 70%);
  pointer-events: none;
}
.sig__markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sig__markers rect {
  fill: none;
  stroke: rgb(150 185 255 / 0.6);
  stroke-width: 1.5;
}
/* The lockup: the film's 720 × 240 box (the artwork's own), its mark centred on (101.27, 117.7). */
.sig__lockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 240px;
  transform-origin: 101.27px 117.7px;
}
.sig__mark {
  position: absolute;
  top: 36.83px;
  left: 20.72px;
  width: 161.1px;
  height: 161.1px;
  overflow: visible;
}
.sig__mark mask path,
.sig__lines path {
  fill: none;
  stroke-width: 4.3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.sig__mark mask path {
  stroke: #000;
}
.sig__lines path {
  stroke: #fff;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sig__real,
.sig__letters {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
}
/* The artwork's mark (left of x 560 / 2172), and its lettering (from x 575) wiped in by site.js. */
.sig__real {
  clip-path: inset(0 74.22% 0 0);
}
.sig__slogan {
  position: absolute;
  top: 660px;
  right: 0;
  left: 0;
  max-width: 1100px;
  margin: 0 auto;
  color: rgb(255 255 255 / 0.94);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
  opacity: 0;
}
.sig__slogan span {
  background: linear-gradient(90deg, #14b8c4, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
