/* Polaris — scroll-styrd filmhero: norrsken → Hallands kust → upplyst fönster.
   Filmen följer scrollen (se hero.js). Texten står i mitten och filmen dämpas medan den läses. */

/* sidhuvudet ligger över filmen och blir fast natt när filmen är slut */
.mast.fix { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom-color: transparent;
  background: linear-gradient(rgba(7,9,12,.7), rgba(7,9,12,0)); transition: background .3s, border-color .3s; }
.mast.fix.solid { background: rgba(7,9,12,.94); border-bottom-color: var(--rule-d); }
.mast .brand { transition: opacity .35s; }
.mast.intro .brand { opacity: 0; pointer-events: none; }

.fh { position: relative; height: 900vh; background: var(--night); color: var(--bone); }
.fh-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.fh-stage video, .fh-stage .fh-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fh-stage video { opacity: 0; transition: opacity .4s; }
.fh-stage video.redo { opacity: 1; }
.fh-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(7,9,12,.45), rgba(7,9,12,0) 18%, rgba(7,9,12,0) 75%, rgba(7,9,12,.5)); }
.fh-dim { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(7,9,12,.62), rgba(7,9,12,.28) 70%, rgba(7,9,12,.2)); }

.fh-st { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(16px); pointer-events: none; }
.fh-st h1, .fh-st h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 1.6rem + 4vw, 6.2rem);
  line-height: 1.02; margin: 0 0 .4em; color: #fff; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(7,9,12,.55); }
.fh-st p { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); color: var(--bone); margin: 0 auto; max-width: 34rem; text-shadow: 0 1px 16px rgba(7,9,12,.7); }
.fh-st h1.fh-slogan { font-size: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); font-weight: 500; max-width: 22ch; margin-bottom: .6em; }
.fh-mark { display: grid; justify-items: center; gap: 18px; margin-bottom: 4vh; }
.fh-mark img { width: clamp(84px, 9vw, 140px); height: auto; filter: drop-shadow(0 6px 24px rgba(201,168,76,.25)); }
.fh-mark .wordmark { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 5.2rem); letter-spacing: .28em; margin-right: -.28em; }
.fh-st.sist { place-content: end start; justify-items: start; text-align: left; padding: 0 0 12vh calc(var(--gutter) + 2vw); }
.fh-st.sist h2 { max-width: 12ch; }
.fh-st.sist p { margin: 0; max-width: 26rem; }
.fh-go { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 1.6rem; }
.fh-go a { text-decoration: none; font-weight: 600; }
.fh-go .main { background: var(--gold); color: var(--night); padding: 15px 24px; }
.fh-go .main:hover { background: var(--gold-2); }
.fh-go .alt { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.fh-hint { position: absolute; right: var(--gutter); bottom: 5vh; z-index: 2; font-size: .8rem; color: var(--bone-2); letter-spacing: .08em; }

@media (max-width: 760px) {
  .fh-st.sist { place-content: end center; justify-items: center; text-align: center; padding: 0 var(--gutter) 8vh; }
  .fh-go { justify-content: center; }
}
/* utan rörelse: stillbild och bara sista steget med knapparna */
@media (prefers-reduced-motion: reduce) {
  .fh { height: auto; } .fh-stage { position: relative; height: 100svh; } .fh-stage video { display: none; }
  .fh-st { display: none; } .fh-st.sist { display: grid; opacity: 1; transform: none; pointer-events: auto; }
}

