:root {
  --bg: #120806;
  --bg-deep: #080302;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 240, 226, 0.15);
  --line-strong: rgba(255, 240, 226, 0.25);
  --ink: #fff8f0;
  --ink-soft: rgba(255, 248, 240, 0.72);
  --ink-muted: rgba(255, 248, 240, 0.48);
  --ember: #fd6900;
  --ember-dark: #ae4903;
  --sand: #e7b18a;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 300px;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  overflow-anchor: none;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 174, 112, 0.9);
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 84% 48%, rgba(174, 73, 3, 0.12), transparent 36%),
    linear-gradient(125deg, #190b08 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 3, 2, 0.88) 0%, rgba(8, 3, 2, 0.72) 32%, rgba(8, 3, 2, 0.18) 62%, rgba(8, 3, 2, 0.02) 100%),
    linear-gradient(180deg, rgba(8, 3, 2, 0.28), transparent 24%, transparent 72%, rgba(8, 3, 2, 0.72));
}

.atmosphere,
.strands-stage,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  z-index: -3;
}

.ambient-glow {
  position: absolute;
  top: 18%;
  right: 5%;
  width: min(42vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 105, 0, 0.18), rgba(174, 73, 3, 0.05) 48%, transparent 70%);
  filter: blur(36px);
}

.grain {
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.15) 0 0.6px, transparent 0.75px),
    radial-gradient(circle at 73% 61%, rgba(0, 0, 0, 0.36) 0 0.7px, transparent 0.85px),
    radial-gradient(circle at 42% 83%, rgba(255, 255, 255, 0.1) 0 0.55px, transparent 0.7px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
  mix-blend-mode: soft-light;
}

.strands-stage {
  inset: 2% -10% -1% 19%;
  z-index: -2;
  opacity: 0.94;
  overflow: clip;
  contain: layout paint;
  transform: rotate(-3deg) scale(1.05);
  transform-origin: 65% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 14%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 14%, #000 42%, #000 100%);
}

.strands-container,
.strands-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.strands-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.strands-container canvas {
  position: absolute;
  inset: 0;
  max-width: none;
  max-height: none;
}

.strands-unavailable .strands-stage {
  background:
    radial-gradient(ellipse at 70% 48%, rgba(253, 105, 0, 0.24), transparent 25%),
    repeating-radial-gradient(ellipse at 70% 48%, transparent 0 28px, rgba(198, 147, 111, 0.08) 30px, transparent 32px);
}

.site-header,
.hero-layout,
.hero-footer {
  width: min(calc(100% - 64px), 1440px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 20px;
  border-bottom: 1px solid rgba(255, 240, 226, 0.08);
}

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

.brand-logo-frame {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 132px;
  height: 70px;
  overflow: hidden;
}

.brand-logo-frame img {
  position: absolute;
  top: -27px;
  left: 0;
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(253, 105, 0, 0.14));
  animation: none !important;
  transform: none !important;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  align-items: center;
  min-height: 0;
  padding: clamp(48px, 7vh, 92px) 0;
}

.hero-copy {
  grid-column: 1;
  width: min(100%, 760px);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 6.3vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-wrap: balance;
}

h1 .headline-primary {
  display: block;
  margin: 0;
  color: #f2c29f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

h1 .headline-second {
  display: block;
  margin-top: 0.14em;
  line-height: 0.94;
  white-space: nowrap;
}

h1 .headline-second em {
  display: inline;
  color: #f2c29f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h1 .headline-second strong {
  display: inline;
  margin-inline-start: 0.15em;
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

h1 .headline-brand {
  display: block;
  color: #ffffff;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

h1 .headline-formerly {
  display: block;
  margin-top: 0.22em;
  color: #f2c29f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.hero-description {
  max-width: 55ch;
  margin: 34px 0 0;
  color: #ffffff;
  font-size: clamp(0.98rem, 1.25vw, 1.14rem);
  line-height: 1.72;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.store-button,
.visit-button {
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 163px;
  padding: 8px 16px;
  color: #17100d;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.store-button:hover {
  background: #fff7f0;
  border-color: #ffffff;
  box-shadow: 0 17px 42px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.store-button img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.store-button > span {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.store-button small {
  color: rgba(23, 16, 13, 0.6);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
}

.store-button strong {
  margin-top: 4px;
  color: #100b09;
  font-size: 0.91rem;
  font-weight: 600;
}

.visit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 154px;
  padding: 8px 13px 8px 17px;
  color: #100b09;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
}

.visit-button:hover {
  background: #fff7f0;
  box-shadow: 0 17px 42px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.visit-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #ffffff;
  background: #17100d;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

.visit-button:hover .visit-arrow {
  transform: translateX(3px);
}

.hero-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(255, 240, 226, 0.08);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-footer p {
  margin: 0;
}

.hero-footer .copyright {
  color: #ffffff;
  font-size: 1.2em;
}

.coordinates {
  font-variant-numeric: tabular-nums;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-ready .reveal-2 { transition-delay: 100ms; }
.is-ready .reveal-3 { transition-delay: 200ms; }
.is-ready .reveal-4 { transition-delay: 300ms; }

@media (max-width: 1050px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(220px, 0.96fr);
  }

  h1 {
    font-size: clamp(3.65rem, 7.9vw, 6rem);
  }

  .strands-stage {
    inset-inline-start: 24%;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
  }

  .site-header,
  .hero-layout,
  .hero-footer {
    width: min(calc(100% - 36px), 680px);
  }

  .site-header {
    padding-top: 20px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: clamp(62px, 11vh, 100px) 0 64px;
  }

  .hero-copy {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(3.15rem, 13vw, 5rem);
  }

  .hero-description {
    max-width: 48ch;
    font-size: 0.96rem;
  }

  .strands-stage {
    inset: 25% -55% -12% -20%;
    opacity: 0.68;
    transform: rotate(14deg) scale(1.35);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, #000 50%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, #000 50%, #000 100%);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(8, 3, 2, 0.75) 0%, rgba(8, 3, 2, 0.52) 49%, rgba(8, 3, 2, 0.18) 75%, rgba(8, 3, 2, 0.7) 100%),
      linear-gradient(90deg, rgba(8, 3, 2, 0.58), transparent 80%);
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    max-width: 180px;
    font-size: 0.55rem;
  }

  h1 {
    font-size: clamp(2.72rem, 12.5vw, 4.2rem);
  }

  .hero-description {
    margin-top: 27px;
    line-height: 1.62;
  }

  .download-row {
    gap: 8px;
    margin-top: 26px;
  }

  .store-button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 8px 11px;
  }

  .store-button img {
    width: 24px;
    height: 24px;
  }

  .store-button strong {
    font-size: 0.76rem;
  }

  .store-button small {
    font-size: 0.47rem;
  }

  .visit-button {
    flex: 1 1 100%;
    min-height: 51px;
  }

  .hero-footer {
    display: grid;
    justify-content: center;
    gap: 8px;
    padding-bottom: 18px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .site-header,
  .hero-layout,
  .hero-footer {
    width: min(calc(100% - 24px), 680px);
  }

  .brand-logo-frame {
    width: 112px;
    height: 60px;
  }

  .brand-logo-frame img {
    top: -23px;
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-height: 720px) and (min-width: 781px) {
  .site-header {
    padding: 20px 0 14px;
  }

  .hero-layout {
    padding: 24px 0;
  }

  h1 {
    font-size: clamp(3.45rem, 6vw, 5.5rem);
  }

  .hero-description {
    margin-top: 22px;
    line-height: 1.55;
  }

  .download-row {
    margin-top: 22px;
  }

  .hero-footer {
    padding: 14px 0 16px;
  }
}

@media (max-height: 720px) and (max-width: 780px) {
  .site-header {
    padding: 13px 0 11px;
  }

  .brand-logo-frame {
    width: 112px;
    height: 60px;
  }

  .brand-logo-frame img {
    top: -23px;
    width: 112px;
    height: 112px;
  }

  .hero-layout {
    padding: 24px 0;
  }

  h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.6rem);
  }

  .hero-description {
    margin-top: 19px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .download-row {
    margin-top: 18px;
  }

  .store-button,
  .visit-button {
    min-height: 47px;
  }

  .hero-footer {
    padding: 10px 0 12px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
