/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 160px) clamp(56px, 8vw, 112px); pointer-events: none; }
.hero .wrap a, .hero .wrap button { pointer-events: auto; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.88;
  font-size: clamp(52px, 11.2vw, 156px);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .accent { color: var(--signal); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-sub { margin: var(--s5) 0 0; max-width: 40ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: #d9d8d1; animation: settle 1s .35s var(--ease) both; }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); animation: settle 1s .45s var(--ease) both; }
.hero-cta .btn { text-decoration: none; display: inline-block; }
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
.hero-meta { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: clamp(56px, 8vw, 104px); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--rule); overflow: hidden; white-space: nowrap; padding-block: var(--s3); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 20px; letter-spacing: 0.02em; color: var(--fog); }
.ticker-track { display: inline-flex; gap: var(--s6); animation: tick 38s linear infinite; padding-left: var(--s6); }
.ticker-track span { display: inline-flex; align-items: center; gap: var(--s6); }
.ticker-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); display: inline-block; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Section frame ---------- */
.scene { padding-block: clamp(80px, 11vw, 160px); border-bottom: 1px solid var(--rule); }
.scene-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.scene-head > * { min-width: 0; }
.scene h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; font-size: clamp(40px, 6.4vw, 92px); }
.scene-head p { margin: 0; max-width: 44ch; color: #d2d1ca; font-size: 18px; }
.code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }

/* ---------- Receipt scrollytelling ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.steps { display: grid; gap: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s5); border-top: 1px solid var(--rule); transition: opacity .4s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--signal); letter-spacing: 0.1em; }
.step h3 { margin: var(--s2) 0 var(--s2); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.step p { margin: 0; color: #cfcec7; max-width: 38ch; }
.js .step { opacity: .35; }
.js .step.on { opacity: 1; }
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: grid; place-items: center; height: min(78vh, 700px); }

.phone { width: min(300px, 78vw); aspect-ratio: 300 / 620; border-radius: 46px; background: #050608; padding: 12px; box-shadow: 0 0 0 1px #2c313b, 0 40px 120px -30px rgba(255,194,26,.25), 0 30px 60px -20px #000; position: relative; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #050608; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f3ee; color: #121418; font-family: var(--font-body); }
.layer { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* camera layer */
.cam { background: #1b1e24; display: grid; place-items: center; }
.receipt { width: 64%; background: #fbfaf6; padding: 18px 14px 26px; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.55; color: #262a30; transform: rotate(-3deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); clip-path: polygon(0 0,100% 0,100% 96%,92% 100%,84% 96%,76% 100%,68% 96%,60% 100%,52% 96%,44% 100%,36% 96%,28% 100%,20% 96%,12% 100%,4% 96%,0 100%); position: relative; }
.receipt b { display: block; text-align: center; font-size: 11px; letter-spacing: .08em; margin-bottom: 8px; }
.receipt .r { display: flex; justify-content: space-between; }
.receipt .t { border-top: 1px dashed #9aa0a8; margin-top: 6px; padding-top: 6px; font-weight: 500; }
.receipt mark { background: transparent; color: inherit; border-radius: 2px; transition: background .4s, box-shadow .4s; }
.scanline { position: absolute; left: 8%; right: 8%; height: 2px; background: var(--signal); box-shadow: 0 0 18px 4px rgba(255,194,26,.6); top: 18%; opacity: 0; }
.shutter { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); }
.cam-hint { position: absolute; top: 64px; left: 0; right: 0; text-align: center; color: #e9e8e2; font-size: 12px; letter-spacing: .04em; }
.phone[data-step="1"] .scanline, .phone[data-step="2"] .scanline { opacity: 1; animation: scan 1.8s var(--ease) infinite alternate; }
@keyframes scan { from { top: 20%; } to { top: 78%; } }
.phone[data-step="1"] .receipt mark, .phone[data-step="2"] .receipt mark { background: rgba(255,194,26,.45); box-shadow: 0 0 0 2px rgba(255,194,26,.45); }
.phone[data-step="1"] .shutter, .phone[data-step="2"] .shutter { opacity: 0; }

/* sheet layer */
.sheet { background: #f4f3ee; padding: 60px 12px 16px; opacity: 0; transform: translateY(24px); }
.phone[data-step="2"] .sheet { opacity: 1; transform: none; }
.phone[data-step="2"] .cam { opacity: 0; transform: scale(.94); }
.sheet-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.sheet-title i { width: 18px; height: 22px; border-radius: 3px; background: #1e8e4e; display: inline-block; position: relative; }
.sheet-title i::after { content: ""; position: absolute; inset: 6px 4px; border: 1.5px solid #fff; border-radius: 1px; }
.grid { width: 100%; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; background: #fff; }
.grid th, .grid td { border: 1px solid #dcdcd5; padding: 6px 5px; text-align: left; white-space: nowrap; }
.grid th { background: #ecebe5; font-weight: 600; color: #4a4f57; }
.grid td.n { text-align: right; }
.grid tr.new td { background: #fff4cf; animation: land .8s var(--ease) both; }
@keyframes land { from { background: var(--signal); } }
.sheet-foot { margin-top: 10px; display: flex; justify-content: space-between; font-size: 11px; color: #4a4f57; }
.toast { position: absolute; left: 12px; right: 12px; bottom: 18px; background: #121418; color: #f4f3ee; font-size: 12px; padding: 10px 12px; border-radius: 12px; display: flex; gap: 8px; align-items: center; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Fuseborn pack ---------- */
.play { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.board { background: var(--deck); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); font-family: var(--font-mono); font-size: 13px; color: var(--fog); letter-spacing: .08em; text-transform: uppercase; }
.board-top strong { color: var(--chalk); font-weight: 500; }
.pack-stage { min-height: 340px; display: grid; place-items: center; perspective: 1200px; }
.pack { appearance: none; border: 0; cursor: pointer; position: relative; overflow: hidden; width: 200px; height: 300px; border-radius: 14px; background: var(--signal); color: var(--night); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; box-shadow: 0 30px 60px -24px rgba(255,194,26,.45), inset 0 0 0 2px rgba(0,0,0,.12); transition: transform .45s var(--ease), opacity .45s var(--ease); animation: bob 3.2s ease-in-out infinite; }
.pack:hover { transform: translateY(-6px) rotate(-1.5deg); }
.pack-foil { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.06) 14px 28px); }
.pack-name { position: relative; font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 30px; letter-spacing: -0.01em; }
.pack-sub { position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pack-tear { position: absolute; top: 22px; left: 0; right: 0; border-top: 2px dashed rgba(0,0,0,.35); padding-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pack.torn { transform: translateY(-40px) scale(.9) rotate(-4deg); opacity: 0; animation: none; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.spread { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); width: 100%; max-width: 980px; }
.card { aspect-ratio: 5 / 7; perspective: 900px; min-width: 0; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.card.flip .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.card-back { background: #1d2129; box-shadow: inset 0 0 0 2px #3a404b; display: grid; place-items: center; }
.card-back span { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 28px; color: var(--signal); }
.card-front { transform: rotateY(180deg); background: #f4f3ee; color: #121418; padding: 8px 7px; display: flex; flex-direction: column; gap: 3px; box-shadow: inset 0 0 0 3px var(--ec, #9aa0a8); }
.card-top, .card-bottom { display: flex; justify-content: space-between; gap: 4px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; }
.card-top .rar { font-weight: 500; }
.card-art { flex: 1; display: grid; place-items: center; background: var(--ec, #9aa0a8); border-radius: 6px; min-height: 0; }
.card-art svg { width: 54%; height: auto; fill: #121418; opacity: .85; }
.card-name { font-weight: 600; font-size: 11px; line-height: 1.15; }
.card-twist { font-size: 9.5px; color: #4a4f57; }
.card-bottom { border-top: 1px solid #dcdcd5; padding-top: 3px; font-variant-numeric: tabular-nums; }
.e-ember { --ec: var(--coral); } .e-tide { --ec: var(--cobalt); } .e-volt { --ec: var(--signal); }
.e-grove { --ec: var(--teal); } .e-frost { --ec: #8fd3ff; } .e-shade { --ec: #9b86ff; }
.foil { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.r-holo .foil, .r-secret .foil { opacity: 1; mix-blend-mode: soft-light; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.9) 45%, rgba(255,194,26,.7) 50%, rgba(31,199,168,.7) 55%, transparent 70%); background-size: 250% 100%; animation: sheen 2.6s linear infinite; }
.r-secret .card-front { box-shadow: inset 0 0 0 3px var(--signal), 0 0 0 2px var(--signal); }
.r-secret.flip, .r-holo.flip { filter: drop-shadow(0 10px 22px rgba(255,194,26,.35)); }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (min-width: 900px) {
  .card-front { padding: 12px 11px; gap: 6px; }
  .card-top, .card-bottom { font-size: 11px; }
  .card-name { font-size: 16px; }
  .card-twist { font-size: 13px; }
}
@media (max-width: 560px) {
  .spread { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-name { font-size: 10px; }
}
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.msg { margin: 0; color: var(--fog); font-size: 15px; min-height: 1.6em; max-width: 46ch; }
.msg.win { color: var(--signal); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; }
.fact { padding-block: var(--s4); border-top: 1px solid var(--rule); display: grid; gap: var(--s2); }

.fact dt { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 34px; line-height: 1; color: var(--chalk); }
.fact dd { margin: 0; color: #cfcec7; }

/* ---------- Photo to Video ---------- */
.reel { border-radius: 28px; overflow: hidden; border: 1px solid var(--rule); background: var(--deck); }
.reel-view { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #0a1a2a; }
.reel-view svg { position: absolute; inset: -6%; width: 112%; height: 112%; }
.reel-view .l1 { animation: drift1 9s ease-in-out infinite alternate; }
.reel-view .l2 { animation: drift2 9s ease-in-out infinite alternate; }
.reel-view .l3 { animation: drift3 9s ease-in-out infinite alternate; }
.reel-view .sun { animation: sunrise 9s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translateX(-2%) scale(1.02); } }
@keyframes drift2 { to { transform: translateX(-4%) scale(1.04); } }
@keyframes drift3 { to { transform: translateX(-7%) scale(1.07); } }
@keyframes sunrise { to { transform: translateY(-6%); } }
.reel.still .reel-view * { animation-play-state: paused; }
.reel-bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); flex-wrap: wrap; }
.reel-bar .tc { font-family: var(--font-mono); font-size: 13px; color: var(--fog); font-variant-numeric: tabular-nums; }
.frames { display: flex; gap: 4px; flex: 1; min-width: 160px; }
.frames span { flex: 1; height: 28px; border-radius: 4px; background: linear-gradient(180deg, #2a4466, #f0a35a 70%, #1c2a3a 71%); opacity: .45; transition: opacity .3s; }
.frames span.hot { opacity: 1; outline: 2px solid var(--signal); outline-offset: 1px; }
.seg { display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); padding: 3px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--fog); font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--chalk); color: var(--night); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.principle { padding: var(--s5) var(--s4) var(--s5) 0; border-right: 1px solid var(--rule); }
.principle + .principle { padding-left: var(--s4); }
.principle:last-child { border-right: 0; }
.principle h3 { margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 26px; line-height: 1.1; }
.principle p { margin: 0; color: #cfcec7; }

/* ---------- Closing ---------- */
.closing { padding-block: clamp(96px, 12vw, 180px); text-align: left; }
.closing h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.9; font-size: clamp(44px, 8.6vw, 128px); }
.closing h2 span { color: var(--signal); }
.closing .hero-cta { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .stage { order: -1; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); height: 400px; place-items: start center; padding-top: var(--s3); z-index: 2; background: var(--night); border-bottom: 1px solid var(--rule); }
  .phone { width: 300px; transform: scale(.6); transform-origin: top center; }
  .step { min-height: 46vh; }
  .play { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: var(--s4) 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .facts { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
