/* ============================================================
   COMMONMAN STUDIOS — Cinematic Countdown
   Black + metallic gold. Anton (display) / Oswald (text).
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #050505;
  --bg-2: #0a0908;
  --charcoal: #111111;
  --ink: #efe7d2;

  /* Gold system */
  --gold: #FFD700;
  --amber: #FFB300;
  --warm: #FFC107;
  --gold-deep: #b8860b;
  --gold-pale: #fff6d5;

  /* Metallic text gradient (the wordmark) */
  --metal: linear-gradient(180deg,
      #fff8e1 0%,
      #ffe9a8 18%,
      #FFD700 38%,
      #c9962b 55%,
      #8a6310 68%,
      #FFD700 80%,
      #fff3c4 100%);

  --glow: 0 0 40px rgba(255, 200, 60, .35);
  --maxw: 1400px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

/* Re-enable cursor on touch / no-hover devices */
@media (hover: none),
(pointer: coarse) {
  body {
    cursor: auto;
  }
}

::selection {
  background: rgba(255, 215, 0, .25);
  color: #fff;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

/* ============================================================
   GLOBAL ATMOSPHERE LAYERS (fixed, behind everything)
   ============================================================ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* deep vignette to keep edges cinematic */
.atmosphere .vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0, 0, 0, .55) 78%, #000 100%);
}

/* particle canvas */
#dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* light leaks — animated golden glows in corners */
.leak {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: .5;
}

.leak.tl {
  top: -18vh;
  left: -12vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(255, 179, 0, .45), transparent 65%);
  animation: leakDrift 17s var(--ease) infinite alternate;
}

.leak.br {
  bottom: -22vh;
  right: -16vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(255, 193, 7, .32), transparent 65%);
  animation: leakDrift2 21s var(--ease) infinite alternate;
}

.leak.mid {
  top: 36%;
  left: 56%;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(255, 215, 0, .18), transparent 70%);
  animation: leakDrift 26s var(--ease) infinite alternate;
}

@keyframes leakDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(6vw, 5vh) scale(1.18);
  }
}

@keyframes leakDrift2 {
  from {
    transform: translate(0, 0) scale(1.1);
  }

  to {
    transform: translate(-7vw, -4vh) scale(.92);
  }
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: -120%;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(4) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-3%, 2%);
  }

  50% {
    transform: translate(2%, -3%);
  }

  75% {
    transform: translate(-2%, -2%);
  }

  100% {
    transform: translate(3%, 1%);
  }
}

/* cursor spotlight (follows pointer via JS) */
.spotlight {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 60vmax;
  height: 60vmax;
  margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 210, 80, .10), rgba(255, 190, 40, .04) 35%, transparent 60%);
  mix-blend-mode: screen;
  transition: opacity .6s ease;
  will-change: transform;
}

/* custom cursor dot + ring */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, .9);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 215, 0, .6);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s;
}

.cursor-ring.hot {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 215, 0, .9);
  background: rgba(255, 215, 0, .08);
}

@media (hover: none),
(pointer: coarse) {

  .cursor-dot,
  .cursor-ring,
  .spotlight {
    display: none;
  }
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
main {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  width: 100%;
}

.wrap {
  width: min(92%, var(--maxw));
  margin-inline: auto;
}

/* shared eyebrow / label */
.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .55em;
  font-size: clamp(.62rem, 1.1vw, .82rem);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 1.1em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* metallic gold text utility */
.metal-text {
  background: var(--metal);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(255, 190, 40, .22));
}

/* shine sweep that travels across metal text */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 35%,
      rgba(255, 255, 255, .0) 45%,
      rgba(255, 255, 255, .85) 50%,
      rgba(255, 255, 255, 0) 55%,
      transparent 65%);
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  mix-blend-mode: screen;
  animation: sweep 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {

  0%,
  22% {
    background-position: 200% 0;
  }

  60%,
  100% {
    background-position: -120% 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10vh 4vw;
  perspective: 1000px;
}

.hero .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vh, 2.4rem);
  will-change: transform;
}

.hero .eyebrow {
  margin-bottom: .4rem;
}

/* The wordmark lockup */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .82;
  max-width: 96%;
  margin-inline: auto;
  text-align: center;
  /* ensure centered layout for wrapped lines */
  overflow-wrap: visible;
  /* prevent overflow from very long words */
}

.wordmark .line-1 {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  /* Changed from calc(100vw - 4rem) */
  font-size: clamp(1.4rem, 10.5vw, 11rem);
  /* Standardized scaling */
  overflow: visible;
  /* Changed from hidden */
  /* text-overflow: clip; <-- Remove this line */
}

.wordmark .line-2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 4.1vw, 4.2rem);
  letter-spacing: clamp(.28em, 1.6vw, .62em);
  margin-top: clamp(.2rem, 1.4vh, 1rem);
  padding-left: clamp(.28em, 1.6vw, .62em);
  /* optical centering for tracking */
}

/* thin rule flanking STUDIOS */
.wordmark .line-2-row {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.6rem);
  justify-content: center;
}

.wordmark .line-2-row .rule {
  height: 1px;
  width: clamp(24px, 8vw, 110px);
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold));
}

.wordmark .line-2-row .rule.r {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}

.hero .former {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: clamp(.66rem, 1.5vw, 1rem);
  color: rgba(239, 231, 210, .62);
  padding-left: .42em;
}

.hero .former s {
  text-decoration: none;
  opacity: .8;
}

.hero .former b {
  color: var(--gold);
  font-weight: 500;
}

.hero .era {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(1rem, 2.6vw, 2rem);
  color: var(--ink);
  opacity: .92;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(1.4rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: rgba(255, 215, 0, .7);
  font-family: "Oswald", sans-serif;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4em;
}

.scroll-cue .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 215, 0, .5);
  border-radius: 12px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s var(--ease) infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ============================================================
   SOUND TOGGLE
   ============================================================ */
.sound-toggle {
  position: fixed;
  top: clamp(1rem, 2.4vw, 1.8rem);
  right: clamp(1rem, 2.4vw, 1.8rem);
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: none;
  color: var(--gold);
  background: rgba(20, 17, 11, .55);
  border: 1px solid rgba(255, 215, 0, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 235, 150, .18), 0 10px 30px -12px rgba(0, 0, 0, .8);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}

.sound-toggle i {
  font-size: 1.05rem;
  transition: opacity .2s;
}

.sound-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(255, 215, 0, .7);
  box-shadow: inset 0 1px 0 rgba(255, 235, 150, .25), 0 0 28px rgba(255, 190, 40, .35);
}

.sound-toggle.on {
  border-color: rgba(255, 215, 0, .75);
  background: rgba(40, 30, 8, .7);
  box-shadow: inset 0 1px 0 rgba(255, 235, 150, .3), 0 0 26px rgba(255, 190, 40, .4);
}

/* inviting pulse before first enable */
.sound-toggle.hint::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, .6);
  animation: soundPulse 2.2s ease-out infinite;
}

@keyframes soundPulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* equalizer bars (visible when on) */
.sound-toggle .eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.sound-toggle.on i {
  display: none;
}

.sound-toggle.on .eq {
  display: flex;
}

.sound-toggle .eq b {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: eq 0.9s ease-in-out infinite;
}

.sound-toggle .eq b:nth-child(2) {
  animation-delay: .15s;
}

.sound-toggle .eq b:nth-child(3) {
  animation-delay: .3s;
}

.sound-toggle .eq b:nth-child(4) {
  animation-delay: .45s;
}

@keyframes eq {

  0%,
  100% {
    height: 7px;
  }

  50% {
    height: 20px;
  }
}

@media (hover: none),
(pointer: coarse) {
  .sound-toggle {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {

  .sound-toggle.hint::before,
  .sound-toggle .eq b {
    animation: none !important;
  }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  padding: clamp(6rem, 14vh, 11rem) 0 clamp(7rem, 16vh, 13rem);
  text-align: center;
}

.countdown .head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: clamp(2.6rem, 6vh, 5rem);
}

.countdown .head h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5.4vw, 4.6rem);
  letter-spacing: .02em;
  line-height: .95;
}

.countdown .head .target {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: clamp(.66rem, 1.4vw, .95rem);
  color: rgba(239, 231, 210, .55);
  padding-left: .34em;
}

.timer {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(.6rem, 2.2vw, 2rem);
  flex-wrap: nowrap;
}

.unit {
  position: relative;
  flex: 1 1 0;
  max-width: 250px;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.6rem) clamp(.4rem, 1.5vw, 1.4rem) clamp(.9rem, 2.2vw, 1.8rem);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, .05), rgba(255, 255, 255, .015)),
    rgba(20, 17, 11, .55);
  border: 1px solid rgba(255, 215, 0, .22);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 235, 150, .18),
    inset 0 0 40px rgba(255, 180, 30, .04);
  overflow: hidden;
  animation: float 6s var(--ease) infinite;
}

.unit:nth-child(2) {
  animation-delay: .8s;
}

.unit:nth-child(3) {
  animation-delay: 1.6s;
}

.unit:nth-child(4) {
  animation-delay: 2.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* top gold sheen line */
.unit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* glass reflection sweep */
.unit::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  transition: left .8s var(--ease);
}

.unit:hover::after {
  left: 110%;
}

.unit:hover {
  border-color: rgba(255, 215, 0, .5);
}

.unit .num {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: center;
}

/* flip animation hook applied via JS */
.unit .num .flip {
  display: inline-block;
  animation: flipIn .55s var(--ease);
}

@keyframes flipIn {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
    filter: blur(2px);
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: rotateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

.unit .lab {
  margin-top: .7rem;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(.56rem, 1.2vw, .82rem);
  color: rgba(239, 231, 210, .6);
  padding-left: .3em;
}

.timer .colon {
  display: flex;
  align-items: center;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: rgba(255, 215, 0, .35);
  align-self: center;
  padding-bottom: 1.5rem;
}

/* ============================================================
   REBRAND STORY (scroll-driven)
   ============================================================ */
.story {
  position: relative;
}

.story .pin {
  height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.story .stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4vw;
  will-change: opacity, transform;
}

.story .stage .eyebrow {
  margin-bottom: 1.6rem;
}

.stage-word {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .86;
}

.stage-word .top {
  display: inline-block;
  font-size: clamp(2.2rem, 8.5vw, 8.5rem);
  white-space: nowrap;
}

.stage-word .bottom {
  display: block;
  font-size: clamp(1rem, 3.4vw, 3.4rem);
  letter-spacing: clamp(.18em, 1vw, .5em);
  padding-left: clamp(.18em, 1vw, .5em);
  margin-top: .6rem;
}

.story .stage p.sub {
  margin-top: 1.8rem;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: clamp(.66rem, 1.4vw, .95rem);
  color: rgba(239, 231, 210, .55);
  padding-left: .34em;
}

/* the "vs / arrow" transition stage */
#stage-2 .morph-line {
  width: clamp(120px, 30vw, 360px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2.4rem auto 0;
  transform-origin: center;
}

#stage-2 .transform-label {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 5vw, 4rem);
  letter-spacing: .04em;
  line-height: 1;
}

/* burst canvas overlay inside story */
#burst {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* fixed full-viewport burst (finale + CTA) */
#burstFixed {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

/* progress rail */
.story-rail {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 8;
}

.story-rail .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, .5);
  background: transparent;
  transition: background .3s, transform .3s;
}

.story-rail .dot.on {
  background: var(--gold);
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(255, 215, 0, .7);
}

/* ============================================================
   FINALE / REVEAL  (THE FUTURE IS HERE)
   ============================================================ */
.finale {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12vh 5vw;
  position: relative;
}

.finale .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 4vh, 3rem);
}

.finale .eyebrow {
  color: var(--gold);
}

.finale h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 12rem);
  line-height: .84;
  letter-spacing: -0.005em;
}

.finale p.lede {
  max-width: 46ch;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  letter-spacing: .04em;
  color: rgba(239, 231, 210, .72);
  text-wrap: pretty;
}

/* CTA button — appears at reveal */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: clamp(.72rem, 1.4vw, .92rem);
  padding: 1.15em 2.3em 1.15em 2.5em;
  color: #1a1306;
  background: linear-gradient(180deg, #ffe9a8, var(--gold) 45%, var(--gold-deep));
  border: none;
  border-radius: 999px;
  cursor: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(255, 180, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -16px rgba(255, 180, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.cta i {
  font-size: 1.05em;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3.6s ease-in-out infinite;
}

@keyframes ctaShine {

  0%,
  100% {
    left: -60%;
  }

  50% {
    left: 130%;
  }
}

/* footer line */
.footer-mark {
  margin-top: clamp(3rem, 8vh, 6rem);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .5em;
  font-size: .64rem;
  color: rgba(239, 231, 210, .32);
  padding-left: .5em;
}

.powered-by {
  margin-top: 1.2rem;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .62rem;
  color: rgba(239, 231, 210, .4);
  text-decoration: none;
  cursor: none;
  padding-left: .32em;
  transition: color .3s var(--ease);
}

.powered-by span {
  color: var(--gold);
  font-weight: 500;
  position: relative;
}

.powered-by span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.powered-by:hover {
  color: rgba(239, 231, 210, .7);
}

.powered-by:hover span::after {
  transform: scaleX(1);
}

@media (hover: none),
(pointer: coarse) {
  .powered-by {
    cursor: pointer;
  }
}

/* ============================================================
   COUNTDOWN -> REVEAL state machine helpers
   ============================================================ */
.finale {
  display: none;
}

/* hidden until reveal */
body.revealed .finale {
  display: grid;
}

/* When revealed, dim the countdown's live timer + swap message */
.timer.done .unit .num {
  color: rgba(255, 215, 0, .25);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {

  .grain,
  .leak,
  .unit,
  .cta::after,
  .shine::after,
  .scroll-cue .mouse::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet / small laptop — ease the spacing before the mobile reflow */
@media (max-width: 1024px) {
  .timer {
    gap: clamp(.5rem, 1.6vw, 1.2rem);
  }

  .countdown {
    padding: clamp(5rem, 12vh, 9rem) 0 clamp(6rem, 14vh, 10rem);
  }
}

/* Landscape phones / short viewports — claw back vertical space */
@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    padding: 6vh 5vw;
  }

  .hero .inner {
    gap: clamp(.6rem, 2vh, 1.2rem);
  }

  .scroll-cue {
    display: none;
  }

  .unit {
    animation: none;
  }

  /* stop float so the 2-row timer stays put */
  .countdown {
    padding: 4rem 0 4.5rem;
  }
}

/* Phones — timer becomes a tidy 2×2 grid */
@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .timer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    max-width: 440px;
    margin-inline: auto;
  }

  .timer .colon {
    display: none;
  }

  .unit {
    max-width: none;
    min-width: 0;
    padding: clamp(1.1rem, 5vw, 1.8rem) .6rem clamp(.9rem, 3.5vw, 1.4rem);
  }

  .unit .num {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .unit .lab {
    letter-spacing: .22em;
    font-size: clamp(.58rem, 2.6vw, .72rem);
  }

  .wordmark .line-2-row .rule {
    display: none;
  }

  .countdown .head {
    gap: 1rem;
  }

  .sound-toggle {
    width: 46px;
    height: 46px;
    top: 1rem;
    right: 1rem;
  }
}

/* Small phones — tighten further so nothing crowds the edges */
@media (max-width: 400px) {
  .timer {
    gap: .55rem;
  }

  .unit {
    padding: 1rem .4rem .85rem;
    border-radius: 13px;
  }

  .unit .num {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .unit .lab {
    letter-spacing: .16em;
  }

  .hero .former {
    letter-spacing: .3em;
  }

  .finale .lede {
    font-size: 1rem;
  }
}

/* ultrawide / 4k — cap the spread, keep it centered */
@media (min-width: 2200px) {
  :root {
    --maxw: 1700px;
  }
}

/* ========== RESPONSIVE FIXES ========== */

@media (max-width: 820px) {

  /* Keep COMMONMAN on one line; scale it down rather than breaking */
  .wordmark {
    align-items: center;
  }

  .wordmark .line-1 {
    white-space: nowrap;
    overflow: visible;
    /* Changed from hidden */
    /* text-overflow: ellipsis; <-- Remove this line */
    font-size: clamp(2rem, 11vw, 8.5rem);
    /* Reduced from 14vw */
    letter-spacing: -0.01em;
  }

  /* Countdown: wrap units instead of overflowing, and reduce sizes */
  .timer {
    flex-wrap: wrap;
    /* allow units to flow to next line */
    gap: .9rem;
    justify-content: center;
  }

  .timer .colon {
    display: none;
  }

  /* hide large colons on small screens for clarity */
  .unit {
    flex: 1 1 40%;
    max-width: 320px;
    padding: clamp(.8rem, 2.2vw, 1.4rem);
    border-radius: 12px;
  }

  .unit .num {
    font-size: clamp(1.6rem, 8.5vw, 4.4rem);
  }

  .unit .lab {
    font-size: clamp(.5rem, 1.6vw, .72rem);
  }

  .countdown {
    padding-top: clamp(3rem, 8vh, 6rem);
    padding-bottom: clamp(4rem, 10vh, 6rem);
  }
}

@media (max-width: 420px) {

  /* Extra small adjustments */
  .wordmark .line-1 {
    font-size: clamp(1.8rem, 18vw, 5.6rem);
  }

  .hero {
    padding: 8vh 5vw;
  }

  .hero .inner {
    gap: clamp(.8rem, 3vh, 1.4rem);
  }

  .scroll-cue {
    display: none;
  }

  .finale h2 {
    font-size: clamp(1.6rem, 14vw, 5.6rem);
  }

  .finale p.lede {
    padding-left: 0;
  }

  .cta {
    padding: .9em 1.6em;
    font-size: .78rem;
  }

  /* Tighten stage word sizing */
  .stage-word .top {
    font-size: clamp(1.6rem, 12vw, 5.6rem);
  }

  .stage-word .bottom {
    font-size: clamp(.9rem, 6.5vw, 2.6rem);
  }
}

/* Touch-friendly: enable native cursors and disable fancy pointer effects on coarse pointers */
@media (hover: none),
(pointer: coarse) {

  .cta,
  .powered-by,
  .sound-toggle {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .spotlight {
    display: none !important;
  }
}

/* HERO alignment fixes */
.wordmark {
  max-width: 96%;
  margin-inline: auto;
  text-align: center;
  /* ensure centered layout for wrapped lines */
  overflow-wrap: anywhere;
  /* prevent overflow from very long words */
}

.wordmark .line-1 {
  display: block;
  width: 100%;
}

.wordmark .line-2-row {
  justify-content: center;
}

/* Footer styles (powered by codeingil) */
.site-footer {
  padding: 1rem 0 2rem;
  text-align: center;
  color: rgba(239, 231, 210, .6);
  border-top: 1px solid rgba(255, 215, 0, .05);
  margin-top: 2rem;
}

.site-footer .wrap {
  width: min(92%, var(--maxw));
  margin-inline: auto;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========== GLOBAL OVERFLOW / SAFE-SCALING ========== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  /* force no horizontal scroll */
}

body {
  min-height: 100vh;
}

/* Ensure wordmark never causes horizontal scroll; scale down to fit viewport */
.wordmark {
  overflow: visible;
  /* keep shine visible */
}

.wordmark .line-1 {
  white-space: nowrap;
  /* keep COMMONMAN on one line */
  display: inline-block;
  max-width: calc(100vw - 4rem);
  /* reserve some side padding */
  font-size: clamp(1.4rem, 9.5vw, 11rem);
  /* lean harder on vw so it fits */
  overflow: hidden;
  /* text-overflow: clip; */
}

/* Also constrain other large headings to avoid overflow */
/* .stage-word .top,
.finale h2 {
  max-width: calc(100vw - 4rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
} */

/* Make small-screen adjustments to ensure no scroll */
@media (max-width: 560px) {
  .wordmark .line-1 {
    font-size: clamp(1.2rem, 10.5vw, 5.6rem);
    /* Reduced from 12vw */
  }

  .wordmark .line-2 {
    font-size: clamp(.9rem, 5.6vw, 3rem);
    letter-spacing: .18em;
    padding-left: .18em;
  }

  .hero {
    padding: 6vh 4vw;
  }
}


/* ==========================================
   MOBILE WORDMARK FIX
   ========================================== */

.wordmark {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding-inline: 15px;
}

.wordmark .line-1 {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: unset;
  line-height: 0.9;
  font-size: clamp(1.6rem, 9vw, 11rem);
  letter-spacing: -0.03em;

  /* Fit long brand names */
  transform-origin: center center;
}

.wordmark .line-2 {
  font-size: clamp(0.9rem, 3vw, 4rem);
  letter-spacing: clamp(0.12em, 1vw, 0.45em);
  padding-left: 0;
}

.wordmark .line-2-row {
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {

  .wordmark {
    padding-inline: 12px;
  }

  .wordmark .line-1 {
    font-size: clamp(1.7rem, 11vw, 5rem);
    letter-spacing: -0.04em;
    max-width: 100%;
  }

  .wordmark .line-2 {
    font-size: clamp(0.8rem, 4.5vw, 2rem);
    letter-spacing: 0.18em;
  }

  .wordmark .line-2-row .rule {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .wordmark .line-1 {
    font-size: clamp(1.5rem, 10vw, 3.8rem);
    letter-spacing: -0.05em;
  }

  .wordmark .line-2 {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }

  .hero {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Very small phones */
@media (max-width: 360px) {

  .wordmark .line-1 {
    font-size: clamp(1.3rem, 9vw, 3rem);
    letter-spacing: -0.06em;
  }
}