/* saunatic.app, the start page "En kväll i bastun" in the Savu profile (owner 2026-11-20). The smoke sauna:
   soot-black walls and one light, the fire. A giant Finnish word per scene stands at the bottom of the picture,
   shown whole with its dots and descenders (owner: nothing cut off). Ember is the only colour; everything else
   is ash on soot: small caps, square corners, hairlines. The film is filmed fire only, no drawn glow.
   The other pages use savu.css; the scroll engine is engine.js and this page's own script start.js. */
:root {
  --soot: #0B0A09; --coal: #191613; --smoke: #7C766F; --ash: #ECE7E0; --ash-2: #B9B2A9; --ember: #FF5B1F; --ember-hi: #FF8A4C;
  --hair: rgba(236, 231, 224, .22);
  --giant: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --cap: "Sofia Sans Semi Condensed", "Arial Narrow", sans-serif;
  --text: "Sofia Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .09;
  --fs: clamp(7.5rem, 20vw, 28rem); /* the giant word */
  --gl: 60px; /* the line under the word, where its meaning stands */
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--soot); }
body { margin: 0; background: var(--soot); color: var(--ash); font: 400 1.0625rem/1.55 var(--text); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sprite { position: absolute; }
.skip { position: absolute; left: -999px; top: 0; z-index: 40; padding: 12px 16px; background: var(--ash); color: var(--soot); }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caps { font-family: var(--cap); font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- the stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--soot); }
.layer { position: absolute; inset: 0; opacity: 0; background: center / cover no-repeat; filter: contrast(1.14) saturate(.62) brightness(.8); }
#L0 { opacity: 1; } /* the first scene's still shows at once; engine.js then sets every layer. Without script it stays behind the whole story (noscript.css) */
.layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.layer video.ready { opacity: 1; } .layer video.act.ready { opacity: 0; } .layer video.act.on { opacity: 1; }
#L0 { background-image: url("/savu/img/s1-l.webp"); } #L1 { background-image: url("/savu/img/s2-l.webp"); } #L2 { background-image: url("/savu/img/s3-l.webp"); }
#L3 { background-image: url("/savu/img/s4-l.webp"); } #L4 { background-image: url("/savu/img/s5-l.webp"); } #L5 { background-image: url("/savu/img/s6-l.webp"); } #L6 { background-image: url("/savu/img/s7-l.webp"); }
@media (max-aspect-ratio: 9/10) {
  #L0 { background-image: url("/savu/img/s1-p.webp"); } #L1 { background-image: url("/savu/img/s2-p.webp"); } #L2 { background-image: url("/savu/img/s3-p.webp"); }
  #L3 { background-image: url("/savu/img/s4-p.webp"); } #L4 { background-image: url("/savu/img/s5-p.webp"); } #L5 { background-image: url("/savu/img/s6-p.webp"); } #L6 { background-image: url("/savu/img/s7-p.webp"); }
}
.fx { position: absolute; pointer-events: none; mix-blend-mode: screen; opacity: 0; }
#sloja { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 20; filter: grayscale(1) brightness(.8); }
#anga { z-index: 19; height: 110vh; width: 195.5vh; object-fit: cover; left: calc(var(--ax, 50vw) - 88vh); top: calc(var(--ay, 60vh) - 86vh); transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(ellipse 46% 50% at 45% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 46% 50% at 45% 50%, #000 30%, transparent 100%); }
/* the soot: a heavy vignette and grain, so the picture seems to sit in a sooted cabin */
#soot { position: absolute; inset: 0; z-index: 21; pointer-events: none;
  background: radial-gradient(120% 95% at 55% 45%, rgba(11, 10, 9, 0) 40%, rgba(11, 10, 9, .82) 100%), linear-gradient(rgba(11, 10, 9, .55), rgba(11, 10, 9, 0) 28%, rgba(11, 10, 9, 0) 55%, rgba(11, 10, 9, .9)), linear-gradient(90deg, rgba(11, 10, 9, .72), rgba(11, 10, 9, 0) 52%); }
#grain { position: absolute; inset: -50%; z-index: 22; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("/savu/grain.svg");
  animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
body.calm #grain { animation: none; }

/* ---------- the giant word ---------- */
#ord { position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(var(--gl) + env(safe-area-inset-bottom, 0px)); height: 1.085em; overflow: hidden; pointer-events: none;
  font: 900 var(--fs)/1 var(--giant); letter-spacing: -.01em; color: var(--ash); transition: opacity .6s ease, filter 2.4s var(--ease); }
#ord .w { position: absolute; left: max(14px, .045em); top: .1em; white-space: nowrap; display: flex; }
#ord .w span { display: block; transform: translateY(114%); transition: transform 1s var(--ease); }
#ord .w.in span { transform: translateY(0); }
#ord .w.out span { transform: translateY(-116%); transition-duration: .7s; }
#ord.mist { filter: blur(18px); transition: filter .25s ease; }
#ord.gone { opacity: 0; }
/* the meaning stands under the word, flush left with it, and follows when the word drifts */
#gloss { position: fixed; z-index: 4; left: max(18px, calc(var(--fs) * .062)); bottom: env(safe-area-inset-bottom, 0px); height: var(--gl); margin: 0; display: flex; align-items: flex-start; padding-top: 4px;
  font-size: clamp(1rem, 1.55vw, 1.45rem); letter-spacing: .18em; color: var(--ash); white-space: nowrap; transition: opacity .6s ease; }
#gloss b { color: var(--ember); font-weight: 700; margin-right: .9em; }
@media (max-width: 760px) { :root { --fs: 34vw; --gl: 40px; } }

/* ---------- the header ---------- */
.bar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(24px, env(safe-area-inset-right, 0px)) 30px max(24px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(11, 10, 9, .92) 35%, rgba(11, 10, 9, 0)); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 800 1.6rem/1 var(--giant); letter-spacing: .06em; }
.brand svg { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a, .tog { text-decoration: none; color: var(--ash); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.nav a:hover, .tog:hover { color: var(--ember-hi); }
.tog i { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: 1px solid var(--ash); vertical-align: 1px; }
.tog[aria-pressed="true"] i { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 10px var(--ember); }
.langs ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.langs a { display: inline-block; padding: 10px 0; text-decoration: none; color: var(--ash-2); }
.langs a:hover { color: var(--ember-hi); }
.langs a[aria-current="page"] { color: var(--ash); }
@media (max-width: 760px) { .bar .langs { display: none; } .nav { gap: 0; } .nav a { font-size: .68rem; letter-spacing: .1em; } .nav a:not(:first-child) { display: none; } .bar { gap: 12px; padding-top: calc(env(safe-area-inset-top, 0px) + 12px); } .brand { font-size: 1.35rem; } .brand svg { height: 28px; } }

/* ---------- the thermometer ---------- */
.thermo { position: fixed; z-index: 4; right: max(24px, env(safe-area-inset-right, 0px)); top: 14vh; height: 34vh; width: 14px; pointer-events: none; }
.thermo::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(to bottom, var(--hair) 0 1px, transparent 1px 10%); border-bottom: 1px solid var(--hair); }
.thermo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: calc(var(--t) * 100%); background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.thermo b { position: absolute; right: 26px; bottom: calc(var(--t) * 100%); transform: translateY(50%); font: 900 4.4rem/.8 var(--giant); font-variant-numeric: tabular-nums; color: var(--ash); white-space: nowrap; }
.thermo b.hot { color: var(--ember); }
.thermo small { position: absolute; right: 26px; top: -26px; color: var(--ash-2); white-space: nowrap; }
body:not(.calm) .thermo::after, body:not(.calm) .thermo b { transition: height .35s ease-out, bottom .35s ease-out; }
@media (max-width: 760px) { .thermo { top: 15vh; height: 30vh; right: 14px; } .thermo b { font-size: 2.3rem; right: 20px; } }

/* ---------- the story: every block scrolls past, fading in above the giant word and out under the header ---------- */
main { position: relative; z-index: 5; }
.scene { position: relative; padding: 30vh max(24px, env(safe-area-inset-right, 0px)) 14vh max(24px, env(safe-area-inset-left, 0px)); }
.scene.first { padding-top: 17vh; padding-bottom: 22vh; }
.blk { width: min(36rem, 100% - 180px); display: grid; gap: 14px; justify-items: start; }
.blk + .blk { margin-top: 26vh; }
.num { color: var(--ember); }
.blk h1 { margin: 0; font: 800 clamp(2.6rem, 5vw, 4.6rem)/.92 var(--giant); letter-spacing: .005em; text-transform: uppercase; }
.blk h2 { margin: 0; font: 600 clamp(2.1rem, 3.5vw, 3.3rem)/1.06 var(--text); letter-spacing: -.015em; text-wrap: balance; }
.blk p { margin: 0; max-width: 27ch; color: var(--ash); font: 500 clamp(1.4rem, 2vw, 1.75rem)/1.28 var(--text); letter-spacing: -.005em; text-wrap: balance; }
.blk p.lead { max-width: 44ch; font-size: 1.2rem; line-height: 1.45; font-weight: 400; text-wrap: pretty; }
.blk p.said { min-height: 1.5em; color: var(--ember-hi); font: 400 .95rem/1.5 var(--text); }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.act { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 1px solid var(--ash); background: rgba(11, 10, 9, .35); color: var(--ash); cursor: pointer; text-decoration: none;
  font: 700 .875rem/1 var(--cap); letter-spacing: .16em; text-transform: uppercase; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.act:hover { background: var(--ash); color: var(--soot); }
.act.fire { background: var(--ember); border-color: var(--ember); color: var(--soot); }
.act.fire:hover { background: var(--ember-hi); border-color: var(--ember-hi); }
.act svg { width: 14px; height: 14px; fill: currentColor; }
.cue { display: inline-flex; align-items: center; gap: 10px; color: var(--ash-2); }
.cue::after { content: "↓"; font-size: 1.1rem; color: var(--ember); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
body.calm .cue::after { animation: none; }
@media (max-width: 760px) { .blk { width: calc(100% - 112px); } .scene.first .blk { width: calc(100% - 78px); } }

/* ---------- the end: find a sauna ---------- */
.find { position: relative; z-index: 5; min-height: 100vh; padding: 22vh max(24px, env(safe-area-inset-right, 0px)) 12vh max(24px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(11, 10, 9, 0), rgba(11, 10, 9, .86) 22vh, var(--soot) 60vh); }
.find h2 { margin: 0; font: 900 clamp(4.4rem, 13.5vw, 15rem)/.9 var(--giant); text-transform: uppercase; letter-spacing: -.005em; max-width: 9ch; }
.find h2 em { font-style: normal; color: var(--ember); }
.q { display: flex; align-items: end; gap: 18px; margin-top: 7vh; max-width: 980px; border-bottom: 2px solid var(--ash); }
.q input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--ash); font: 800 clamp(2.4rem, 5vw, 4.4rem)/1 var(--giant); text-transform: uppercase; outline: none; }
.q input::placeholder { color: var(--smoke); }
.q button { margin-bottom: 14px; }
.towns { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 34px; max-width: 1100px; }
.towns button { background: none; border: 0; padding: 8px 0; color: var(--ash-2); cursor: pointer; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--giant); text-transform: uppercase; letter-spacing: .02em; }
.towns button sup { font: 600 .8rem/1 var(--cap); letter-spacing: .1em; color: var(--smoke); margin-left: 6px; vertical-align: top; }
.towns button:hover, .towns button[aria-pressed="true"] { color: var(--ash); }
.towns button[aria-pressed="true"] sup { color: var(--ember); }
.hits { margin-top: 40px; max-width: 1100px; }
.hits h3 { margin: 0 0 6px; color: var(--ash-2); }
.hits ol { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.hits li { counter-increment: h; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 4px 18px; padding: 18px 0; border-top: 1px solid var(--hair); }
.hits li::before { content: counter(h, decimal-leading-zero); font: 800 2.2rem/1 var(--giant); color: var(--ember); }
.hits b { font: 700 1.35rem/1.2 var(--text); }
.hits span { grid-column: 2; color: var(--ash-2); font-size: .95rem; }
.hits em { grid-column: 3; grid-row: 1; font: 800 1.6rem/1 var(--giant); font-style: normal; font-variant-numeric: tabular-nums; }
.hits .more { margin-top: 18px; color: var(--ash-2); }
.status { min-height: 1.5em; margin-top: 14px; color: var(--ash-2); }

/* ---------- the footer ---------- */
.foot { position: relative; z-index: 5; background: var(--soot); border-top: 1px solid var(--hair); overflow: hidden; }
.foot-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; padding: 64px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px)); }
.foot h2 { margin: 0 0 10px; color: var(--smoke); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--ash); font-size: .98rem; }
.foot li a:hover { color: var(--ember-hi); }
.foot-co { padding: 0 max(24px, env(safe-area-inset-right, 0px)) 22px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; color: var(--smoke); }
.foot-co .langs { margin-right: auto; }
.foot .langs ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot li a[aria-current="page"] { color: var(--ember); }
.foot-big { font: 900 25.5vw/.74 var(--giant); letter-spacing: -.005em; color: var(--coal); margin: 0 0 -.06em -.03em; white-space: nowrap; user-select: none; }
@media (max-width: 860px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; } }
