/* Unruly Cricket / — reveal3 home: Quiet-Hero scrub (UFO→dino). */

:root {
  --bg: #000;
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.42);
  --soft: rgba(255, 255, 255, 0.24);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --track-mark: 0.28em;
  --track-meta: 0.22em;
  --strip-x: 62%;
  --strip-y: 0%;
  --strip-scale: 1.18;
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: rgba(255, 255, 255, 0.96);
}

.reveal-track {
  height: 155svh;
  height: 155dvh;
}

.stage--reveal {
  position: sticky;
  top: 0;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

/* Slightly oversized cover — tighter crop, shorter pan */
.stage__img--strip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--strip-x) var(--strip-y);
  transform: translate(-50%, -50%) scale(var(--strip-scale));
  transform-origin: center center;
  filter: saturate(0.5) contrast(1.02) brightness(0.68);
  will-change: object-position;
}

.stage__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 46%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.58) 72%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 42%);
  pointer-events: none;
}

.stage__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 4.5rem;
  max-width: 28rem;
}

.mark {
  margin: 0;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 400;
  letter-spacing: var(--track-mark);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.mark::after {
  content: "";
  margin-right: calc(var(--track-mark) * -1);
}

.line {
  margin: 1.25rem 0 0;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.line::after {
  content: "";
  margin-right: calc(var(--track-meta) * -1);
}

.link {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--soft);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.link::after {
  content: "";
  margin-right: calc(var(--track-meta) * -1);
}

.link:hover {
  color: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
}

.foot a {
  color: var(--soft);
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--muted);
}

.foot__mail {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.foot__mail:hover {
  border-bottom-color: var(--soft);
}

.foot {
  flex-direction: column;
  gap: 0.85rem;
}

/* Text menu = film-poster credits: centered axis, weight flicker */
.foot__menu {
  display: block;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.25rem 0.2rem;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.85;
  text-align: center;
  text-wrap: balance;
  color: var(--soft);
}

.foot__menu a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.foot__menu a:hover {
  color: var(--muted);
}

/* Credit rhythm: name / role — bold, light, bold, light… */
.foot__menu a:nth-of-type(odd) {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

.foot__menu a:nth-of-type(even) {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
}

.foot__menu a:nth-of-type(odd):hover,
.foot__menu a:nth-of-type(even):hover {
  color: var(--muted);
}


.foot__soon {
  display: inline;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: inherit;
}

.foot__dot {
  display: inline;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: 0;
  margin: 0 0.28em;
  user-select: none;
}



/* Optional soft break for long .line text */
.line-break {
  display: none;
}

@media (min-width: 640px) {
  .line {
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  .line-break {
    display: block;
  }
}

@media (min-width: 900px) {
  :root {
    --strip-x: 70%;
  }
}

@media (max-width: 639px) {
  :root {
    --strip-x: 55%;
  }

  .mark {
    letter-spacing: 0.22em;
    font-size: 0.84rem;
  }

  .mark::after {
    margin-right: -0.22em;
  }

  .line,
  .link {
    letter-spacing: 0.18em;
  }

  .line::after,
  .link::after {
    margin-right: -0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --strip-y: 72%;
  }

  .reveal-track {
    height: 100svh;
    height: 100dvh;
  }

  .stage__img--strip {
    transform: translate(-50%, -50%) scale(var(--strip-scale));
  }

  .link,
  .foot a {
    transition: none;
  }
}

/* —— Privacy modal: quiet Unruly stage popup (deadpan copy, same graphic language) —— */
.privacy-modal {
  margin: auto;
  padding: 0;
  border: 0;
  background: #0a0a0a; /* avoid UA white dialog flash if CSS partially loads */
  color-scheme: dark;
  max-width: calc(100vw - 2rem);
  color: var(--ink);
  font-family: var(--font);
}

.privacy-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.privacy-modal__panel {
  position: relative;
  width: min(32ch, calc(100vw - 2rem));
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: none;
}

.privacy-modal__bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/privacy-dino-head.jpg") center 36% / cover no-repeat;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.privacy-modal__body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.6rem 1.85rem;
}

.privacy-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font: 300 1.15rem/1 var(--font);
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.privacy-modal__close:hover {
  color: var(--muted);
}

.privacy-modal__title {
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.privacy-modal__title::after {
  content: "";
  margin-right: calc(var(--track-mark) * -1);
}

.privacy-modal__text {
  margin: 0 0 0.95rem;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
}

.privacy-modal__text:last-child {
  margin-bottom: 0;
}

.privacy-modal__text--aside {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  font-style: normal;
}

.privacy-modal__ok {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: 300 0.68rem/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-modal__ok:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.privacy-modal__text a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-modal__text a:hover {
  color: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Standalone /privacy/ — same panel centered on the black stage */
.privacy-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
}

.privacy-page .privacy-modal__panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-page .privacy-modal__bg {
  background-image: url("../assets/privacy-dino-head.jpg");
}

.privacy-page__close {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: 300 0.68rem/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-page__close:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .privacy-modal__close,
  .privacy-modal__text a,
  .privacy-page__close {
    transition: none;
  }
}
