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

:root {
  --ink: #e9edf0;
  --muted: #aab4bc;
  --amber: #edae4a;
  --night: #071019;
  --tape: #f1c40f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { font-family: Inter, system-ui, sans-serif; background: var(--night); color: var(--ink); }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #050b10;
}

.hero__backdrop,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  z-index: -3;
  background: url('assets/moonlit-cave.png') center center / cover no-repeat;
  transform: scale(1.01);
  animation: settle 2s ease-out both;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, .91) 0%, rgba(3, 9, 15, .70) 34%, rgba(3, 9, 15, .12) 65%, rgba(3, 7, 10, .06) 100%),
    linear-gradient(0deg, rgba(1, 5, 8, .78) 0%, transparent 38%);
}

.hero__copy {
  width: min(680px, 58vw);
  padding: clamp(4rem, 12vh, 9rem) 0 4rem clamp(1.5rem, 8vw, 9rem);
  text-shadow: 0 3px 24px #000;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: #9daeb9;
  font: 600 clamp(.65rem, .9vw, .82rem)/1 Barlow Condensed, sans-serif;
  letter-spacing: .27em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(4rem, 10vw, 9rem)/.78 Barlow Condensed, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero h1 span { display: block; font-weight: 400; color: #c8d0d5; }
.llc { margin: .9rem 0 0 .3rem; color: var(--amber); letter-spacing: .72em; font-size: .72rem; font-weight: 600; }
.rule { width: 5.25rem; height: 2px; margin: 2.25rem 0 1.75rem; background: linear-gradient(90deg, var(--amber), transparent); }
.coming { margin: 0; font: 600 clamp(1.4rem, 2.4vw, 2.1rem)/1 Barlow Condensed, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.subcopy { max-width: 26rem; margin-top: .8rem; color: var(--muted); font-size: clamp(.83rem, 1.1vw, 1rem); line-height: 1.65; }

.coordinates {
  position: absolute;
  left: clamp(1.5rem, 8vw, 9rem);
  bottom: 1.4rem;
  margin: 0;
  color: rgba(220, 228, 233, .38);
  font: 400 .6rem/1 Barlow Condensed, sans-serif;
  letter-spacing: .3em;
}

.cave-entry {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 5%;
  width: 31vw;
  height: 52vh;
  overflow: hidden;
  outline: none;
}

.cave-entry__wolf {
  position: absolute;
  right: -8%;
  bottom: -6%;
  width: min(19vw, 300px);
  max-height: 74%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0;
  transform: translateX(68%) rotate(2deg);
  filter: drop-shadow(-16px 10px 18px rgba(0,0,0,.75));
  transition: transform .78s cubic-bezier(.18,.76,.22,1), opacity .28s ease;
}

.cave-entry__hint {
  position: absolute;
  right: 8%;
  bottom: 4%;
  color: rgba(230, 237, 239, 0);
  font: 600 .62rem/1 Barlow Condensed, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
  transition: color .4s ease .25s;
}

.cave-entry:hover .cave-entry__wolf,
.cave-entry:focus-visible .cave-entry__wolf,
.cave-entry.is-awake .cave-entry__wolf {
  opacity: .96;
  transform: translateX(0) rotate(0);
}

.cave-entry:hover .cave-entry__hint,
.cave-entry:focus-visible .cave-entry__hint,
.cave-entry.is-awake .cave-entry__hint { color: rgba(230, 237, 239, .56); }

.cave-entry:focus-visible { box-shadow: inset 0 0 0 2px rgba(237,174,74,.65); }

/* The Den */
.den { overflow: hidden; background: #090b0d; }
.den-scene { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.den-scene__rock { position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 50% 38%, rgba(67,65,58,.35), transparent 30%), url('assets/moonlit-cave.png') 83% center / cover no-repeat; filter: brightness(.18) saturate(.45) blur(2px); transform: scale(1.04); }
.den-scene::after { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle, transparent 0 15%, rgba(0,0,0,.78) 80%); }
.worklight { position: absolute; top: -18%; width: 30vw; height: 65vh; background: linear-gradient(170deg, rgba(255,195,80,.18), transparent 70%); filter: blur(18px); transform: rotate(18deg); }
.worklight--left { left: 5%; }
.worklight--right { right: 4%; transform: scaleX(-1) rotate(18deg); }

.den-card { position: relative; width: min(640px, 85vw); padding: clamp(2.2rem, 6vw, 4.5rem); text-align: center; background: rgba(11,13,14,.88); border: 1px solid rgba(255,255,255,.11); box-shadow: 0 26px 80px rgba(0,0,0,.7); }
.den-card::before { content: ''; position: absolute; inset: 9px; border: 1px dashed rgba(255,255,255,.10); pointer-events: none; }
.den-card__stamp { margin: 0 0 1.2rem; color: #84898d; font: 600 .66rem/1 Barlow Condensed, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.den-card h1 { margin: 0; font: 700 clamp(4.5rem, 13vw, 8.5rem)/.8 Barlow Condensed, sans-serif; text-transform: uppercase; }
.den-card__status { margin: 1.5rem 0 0; color: var(--tape); font: 700 clamp(1rem, 2.5vw, 1.5rem)/1 Barlow Condensed, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.den-card__note { margin: 1rem 0 2.4rem; color: #aeb2b4; }
.return-link { position: relative; z-index: 2; color: #d7dadd; text-decoration: none; border-bottom: 1px solid #686b6e; padding-bottom: .22rem; font-size: .8rem; }
.return-link:hover, .return-link:focus-visible { color: #fff; border-color: var(--tape); }

.tape { position: absolute; z-index: 4; left: -8vw; width: 116vw; height: 3.15rem; display: flex; align-items: center; overflow: hidden; background: repeating-linear-gradient(135deg, #f1c40f 0 28px, #e6b905 28px 56px); border-block: 2px solid #171717; box-shadow: 0 7px 15px rgba(0,0,0,.48); color: #111; font: 700 1rem/1 Barlow Condensed, sans-serif; letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; }
.tape span { word-spacing: 1.5rem; }
.tape--one { top: 15%; transform: rotate(-7deg); }
.tape--two { bottom: 17%; transform: rotate(8deg); }
.tape--three { top: 51%; transform: rotate(-3deg); opacity: .93; }

.cones { position: absolute; bottom: 1.5rem; display: flex; gap: 3rem; opacity: .7; }
.cone { position: relative; display: block; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 70px solid #d8691c; }
.cone::after { content: ''; position: absolute; left: -29px; top: 65px; width: 58px; height: 10px; background: #c5c6c5; border: 2px solid #292929; }

@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.01); } }

@media (max-width: 760px) {
  .hero__backdrop { background-position: 66% center; }
  .hero__shade { background: linear-gradient(180deg, rgba(2,7,11,.7), rgba(2,7,11,.08) 52%, rgba(1,5,8,.66)); }
  .hero__copy { width: 100%; padding: 10vh 1.35rem 0; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  .subcopy { max-width: 19rem; }
  .coordinates { left: 1.35rem; }
  .cave-entry { width: 55vw; height: 42vh; }
  .cave-entry__wolf { width: min(34vw, 240px); }
  .cave-entry__hint { display: none; }
  .tape { height: 2.6rem; font-size: .78rem; }
  .den-card { transform: translateY(-2vh); }
}

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