:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --gold: #e4c36a;
  --gold-line: rgba(228, 195, 106, 0.38);
  --font-display: "Montserrat", "Arial Black", Impact, sans-serif;
  --font-text: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection {
  background: #fff;
  color: #000;
}

button,
a {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain,
.glow,
.spotlight,
.razor {
  position: fixed;
  pointer-events: none;
}

.grain {
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.glow {
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 46% 38% at 50% 40%, rgba(255, 255, 255, 0.055), transparent 70%);
}

.spotlight {
  z-index: 0;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s linear;
}

body.is-on .spotlight {
  opacity: 1;
}

.razor {
  z-index: 4;
  top: 36%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent);
  transform: scaleX(0);
  opacity: 0;
}

body.is-on .razor {
  animation: razor 1.2s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

@keyframes razor {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.9;
  }
  58% {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 0.9;
  }
  59% {
    transform: scaleX(1);
    transform-origin: right center;
    opacity: 0.9;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
    opacity: 0;
  }
}

.frame {
  position: fixed;
  inset: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    calc(58px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 3;
  pointer-events: none;
}

.frame span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
}

body.is-on .frame span {
  opacity: 1;
  transition: opacity 0.8s var(--ease) 0.2s;
}

.frame .tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.frame .tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.frame .bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.frame .br {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(4.5rem + env(safe-area-inset-top)) 1.5rem 2.75rem;
}

.stack {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: min(78vw, 400px);
  height: auto;
  display: block;
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
  user-select: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
}

body.is-on .reveal {
  animation: rise 1s var(--ease) forwards;
}

body.is-on .logo {
  animation-delay: 0.15s;
}

body.is-on .lead {
  animation-delay: 1.05s;
}

body.is-on .count-kicker {
  animation-delay: 1.15s;
}

body.is-on .count {
  animation-delay: 1.25s;
}

body.is-on .date {
  animation-delay: 1.4s;
}

body.is-on .actions {
  animation-delay: 1.55s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 7.1vw, 5.15rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mask {
  display: flex;
  justify-content: center;
}

.ch {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.012em 0.02em;
}

.ch > span {
  display: block;
  transform: translateY(115%);
}

body.is-on .ch > span {
  transform: translateY(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(0.42s + var(--i) * 0.04s);
}

.title-rule {
  display: block;
  width: min(148px, 28vw);
  height: 1px;
  margin: 1.15rem 0 1.15rem;
  background: #fff;
  transform: scaleX(0);
}

body.is-on .title-rule {
  transform: scaleX(1);
  transition: transform 0.85s var(--ease) 1.05s;
}

.lead {
  max-width: 34rem;
  margin: 0 0 2.1rem;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

.count-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(640px, 100%);
  margin: 0 0 1.35rem;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.4rem;
}

.unit + .unit {
  border-left: 1px solid var(--line);
}

.num-window {
  height: 1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
}

.num {
  display: block;
  height: 1em;
  font-family: inherit;
  font-weight: inherit;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  background-image: linear-gradient(185deg, #f8e7b5 0%, #e4c36a 46%, #b8893a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.num.is-tick {
  animation: tick 0.28s var(--ease);
}

@keyframes tick {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

.lbl {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(228, 195, 106, 0.72);
}

.date {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.85rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.date i {
  display: block;
  width: 2.1rem;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
}

body.is-on .date i {
  transform: scaleX(1);
  transition: transform 0.8s var(--ease) 1.45s;
}

.opened {
  margin: 0 0 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
}

.mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.mail {
  gap: 0.85rem;
  padding: 0 1.25rem 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.mail:hover,
.mail:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.mail:hover .arrow,
.mail:focus-visible .arrow {
  transform: translateX(4px);
}

.subscribe {
  display: flex;
  align-items: stretch;
  min-height: 3.15rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.subscribe input {
  width: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  opacity: 0;
}

.subscribe.is-open {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.subscribe.is-open input {
  width: min(240px, 42vw);
  padding: 0 0.95rem;
  opacity: 1;
}

.subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.subscribe-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 1.15rem;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe.is-open .subscribe-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  background: #fff;
  color: #000;
}

.subscribe.is-open .subscribe-btn:hover,
.subscribe.is-open .subscribe-btn:focus-visible {
  background: #fff;
  color: #000;
}

.subscribe:not(.is-open):hover,
.subscribe:not(.is-open):focus-within {
  background: transparent;
  color: #fff;
}

.subscribe-btn:disabled {
  cursor: default;
}

.subscribe-status {
  margin: 0.75rem 0 0;
  min-height: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.subscribe-status:empty {
  display: none;
}

.mail:focus-visible,
.subscribe-btn:focus-visible,
.subscribe.is-open input:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.subscribe.is-open input:focus-visible {
  outline: none;
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #000;
  margin-top: auto;
}

.track {
  display: flex;
  width: max-content;
  animation: drift 46s linear infinite;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.run {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0.95rem 0.8rem;
}

.run li {
  display: inline-flex;
  align-items: center;
  gap: 1.65rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.run li::before {
  content: "";
  width: 1.05rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .frame {
    inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      calc(48px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .frame span {
    width: 12px;
    height: 12px;
  }

  main {
    padding: calc(2.15rem + env(safe-area-inset-top)) 1.15rem 1.35rem;
  }

  .logo {
    width: min(58vw, 220px);
    margin-bottom: 0.75rem;
  }

  .title {
    font-size: clamp(1.35rem, 7.5vw, 2.15rem);
    max-width: 100%;
  }

  .mask {
    max-width: 100%;
  }

  .title-rule {
    margin: 0.75rem 0;
  }

  .lead {
    margin-bottom: 1.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
    padding-inline: 0.25rem;
  }

  .count-kicker {
    letter-spacing: 0.28em;
  }

  .count {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 22.5rem);
    margin-bottom: 1rem;
    border: 1px solid var(--gold-line);
  }

  .num-window {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .unit {
    padding: 0.85rem 0.3rem 0.7rem;
  }

  .unit + .unit {
    border-left: 0;
  }

  .unit:nth-child(even) {
    border-left: 1px solid var(--gold-line);
  }

  .unit:nth-child(n + 3) {
    border-top: 1px solid var(--gold-line);
  }

  .lbl {
    letter-spacing: 0.2em;
    font-size: 0.62rem;
  }

  .date {
    margin-bottom: 1.15rem;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    gap: 0.65rem;
  }

  .date i {
    width: 1.4rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22.5rem);
    gap: 0.55rem;
  }

  .mail,
  .subscribe {
    width: 100%;
  }

  .mail {
    font-size: 0.86rem;
    padding-inline: 0.85rem;
  }

  .subscribe {
    justify-content: center;
  }

  .subscribe-btn {
    width: 100%;
    min-height: 3.15rem;
  }

  .subscribe.is-open {
    flex-direction: column;
  }

  .subscribe.is-open input {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .subscribe.is-open .subscribe-btn {
    border-left: 0;
  }

  .subscribe-status {
    width: min(100%, 22.5rem);
    text-align: center;
  }

  .run {
    padding-block: 0.8rem;
  }

  .run li {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .logo {
    width: min(48vw, 180px);
    margin-bottom: 0.45rem;
  }

  .lead {
    margin-bottom: 0.8rem;
  }

  main {
    padding-top: calc(1.6rem + env(safe-area-inset-top));
  }
}

@media (max-height: 900px) and (min-width: 641px) {
  .logo {
    width: min(42vw, 280px);
    margin-bottom: 0.85rem;
  }

  .title {
    font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  }

  .lead {
    margin-bottom: 1.15rem;
  }

  .count {
    margin-bottom: 0.9rem;
  }

  .date {
    margin-bottom: 1.15rem;
  }

  main {
    padding-top: 2.6rem;
    padding-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ch > span,
  .title-rule,
  .date i,
  .frame span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  .razor,
  .spotlight {
    display: none;
  }

  .num.is-tick {
    animation: none;
  }

  .track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .track .run:last-child {
    display: none;
  }

  .run {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (pointer: coarse) {
  .spotlight {
    display: none;
  }
}
