/* First paint — must not wait on JS or the bottom of styles.css */
:root {
  --bg: #010206;
  --text: #d8dde8;
  --muted: #6a7388;
  --highlight: #5eb0e8;
}

html.dossier,
body.dossier {
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

body.dossier .hero__vignette,
body.dossier .hero__light-dance {
  display: none !important;
}

/* Hero FX first paint (HERO_FX in main.js) */
html.hero-starfield-off .hero > .stars-wrap,
html.hero-starfield-off .hero .shooting-stars,
html.hero-effects-off .hero > .stars-wrap,
html.hero-effects-off .hero .shooting-stars {
  display: none !important;
}

html.hero-ambience-off .hero .hero__noise,
html.hero-ambience-off .hero .hero__vignette,
html.hero-ambience-off .hero .hero__light-dance,
html.hero-ambience-off .hero .hero__scanlines,
html.hero-effects-off .hero .hero__noise,
html.hero-effects-off .hero .hero__vignette,
html.hero-effects-off .hero .hero__light-dance,
html.hero-effects-off .hero .hero__scanlines {
  display: none !important;
}

html.dossier .nav__goo,
body.dossier .nav__goo {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.dossier .nav__links[data-goo-synced="1"] .nav__goo,
body.dossier .nav__links[data-goo-synced="1"] .nav__goo {
  opacity: 1 !important;
  visibility: visible !important;
}

.dossier .nav__goo-node,
.dossier .nav__goo-bridge {
  background: #fff !important;
}

html.cursor-blob-active body.dossier,
html.cursor-blob-active body.dossier a,
html.cursor-blob-active body.dossier button,
html.cursor-blob-active body.dossier [role="button"],
html.cursor-blob-active body.dossier label,
html.cursor-blob-active body.dossier summary {
  cursor: none !important;
}

html.cursor-blob-active body.dossier.cursor-overlay-open,
html.cursor-blob-active body.dossier.cursor-overlay-open a,
html.cursor-blob-active body.dossier.cursor-overlay-open button {
  cursor: auto !important;
}

body.dossier .stars {
  opacity: 0.92;
}

body.dossier .hero__logo-glow {
  position: relative;
  display: inline-block;
  line-height: 0;
}

body.dossier .hero__logo-glow .hero__logo {
  display: block;
  margin: 0;
}

html.dossier .nav__links a,
html.dossier .project__view,
html.dossier .btn-ghost,
html.dossier .hero__showreel-btn,
html.dossier .connect__link,
body.dossier .nav__links a,
body.dossier .project__view,
body.dossier .btn-ghost,
body.dossier .hero__showreel-btn,
body.dossier .connect__link,
html.dossier button.project__view,
html.dossier button.btn-ghost,
html.dossier button.hero__showreel-btn,
body.dossier button.project__view,
body.dossier button.btn-ghost,
body.dossier button.hero__showreel-btn {
  color-scheme: only light;
  color-scheme: light;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

html.dossier .nav__links a,
html.dossier .project__view,
html.dossier .btn-ghost,
html.dossier .hero__showreel-btn,
html.dossier .connect__link,
body.dossier .nav__links a,
body.dossier .project__view,
body.dossier .btn-ghost,
body.dossier .hero__showreel-btn,
body.dossier .connect__link,
html.dossier button.project__view,
html.dossier button.btn-ghost,
html.dossier button.hero__showreel-btn,
body.dossier button.project__view,
body.dossier button.btn-ghost,
body.dossier button.hero__showreel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #fff !important;
  color: #000 !important;
  border: none !important;
  border-radius: 999px;
  box-shadow: none !important;
  text-shadow: none;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Jost", "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
}

html.dossier .nav__links a,
body.dossier .nav__links a {
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

html.dossier .project__view,
html.dossier .btn-ghost,
html.dossier .hero__showreel-btn,
html.dossier .connect__link,
body.dossier .project__view,
body.dossier .btn-ghost,
body.dossier .hero__showreel-btn,
body.dossier .connect__link {
  padding: 13px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

html.dossier .nav__links a .pill__text,
html.dossier .project__view .pill__text,
html.dossier .btn-ghost .pill__text,
html.dossier .hero__showreel-btn .pill__text,
html.dossier .connect__link .pill__text,
body.dossier .nav__links a .pill__text,
body.dossier .project__view .pill__text,
body.dossier .btn-ghost .pill__text,
body.dossier .hero__showreel-btn .pill__text,
body.dossier .connect__link .pill__text {
  color: #000 !important;
}

html.dossier .nav__links a::after,
body.dossier .nav__links a::after {
  display: none !important;
}

body.dossier .hero__energy-line {
  display: block;
  width: 2px;
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98), rgba(94, 176, 232, 0.42)) !important;
  box-shadow:
    0 0 6px rgba(94, 176, 232, 0.55),
    0 0 14px rgba(110, 196, 255, 0.35),
    0 0 24px rgba(94, 176, 232, 0.2) !important;
  opacity: 0.92 !important;
  filter: none !important;
}

.cursor-blob {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10001;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #fff !important;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0) translate(-50%, -50%);
  box-shadow: none;
  opacity: 0;
}

/* Coming soon — no document scroll (first paint; mirrors styles.css) */
html:has(body[data-page="coming-soon"]) {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-page="coming-soon"] {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-page="coming-soon"] #main {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body[data-page="coming-soon"] .hero--coming-soon {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

html.hero-starfield-off body[data-page="home"] > .stars-wrap,
html.hero-starfield-off body[data-page="archive"] > .stars-wrap,
html.hero-starfield-off body[data-page="coming-soon"] .hero > .stars-wrap,
html.hero-effects-off body[data-page="home"] > .stars-wrap,
html.hero-effects-off body[data-page="archive"] > .stars-wrap,
html.hero-effects-off body[data-page="coming-soon"] .hero > .stars-wrap {
  display: block !important;
}

body.dossier #home.hero,
body.dossier .hero.hero--coming-soon {
  overflow: visible;
}

body.dossier .hero > .stars-wrap {
  overflow: hidden;
}

body.dossier .hero__stage,
body.dossier .hero__lockup,
body.dossier .hero__logo-glow {
  overflow: visible;
}

body[data-page="home"] .hero__name,
body[data-page="coming-soon"] .hero__name,
body[data-page="coming-soon"] .hero__tagline {
  color: #6a7388 !important;
  -webkit-text-fill-color: #6a7388;
  text-shadow: none !important;
  filter: none !important;
}

body[data-page="home"] .hero__logo-glow .hero__logo,
body[data-page="coming-soon"] .hero__logo-glow .hero__logo {
  filter: url(#hero-logo-glow);
}

/* Mobile Safari: round covers even if an older styles.css is cached */
@media (max-width: 768px) {
  .project__media,
  .dossier .project__media {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .dossier .project__media::before {
    display: none !important;
    content: none !important;
  }

  .project__media img {
    border-radius: 12px !important;
  }
}
