:root {
  --ink: #08051e;
  --paper: #f5ead7;
  --paper-muted: rgba(245, 234, 215, 0.68);
  --red: #b7242e;
  --red-bright: #e7443f;
  --gold: #eab75a;
  --purple: #5a287d;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-ui: "Onest", "Segoe UI", sans-serif;
  --font-story: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #050314;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--paper);
  background: #050314;
  font-family: var(--font-ui);
}

body.is-loading { overflow: hidden; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.shell {
  width: min(1420px, calc(100% - 68px));
  margin-inline: auto;
}

.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: #07041b;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  margin: 0;
  color: rgba(245, 234, 215, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader__eye {
  position: relative;
  width: 64px;
  height: 32px;
  overflow: hidden;
  border: 2px solid #8b1d2b;
  border-radius: 70% 20% 70% 20%;
  background: #110914;
  transform: rotate(-4deg);
  animation: blink 2.4s ease-in-out infinite;
}

.loader__eye i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 5px solid #b48635;
  border-radius: 50%;
  background: #020205;
  box-shadow: 0 0 14px rgba(234, 183, 90, 0.45);
  transform: translate(-50%, -50%);
}

.hero {
  isolation: isolate;
  position: sticky;
  z-index: 1;
  top: 0;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  --scroll-p: 0;
  --scene-x: 0px;
  --scene-y: 0px;
  --left-retreat: 0px;
  --right-retreat: 0px;
  --left-drop: 0px;
  --right-drop: 0px;
  --content-opacity: 1;
  --content-y: 0px;
  --content-scale: 1;
  --scroll-hint-opacity: 0.72;
}

.scene {
  position: absolute;
  z-index: -20;
  inset: -3%;
  background: image-set(url("assets/arara-bg-clean.webp") type("image/webp"), url("assets/arara-bg-clean.png") type("image/png")) center / cover no-repeat;
  transform: scale(1.05) translate(var(--scene-x), var(--scene-y));
}

.scene-edge {
  position: absolute;
  z-index: -3;
  top: 17%;
  display: block;
  width: clamp(330px, 29vw, 510px);
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 24px 28px rgba(1, 0, 8, 0.48));
}

.scene-edge--left {
  left: max(-11vw, -170px);
  transform-origin: left 58%;
  transform: translate(var(--left-retreat), var(--left-drop)) rotate(-1.2deg);
}

.scene-edge--right {
  right: max(-11vw, -170px);
  transform-origin: right 58%;
  transform: translate(var(--right-retreat), var(--right-drop)) rotate(1.2deg);
}

.atmosphere {
  position: absolute;
  z-index: -4;
  left: 25%;
  right: 25%;
  bottom: -5%;
  height: 48%;
  opacity: var(--mist-opacity, 0.24);
  background: radial-gradient(ellipse, rgba(117, 73, 170, 0.42), transparent 68%);
  filter: blur(32px);
  transform: translate(var(--mist-x, 0px), var(--mist-y, 0px)) scale(var(--mist-scale, 1));
}

.vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 1, 10, 0.28), transparent 26%, transparent 74%, rgba(1, 1, 10, 0.28)),
    linear-gradient(0deg, rgba(2, 1, 12, 0.78), transparent 34%, rgba(4, 2, 18, 0.12) 68%, rgba(2, 1, 12, 0.42));
}

.nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: max(clamp(22px, 4vh, 42px), env(safe-area-inset-top));
}

.wordmark {
  display: grid;
  width: max-content;
  color: var(--paper);
  text-decoration: none;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.wordmark strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
}

.wordmark span {
  margin-top: 6px;
  color: rgba(245, 234, 215, 0.55);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.nav__stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 234, 215, 0.54);
}

.nav__stamp span {
  display: grid;
  width: 30px;
  height: 30px;
  place-content: center;
  border: 1px solid rgba(234, 183, 90, 0.54);
  color: var(--gold);
  font-family: var(--font-story);
  font-size: 12px;
  transform: rotate(4deg);
}

.nav__stamp small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sound {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border: 0;
  color: var(--paper);
  background: none;
  cursor: pointer;
}

.sound__text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sound__icon {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.sound__icon i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.sound[aria-pressed="true"] .sound__icon i { animation: wave 0.75s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(2) { animation-delay: -0.25s; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(3) { animation-delay: -0.5s; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(4) { animation-delay: -0.1s; }

.hero__content {
  position: absolute;
  z-index: 4;
  top: 52%;
  left: 50%;
  display: flex;
  width: min(560px, 42vw);
  align-items: center;
  flex-direction: column;
  text-align: center;
  opacity: var(--content-opacity);
  transform: translate(-50%, calc(-50% + var(--content-y))) scale(var(--content-scale));
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 234, 215, 0.64);
}

.kicker span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.kicker i {
  display: block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.kicker i:last-child { transform: scaleX(-1); }

.arara-line {
  margin: 18px 0 6px;
  color: var(--gold);
  font-family: var(--font-story);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: appear 1s var(--ease) 0.85s forwards;
}

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(68px, 8.3vw, 128px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  -webkit-text-stroke: 0.5px rgba(61, 10, 31, 0.6);
  text-shadow: 4px 6px 0 #9d2437, 0 17px 25px rgba(1, 0, 8, 0.72);
}

.intro {
  margin: 23px 0 28px;
  color: rgba(245, 238, 222, 0.84);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.88);
}

.primary {
  display: flex;
  min-width: 206px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 19px 15px 23px;
  border: 1px solid rgba(234, 183, 90, 0.62);
  color: var(--paper);
  background: rgba(18, 8, 31, 0.42);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.primary svg {
  width: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.primary:hover {
  border-color: var(--gold);
  background: rgba(87, 28, 57, 0.54);
  transform: translateY(2px);
}

.side-note {
  position: absolute;
  z-index: 5;
  top: 54%;
  color: rgba(245, 234, 215, 0.36);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.side-note--left { left: 27px; transform: rotate(180deg); }
.side-note--right { right: 27px; }

.scroll-mark {
  position: absolute;
  z-index: 5;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: var(--scroll-hint-opacity);
  transform: translateX(-50%);
}

.scroll-mark span {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(245, 234, 215, 0.22);
}

.scroll-mark span::after {
  position: absolute;
  inset: -50% 0 50%;
  background: var(--gold);
  content: "";
  animation: scroll-line 2.1s ease-in-out infinite;
}

.scroll-mark small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.scroll-progress {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(245, 234, 215, 0.08);
  transform: scaleX(clamp(0, var(--scroll-p), 1));
  transform-origin: left;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.story {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.story__beat {
  display: flex;
  width: 100%;
  min-height: 100svh;
  align-items: center;
  padding: 12vh max(6vw, 28px);
  pointer-events: none;
}

.story__beat--right { justify-content: flex-end; }
.story__beat--center { justify-content: center; text-align: center; }
.story__beat--center .story__copy { width: min(680px, 92vw); }

.story__copy {
  width: min(430px, 42vw);
  opacity: 0;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.95);
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 1s var(--ease);
  pointer-events: auto;
}

.story__beat.is-active .story__copy {
  opacity: 1;
  transform: translateY(0);
}

.story__copy > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.story__copy h2 {
  margin: 15px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 70px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.story__copy p {
  width: min(360px, 100%);
  margin: 0;
  color: rgba(245, 234, 215, 0.76);
  font-family: var(--font-story);
  font-size: clamp(15px, 1.35vw, 19px);
  font-style: italic;
  line-height: 1.65;
}

.story__beat--right p { margin-left: auto; }

.story__return {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(234, 183, 90, 0.55);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.mega-cta {
  isolation: isolate;
  position: relative;
  display: grid;
  width: clamp(246px, 28vw, 390px);
  aspect-ratio: 2.18 / 1;
  place-content: center;
  gap: 8px;
  margin: 38px auto 0;
  overflow: visible;
  border: 2px solid #4b2f0e;
  border-radius: 18px;
  color: #241506;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(88, 47, 8, 0.16) 8% 9%, transparent 9% 91%, rgba(88, 47, 8, 0.16) 91% 92%, transparent 92%),
    radial-gradient(circle at 50% 18%, rgba(255, 249, 188, 0.76), transparent 34%),
    linear-gradient(180deg, #ffe46a 0%, #edb933 52%, #c88717 100%);
  box-shadow:
    0 7px 0 #6f4611,
    0 11px 0 rgba(24, 12, 2, 0.72),
    0 25px 46px rgba(0, 0, 0, 0.46),
    inset 0 2px 0 rgba(255, 255, 218, 0.82),
    inset 0 -7px 14px rgba(110, 61, 8, 0.24);
  cursor: pointer;
  animation: mega-breathe 3.4s ease-in-out infinite;
}

.mega-cta::before,
.mega-cta::after {
  position: absolute;
  z-index: -1;
  inset: -11px;
  border: 1px solid rgba(234, 183, 90, 0.4);
  border-radius: inherit;
  content: "";
  animation: mega-ring 3.4s ease-out infinite;
}

.mega-cta::after { animation-delay: -1.7s; }

.mega-cta span {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 rgba(255, 246, 170, 0.72), 0 4px 0 rgba(103, 61, 8, 0.28);
}

.mega-cta small {
  color: rgba(61, 34, 5, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.mega-cta > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  pointer-events: none;
}

.mega-cta.is-bursting { animation: mega-click 0.65s var(--ease), mega-breathe 3.4s ease-in-out 0.65s infinite; }
.mega-cta.is-bursting > i { animation: mega-spark 0.72s var(--ease); }
.mega-cta.is-bursting > i:nth-child(2) { --spark-x: 112px; --spark-y: 42px; animation-delay: 0.03s; }
.mega-cta.is-bursting > i:nth-child(3) { --spark-x: -104px; --spark-y: 48px; animation-delay: 0.06s; }
.mega-cta.is-bursting > i:nth-child(4) { --spark-x: -82px; --spark-y: -58px; animation-delay: 0.09s; }
.mega-cta.is-bursting > i:first-child { --spark-x: 86px; --spark-y: -62px; }

@keyframes blink {
  0%, 44%, 54%, 100% { transform: rotate(-4deg) scaleY(1); }
  49% { transform: rotate(-4deg) scaleY(0.08); }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave { to { height: 15px; } }

@keyframes scroll-line {
  from { transform: translateY(-35%); }
  to { transform: translateY(200%); }
}

@keyframes mega-breathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 7px 0 #6f4611, 0 11px 0 rgba(24, 12, 2, 0.72), 0 25px 46px rgba(0, 0, 0, 0.46), inset 0 2px 0 rgba(255, 255, 218, 0.82), inset 0 -7px 14px rgba(110, 61, 8, 0.24); }
  50% { transform: translateY(-4px) scale(1.018); box-shadow: 0 8px 0 #6f4611, 0 13px 0 rgba(24, 12, 2, 0.68), 0 29px 58px rgba(225, 167, 39, 0.3), inset 0 2px 0 rgba(255, 255, 218, 0.9), inset 0 -7px 14px rgba(110, 61, 8, 0.2); }
}

@keyframes mega-ring {
  0% { opacity: 0; transform: scale(0.9); }
  28% { opacity: 0.75; }
  100% { opacity: 0; transform: scale(1.24); }
}

@keyframes mega-click {
  0% { transform: scale(1); }
  34% { transform: scale(0.91); }
  64% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes mega-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(0); }
}

@media (max-width: 1100px) {
  .scene-edge {
    top: 23%;
    width: clamp(250px, 39vw, 360px);
  }

  .scene-edge--left { left: -17vw; }
  .scene-edge--right { right: -17vw; }
  .hero__content { width: min(560px, 52vw); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 650px); }
  .nav { grid-template-columns: 1fr auto; padding-top: max(19px, env(safe-area-inset-top)); }
  .nav__stamp { display: none; }
  .sound__text { display: none; }

  .hero__content {
    top: 45%;
    width: calc(100% - 58px);
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 70px);
    letter-spacing: -0.07em;
  }

  .kicker { gap: 8px; }
  .kicker span { font-size: 9px; letter-spacing: 0.13em; }
  .kicker i { width: 17px; }
  .arara-line { margin: 13px 0 4px; font-size: 24px; }
  .intro { margin-block: 15px 23px; font-size: 16px; }
  .primary { min-width: 181px; padding: 14px 18px; }

  .scene-edge {
    top: 27%;
    width: min(68vw, 310px);
  }

  .scene-edge--left { left: -31vw; }
  .scene-edge--right { right: -31vw; }
  .side-note { display: none; }
  .scroll-mark small { display: none; }

  .story__beat {
    align-items: flex-end;
    padding: 18vh 24px max(16vh, 110px);
  }

  .story__beat--right,
  .story__beat--center { justify-content: flex-start; text-align: left; }

  .story__copy {
    width: min(88vw, 390px);
    padding-left: 18px;
    border-left: 1px solid rgba(234, 183, 90, 0.46);
  }

  .story__copy h2 { font-size: clamp(32px, 10vw, 48px); }
  .story__beat--right p { margin-left: 0; }
}

@media (max-width: 390px) {
  .hero__content { top: 43%; width: calc(100% - 34px); }
  .hero h1 { font-size: 44px; }
  .scene-edge { width: 72vw; }
  .scene-edge--left { left: -35vw; }
  .scene-edge--right { right: -35vw; }
  .intro { margin-top: 13px; }
  .story__beat { padding-inline: 18px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero__content { top: 53%; transform: translate(-50%, -50%) scale(0.84); }
  .arara-line { margin-top: 9px; }
  .intro { margin-block: 10px 14px; }
  .scroll-mark { bottom: 12px; }
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero__content { opacity: 1; transform: translate(-50%, -50%); }
  .story__copy { opacity: 1; transform: none; }
  .scene { transform: scale(1.05); }
}

@media (prefers-reduced-data: reduce) {
  .atmosphere { display: none; }
  .primary { backdrop-filter: none; }
}

.motion-lite .atmosphere {
  filter: blur(18px);
}

.motion-lite .primary { backdrop-filter: none; }
