:root {
  color-scheme: dark;
  --bg: #050507;
  --ink: #f8faf8;
  --muted: #c0c7ca;
  --soft: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.06);
  --aqua: #8ff0de;
  --gold: #ffd586;
  --violet: #bba5ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 240, 222, 0.14), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(255, 213, 134, 0.12), transparent 28%),
    linear-gradient(135deg, #050507 0%, #101113 52%, #050507 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.brand-header {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
}

.logo-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(136px, 13vw, 180px);
  min-height: 46px;
  isolation: isolate;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
  animation: logoDrift 5.5s ease-in-out infinite;
}

.logo-pulse {
  position: absolute;
  inset: -14px -18px;
  z-index: -1;
  border: 1px solid rgba(143, 240, 222, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.84);
  animation: logoPulse 2.8s ease-out infinite;
}

.logo-link::after {
  position: absolute;
  inset: 4px -16px;
  pointer-events: none;
  content: "";
  background: linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.55) 46%, transparent 62%);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-64%);
  animation: logoSweep 4.8s ease-in-out infinite;
}

.coming-soon-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 28px 72px;
}

.hero {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.site-footer {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.6rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.88;
}

.lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.46rem);
  font-weight: 560;
  line-height: 1.45;
}

.landing-visual {
  margin: 0;
}

.image-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.42),
    0 0 56px rgba(143, 240, 222, 0.12);
  transform-origin: center;
  animation: imageFloat 7s ease-in-out infinite;
}

.image-stage::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(143, 240, 222, 0.22), transparent 18%, transparent 80%, rgba(255, 213, 134, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 36%, rgba(0, 0, 0, 0.28));
  opacity: 0.76;
}

.image-stage::after {
  position: absolute;
  inset: -40% -70%;
  z-index: 3;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-44%);
  animation: imageGlint 6.6s ease-in-out infinite;
}

.image-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  object-fit: cover;
  transform: scale(1.035);
  animation: imageBreathe 9s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 240, 222, 0.88), transparent);
  box-shadow: 0 0 18px rgba(143, 240, 222, 0.62);
  opacity: 0.7;
  animation: scanMove 4.4s linear infinite;
}

.site-footer {
  position: fixed;
  right: 28px;
  bottom: 22px;
  left: 28px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@keyframes logoPulse {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }
  18% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes logoSweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-64%);
  }
  66% {
    opacity: 0.36;
  }
  84%,
  100% {
    opacity: 0;
    transform: translateX(64%);
  }
}

@keyframes logoDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes imageFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0) rotateY(0);
  }
  50% {
    transform: translateY(-10px) rotateX(0.8deg) rotateY(-1.1deg);
  }
}

@keyframes imageBreathe {
  0%,
  100% {
    transform: scale(1.035);
  }
  50% {
    transform: scale(1.065);
  }
}

@keyframes imageGlint {
  0%,
  42% {
    transform: translateX(-44%);
  }
  72%,
  100% {
    transform: translateX(44%);
  }
}

@keyframes scanMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100vh);
  }
}

@media (max-width: 860px) {
  .brand-header {
    top: 18px;
    left: 18px;
  }

  .coming-soon-shell {
    align-items: start;
    padding: 96px 18px 84px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.8rem);
  }

  .lede {
    max-width: 100%;
  }

  .site-footer {
    right: 18px;
    bottom: 18px;
    left: 18px;
    font-size: 0.68rem;
  }
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  background: #030303;
}

.brand-header {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 5;
  --logo-width: clamp(118px, 13vw, 170px);
}

.brand-header a {
  position: relative;
  display: inline-block;
  width: 0;
  max-width: var(--logo-width);
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.08em solid rgba(0, 0, 0, 0.86);
  animation:
    logoWakeWordTyping 2.8s steps(8, end) 180ms infinite,
    logoWakeWordCursor 2.8s step-end 180ms infinite;
}

.brand-header img {
  display: block;
  width: var(--logo-width);
  height: auto;
}

.landing-page {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #030303;
}

.landing-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: landingImageLoop 10s ease-in-out infinite;
}

.image-sheen {
  position: absolute;
  inset: -40% -70%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.18) 50%, transparent 58%);
  transform: translateX(-42%);
  animation: landingImageSheen 6s ease-in-out infinite;
}

@keyframes landingImageLoop {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.055);
  }
}

@keyframes landingImageSheen {
  0%,
  42% {
    opacity: 0;
    transform: translateX(-42%);
  }
  54% {
    opacity: 0.55;
  }
  78%,
  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes logoWakeWordTyping {
  0%,
  10% {
    width: 0;
  }
  38%,
  88% {
    width: var(--logo-width);
  }
  100% {
    width: 0;
  }
}

@keyframes logoWakeWordCursor {
  0%,
  88% {
    border-color: rgba(0, 0, 0, 0.86);
  }
  100% {
    border-color: transparent;
  }
}

@media (max-width: 860px) {
  .brand-header {
    top: 14px;
    left: 16px;
    --logo-width: 112px;
  }

  .brand-header img {
    width: var(--logo-width);
  }
}

.brand-header a {
  width: var(--logo-width);
  max-width: none;
  overflow: visible;
  white-space: normal;
  border-right: 0;
  animation: none;
}

/* Responsive production overrides for the image-only landing page. */
:root {
  --landing-image: url("assets/Landing_page_for_Latent_Code_202607131225.jpeg");
  --logo-width: clamp(118px, 12vw, 170px);
}

body {
  overflow: hidden;
  background: #f4f2eb;
}

.brand-header {
  top: clamp(14px, 2.5vw, 24px);
  left: clamp(16px, 2.7vw, 28px);
  width: var(--logo-width);
}

.brand-header a,
.brand-header img {
  display: block;
}

.brand-header a {
  width: 100%;
}

.brand-header img {
  width: 100%;
  height: auto;
}

.landing-page {
  isolation: isolate;
  background: #f4f2eb;
}

.landing-page img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transform-origin: center;
  animation: landingImageLoopResponsive 10s ease-in-out infinite;
}

.image-sheen {
  z-index: 2;
}

@keyframes landingImageLoopResponsive {
  0%,
  100% {
    transform: scale(1.015);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes landingMobileImageLoopResponsive {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.035);
  }
}

@media (max-width: 900px) {
  .landing-page img {
    object-position: 58% center;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  :root {
    --logo-width: clamp(104px, 34vw, 132px);
  }

  .landing-page::before {
    position: absolute;
    inset: -24px;
    z-index: 0;
    content: "";
    background-image: var(--landing-image);
    background-position: 64% center;
    background-size: cover;
    filter: blur(18px) saturate(0.92);
    opacity: 0.72;
    transform: scale(1.08);
  }

  .landing-page::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 24%, transparent 74%, rgba(229, 242, 246, 0.56)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent 40%, rgba(17, 28, 36, 0.22));
  }

  .landing-page img {
    inset: auto;
    top: 50%;
    left: 50%;
    width: clamp(640px, 178vw, 780px);
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    animation: landingMobileImageLoopResponsive 10s ease-in-out infinite;
  }

  .image-sheen {
    inset: -18% -120%;
    background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, 0.2) 50%, transparent 56%);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --logo-width: clamp(104px, 15vw, 132px);
  }

  .landing-page img {
    object-position: 60% center;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page img,
  .image-sheen {
    animation: none !important;
  }
}
