/* ═══════════════════════════════════════════════════════════
   $Lucky — The Protector
   Dark corridor, one warm light. Palette sampled from
   public/lucky.png — gold #F9C426 is the brightest point in the
   photo, the browns are the clinic hallway.
   ═══════════════════════════════════════════════════════════ */

:root{
  --night:   #0E0A06;
  --card:    #1B130B;
  --gold:    #F9C426;
  --gold-dim:#C0921C;
  --cream:   #F7EFDD;
  --muted:   #B49B74;
  --line:    rgba(249,196,38,.18);

  --f-disp: 'Archivo Black', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 80px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  position:relative;   /* containing block for .drift — without this it only spans one viewport */
  margin:0; background:var(--night); color:var(--cream);
  font-family:var(--f-body); font-size:clamp(16px,1.05vw,18px); line-height:1.6;
  overflow-x:hidden;
}
::selection{ background:var(--gold); color:var(--night); }
a{ color:inherit; }
:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

.grain{
  position:fixed; inset:0; pointer-events:none; z-index:90; opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════ HERO ═══════ */
.hero{
  position:relative; min-height:100svh;
  padding:clamp(28px,5vh,60px) var(--pad);
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:clamp(20px,4vw,60px);
}
.hero__glow{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(760px 620px at 74% 48%, rgba(249,196,38,.24), transparent 68%),
    radial-gradient(1200px 800px at 60% 50%, rgba(192,146,28,.10), transparent 72%);
}
.shot{ position:relative; margin:0; order:2; }
.shot img{
  display:block; width:100%; height:auto; max-width:640px; margin-inline:auto;
  /* the photo's own darkness does the blending, so no frame is needed */
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 55%, transparent 75%);
  mask-image:radial-gradient(circle at 50% 50%, #000 55%, transparent 75%);
}
.hero__copy{ position:relative; z-index:2; max-width:620px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px; margin:0 0 20px;
  font-family:var(--f-mono); font-size:11px; font-weight:600;
  letter-spacing:.28em; text-transform:uppercase; color:var(--muted);
}
.eyebrow i{ width:8px; height:8px; border-radius:50%; background:var(--gold); }

.wordmark{
  font-family:var(--f-disp); font-size:clamp(64px,10vw,140px);
  line-height:.92; padding-bottom:.08em; margin:0; letter-spacing:-.02em;
  color:var(--cream); text-shadow:0 0 70px rgba(249,196,38,.4);
}
.wordmark em{ font-style:normal; color:var(--gold); }
.lede{
  font-family:var(--f-disp); font-size:clamp(24px,3.2vw,44px);
  margin:6px 0 0; color:var(--gold); letter-spacing:.08em;
}
.blurb{
  margin:26px 0 34px; max-width:52ch; color:#DCCDB0;
  font-size:clamp(15px,1.25vw,18px);
}

.actions{ display:flex; flex-wrap:wrap; gap:14px; }
.ca{
  display:flex; align-items:center; gap:12px; cursor:pointer; font:inherit;
  background:var(--card); color:var(--cream);
  border:2px solid var(--line); border-radius:10px; padding:12px 16px;
}
.ca:hover{ border-color:var(--gold-dim); }
.ca__label{ font-family:var(--f-mono); font-size:10px; font-weight:600; letter-spacing:.2em;
            background:var(--gold); color:var(--night); padding:3px 8px; border-radius:4px; }
.ca__val{ font-family:var(--f-mono); font-size:13px; max-width:24ch; overflow:hidden;
          text-overflow:ellipsis; white-space:nowrap; }
.ca__copy{ font-family:var(--f-mono); font-size:11px; letter-spacing:.14em;
           text-transform:uppercase; color:var(--gold); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--gold); color:var(--night); text-decoration:none;
  font-family:var(--f-disp); font-size:clamp(15px,1.4vw,18px); letter-spacing:.04em;
  padding:14px 30px; border-radius:10px; border:2px solid var(--gold);
  box-shadow:0 10px 40px -12px rgba(249,196,38,.7);
  transition:transform .15s, box-shadow .15s, background .2s;
}
.btn:hover{ background:#FFD34D; transform:translateY(-2px);
            box-shadow:0 16px 46px -12px rgba(249,196,38,.85); }
.btn:active{ transform:translateY(0); }
.btn--big{ padding:20px 46px; font-size:clamp(18px,2.2vw,26px); }

/* ═══════ SECTIONS ═══════ */
.sect{ position:relative; padding:clamp(64px,10vh,130px) var(--pad);
       max-width:1180px; margin-inline:auto; }
.sect__h{
  font-family:var(--f-disp); font-size:clamp(26px,3.6vw,48px);
  margin:0 0 clamp(28px,4vh,50px); letter-spacing:-.01em;
}

.reveal{ opacity:0; transform:translateY(24px);
         transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity:1; transform:none; }

/* the story */
.beats{ list-style:none; margin:0; padding:0; display:grid; gap:2px; max-width:860px; }
.beats li{ display:flex; gap:clamp(16px,3vw,34px); align-items:baseline;
           padding:clamp(18px,3vh,28px) 0; border-top:1px solid var(--line); }
.beats li:last-child{ border-bottom:1px solid var(--line); }
.beats__n{ font-family:var(--f-mono); font-size:12px; letter-spacing:.2em;
           color:var(--gold); min-width:34px; }
.beats p{ margin:0; font-size:clamp(16px,1.5vw,21px); line-height:1.55; color:#E4D8BF; }
.beats b{ color:var(--gold); font-weight:700; }

.punch{
  font-family:var(--f-disp); font-size:clamp(26px,4.4vw,58px); line-height:1.06;
  margin:clamp(38px,6vh,70px) 0 0; max-width:20ch; color:var(--cream);
}

/* steps */
.steps{ list-style:none; counter-reset:s; margin:0; padding:0; display:grid;
        gap:clamp(14px,2vw,20px); grid-template-columns:repeat(4,1fr); }
@media (max-width:1000px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){  .steps{ grid-template-columns:1fr; } }
.steps li{ counter-increment:s; background:var(--card);
           border:1px solid var(--line); border-radius:14px; padding:clamp(20px,2.4vw,28px); }
.steps li::before{ content:counter(s,decimal-leading-zero);
                   font-family:var(--f-mono); font-size:11px; letter-spacing:.2em; color:var(--gold); }
.steps h3{ font-family:var(--f-disp); font-size:clamp(18px,2vw,23px); margin:10px 0 8px; }
.steps p{ margin:0; font-size:15px; line-height:1.6; color:#CBBB9C; }
.steps a{ color:var(--gold); }
.sect--buy .btn--big{ margin-top:clamp(32px,5vh,52px); }

/* footer */
.foot{ border-top:1px solid var(--line); padding:clamp(40px,6vh,70px) var(--pad);
       max-width:1180px; margin-inline:auto; }
.foot__marks{ display:flex; flex-wrap:wrap; gap:24px; margin-bottom:28px; }
.foot__marks a{ font-family:var(--f-disp); font-size:clamp(17px,2vw,24px);
                text-decoration:none; color:var(--cream); border-bottom:2px solid var(--gold); }
.foot__marks a:hover{ color:var(--gold); }
.foot__note{ max-width:70ch; font-family:var(--f-mono); font-size:12px; line-height:1.9;
             color:var(--muted); margin:0 0 18px; }
.foot__note a{ color:var(--gold); }
.foot__disc{ max-width:70ch; font-family:var(--f-mono); font-size:12px; line-height:1.9;
             color:#8B7A5E; margin:0 0 20px; }
.foot__stamp{ font-family:var(--f-mono); font-size:11px; letter-spacing:.2em;
              color:#6E6049; margin:0; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width:1000px){
  .hero{ grid-template-columns:1fr; min-height:auto; padding-top:34px; }
  .shot{ order:-1; }
  .shot img{ max-width:440px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ═══════════════════════════════════════════════════════════
   DEPTH + LIFE
   Parallax layers, drifting motes, aura grid, sticker wall.
   ═══════════════════════════════════════════════════════════ */

/* drifting dust in the light */
.motes{ position:fixed; inset:0; width:100%; height:100%;
        pointer-events:none; z-index:1; opacity:.75; }

/* ── hero depth ── */
.hero{ perspective:1200px; overflow:hidden; }
.layer{ position:absolute; inset:-8%; pointer-events:none; will-change:transform; }
.layer--haze{
  background:
    radial-gradient(1400px 900px at 62% 52%, rgba(192,146,28,.12), transparent 70%),
    radial-gradient(600px 500px at 20% 80%, rgba(249,196,38,.05), transparent 70%);
}
.layer--glow{
  background:radial-gradient(760px 620px at 74% 48%, rgba(249,196,38,.26), transparent 68%);
}
.stage{ position:relative; z-index:2; order:2; }
.shot{ will-change:transform; }
.hero__copy{ will-change:transform; }

/* scroll cue */
.scroller{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
           width:24px; height:38px; border:2px solid rgba(249,196,38,.4);
           border-radius:14px; z-index:3; }
.scroller span{ position:absolute; left:50%; top:8px; width:3px; height:7px;
                margin-left:-1.5px; border-radius:2px; background:var(--gold);
                animation:scroll 1.9s ease-in-out infinite; }
@keyframes scroll{ 0%{opacity:0;transform:translateY(0)} 30%{opacity:1}
                   100%{opacity:0;transform:translateY(15px)} }
@media (max-width:1000px){ .scroller{ display:none; } }

/* ── section lead ── */
.sect__lead{ font-family:var(--f-mono); font-size:clamp(13px,1.3vw,16px);
             color:var(--muted); margin:-26px 0 clamp(28px,4vh,44px); }

/* ── sticker wall ── */
.peel{ display:grid; gap:clamp(10px,1.6vw,22px);
       grid-template-columns:repeat(6,1fr); max-width:1000px; }
@media (max-width:1000px){ .peel{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:560px){  .peel{ grid-template-columns:repeat(3,1fr); } }
.peel figure{ margin:0; }
.peel img{ display:block; width:100%; height:auto;
           filter:drop-shadow(0 8px 20px rgba(0,0,0,.6));
           transition:transform .32s cubic-bezier(.2,.7,.3,1), filter .32s; will-change:transform; }
.peel figure:nth-child(6n+1) img{ transform:rotate(-6deg); }
.peel figure:nth-child(6n+2) img{ transform:rotate(3deg); }
.peel figure:nth-child(6n+3) img{ transform:rotate(-2deg); }
.peel figure:nth-child(6n+4) img{ transform:rotate(5deg); }
.peel figure:nth-child(6n+5) img{ transform:rotate(-4deg); }
.peel figure:nth-child(6n+6) img{ transform:rotate(2deg); }
.peel img:hover{ transform:rotate(0) scale(1.16);
                 filter:drop-shadow(0 14px 30px rgba(249,196,38,.35)); }
.sect--stickers .btn--big{ margin-top:clamp(30px,5vh,50px); }
.btn[aria-disabled="true"]{ opacity:.5; cursor:not-allowed; }

@media (prefers-reduced-motion:reduce){
  .layer, .shot, .hero__copy{ transform:none !important; }
  .motes{ display:none; }
  .scroller span{ animation:none; }
  .peel img{ transform:none !important; }
}

/* ── drifting companions ──────────────────────────────────
   Aura variants and paw prints scattered down the whole page. Each has its
   own scroll speed, so they slide past the content at different rates —
   that difference is what makes the page feel like it has air in it.
   Purely decorative: pointer-events off, aria-hidden, hidden on small screens. */
.drift{
  position:absolute; inset:0; z-index:0;
  pointer-events:none; overflow:hidden;
}
.drift .d, .drift .p{
  position:absolute; will-change:transform;
  animation:bob 9s ease-in-out infinite;
}
.drift .d{
  border-radius:50%;
  -webkit-mask-image:radial-gradient(circle at 50% 46%, #000 46%, transparent 70%);
  mask-image:radial-gradient(circle at 50% 46%, #000 46%, transparent 70%);
}
.drift .p{ fill:var(--gold); }

@keyframes bob{
  0%,100%{ translate:0 0 }
  50%    { translate:0 -18px }
}

/* positions: kept off the centre column so text never fights them */
.d--1 { top:  6%;  left: -3%;  width:190px; opacity:.30; animation-delay:-1s }
.d--2 { top: 14%;  right:-2%;  width:150px; opacity:.24; animation-delay:-3s }
.d--3 { top: 27%;  left:  1%;  width:220px; opacity:.28; animation-delay:-5s }
.d--4 { top: 36%;  right: 2%;  width:170px; opacity:.26; animation-delay:-2s }
.d--5 { top: 50%;  left: -2%;  width:200px; opacity:.25; animation-delay:-6s }
.d--6 { top: 60%;  right:-1%;  width:160px; opacity:.22; animation-delay:-4s }
.d--7 { top: 73%;  left:  2%;  width:180px; opacity:.26; animation-delay:-7s }
.d--8 { top: 21%;  right: 6%;  width:104px; opacity:.5;  animation-delay:-2.5s }
.d--9 { top: 46%;  left:  5%;  width: 96px; opacity:.45; animation-delay:-5.5s }
.d--10{ top: 80%;  right: 5%;  width:110px; opacity:.5;  animation-delay:-1.5s }

.p--1 { top: 11%;  left: 12%;  width:36px; opacity:.14; rotate: -18deg; animation-delay:-1s }
.p--2 { top: 24%;  right:14%;  width:28px; opacity:.12; rotate:  24deg; animation-delay:-4s }
.p--3 { top: 41%;  left: 16%;  width:42px; opacity:.13; rotate:  -9deg; animation-delay:-6s }
.p--4 { top: 57%;  right:11%;  width:32px; opacity:.11; rotate:  33deg; animation-delay:-3s }
.p--5 { top: 68%;  left:  9%;  width:38px; opacity:.13; rotate: -26deg; animation-delay:-7s }
.p--6 { top: 88%;  right:15%;  width:30px; opacity:.12; rotate:  14deg; animation-delay:-5s }

/* below this the gutters vanish and they'd sit on the text */
@media (max-width:1240px){ .drift{ display:none; } }
@media (prefers-reduced-motion:reduce){
  .drift .d, .drift .p{ animation:none; transform:none !important; }
}

/* the page content sits above the drift layer */
.hero, .sect, .foot{ position:relative; z-index:2; }
