/* ============================================================
   NORRSKEN — Nowill.co mockup 3 (faked-3D scroll journey)
   Light Scandinavian softness · aurora over snow · flight north
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --snow: #fafaf6;
  --snow-2: #f4f5ef;
  --ink: #17211d;
  --muted: #5c6a62;
  --stone: #f1f2ec;
  --hairline: #e3e6dc;
  --teal: #0fb5ba;
  --aurora-teal: #8adccb;
  --aurora-green: #b5e8c7;
  --aurora-violet: #cdbcf2;
  --pine: #122a23;

  --font-sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "SF Mono", Menlo, monospace;

  --r-pebble: 28px;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }
mark {
  background: linear-gradient(180deg, transparent 58%, rgba(15, 181, 186, 0.22) 58%);
  color: inherit;
  padding: 0 0.08em;
  border-radius: 3px;
}
::selection { background: rgba(15, 181, 186, 0.25); }

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow--center { justify-content: center; }
.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex: none;
}
.signal-dot--pulse { animation: pulse 4s var(--ease-soft) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 181, 186, 0.35); }
  50%      { box-shadow: 0 0 0 9px rgba(15, 181, 186, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft),
              background-color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--pine);
  color: var(--snow);
  box-shadow: 0 10px 30px -12px rgba(18, 42, 35, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(18, 42, 35, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--hairline);
  color: var(--ink);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--teal); }
.btn--small { padding: 11px 20px; font-size: 14px; }
.btn--large { padding: 20px 38px; font-size: 18px; }

.soft { color: var(--muted); font-weight: 400; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 14px clamp(18px, 4vw, 44px);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(250, 250, 246, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(227, 230, 220, 0.8);
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: auto; }
.brand__name { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease-soft);
}
.site-nav a:hover { color: var(--ink); }

/* ============================================================
   SKY — parallax aurora world (fixed background)
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f2f7f4 0%, var(--snow) 42%, #f6f4fa 100%);
}
.sky__layer { position: absolute; inset: 0; will-change: transform; }

.sky__bloom {
  position: absolute;
  top: -22vh; right: -18vw;
  width: 72vw; height: 72vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(138, 220, 203, 0.4) 32%,
    rgba(250, 250, 246, 0) 68%);
  animation: bloomBreathe 18s ease-in-out infinite;
}
@keyframes bloomBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.07); opacity: 1; }
}

.sky__ribbon {
  position: absolute;
  left: 50%;
  width: 150vw; height: 36vh;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-9deg);
}
.sky__ribbon--teal {
  top: 12vh;
  background: radial-gradient(52% 48% at 50% 50%, rgba(138, 220, 203, 0.68), rgba(138, 220, 203, 0) 72%);
  animation: ribbonSway 26s ease-in-out infinite;
}
.sky__ribbon--violet {
  top: 30vh;
  background: radial-gradient(52% 48% at 50% 50%, rgba(205, 188, 242, 0.6), rgba(205, 188, 242, 0) 72%);
  transform: translateX(-50%) rotate(7deg);
  animation: ribbonSway 34s ease-in-out infinite reverse;
}
.sky__ribbon--green {
  top: 20vh;
  background: radial-gradient(52% 48% at 50% 50%, rgba(181, 232, 199, 0.68), rgba(181, 232, 199, 0) 72%);
  transform: translateX(-50%) rotate(-5deg);
  animation: ribbonSway 30s ease-in-out infinite;
}
@keyframes ribbonSway {
  0%, 100% { margin-left: -3vw; }
  50%      { margin-left: 3vw; }
}

.sky__mist {
  position: absolute;
  width: 120vw; height: 46vh;
  left: -10vw;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
}
.sky__mist--a { top: 46vh; animation: mistDrift 40s ease-in-out infinite; }
.sky__mist--b { top: 70vh; animation: mistDrift 52s ease-in-out infinite reverse; }
@keyframes mistDrift {
  0%, 100% { margin-left: -4vw; }
  50%      { margin-left: 5vw; }
}

/* ============================================================
   VIGNETTE — white mist melting the frame edges
   ============================================================ */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(120% 105% at 50% 46%, rgba(250, 250, 246, 0) 58%, rgba(250, 250, 246, 0.85) 100%),
    linear-gradient(180deg, rgba(250, 250, 246, 0.5) 0%, rgba(250, 250, 246, 0) 14%);
}

/* ============================================================
   HUD — latitude readout + progress (journey mode only)
   ============================================================ */
.hud {
  position: fixed;
  left: clamp(18px, 4vw, 44px);
  bottom: 22px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 14px;
}
.is-journey .hud { display: flex; }
.hud__track {
  width: 110px; height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.hud__fill {
  width: 0%;
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
}
.hud__readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.hud__readout .signal-dot { width: 6px; height: 6px; }
.hud__sep { opacity: 0.5; }

/* ============================================================
   WORLD & BEATS
   -- Default: static stacked flow (no-JS / reduced-motion)
   -- .is-journey: fixed stage, JS-driven faked-3D transforms
   ============================================================ */
.world { position: relative; z-index: 10; }

.beat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(70px, 12vh, 130px) clamp(20px, 5vw, 48px);
  min-height: 60vh;
}
.beat__inner { width: 100%; max-width: 760px; }

/* Journey mode: beats become floating stations on a fixed stage */
.is-journey .world {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
}
.is-journey .beat {
  position: absolute;
  top: 50%; left: 50%;
  width: min(92vw, 800px);
  min-height: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.is-journey .beat--hero,
.is-journey .beat--contact { width: min(94vw, 860px); }
.is-journey .beat--station { width: min(88vw, 520px); }

.scroll-spacer { height: 0; }

/* Idle float on the inner content (journey mode) */
.is-journey .beat__inner { animation: idleFloat 7s ease-in-out infinite; }
.is-journey .beat:nth-child(odd) .beat__inner { animation-duration: 8.5s; animation-delay: -3s; }
@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Build-on-approach children (JS drives opacity/transform in journey mode) */
.is-journey .bld { opacity: 0; transform: translateY(26px); }

/* ============================================================
   B0 · HERO
   ============================================================ */
.beat--hero { text-align: center; min-height: 100vh; }
.beat--hero .beat__inner { max-width: 860px; }
.beat--hero .eyebrow { justify-content: center; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.hero__lede {
  font-size: clamp(16.5px, 1.55vw, 19.5px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 40px;
}
.fact-strip li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
}
.hero__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__hint-arrow { display: inline-block; animation: hintNudge 2.4s var(--ease-soft) infinite; }
@keyframes hintNudge {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ============================================================
   B1 · POSITIONING
   ============================================================ */
.statement__text {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.statement__aside {
  font-size: 16px;
  color: var(--muted);
  max-width: 460px;
}

/* ============================================================
   B2 · SERVICES GATEWAY
   ============================================================ */
.beat--gateway { text-align: center; }
.beat--gateway .eyebrow { justify-content: center; }
.gateway__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 14px;
}
.gateway__soft {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--muted);
}

/* ============================================================
   B3–B12 · SERVICE STATION CARDS
   ============================================================ */
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pebble);
  padding: 34px 34px 36px;
  box-shadow: 0 24px 60px -30px rgba(23, 33, 29, 0.22);
}
.card__way {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.card__icon {
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(138, 220, 203, 0.28), rgba(205, 188, 242, 0.24));
  color: var(--ink);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card__title-note {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.card__text { font-size: 15.5px; color: var(--muted); }

/* ============================================================
   B13 · WHY NOWILL + CLOCK
   ============================================================ */
.beat--why .beat__inner { max-width: 700px; }
.why__title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.why__lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
.clock-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: 0 24px 60px -30px rgba(23, 33, 29, 0.2);
}
.clock-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.clock-card__time {
  font-family: var(--font-mono);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
}
.clock-card__tz {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.clock-card__note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   B14 · TRUST STONES
   ============================================================ */
.beat--stones .beat__inner { max-width: 820px; }
.stones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stone {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 20px 50px -28px rgba(23, 33, 29, 0.18);
}
.stone__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stone__title::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}
.stone__text { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   B15 · PROCESS
   ============================================================ */
.beat--process .beat__inner { max-width: 820px; }
.process__title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 30px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: 0 20px 50px -28px rgba(23, 33, 29, 0.18);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}
.step__title { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.step__text { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   B16 · CONTACT + FOOTER
   ============================================================ */
.beat--contact { text-align: center; }
.contact__pebble {
  position: relative;
  background:
    radial-gradient(90% 130% at 18% 0%, rgba(138, 220, 203, 0.3), transparent 55%),
    radial-gradient(80% 120% at 85% 10%, rgba(205, 188, 242, 0.28), transparent 55%),
    radial-gradient(90% 140% at 50% 110%, rgba(181, 232, 199, 0.3), transparent 60%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid var(--hairline);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 64px);
  box-shadow: 0 34px 80px -36px rgba(23, 33, 29, 0.28);
  margin-bottom: 26px;
}
.contact__pebble .eyebrow { justify-content: center; }
.contact__title {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 16px;
}
.contact__lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 30px;
}
.contact__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 18px;
}

.site-footer {
  position: relative;
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 24px 30px 30px;
  overflow: hidden;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.site-footer__row--meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
}
.site-footer__brand img { width: 24px; }
.site-footer__slogan { font-size: 13.5px; color: var(--muted); font-style: italic; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__links a { color: var(--muted); font-size: 13px; transition: color 0.25s; }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__ghost {
  position: absolute;
  bottom: -0.52em;
  right: 8px;
  font-size: 120px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(23, 33, 29, 0.045);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   RESPONSIVE ≤720px
   ============================================================ */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header { padding: 10px 14px; }
  .site-header__inner { padding: 8px 8px 8px 16px; }

  .is-journey .beat { width: 92vw; }
  .is-journey .beat--station { width: 88vw; }

  .hero__title { font-size: clamp(34px, 9.6vw, 44px); }
  .hero__lede { font-size: 16px; }
  .hero__actions { gap: 10px; }
  .btn { padding: 15px 24px; font-size: 15px; }
  .fact-strip { gap: 8px; margin-bottom: 30px; }
  .fact-strip li { font-size: 10.5px; padding: 7px 12px; }

  .statement__text { font-size: 24px; }

  .card { padding: 26px 24px 28px; }
  .card__title { font-size: 20px; }
  .card__text { font-size: 14.5px; }

  .clock-card__time { font-size: 26px; }

  .stones, .steps { grid-template-columns: 1fr; gap: 12px; }
  .stone, .step { padding: 18px 20px; }
  .stone__text, .step__text { font-size: 13.5px; }

  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer__ghost { font-size: 72px; }

  .hud__track { width: 60px; }
  .hud__readout { font-size: 10px; }

  .sky__bloom { width: 130vw; height: 130vw; top: -30vh; right: -40vw; }
}

/* Trust stones / steps: on short mobile screens in journey mode,
   compact further so the beat fits the stage */
@media (max-width: 720px) and (max-height: 900px) {
  .is-journey .stones, .is-journey .steps { gap: 10px; }
  .is-journey .stone, .is-journey .step { padding: 14px 18px; box-shadow: none; }
  .is-journey .stone__text, .is-journey .step__text { font-size: 12.5px; line-height: 1.45; }
  .is-journey .stone__title { font-size: 16px; }
  .is-journey .step__title { font-size: 17px; }
  .is-journey .why__lede { font-size: 15px; }
  .is-journey .contact__pebble { padding: 32px 22px; }
}

/* ============================================================
   REDUCED MOTION — static, calm, everything visible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .bld { opacity: 1 !important; transform: none !important; }
}
