@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════ */
:root {
  --bg: #080c16;
  --fg: #f7f9fc;
  --pri: #5289cc;
  --pri-h: #639ce2;
  --glow: rgba(82,137,204,.45);
  --ff-d: 'Archivo Black', sans-serif;
  --ff-b: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--fg);font-family:var(--ff-b);-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;outline:none;-webkit-appearance:none}
img{display:block}

/* ═══════════════════════════════════════════════════
   SHELL — Full-viewport grid
   ═══════════════════════════════════════════════════ */
.experience-shell{
  position:relative;
  min-height:100vh;min-height:100svh;
  display:grid;grid-template-rows:auto 1fr auto;
  overflow:hidden;isolation:isolate;
}

/* ═══════════════════════════════════════════════════
   BACKGROUND PHOTOS
   ═══════════════════════════════════════════════════ */
.background-stack,.bg-photo,.scrim,.grain{position:absolute;inset:0;pointer-events:none}
.background-stack{z-index:0}

.bg-photo{
  width:100%;height:100%;
  object-fit:cover;object-position:center 65%;
  opacity:0;transform:scale(1.04);
  transition:opacity 1.4s ease,transform 6s ease-out;
}
.bg-photo.on{opacity:1;transform:scale(1)}

/* Custom framing for each photo so people are fully visible and never cut off */
.bg-photo.pos-social{object-position:center 78%}
.bg-photo.pos-rooftop{object-position:center 55%}
.bg-photo.pos-cake{object-position:center 62%}
.bg-photo.pos-seniors{object-position:center 56%}
.bg-photo.pos-candid{object-position:center 48%}
.bg-photo.pos-cohort{object-position:center 70%}

@media (max-width:768px){
  .bg-photo.pos-social{object-position:center 72%}
  .bg-photo.pos-rooftop{object-position:center 52%}
  .bg-photo.pos-cake{object-position:center 60%}
  .bg-photo.pos-seniors{object-position:center 55%}
  .bg-photo.pos-candid{object-position:center 45%}
  .bg-photo.pos-cohort{object-position:center 68%}
}

.scrim{
  background:
    linear-gradient(90deg,rgba(8,14,32,.84) 0%,rgba(10,16,38,.58) 46%,rgba(14,22,44,.28) 100%),
    linear-gradient(to bottom,rgba(8,12,22,.25) 0%,transparent 30%,transparent 65%,rgba(8,12,22,.78) 100%);
}
.grain{
  opacity:.16;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.hdr{
  position:relative;z-index:10;
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 18px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.logo{
  width:44px;height:44px;border-radius:50%;
  background:#fff;border:2px solid var(--pri);
  box-shadow:0 0 18px var(--glow);
  overflow:hidden;display:grid;place-items:center;
  flex-shrink:0;
}
.logo img{width:100%;height:100%;object-fit:cover}
.brand-txt{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.15em;line-height:1.3}

.steps{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.1em}
.steps i{display:inline-block;width:32px;height:2px;background:rgba(255,255,255,.35);border-radius:2px}
.steps span:last-child{opacity:.5}

/* ═══════════════════════════════════════════════════
   SCREEN STAGE
   ═══════════════════════════════════════════════════ */
.stage{
  position:relative;z-index:10;
  display:flex;align-items:center;
  padding:10px 20px 18px;
}
.scr{width:100%;display:none}
.scr.active{display:block;animation:.55s cubic-bezier(.16,1,.3,1) both enter}

@keyframes enter{
  0%{opacity:0;transform:translateY(22px) scale(.98)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}

/* Eyebrow */
.eye{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.2em;color:var(--pri);margin-bottom:12px;
}

/* Headline */
.scr h1{
  font-family:var(--ff-d);
  font-size:clamp(2rem,8.5vw,5.2rem);
  font-weight:900;line-height:1.05;letter-spacing:-.02em;
  text-transform:uppercase;margin:0 0 24px;color:#fff;
}
.scr h1 em{font-style:normal;color:var(--pri);text-shadow:0 0 30px var(--glow)}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:14px;
  font-family:var(--ff-d);font-weight:800;font-size:16px;
  letter-spacing:.06em;text-transform:uppercase;
  min-width:160px;height:56px;padding:0 32px;border-radius:6px;
  width:auto;align-self:flex-start;box-sizing:border-box;
  transition:transform .18s,box-shadow .18s,background .2s;
  user-select:none;-webkit-user-select:none;
  touch-action:manipulation;
}
.btn svg{transition:transform .2s;flex-shrink:0}
.btn:active svg{transform:translateX(4px)}

.btn-p{
  background:var(--pri);color:#fff;
  border:2.5px solid #fff;
  box-shadow:5px 5px 0 #080d1e,5px 5px 0 1px #fff;
}
.btn-p:active{
  transform:translate(3px,3px);
  box-shadow:2px 2px 0 #080d1e,2px 2px 0 1px #fff;
}

.btn-o{
  background:rgba(8,12,22,.85);color:#fff;
  border:2px solid rgba(255,255,255,.85);
  box-shadow:4px 4px 0 rgba(0,0,0,.5);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}

/* ═══════════════════════════════════════════════════
   STEP 3 — Reassurance
   ═══════════════════════════════════════════════════ */
.reassure{display:flex;flex-direction:column;align-items:flex-start}
.tada{
  display:block;font-size:clamp(3.5rem,14vw,7rem);margin-bottom:14px;
  animation:.65s cubic-bezier(.16,1,.3,1) .1s both pop;
}
@keyframes pop{
  0%{transform:scale(.3) rotate(-12deg);opacity:0}
  60%{transform:scale(1.15) rotate(4deg);opacity:1}
  100%{transform:scale(1) rotate(0);opacity:1}
}
.sub{
  font-size:clamp(1.1rem,4vw,1.7rem);font-weight:800;
  text-transform:uppercase;letter-spacing:.12em;color:var(--pri);margin-bottom:6px;
}
.reassure h1{margin-bottom:24px}

.loader{
  width:min(360px,80vw);height:4px;
  background:rgba(255,255,255,.14);border-radius:4px;overflow:hidden;
}
.fill{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--pri),#82baff);
  border-radius:4px;box-shadow:0 0 14px var(--pri);
  transition:width 2.2s cubic-bezier(.2,.8,.3,1);
}
.scr.active .fill{width:100%}

/* ═══════════════════════════════════════════════════
   STEP 4 — Choices & Runaway
   ═══════════════════════════════════════════════════ */
.choices{display:flex;flex-direction:column;gap:18px;width:100%;max-width:580px}
.rzone{position:relative;width:100%;min-height:100px}
.runaway{
  position:absolute;top:0;left:0;min-width:140px;height:56px;
  touch-action:none;will-change:left,top;
  transition:left .16s cubic-bezier(.34,1.56,.64,1),top .16s cubic-bezier(.34,1.56,.64,1);
  z-index:20;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.ftr{
  position:relative;z-index:10;
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 18px;
  font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;
  opacity:.8;
}
.dots{display:flex;align-items:center;gap:6px}
.dot{
  width:7px;height:7px;border-radius:50%;
  background:rgba(255,255,255,.25);
  transition:background .3s,width .3s;
}
.dot.on{width:20px;border-radius:3px;background:var(--pri);box-shadow:0 0 8px var(--pri)}

/* ═══════════════════════════════════════════════════
   CONFETTI CANVAS
   ═══════════════════════════════════════════════════ */
#confetti-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}

/* ═══════════════════════════════════════════════════
   PHONE-FIRST RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* Small phones (SE, mini) */
@media (max-height:680px){
  .hdr{padding:10px 14px}
  .logo{width:36px;height:36px}
  .brand-txt{font-size:8px}
  .stage{padding:6px 16px 10px}
  .scr h1{font-size:clamp(1.6rem,7.5vw,2.4rem);margin-bottom:16px}
  .eye{font-size:9px;margin-bottom:8px}
  .btn{min-width:140px;height:48px;padding:0 24px;font-size:15px}
  .tada{font-size:3rem}
  .ftr{padding:8px 14px}
}

/* Tablets & desktop — scale up */
@media (min-width:768px){
  .hdr{padding:28px clamp(24px,5vw,76px)}
  .logo{width:58px;height:58px;border-width:2.5px}
  .brand-txt{font-size:11px}
  .steps{font-size:13px;gap:12px}
  .steps i{width:54px}
  .stage{padding:24px clamp(24px,9vw,140px)}
  .eye{font-size:13px}
  .btn{min-width:182px;height:64px;padding:0 36px;font-size:19px}
  .choices{flex-direction:row;align-items:flex-start;flex-wrap:wrap;gap:24px 48px;width:min(620px,100%)}
  .rzone{flex:1 1 180px;min-width:180px;min-height:90px}
  .runaway{min-width:160px;height:64px}
  .ftr{padding:28px clamp(24px,5vw,76px);font-size:10px}
}

/* Desktop hover states */
@media (hover:hover){
  .logo:hover{transform:rotate(5deg) scale(1.05);box-shadow:0 0 30px rgba(82,137,204,.7)}
  .btn-p:hover{background:var(--pri-h);transform:translate(-2px,-2px);box-shadow:6px 6px 0 #080d1e,6px 6px 0 1.5px #fff}
  .btn:hover svg{transform:translateX(4px)}
}

/* Landscape phone */
@media (max-height:500px) and (orientation:landscape){
  .hdr{padding:8px 16px}
  .logo{width:32px;height:32px}
  .stage{padding:4px 24px 8px}
  .scr h1{font-size:clamp(1.4rem,4vh,2.2rem);margin-bottom:12px}
  .btn{min-width:140px;height:44px;padding:0 20px;font-size:14px}
  .runaway{min-width:120px;height:44px}
  .ftr{padding:6px 16px}
  .rzone{min-height:80px}
}
