:root {
  --ink: #09070d;
  --paper: #f7f0e5;
  --muted: #c7bfba;
  --gold: #e7b863;
  --red: #bb3542;
  --line: rgba(255, 255, 255, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 360px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 360px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 18%, rgba(107, 35, 58, 0.24), transparent 27rem),
    #09070d;
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(100%, 1920px);
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  background: #0c0910;
  isolation: isolate;
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  content: "";
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.45rem, 3.2vw, 3.75rem) clamp(1.25rem, 5.2vw, 6.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-star {
  color: var(--gold);
  font-size: 1.65rem;
  filter: drop-shadow(0 0 12px rgba(231, 184, 99, 0.55));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.brand small {
  margin-top: 0.22rem;
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mission {
  margin: 0;
  color: rgba(247, 240, 229, 0.65);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mission span {
  margin-inline: 0.5rem;
  color: var(--gold);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(7.25rem, 11vh, 9rem) clamp(1.25rem, 5.2vw, 6.25rem) clamp(2rem, 4vh, 3.75rem);
}

.stage-photo {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -4;
  background-image: url("img/troupe2-2560.webp");
  background-position: 48% center;
  background-size: cover;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.015);
  animation: reveal-photo 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, #0c0910 0%, rgba(12, 9, 16, 0.98) 29%, rgba(12, 9, 16, 0.78) 47%, rgba(12, 9, 16, 0.2) 76%, rgba(12, 9, 16, 0.57) 100%),
    linear-gradient(0deg, rgba(9, 7, 13, 0.72) 0%, transparent 26%, rgba(9, 7, 13, 0.2) 75%, rgba(9, 7, 13, 0.45) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.13;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

.stage-light {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
}

.stage-light--one {
  top: 4%;
  right: 19%;
  width: 16rem;
  height: 16rem;
  background: rgba(107, 35, 163, 0.18);
}

.stage-light--two {
  right: 6%;
  bottom: -10%;
  width: 25rem;
  height: 25rem;
  background: rgba(188, 42, 54, 0.14);
}

.hero-copy {
  z-index: 3;
  width: min(52vw, 45rem);
  animation: rise-in 1s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: clamp(0.62rem, 0.75vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.65rem, 6.15vw, 7.2rem);
  font-weight: 500;
  line-height: 0.81;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 em {
  display: block;
  margin-left: 0.5em;
  color: var(--gold);
  font-weight: 500;
}

.intro {
  max-width: 29rem;
  margin: clamp(1.25rem, 2.4vh, 1.8rem) 0 1rem;
  color: rgba(247, 240, 229, 0.72);
  font-size: clamp(0.78rem, 0.88vw, 0.94rem);
  line-height: 1.75;
}

.launch-date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 240, 229, 0.78);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.launch-date svg {
  width: 1rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.launch-date strong {
  color: var(--paper);
  font-weight: 600;
}

.countdown-wrap {
  margin-top: clamp(1.4rem, 3.2vh, 2.25rem);
}

.countdown-heading {
  margin: 0 0 0.6rem;
  color: rgba(247, 240, 229, 0.43);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  align-items: flex-start;
  width: fit-content;
  padding: 0.85rem 1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(15, 11, 19, 0.38);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.time-unit {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: clamp(3.65rem, 5.3vw, 5.5rem);
}

.time-number {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.time-label {
  margin-top: 0.45rem;
  color: rgba(247, 240, 229, 0.48);
  font-size: clamp(0.48rem, 0.6vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.separator {
  margin-top: 0.1rem;
  color: rgba(231, 184, 99, 0.55);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 0.85;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(1.25rem, 2.6vh, 1.9rem);
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(231, 184, 99, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.instagram-link svg {
  width: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.instagram-link .fill-dot {
  fill: currentColor;
  stroke: none;
}

.instagram-link .arrow {
  color: var(--gold);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.instagram-link:hover .arrow,
.instagram-link:focus-visible .arrow {
  transform: translate(0.2rem, -0.2rem);
}

.instagram-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.story-card {
  position: absolute;
  right: clamp(1.5rem, 5.2vw, 6.25rem);
  bottom: clamp(2rem, 6vh, 4.75rem);
  z-index: 4;
  width: clamp(10rem, 16vw, 18rem);
  margin: 0;
  animation: rise-in 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story-card figure {
  position: relative;
  aspect-ratio: 1 / 1.16;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 9rem 9rem 0.25rem 0.25rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.story-card figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 7, 13, 0.35), transparent 50%);
  content: "";
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  filter: saturate(0.78) contrast(1.02);
}

.story-card p {
  margin: 0.65rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  font-style: italic;
  line-height: 1;
  text-align: right;
}

.story-card p span {
  color: var(--gold);
}

.edition {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  z-index: 4;
  margin: 0;
  color: rgba(247, 240, 229, 0.37);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.3rem;
  color: #171019;
  background: var(--gold);
  font-size: 0.75rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-photo {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@media (max-width: 900px) {
  .stage-photo {
    inset: 0;
    background-image: url("img/troupe2-1280.webp");
    background-position: 52% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(9, 7, 13, 0.96) 0%, rgba(9, 7, 13, 0.82) 58%, rgba(9, 7, 13, 0.38) 100%),
      linear-gradient(0deg, rgba(9, 7, 13, 0.86) 0%, transparent 48%, rgba(9, 7, 13, 0.38) 100%);
  }

  .hero-copy {
    width: min(72vw, 38rem);
  }

  .story-card {
    right: 2rem;
    width: 9.5rem;
  }
}

@media (max-width: 650px) {
  .site-header {
    align-items: flex-start;
  }

  .mission {
    max-width: 9rem;
    padding-top: 0.3rem;
    font-size: 0.52rem;
    line-height: 1.55;
    text-align: right;
  }

  .mission span {
    display: none;
  }

  .hero {
    align-items: flex-start;
    min-height: 100svh;
    padding-top: 7.8rem;
    padding-bottom: 2rem;
  }

  .stage-photo {
    background-position: 51% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(9, 7, 13, 0.93) 0%, rgba(9, 7, 13, 0.72) 72%, rgba(9, 7, 13, 0.5) 100%),
      linear-gradient(0deg, rgba(9, 7, 13, 0.98) 4%, rgba(9, 7, 13, 0.67) 52%, rgba(9, 7, 13, 0.48) 100%);
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    max-width: 10ch;
  }

  h1 em {
    margin-left: 0.2em;
  }

  .intro {
    max-width: 29rem;
    padding-right: 1rem;
  }

  .countdown {
    width: 100%;
    justify-content: space-between;
    padding-inline: 0.45rem;
  }

  .time-unit {
    flex: 1 1 0;
    min-width: 0;
  }

  .story-card,
  .edition {
    display: none;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3.45rem;
  }

  .intro {
    font-size: 0.73rem;
    line-height: 1.62;
  }

  .launch-date {
    font-size: 0.68rem;
  }

  .time-number {
    font-size: 2rem;
  }

  .time-label {
    letter-spacing: 0.09em;
  }
}

@media (max-height: 760px) and (min-width: 651px) {
  .hero {
    align-items: flex-end;
    padding-top: 6.5rem;
    padding-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(3.7rem, 5.5vw, 5.8rem);
  }

  .intro {
    margin-top: 1rem;
    line-height: 1.55;
  }

  .countdown-wrap {
    margin-top: 1rem;
  }

  .instagram-link {
    margin-top: 1rem;
  }

  .story-card {
    bottom: 2rem;
    width: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
