@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #090a09;
  --black-soft: #111310;
  --paper: #efeee9;
  --ink: #171816;
  --muted: #9b9c92;
  --line: rgba(239,238,233,.14);
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
  background: #080908;
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

.panel {
  min-height: 100svh;
  width: 100%;
  position: relative;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}

#experience { scroll-snap-type: none; }

 .hero {
  background:
    linear-gradient(rgba(2,3,2,.835), rgba(2,3,2,.875)),
    url("alley-texture.png") center center / cover no-repeat;
  isolation: isolate;
}

/* The alley is already present. The spotlight simply brings the room up
   around the logo instead of fading the logo itself. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 42% 38% at 50% 45%,
      rgba(255,255,255,.145) 0%,
      rgba(255,255,255,.060) 34%,
      rgba(255,255,255,.018) 56%,
      transparent 76%
    );
  opacity: 0;
  animation: spotlightIn 1.7s ease-out .05s forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(2,3,2,.24) 0%,
    rgba(2,3,2,.04) 42%,
    rgba(2,3,2,.28) 100%
  );
}

@keyframes spotlightIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .065;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.08) 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.025) 6px);
  mix-blend-mode: screen;
}

.logo-wrap {
  width: min(52vw, 520px);
  min-width: 300px;
  opacity: .94;
  transform: translateY(0);
  position: relative;
  z-index: 2;
}

.logo-wrap img {
  width: 100%;
  display: block;
}

.logo-wrap.flicker img {
  animation: electricalFlicker 2.6s steps(1,end) 1.9s 1;
}

@keyframes electricalFlicker {
  0%, 18%, 21%, 24%, 100% { opacity: .94; }
  19% { opacity: .72; }
  20% { opacity: .94; }
  22% { opacity: .80; }
  23% { opacity: .94; }
}

.hero .scroll-cue { z-index: 2; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 9px;
  justify-items: center;
  color: rgba(239,238,233,.4);
  font: 600 10px/1 Inter, sans-serif;
  letter-spacing: .22em;
  animation: cueIn 1s ease 3s both;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(239,238,233,.4);
  animation: cuePulse 1.8s ease-in-out infinite;
}

@keyframes cueIn { from { opacity:0 } to { opacity:1 } }
@keyframes cuePulse { 50% { transform:scaleY(.55); opacity:.35; } }

.description,
.visit,
.farewell {
  background: var(--black);
}

.copy {
  width: min(900px, 82vw);
  text-align: center;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
}

.copy h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.025em;
}

.body-copy {
  margin: 42px 0 0;
  color: #aeb0a7;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.8;
}

.visit-inner {
  width: min(960px, 82vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 10vw, 160px);
}

.hours > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hours span {
  color: #aeb0a7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.hours strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: .02em;
}

.location h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(52px, 6vw, 86px);
  line-height: .9;
  font-weight: 600;
}

.location-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.farewell-copy {
  width: min(700px, 82vw);
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 500;
}

.farewell-copy p { margin: 0 0 18px; }
.farewell-copy .cta {
  margin-top: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.final-state {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s cubic-bezier(.2,.7,.2,1);
}

.final-state img {
  width: min(48vw, 480px);
  min-width: 280px;
  display: block;
}

.final-state .tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .28em;
}

body.final .final-state {
  opacity: 1;
  pointer-events: auto;
}

body.final .panel {
  visibility: hidden;
}

@media (max-width: 700px) {
  .logo-wrap { width: 78vw; min-width: 240px; }
  .visit-inner {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .copy h1 { font-size: clamp(39px, 11vw, 62px); }
  .hours > div { padding: 15px 0; }
  .location h2 { font-size: clamp(52px, 15vw, 76px); }
  .farewell-copy { font-size: clamp(29px, 9vw, 48px); }
  .final-state img { width: 72vw; }
}


.end-of-internet {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  color: rgba(23,24,22,.48);
  font: 500 9px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: lowercase;
}

@media (max-width: 700px) {
  .end-of-internet {
    bottom: 18px;
    font-size: 8px;
  }
}


/* One continuous brick-pattern backdrop behind all dark content slides.
   The backdrop stays fixed while the content sections move over it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .115;
  
  background-repeat: repeat;
  background-size: 380px 400px;
  background-position: 0 0;
  filter: grayscale(1);
  mix-blend-mode: screen;
}

.description,
.visit,
.farewell {
  position: relative;
  background: transparent;
}

.description > *,
.visit > *,
.farewell > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  body::before {
    opacity: .105;
    background-size: 300px 316px;
    background-position: 0 0;
  }
}


/* Final designer-supplied vertical lockup */
.final-state img { filter: none; }

/* Opening sign: present from frame one; the light reveals it. */
.hero .logo-wrap img {
  filter: invert(1) brightness(1.08) contrast(.96);
}

/* V29 — user's supplied, hand-cleaned single tile.
   The PNG already contains transparency, so it repeats directly over black. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("BG TILE SAGE.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 596px 298px;
  opacity: .32;
}

/* Keep the tile visible through the dark content panels. */
.hero, .description, .visit, .farewell, main, header, footer {
  position: relative;
  z-index: 1;
}

.description,
.visit,
.farewell {
  background: transparent;
}

/* Final QA — respect visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
