/* ============================================================
   Prudo Vanduo — light Nordic: birch white, spruce ink, lake teal, moss.
   ============================================================ */
:root {
  --birch: #f3f1ea;
  --birch-2: #e8e4d8;
  --ink: #0f1f1b;
  --ink-soft: rgba(15, 31, 27, .66);
  --lake: #0c2a31;
  --mist: #d5e6e1;
  --mist-dim: rgba(243, 241, 234, .78);
  --moss: #4f6b3a;
  --clay: #b8875a;
  --line: rgba(15, 31, 27, .12);
  --line-light: rgba(243, 241, 234, .22);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--birch); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-weight: 420;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; font-weight: 450; }
.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--birch); text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.eyebrow.light { color: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--birch); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--birch); }
.link-arrow span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-light); transition: transform .5s var(--ease), background .3s; }
.link-arrow:hover span { transform: translateY(3px); background: rgba(243, 241, 234, .12); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter); color: var(--birch); transition: background .45s var(--ease), color .45s, padding .45s var(--ease), box-shadow .45s;
}
.nav.is-light { padding-top: 14px; padding-bottom: 14px; background: rgba(243, 241, 234, .92); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav.is-light .btn { background: var(--ink); color: var(--birch); }
.nav.is-dark { padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.logo b { font-weight: 750; }
.logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a, .nav-phone { position: relative; font-size: 14px; font-weight: 550; text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 22px; }
.admin-bar .nav { top: 32px; }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--birch); background: var(--lake); }
.hero-media { position: absolute; inset: 0; will-change: clip-path, transform; }
.hero-poster, .hero-video, .hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; }
.hero-gl { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.gl-on .hero-gl { opacity: 1; }
.hero.video-on:not(.gl-on) .hero-video { opacity: 1; transition: opacity 1s; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 24, .45) 0%, rgba(8, 22, 24, 0) 26%),
              linear-gradient(90deg, rgba(8, 22, 24, .62) 0%, rgba(8, 22, 24, .18) 48%, rgba(8, 22, 24, 0) 70%),
              linear-gradient(0deg, rgba(8, 22, 24, .55) 0%, rgba(8, 22, 24, 0) 40%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(96px, 14vh, 150px); z-index: 2; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-title { font-weight: 560; font-size: clamp(2.7rem, 7.2vw, 7.4rem); line-height: .94; letter-spacing: -.045em; }
.hero-title em { font-weight: 430; color: var(--mist); }
.hero-kicker { display: block; margin-bottom: 26px; font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.hero-sub { max-width: 500px; margin-top: 30px; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55; color: var(--mist-dim); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero-facts {
  position: absolute; right: var(--gutter); bottom: clamp(96px, 14vh, 150px); z-index: 2; margin: 0;
  display: grid; gap: 0; min-width: 220px; border-top: 1px solid var(--line-light);
}
.hero-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.hero-facts dt { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; }
.hero-facts dd { margin: 0; font-size: 13px; color: var(--mist-dim); text-align: right; }
.hero-hint { position: absolute; left: 50%; bottom: 34px; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim); }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 0 rgba(213, 230, 225, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(213, 230, 225, 0); } 100% { box-shadow: 0 0 0 0 rgba(213, 230, 225, 0); } }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; width: 1px; height: 52px; background: var(--line-light); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--birch); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Load-in (main.js adds .is-ready) */
.js .hero-title .line > span { transform: translateY(105%); }
.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js .hero-kicker { opacity: 0; }
.is-ready .hero-title .line > span { transform: none; transition: transform 1.3s var(--ease); }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .08s; }
.is-ready .hero-title .line:nth-child(4) > span { transition-delay: .16s; }
.is-ready .hero-kicker { opacity: 1; transition: opacity 1s .2s; }
.is-ready [data-rise] { opacity: 1; transform: none; transition: opacity 1s var(--ease) .45s, transform 1.2s var(--ease) .45s; }
.is-ready .hero-facts [data-rise] { transition-delay: .6s; }
.is-ready .hero-facts [data-rise]:nth-child(2) { transition-delay: .7s; }
.is-ready .hero-facts [data-rise]:nth-child(3) { transition-delay: .8s; }

/* ============================================================
   2 · STORY (pinned, scroll-scrubbed frames)
   ============================================================ */
.story { position: relative; height: 460vh; background: var(--lake); color: var(--birch); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-canvas, .story-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-fallback { display: none; }
.no-story .story-fallback { display: block; }
.no-story .story-canvas { display: none; }
.story-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 22, 24, .8) 0%, rgba(8, 22, 24, .4) 36%, rgba(8, 22, 24, 0) 58%),
              linear-gradient(270deg, rgba(8, 22, 24, .55) 0%, rgba(8, 22, 24, 0) 22%),
              linear-gradient(180deg, rgba(8, 22, 24, .4) 0%, rgba(8, 22, 24, 0) 22%);
}
/* The hero "dives" into lake colour; the story surfaces out of it. */
.story::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 70vh; pointer-events: none;
  background: linear-gradient(180deg, var(--lake) 0%, rgba(12, 42, 49, .6) 35%, rgba(12, 42, 49, 0) 100%);
}
.gauge-label, .gauge-zone { text-shadow: 0 1px 10px rgba(8, 22, 24, .6); }
.story-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.story-eyebrow { position: absolute; top: 108px; }
.story-steps { position: relative; width: min(470px, 100%); height: 300px; }
.story-step { position: absolute; inset: 0; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.story-step.is-active { opacity: 1; transform: none; }
.story-step.is-past { transform: translateY(-26px); }
.story-no { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.story-title { margin-top: 22px; font-size: clamp(2.2rem, 4.6vw, 4.4rem); font-weight: 560; line-height: .98; letter-spacing: -.04em; }
.story-text { margin-top: 20px; max-width: 420px; font-size: 1.05rem; line-height: 1.6; color: var(--mist-dim); }

.gauge { position: absolute; right: var(--gutter); top: 50%; z-index: 2; transform: translateY(-50%); display: grid; justify-items: end; gap: 6px; }
.gauge-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-dim); }
.gauge-value { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(8, 22, 24, .45); }
.gauge-track { position: relative; width: 2px; height: min(46vh, 380px); margin-top: 12px; margin-right: 6px; background: var(--line-light); }
.gauge-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--mist); transform-origin: top; transform: scaleY(0); }
.gauge-zone {
  position: absolute; right: 18px; top: calc(var(--from) * 100%); height: calc((var(--to) - var(--from)) * 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding-right: 14px; border-right: 1px solid var(--mist);
  font-size: 12px; white-space: nowrap; color: var(--mist-dim); opacity: .35; transition: opacity .5s;
}
.gauge-zone b { font-weight: 600; color: var(--birch); }
.gauge-zone.is-hit { opacity: 1; }
.story-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(243, 241, 234, .12); }
.story-bar span { display: block; height: 100%; background: var(--mist); transform-origin: left; transform: scaleX(0); }

/* ============================================================
   3 · SERVICES
   ============================================================ */
.services { position: relative; padding: clamp(96px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--birch); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-title { font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 560; line-height: .98; letter-spacing: -.045em; grid-column: 1 / 2; grid-row: 2; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.sec-title em { color: var(--moss); }
.sec-lead { grid-column: 2; grid-row: 2; max-width: 380px; justify-self: end; font-size: 1.05rem; color: var(--ink-soft); }

.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.svc-media { position: sticky; top: 100px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--birch-2); }
.svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1s var(--ease-io), transform 1.6s var(--ease); }
.svc-img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.svc-counter { position: absolute; left: 18px; bottom: 16px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(15, 31, 27, .55); color: var(--birch); font-size: 12px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 48px; align-items: center; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.svc-row::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.svc-row.is-on::before { transform: scaleX(1); }
.svc-thumb { display: none; }
.svc-no { font-size: 13px; font-weight: 600; color: rgba(15, 31, 27, .38); font-variant-numeric: tabular-nums; }
.svc-name { font-size: clamp(1.35rem, 2.1vw, 1.9rem); font-weight: 560; line-height: 1.12; letter-spacing: -.03em; transition: transform .6s var(--ease), color .3s; }
.svc-name small { display: block; margin-top: 6px; font-size: 14px; font-weight: 450; letter-spacing: 0; color: var(--ink-soft); }
.svc-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.svc-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-size: 18px; transition: background .3s, color .3s, transform .5s var(--ease); }
.svc-row.is-on .svc-name { transform: translateX(10px); color: var(--moss); }
.svc-row.is-on .svc-go, .svc-go:hover { background: var(--ink); color: var(--birch); border-color: var(--ink); }
.svc-note { margin-top: 26px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer / contact strip ---------- */
.foot { background: var(--ink); color: var(--birch); padding: clamp(72px, 9vw, 120px) 0 28px; }
.foot .eyebrow { color: var(--mist); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.foot-title { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 560; line-height: 1; letter-spacing: -.04em; }
.foot-sub { margin-top: 18px; color: var(--mist-dim); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 12.5px; color: var(--mist-dim); }

.page-main { padding: 140px 0 80px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 14px 16px; }
  .nav-links, .nav-phone { display: none; }
  .hero { min-height: 560px; }
  .hero-content { bottom: 150px; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 4rem); }
  .hero-kicker { margin-bottom: 18px; font-size: 11px; }
  .hero-sub { margin-top: 20px; font-size: .98rem; }
  .hero-actions { margin-top: 24px; gap: 8px 18px; }
  .hero-facts { left: 16px; right: 16px; bottom: 24px; display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; border-top: 1px solid var(--line-light); }
  .hero-facts div { display: block; padding: 12px 0 0; border: 0; }
  .hero-facts dt { font-size: 1.25rem; }
  .hero-facts dd { font-size: 11.5px; text-align: left; line-height: 1.3; margin-top: 2px; }
  .hero-hint, .scroll-cue { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 22, 24, .82) 0%, rgba(8, 22, 24, .35) 55%, rgba(8, 22, 24, .4) 100%); }

  .story { height: 400vh; }
  .story-shade { background: linear-gradient(0deg, rgba(8, 22, 24, .85) 0%, rgba(8, 22, 24, .2) 55%, rgba(8, 22, 24, .35) 100%); }
  .story-ui { justify-content: flex-end; padding-bottom: 56px; }
  .story-eyebrow { top: 82px; right: 0; font-size: 11px; }
  .story-steps { height: 230px; }
  .story-title { font-size: 2.2rem; margin-top: 16px; }
  .story-text { font-size: .98rem; margin-top: 12px; }
  .gauge { top: 128px; transform: none; }
  .gauge-value { font-size: 1.8rem; }
  .gauge-track { height: 22vh; }
  .gauge-zone { font-size: 10.5px; }

  .sec-head { grid-template-columns: 1fr; }
  .sec-title, .sec-lead { grid-column: 1; grid-row: auto; justify-self: start; }
  .svc-grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .svc-media { display: none; }
  .svc-row { grid-template-columns: 76px minmax(0, 1fr) 44px; gap: 4px 16px; padding: 18px 0; }
  .svc-row::before { display: none; }
  .svc-thumb { display: block; grid-row: span 2; width: 76px; height: 76px; border-radius: 6px; object-fit: cover; }
  .svc-no { display: none; }
  .svc-name { font-size: 1.2rem; }
  .svc-name small { font-size: 13px; }
  .svc-price { grid-column: 2; font-size: 14px; color: var(--moss); }
  .svc-go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .svc-row.is-on .svc-name { transform: none; color: inherit; }
  .svc-row.is-on .svc-go { background: none; color: inherit; border-color: var(--line); }
  .foot-inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .hero-title .line > span, .js [data-rise], .js .hero-kicker { transform: none; opacity: 1; }
  .story { height: auto; }
  .story-pin { position: relative; height: auto; min-height: 100vh; }
  .story-canvas { display: none; }
  .story-fallback { display: block; }
  .story-steps { height: auto; display: grid; gap: 40px; padding: 140px 0 80px; }
  .story-step { position: relative; opacity: 1; transform: none; }
  .gauge, .story-bar { display: none; }
}
