/* The landing page only (the other pages use style.css alone). */
.home { background: #050404; }
.home .top { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(5,4,4,.85), rgba(5,4,4,0)); border: 0; backdrop-filter: none; }
.home .top .brand { opacity: 0; transition: opacity .4s; }
.home.scrolled .top { background: rgba(5,4,4,.9); backdrop-filter: blur(6px); }
.home.scrolled .top .brand { opacity: 1; }

/* ---------- hero: the hallway in the dark, a torch that follows you ---------- */
.dark-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; cursor: none; }
.dark-hero .layer { position: absolute; inset: 0; background: url('/assets/c1_face.jpg') center 40%/cover no-repeat; }
.dark-hero .dim { filter: brightness(.16) saturate(.6); }
.dark-hero .lit {
  --x: 50%; --y: 45%; --r: 230px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 45%, transparent 100%);
  filter: contrast(1.08) saturate(.9);
  animation: flicker 7s infinite steps(1);
}
@keyframes flicker { 0%, 100% { opacity: 1 } 61% { opacity: .55 } 62% { opacity: 1 } 63.5% { opacity: .3 } 64.5% { opacity: 1 } }
.dark-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0,0,0,.75) 100%), linear-gradient(180deg, transparent 55%, #050404 100%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-4%,3%) } 50% { transform: translate(3%,-5%) } 75% { transform: translate(-2%,-2%) } }

.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 7vh; text-align: center; padding: 0 16px; pointer-events: none; }
.hero-copy h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.3rem, 7.5vw, 6rem); letter-spacing: .14em; line-height: 1.02; margin: 0; color: #eee5d6;
  text-shadow: 0 0 30px rgba(0,0,0,.9), 0 2px 4px #000; }
.hero-copy h1 span { display: block; font-size: .42em; letter-spacing: .5em; color: #b9ab96; margin-bottom: .35em; }
.whisper { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: #c9a36a; font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin: .6em 0 1.4em; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 12px; background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.35); font-family: -apple-system, "Inter", system-ui, sans-serif; line-height: 1.05; text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.store:hover { text-decoration: none; border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,163,106,.18); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; letter-spacing: .02em; opacity: .85; }
.store b { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 14px; width: 1px; height: 34px; background: linear-gradient(#c9a36a, transparent); animation: cue 2.4s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ---------- the rules, said once ---------- */
.rules { max-width: 1100px; margin: 0 auto; padding: 16vh 16px 10vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.rule { opacity: 0; transform: translateY(24px); transition: opacity 1.2s, transform 1.2s; }
.rule.in { opacity: 1; transform: none; }
.rule:nth-child(2) { transition-delay: .25s } .rule:nth-child(3) { transition-delay: .5s }
.rule i { display: block; font-style: normal; font-family: "Cormorant Garamond", Georgia, serif; color: #6d3a2c; font-size: 1rem; letter-spacing: .3em; }
.rule h2 { font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: .2em 0 .3em; line-height: 1.1; }
.rule p { margin: 0; color: #8f8474; font-size: .98rem; }

/* ---------- breath ---------- */
.breath { position: relative; height: 70vh; min-height: 420px; display: grid; place-items: center; overflow: hidden; background: #050404; }
.breath .eye { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(70,6,8,.0) 0, rgba(60,4,6,.55) 60%, #050404 100%); animation: blink 6s infinite; }
@keyframes blink { 0%, 30%, 100% { opacity: .2 } 40% { opacity: 1 } 46% { opacity: .35 } 62% { opacity: 1 } 68% { opacity: .4 } }
.breath p { position: relative; margin: 0; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 6vw, 4.6rem); color: #e8dccb; letter-spacing: .04em; line-height: 1.1; padding: 0 16px; }
.breath p small { display: block; font-family: "Inter", sans-serif; font-size: .95rem; letter-spacing: .02em; color: #8f8474; margin-top: 1.2em; }

/* ---------- film strip ---------- */
.reel { padding: 6vh 0 12vh; }
.frame { position: relative; margin: 0 auto 10vh; max-width: 1280px; padding: 0 16px; }
.frame img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; filter: brightness(.92) contrast(1.05); }
.frame figcaption { position: absolute; left: 48px; bottom: 28px; max-width: 420px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.15; color: #efe6d6; text-shadow: 0 2px 16px #000, 0 0 4px #000; }
.frame figcaption em { display: block; font-family: "Inter", sans-serif; font-style: normal; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #c9a36a; margin-bottom: .6em; }
.frame.right figcaption { left: auto; right: 48px; text-align: right; }
.frame::after { content: ""; position: absolute; inset: 0 16px; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 45%); }
.frame figcaption { z-index: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1280px; margin: 0 auto 10vh; padding: 0 16px; }
.pair .frame { margin: 0; padding: 0; }
.pair .frame::after { inset: 0; }
.pair .frame figcaption { left: 24px; bottom: 18px; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }

/* ---------- facts + end ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 0 16px; margin: 0 auto 12vh; max-width: 900px; color: #8f8474; font-size: .95rem; letter-spacing: .04em; }
.facts span::before { content: "·"; color: #6d3a2c; margin-right: 10px; }
.end { text-align: center; padding: 0 16px 14vh; }
.end h2 { font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 .2em; }
.end p { color: #8f8474; margin: 0 0 2em; }
.end .vi-note { color: #6f6557; font-size: .88rem; max-width: 640px; margin: 3em auto 0; }

@media (max-width: 760px) {
  .dark-hero { cursor: auto; }
  .rules { grid-template-columns: 1fr; gap: 9vh; padding-top: 12vh; text-align: center; }
  .pair { grid-template-columns: 1fr; gap: 10vh; }
  .frame { padding: 0; }
  .frame::after { inset: 0; }
  .frame figcaption, .frame.right figcaption, .pair .frame figcaption { position: static; text-align: left; padding: 14px 16px 0; text-shadow: none; max-width: none; }
  .frame::after { display: none; }
  .store { height: 50px; padding: 0 16px 0 12px; }
  .store b { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dark-hero .lit, .grain, .breath .eye, .scroll-cue { animation: none; }
  .rule { opacity: 1; transform: none; transition: none; }
}
/* the landing's bar keeps one row on phones */
@media (max-width: 560px) {
  .home .top .wrap { flex-wrap: nowrap; height: 56px; padding-top: 0; padding-bottom: 0; }
  .home .top nav { width: auto; }
  .home .top .brand { display: none; }
  .home .top img { margin-right: auto; }
}
