* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; color: #f7f8f6; background: #0b1718; font-family: system-ui, sans-serif }
a { color: inherit; text-decoration: none }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid white; outline-offset: 5px }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }

.hero { position: relative; isolation: isolate; min-height: max(100svh, 48vw); padding-bottom: 7rem; background: #122026 url("assets/senja.webp") left top / cover no-repeat }
.scene-film, .spark-loop, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.scene-film, .spark-loop { z-index: -2; object-fit: cover; object-position: left top }
.hero::before { content: ""; z-index: -1; transition: opacity 2.2s ease-in-out; background: linear-gradient(90deg, #061518ad, #0b1e2494 21%, #0b182119 46%, transparent 77%); mask-image: linear-gradient(180deg, #0006, #000 23%) }
.hero[data-phase="intro"] { background: #050e13 }
.hero[data-phase="intro"]::before { opacity: 0; transition: none }
/* The front edge of the terrace sits at 70% of the 1600 × 900 still.
   Cover scales the photograph by whichever viewport dimension fills first. */
.copy { position: absolute; top: max(39.375vw, 70svh); left: 4.88vw; transform: translateY(-100%); width: 27vw }
.eyebrow, .benefits { list-style: none; padding: 0; margin: 0; display: flex; align-items: center }
.eyebrow { text-transform: uppercase; letter-spacing: .19em; font-size: .9vw; font-weight: 500 }
.eyebrow li + li::before { content: "•"; margin: 0 1.08vw; color: #bbd2d9 }
h1 { font-size: 3.49vw; line-height: 1.03; font-weight: 500; letter-spacing: -.006em; margin: 1.95vw 0 .6vw }
.description { font-size: 1.17vw; line-height: 1.38; font-weight: 350; margin: 0; max-width: 26.2vw; color: #f0f2f1 }
.benefits { align-items: flex-start; margin: 2.86vw 0 0 -.38vw; width: 27vw; font-size: .89vw; line-height: 1.5; font-weight: 350; text-align: center }
.benefits li { flex: 1 }
.benefits svg { display: block; width: 1.5vw; height: 1.5vw; margin: 0 auto .48vw }

.scroll { position: absolute; bottom: 4.5%; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; padding: .25rem .65rem; font-size: clamp(1.05rem, 1.24vw, 1.4rem); font-weight: 350; color: #edf1ef; text-shadow: 0 1px 5px #08191b }
.scroll svg { width: clamp(1.4rem, 1.9vw, 2rem) }
.scroll:hover span { text-decoration: underline; text-underline-offset: .25em }
.hero[data-phase="intro"] .scroll { visibility: hidden }

.hero-steps { position: fixed; z-index: 1; right: 2.8vw; top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 15px; pointer-events: none }
.hero-steps span { width: 14px; height: 2px; border-radius: 1px; background: #fffc; box-shadow: 0 1px 3px #0c182a99; transition: width .35s ease, background-color .35s ease }
.hero-steps .current { width: 30px; background: white }
.skip, .replay { position: absolute; z-index: 4; bottom: 4%; left: 4.88vw; padding: .6em 0; border: 0; background: transparent; color: #f4f5f3; font: inherit; font-size: clamp(.84rem, .93vw, 1.04rem); font-weight: 350; letter-spacing: .025em; text-shadow: 0 1px 4px #101918; cursor: pointer; animation: enter .45s ease-out both }
.skip:hover, .replay:hover { color: white; text-shadow: 0 0 .6em #fff6 }
#mapa { padding: 2rem 5vw; background: #14231f }
#mapa a { text-decoration: underline; text-underline-offset: .3em }

@keyframes enter { from { opacity: 0; transform: translateY(.5rem) } to { opacity: 1; transform: none } }
.site-header.in-intro { visibility: hidden }
@media (scripting: enabled) {
  body:has(.hero:not([data-phase])) .site-header { visibility: hidden }
}
.hero[data-phase="intro"]:not(.intro-copy) .copy,
.hero[data-phase="intro"] .benefits { visibility: hidden }
.hero.intro-copy:is([data-phase="intro"], [data-phase="reveal"]) :is(.eyebrow li, h1, .description),
.hero[data-phase="reveal"] .benefits li { animation: enter .32s ease-out var(--delay, 0s) both }
.eyebrow li:nth-child(2) { --delay: .09s }
.eyebrow li:nth-child(3) { --delay: .18s }
h1 { --delay: .27s }
.description { --delay: .43s }
.benefits li:nth-child(1) { --delay: .08s }
.benefits li:nth-child(2) { --delay: .32s }
.benefits li:nth-child(3) { --delay: .56s }
.benefits li:nth-child(4) { --delay: .8s }

@media (max-width: 760px), (max-width: 1024px) and (pointer: coarse) {
  .scroll { display: none }
  .hero-steps { right: .75rem }
  .hero-steps .current { width: 19px }
  .hero { padding-top: calc(6rem + 9vh) }
  .copy { position: relative; left: auto; top: auto; transform: none; margin: 2.5rem 1.4rem 0; width: min(85vw, 30rem) }
  .eyebrow, .benefits { font-size: .7rem }
  h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin: 1.2rem 0 .7rem }
  .description { font-size: 1rem; max-width: 25em }
  .benefits { width: 100%; margin: 2rem 0 }
  .benefits svg { width: 1.35rem; height: auto }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-steps span, .brand image { transition: none }
  .skip, .replay, .hero[data-phase] :is(.eyebrow li, h1, .description, .benefits li) { animation: none }
}
