:root {
  --page-black: #030303;
  --page-white: #f2f2ee;
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .42);
  --muted: rgba(255, 255, 255, .62);
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--page-black);
}

body {
  color: var(--page-white);
  font-family: "Courier New", Courier, monospace;
}

/* ---------- Splash (Home/Index) ---------- */

body.page-splash {
  overflow: hidden;
}

.splash {
  min-height: 100svh;
  isolation: isolate;
  background: var(--page-black);
}

.splash-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, 100svh);
  height: min(100vw, 100svh);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: grayscale(1) contrast(1.06) brightness(0.72);
  transform: translate(-50%, -50%) scale(1.025);
  transition: opacity 1.8s ease, transform 2.2s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.splash.is-ready .splash-background {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Full-bleed YouTube background. Sized to "cover" at 16:9 and fades in over the still image. */
.splash-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.splash-video.is-playing { opacity: 1; }

.splash-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(56.25vw, 100svh);
  border: 0;
  /* Slight overscale pushes YouTube's edge chrome off screen. */
  transform: translate(-50%, -50%) scale(1.12);
}

.splash-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .08), transparent 42%, rgba(0, 0, 0, .9) 100%),
    radial-gradient(circle at 50% 42%, transparent 24%, rgba(0, 0, 0, .24) 63%, rgba(0, 0, 0, .82) 115%);
}

.brand-lockup {
  z-index: 5;
  width: min(560px, 84vw);
  padding-bottom: clamp(64px, 8vh, 104px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease .65s, transform 1s cubic-bezier(.22, 1, .36, 1) .65s;
}

.splash.is-ready .brand-lockup {
  opacity: 1;
  transform: translateY(0);
}

.logo-placeholder {
  display: block;
  width: min(520px, 78vw);
  max-height: min(46svh, 430px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, .82))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, .82))
    drop-shadow(0 1px 0 rgba(255, 255, 255, .82))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, .82))
    drop-shadow(0 12px 24px rgba(0, 0, 0, .58));
}

.coming-soon {
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.58rem, .75vw, .72rem);
  font-weight: 600;
  letter-spacing: .48em;
  text-indent: .48em;
}

.splash-link {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 2px;
  color: rgba(255, 255, 255, .45);
  font-size: clamp(.52rem, .65vw, .62rem);
  letter-spacing: .36em;
  text-indent: .36em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.splash-link:hover,
.splash-link:focus-visible {
  color: var(--page-white);
  border-bottom-color: var(--line-strong);
}

.social-links {
  gap: 22px;
  margin: 18px 0 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, .62);
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease;
}

a.social-link:hover,
a.social-link:focus-visible {
  color: var(--page-white);
  border-color: var(--line-strong);
}

.social-link.is-placeholder {
  cursor: default;
  opacity: .55;
}

.sound-toggle {
  position: absolute;
  z-index: 6;
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, .55);
  font-family: inherit;
  font-size: .55rem;
  letter-spacing: .24em;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}

.sound-toggle .bi { font-size: .85rem; }

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--page-white);
  border-color: var(--line-strong);
}

.corner-mark {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  color: rgba(255, 255, 255, .32);
  font-size: .48rem;
  letter-spacing: .18em;
}

.corner-mark-start { left: 28px; }
.corner-mark-end { right: 28px; }

/* ---------- Inner pages (Contact, Error) ---------- */

.page {
  position: relative;
  z-index: 5;
  min-height: 100svh;
}

.page-inner {
  max-width: 720px;
}

.back-link {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .28em;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--page-white);
}

.page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: .32em;
}

.page-lede {
  color: var(--muted);
}

.contact-form .form-label {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-form .form-control {
  color: var(--page-white);
  font-family: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-inline: 0;
}

.contact-form .form-control:focus {
  background: transparent;
  border-bottom-color: var(--page-white);
  box-shadow: none;
}

.contact-form .input-validation-error {
  border-bottom-color: #e06c6c;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #e06c6c;
  font-size: .75rem;
}

.notice {
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  font-size: .85rem;
  border: 1px solid var(--line-strong);
}

.notice ul { margin: 0; padding-left: 1rem; }
.notice-success { color: var(--page-white); }
.notice-error { color: #e06c6c; border-color: rgba(224, 108, 108, .5); }
.validation-summary-valid { display: none; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-mono {
  padding: .8rem 1.6rem;
  color: var(--page-black);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  background: var(--page-white);
  border: 1px solid var(--page-white);
  transition: background .2s ease, color .2s ease;
}

.btn-mono:hover,
.btn-mono:focus-visible {
  color: var(--page-white);
  background: transparent;
}

/* ---------- Shared ---------- */

.film-grain {
  position: fixed;
  inset: -40%;
  z-index: 4;
  pointer-events: none;
  opacity: .026;
  background-image: repeating-radial-gradient(circle at 26% 32%, #fff 0 .45px, #000 .7px 2.5px);
  background-size: 5px 5px;
  animation: grain .34s steps(2) infinite;
  mix-blend-mode: soft-light;
}

@keyframes grain {
  0% { transform: translate3d(-1%, 2%, 0); }
  35% { transform: translate3d(2%, -1%, 0); }
  70% { transform: translate3d(1%, 2%, 0); }
  100% { transform: translate3d(-2%, -2%, 0); }
}

@media (max-width: 575.98px) {
  .splash-background {
    width: min(112vw, 86svh);
    height: min(112vw, 86svh);
  }

  .brand-lockup { padding-bottom: 72px; }

  .logo-placeholder {
    width: min(88vw, 410px);
    max-height: 40svh;
  }

  .corner-mark-start { left: 20px; }
  .corner-mark-end { right: 20px; }

  .sound-toggle { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
