:root {
  --red-dark: #9d0c0d;
  --red-bright: #e40a12;
  --red-mid: #bc0b10;
  --white: #fffdf8;
  --white-soft: #fff6ee;
  --gold: #f5d7a1;
  --gold-dim: rgba(245, 215, 161, .42);
  --slide-seconds: 15s;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--red-dark); color: var(--white); font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif; -webkit-font-smoothing: antialiased; }
.canvas, .brand-pattern, .grain { position: absolute; inset: 0; }
.canvas { isolation: isolate; overflow: hidden; background: linear-gradient(125deg, #970e0f 2%, #b20e12 54%, #900708 100%); }
.brand-pattern { z-index: -2; overflow: hidden; }
.pattern { position: absolute; display: block; inset: 0; }
.pattern--top { background: var(--red-bright); clip-path: polygon(26% 0, 75% 0, 50% 34%); }
.pattern--left { background: #de0911; clip-path: polygon(0 24%, 19% 50%, 0 77%); }
.pattern--right { background: #ed0a14; clip-path: polygon(100% 20%, 80% 50%, 100% 80%); }
.pattern--bottom { background: #e60a13; clip-path: polygon(49% 70%, 75% 100%, 26% 100%); }
.pattern--gloss { background: linear-gradient(100deg, rgba(46,0,0,.03), rgba(0,0,0,.12) 48%, transparent 68%); }
.grain { z-index: -1; opacity: .26; pointer-events: none; background: radial-gradient(circle at 18% 30%, rgba(255,255,255,.1) 0 1px, transparent 1.5px) 0 0 / 26px 26px; mask-image: linear-gradient(to bottom,transparent 13%,black 52%, transparent 86%); }
.header, .footer { position: absolute; left: 5%; right: 5%; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.header { top: 6.1%; }
.eyebrow, .counter, .footer-right, .stage-label { font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; gap: 17px; align-items: center; font-size: clamp(10px,1.05vw,21px); white-space: nowrap; color: rgba(255,255,255,.89); }
.tiny-spot { display: inline-block; background: var(--gold); width: clamp(8px,.7vw,14px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 18px rgba(255,214,144,.24); }
.eyebrow-line { width: clamp(28px,3.5vw,72px); border-top: 1px solid rgba(255,255,255,.45); }
.counter { font-size: clamp(12px,1.4vw,26px); font-variant-numeric: tabular-nums; }
.counter #counter-current { color: var(--gold); }
.counter-slash, #counter-total { opacity: .64; }
.slide-area { position: absolute; inset: 12% 5% 15%; display: grid; place-items: center; }
.stage { width: 100%; max-width: 1680px; margin: 0 auto; text-align: center; padding: 0 2%; transform: translateY(-.5%); }
.stage-label { font-size: clamp(12px, 1.1vw, 22px); color: rgba(255,255,255,.73); margin: 0 0 clamp(22px, 2.7vh, 41px); }
.accent-rule { width: clamp(52px,5vw,112px); height: 5px; background: var(--gold); margin: 0 auto clamp(30px, 3.7vh, 50px); border-radius: 5px; box-shadow: 0 0 16px rgba(255,218,164,.12); }
.value-word { font-size: clamp(48px, 8.1vw, 157px); line-height: 1.04; margin: 0; font-weight: 900; letter-spacing: -.065em; text-shadow: 0 12px 38px rgba(62,1,4,.13); white-space: nowrap; transform-origin: center; }
.value-word.is-long { font-size: clamp(46px, 7.1vw, 136px); }
.divider-star { display: flex; align-items: center; justify-content: center; gap: 20px; margin: clamp(22px, 3.7vh, 48px) auto clamp(16px, 3vh, 36px); }
.divider-star span { display: block; height: 1px; width: clamp(56px, 6.9vw, 132px); background: var(--gold-dim); }
.divider-star i { display: block; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.value-message { max-width: 1440px; font-size: clamp(23px,3.35vw,62px); line-height: 1.31; font-weight: 500; letter-spacing: -.025em; margin: 0 auto; color: var(--white-soft); text-wrap: balance; }
.stage.enter .accent-rule { animation: rise .95s cubic-bezier(.2,.8,.2,1) both; }
.stage.enter .stage-label { animation: rise .85s .07s cubic-bezier(.2,.8,.2,1) both; }
.stage.enter .value-word { animation: enterWord 1s .14s cubic-bezier(.19,1,.22,1) both; }
.stage.enter .divider-star { animation: rise .85s .45s cubic-bezier(.2,.8,.2,1) both; }
.stage.enter .value-message { animation: rise .95s .58s cubic-bezier(.2,.8,.2,1) both; }
.stage.exit { animation: fadeExit .4s both; }
@keyframes rise { from { opacity: 0; translate: 0 28px; filter: blur(5px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes enterWord { from { opacity: 0; translate: 0 46px; scale: .97; filter: blur(7px); } to { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); } }
@keyframes fadeExit { from { opacity: 1; } to { opacity: 0; } }
.footer { bottom: 5.2%; gap: 3vw; }
.brandmark {
  display: flex;
  align-items: center;
  line-height: .95;
  flex: 0 0 auto;
  min-width: 0;
}
.brandmark-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brandmark-logo {
  display: block;
  width: clamp(125px, 11.5vw, 225px);
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(75,0,0,.16));
}
.progress-wrapper { display: flex; align-items: center; gap: 12px; width: min(42vw,720px); }
.progress-item { height: clamp(5px,.45vw,9px); flex: 1; border-radius: 30px; background: rgba(255,255,255,.26); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.progress-fill { height: 100%; width: 0; background: var(--gold); border-radius: inherit; }
.progress-item.completed .progress-fill { width: 100%; }
.progress-item.active .progress-fill { animation: progressGrow var(--slide-seconds) linear both; }
@keyframes progressGrow { from { width: 0; } to { width: 100%; } }
.footer-right { flex: 0 0 auto; text-align: right; font-size: clamp(12px,1.02vw,20px); white-space: nowrap; }
.footer-right span { display: block; font-size: .68em; opacity: .85; letter-spacing: .3em; margin-top: 4px; }

@media (max-width: 1100px) {
  .footer { gap: 2vw; }
  .brandmark-logo { width: clamp(115px, 14vw, 175px); }
  .progress-wrapper { width: min(38vw, 520px); }
}
@media (max-aspect-ratio: 1.25) {
  .value-word { font-size: clamp(34px,7vw,110px); }
  .value-word.is-long { font-size: clamp(32px,6.1vw,100px); }
  .value-message { font-size: clamp(21px,3.7vw,46px); }
  .slide-area { inset: 14% 3% 18%; }
  .header, .footer { left: 4%; right: 4%; }
}
@media (max-width: 750px) {
  .header { top: 5%; }
  .eyebrow { gap: 8px; letter-spacing: .08em; }
  .eyebrow-line { display: none; }
  .stage { padding: 0 1%; }
  .stage-label { font-size: 11px; }
  .accent-rule { margin-bottom: 20px; }
  .value-word { font-size: clamp(32px,7.7vw,62px); letter-spacing: -.06em; }
  .value-word.is-long { font-size: clamp(29px,6.5vw,53px); }
  .value-message { font-size: clamp(19px,3.6vw,34px); }
  .brandmark-logo { width: clamp(105px, 26vw, 155px); }
  .footer-right { display: none; }
  .progress-wrapper { width: 54vw; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage.enter *, .stage.exit, .progress-item.active .progress-fill { animation-duration: .01ms !important; }
}
