/**
 * Preloader (PRESS TO only) → hero (`yarlweb.jpg`) + rail → gallery `#main-board`.
 */
html {
  scroll-behavior: smooth;
}

/* No scrolling past preloader until PRESS TO (JS removes `.preloader-lock`). */
html.preloader-lock,
html.preloader-lock body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/*
 * Single page yellow (#fff200): hero slack and `#main-board` stay on the same yellow.
 */
html,
body {
  background-color: #fff200;
}

#scroll-site {
  min-height: 100%;
  background-color: #fff200;
}

.preloader-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding: 28px 20px;
  background: #fff200;
}

html.preloader-lock .preloader-stage {
  touch-action: none;
}

html.preloader-lock .preloader-stage .hero-yarl-cta {
  touch-action: manipulation;
}

.preloader-stage .hero-yarl-cta {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
}

.preloader-stage .hero-yarl-cta:active {
  transform: none;
}

#hero-stage {
  position: relative;
  z-index: 2;
  height: 104vh;
  margin-bottom: 0;
  padding-bottom: 0;
  background: #fff200;
}

.hero-sticky {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #fff200;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-reveal-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 100%;
}

.hero-brand {
  position: absolute;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  left: auto;
  width: min(280px, 46vw);
  z-index: 4;
  padding: 0;
  pointer-events: none;
  opacity: 1;
  transform: translateY(-50%);
}

.hero-brand-inner {
  pointer-events: auto;
  text-align: right;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.hero-logo {
  margin: 0 0 14px;
  margin-left: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-logo-img {
  display: block;
  margin-left: auto;
  width: auto;
  max-width: min(280px, 100%);
  height: auto;
}

.hero-btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-pill-btn {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.12);
}

.hero-pill-btn:hover {
  background: #fffef0;
}

.hero-ca-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.hero-ca-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #000;
}

.hero-ca-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.02em;
}

.hero-mini-btn {
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  color: #000;
  background: #fff200;
  border: 2px solid #000;
  border-radius: 4px;
}

.hero-mini-btn:hover {
  background: #fff;
}

.hero-buy-now {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: #000;
  border: 2px solid #000;
  border-radius: 8px;
  box-sizing: border-box;
}

.hero-buy-now:hover {
  background: #222;
}

/* Default layout if ever used outside preloader only; hero no longer mounts this button. */
.hero-yarl-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: min(92vw, 520px);
  padding: 16px 22px;
  margin: 0;
  appearance: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(0.95rem, 2.9vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  background: rgba(255, 255, 255, 0.97);
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow:
    6px 6px 0 #000,
    0 0 0 4px #fff200,
    0 12px 40px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  box-sizing: border-box;
}

.hero-yarl-cta:hover {
  background: #fff;
}

.hero-yarl-cta:active {
  box-shadow:
    3px 3px 0 #000,
    0 0 0 4px #fff200,
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-yarl-cta-text {
  display: inline-block;
  padding-right: 2px;
}

.hero-yarl-cta-logo {
  display: block;
  width: auto;
  height: clamp(34px, 7vw, 52px);
  object-fit: contain;
}

#main-board {
  position: relative;
  z-index: 0;
  background: #fff200;
  min-height: 100vh;
  margin-top: 0;
  padding-top: 0;
}

/* Removes bundled `.container{padding:10px}` around `#root`. */
#main-board #root > .container {
  padding: 0;
  margin-top: 0;
}

.site-footer {
  background: #fff200;
  padding: 24px 16px 28px;
  text-align: center;
  font-family: Times New Roman, Times, serif;
  font-size: 12px;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .hero-brand {
    width: min(200px, 52vw);
    right: 12px;
  }

  .hero-logo-img {
    max-width: min(220px, 100%);
  }

  .hero-pill-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .preloader-stage .hero-yarl-cta {
    padding: 14px 16px;
    gap: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
