:root {
  color-scheme: dark;
  background: #000;
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #000; }

.experience {
  --scroll-progress: 0;
  position: relative;
  isolation: isolate;
}

.landing {
  --illumination: .35;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.light-field, .grain, .spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.spotlight {
  /* Overscan above the viewport; narrowing the beam never exposes its top edge. */
  inset: -25% -10% 8%;
  opacity: calc(var(--illumination) * (1 - var(--scroll-progress) * .8));
  transform: scaleX(calc(1 - var(--scroll-progress) * .3));
  transform-origin: 50% 0;
  background: conic-gradient(from 150deg at 50% 16%, transparent 0deg, #ffffff05 9deg, #ffffff16 30deg, #ffffff05 51deg, transparent 60deg);
  filter: blur(20px);
  mask-image: linear-gradient(#000 0%, #000 30%, #0009 62%, transparent 94%);
}

.spotlight::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 32%;
  width: 36%;
  height: 14%;
  background: radial-gradient(ellipse at 50% 0%, #ffffff75, #ffffff12 35%, transparent 70%);
}

.light-field {
  transform: scale(calc(1 - var(--scroll-progress) * .48));
  transform-origin: 50% 46%;
  opacity: calc(1 - var(--scroll-progress) * .7);
  /* Keep the light at the edges of the lettering and dissolve it into black. */
  mask-image: radial-gradient(ellipse at 50% 46%, #0003 0%, #000 40%, #000 58%, transparent 88%);
}

.light-field canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(calc(.6px + var(--scroll-progress) * 7px));
}

.grain {
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.hero-content {
  display: grid;
  place-items: center;
  padding: 0 24px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  margin: 0;
  padding-bottom: 8vh;
  white-space: nowrap;
  color: rgb(calc(155 + var(--illumination) * 90), calc(155 + var(--illumination) * 90), calc(155 + var(--illumination) * 90));
  text-shadow: 0 -3px 28px rgb(255 255 255 / calc(var(--illumination) * .12));
  line-height: 1;
  transform: scale(calc(1 - var(--scroll-progress) * .55));
  filter: blur(calc(var(--scroll-progress) * 12px));
  opacity: calc(1 - var(--scroll-progress) * .78);
}

.era, .products h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.075em;
}

.era { font-size: clamp(3rem, 11vw, 11rem); }

.studios {
  font-size: clamp(2.1rem, 7.7vw, 7.7rem);
  font-weight: 300;
  letter-spacing: -.065em;
}

.intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  padding: 20px 24px;
  color: #888;
  text-decoration: none;
  animation: cue-reveal 1s ease 3.2s both;
}

.scroll-cue:hover { color: #eee; }
.scroll-cue:focus-visible { outline: 1px solid #aaa; outline-offset: 4px; }

/* Transparent content passes around the same fixed scene, with no section cut. */
.products {
  min-height: 120vh;
  min-height: 120svh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 36vw;
  align-content: start;
  align-items: start;
  padding: 16vh clamp(24px, 5vw, 100px) 24vh;
}

.products h2 {
  margin: 0 0 32px;
  color: #e8e8e5;
  font-size: clamp(2rem, 4.1vw, 4.8rem);
  line-height: 1.08;
}

.products h2 span {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: -.065em;
}

.products p {
  margin: 0;
  color: #999;
  font-size: clamp(.85rem, 1vw, 1rem);
  line-height: 1.85;
}

.services { display: grid; gap: 64px; padding-top: 8px; }
.service h3 {
  margin: 0 0 16px;
  color: #ddd;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -.025em;
}

footer {
  position: relative;
  padding: 32px 24px max(30px, env(safe-area-inset-bottom));
  color: #aaa;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.6;
}

@keyframes cue-reveal {
  from { opacity: 0; visibility: hidden; }
  to { opacity: clamp(0, calc(1 - var(--scroll-progress) * 24), 1); visibility: visible; }
}

@media (max-width: 700px) {
  .products {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 22vw;
    padding-inline: 24px;
  }
  .products h2 { font-size: clamp(1.55rem, 4.5vw, 2.5rem); }
  .services { gap: 48px; }
  .products p { font-size: .8rem; line-height: 1.75; }
}

@media (max-width: 480px) {
  .hero-content { padding-inline: 20px; }
  .products { column-gap: 18vw; padding-inline: 18px; }
  .service h3 { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark, .light-field, .spotlight { transform: none; }
}
