/* Rune Nissen – gardin-hero */

:root {
  --petrol-900: #0D1A1C;
  --petrol-700: #18292C;
  --petrol-600: #23393D;
  --petrol-400: #345257;
  --velour: #0E3521;
  --lime: #D4EE6A;
  --creme: #F3EFE4;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--petrol-900); color: var(--creme); font-family: 'Jost', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

.hero {
  --dur: 3.2s;
  position: relative;
  z-index: 0; /* own stacking context, so nothing in the hero can sit above the page that follows */
  height: 100vh;
  height: 100svh;
  min-height: 320px; /* low enough that a phone on its side still gets the whole curtain on screen */
  overflow: hidden;
  background: var(--petrol-900);
}

/* ---------- Film behind the curtain ---------- */

.film { position: absolute; inset: 0; overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.has-video .film video { opacity: 1; }

/* Stand-in landscape until video/showreel.mp4 exists */
.placeholder { position: absolute; inset: 0; overflow: hidden; }
.has-video .placeholder { display: none; }
.scene { position: absolute; top: -3%; left: -3%; width: 106%; height: 106%; transform-origin: 50% 62%; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
.mist { position: absolute; top: 56%; left: -30%; width: 70%; height: 20%; background: radial-gradient(ellipse at center, rgba(243,239,228,.18), rgba(243,239,228,0) 70%); animation: drift 22s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(190%); } }
.grain { position: absolute; top: -8%; left: -8%; width: 116%; height: 116%; opacity: .12; mix-blend-mode: overlay; pointer-events: none; animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* The last stretch fades into the punchline's petrol, so the film runs into the next section without an edge */
.vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,26,28,0) 80%, var(--petrol-900) 100%), radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.72) 100%); }

/* ---------- Curtain ---------- */

/* Gentle breathing, one transform for both halves so the seam never opens. It keeps running through
   the opening – stopping it there made the cloth jump back a few pixels on the first frame. */
.curtains { position: absolute; inset: 0; z-index: 4; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: skewX(0); } 30% { transform: skewX(.35deg); } 65% { transform: skewX(-.25deg); } }

/* Each half runs 160px past the screen edge so the bending never shows a gap at the side */
.curtain { position: absolute; top: 0; bottom: 0; width: calc(50.4% + 160px); } /* no clip: the drapes cut themselves, and while the bands lean they have already gathered further than they lean */
.curtain--l { left: -160px; }
.curtain--r { right: -160px; transform: scaleX(-1); } /* the right half is the left one mirrored */

.k { position: absolute; inset: 0; }
/* A band only places its strip. The drape is the strip itself and clips its own piece of the full-height cloth,
   so the cut happens while it is drawn, not every frame on the graphics card (a clip on a moving, skewed layer
   costs an extra pass per band per frame). It also cuts the half of the word past the seam. */
.band { position: absolute; left: 0; right: 0; height: calc(100% / 6 + 1px); }
.drape { position: absolute; inset: 0; overflow: hidden; transform-origin: 160px 0; }
.cloth { position: absolute; left: 0; right: 0; height: 600%; }

/* Layers are promoted just before the curtain moves, not while it hangs still */
.is-arming .k, .is-arming .drape, .is-open .k, .is-open .drape { will-change: transform; }

.folds {
  position: absolute; inset: 0;
  background-color: var(--velour);
  background-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 72%, rgba(0,0,0,.6) 100%);
  box-shadow: inset -48px 0 56px -28px rgba(0,0,0,.72);
}
.pleats { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.5) 0px, rgba(0,0,0,.1) 24px, rgba(236,244,238,.12) 44px, rgba(0,0,0,.08) 62px, rgba(0,0,0,.5) 92px); }
.hem { position: absolute; left: 0; right: 0; bottom: 26px; height: 2px; background: var(--lime); opacity: .9; }

/* Embroidered SHOWREEL, centred on the seam in both halves so each shows its own half. One line on wide screens;
   on portrait screens SHOW and REEL stack. It is a picture baked by tools/build-broderi.mjs (as live text, its satin,
   stitches and shadows took the browser up to 350 ms to draw); the font-size only sets how big it shows. */
.emb { position: absolute; top: 50%; right: calc(.794% - 1.27px); font-size: clamp(64px, min(16vw, 36vh), 280px); transform: translate(50%, -54%); }
.curtain--r .emb { transform: translate(50%, -54%) scaleX(-1); } /* the right half is mirrored; flip its word back */
@media (max-aspect-ratio: 4/5) {
  .emb { font-size: min(34vw, 19vh); transform: translate(50%, -50%); }
  .curtain--r .emb { transform: translate(50%, -50%) scaleX(-1); }
}
/* broderi:start */
/* Generated by tools/build-broderi.mjs: the size the text had, and the baked picture of it. */
.emb { width: 4.119em; height: 1.12em; }
.emb::before { content: ''; position: absolute; inset: -0.08em -0.12em -0.2em -0.12em; background: url(../img/broderi-linje.webp) 0 0 / 100% 100% no-repeat; }
@media (max-aspect-ratio: 4/5) {
  .emb { width: 2.2391em; height: 2.08em; }
  .emb::before { background-image: url(../img/broderi-stablet.webp); }
}
/* broderi:end */

/* Light passing over the cloth – kept barely visible */
.wave, .breeze { position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.3) 28%, rgba(236,244,238,.07) 52%, rgba(0,0,0,.26) 74%, rgba(0,0,0,0)); }
/* The sweep starts and ends outside the cloth, so only its movement is keyframed; on opening it fades where it is */
.breeze { opacity: .2; transition: opacity .5s ease; animation: breeze 8s ease-in-out infinite; }
.curtain--r .breeze { animation-delay: 2s; }
.is-open .breeze { opacity: 0; animation-play-state: paused; }
@keyframes breeze { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(190%); } }
.is-open .wave { animation: wave var(--dur) cubic-bezier(.3,0,.3,1) both; }
@keyframes wave { 0% { transform: translateX(190%); opacity: 0; } 12%, 40% { opacity: .35; } 62%, 100% { transform: translateX(-100%); opacity: 0; } }

/* Opening: gather into the sides (default) or slide out */
.is-open .drape { animation: gather var(--dur) cubic-bezier(.35,.04,.55,1) both; } /* starts from rest */
.mode-glide.is-open .drape { animation-name: glide; }
@keyframes gather { from { transform: scaleX(1); } to { transform: scaleX(.075); } }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(-102%); } }

/* curtain:start */
/* Generated by tools/build-curtain.py. Each .p{i} tilts band i and everything below it;
   the matching .n{i} straightens it again from the next band down, so lower bands only
   inherit the offset. Both run the same timing, so the joins stay exact. */
.b0 { top: 0%; } .b0 .cloth { top: -0%; }
.b1 { top: 16.667%; } .b1 .cloth { top: -100%; }
.b2 { top: 33.333%; } .b2 .cloth { top: -200%; }
.b3 { top: 50%; } .b3 .cloth { top: -300%; }
.b4 { top: 66.667%; } .b4 .cloth { top: -400%; }
.b5 { top: 83.333%; } .b5 .cloth { top: -500%; }
.p0 { transform-origin: 0 0; }
.n0, .p1 { transform-origin: 0 16.667%; }
.n1, .p2 { transform-origin: 0 33.333%; }
.n2, .p3 { transform-origin: 0 50%; }
.n3, .p4 { transform-origin: 0 66.667%; }
.n4, .p5 { transform-origin: 0 83.333%; }
.is-open .p0 { animation: plag0 var(--dur) 0.00s both, pflap0 3.4s calc(var(--dur) + 0.00s) infinite; }
@keyframes plag0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(6.50deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-1.300deg); } }
@keyframes pflap0 { 0%, 100% { transform: skewX(-1.300deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(1.040deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .n0 { animation: nlag0 var(--dur) 0.00s both, nflap0 3.4s calc(var(--dur) + 0.00s) infinite; }
@keyframes nlag0 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(-6.50deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(1.300deg); } }
@keyframes nflap0 { 0%, 100% { transform: skewX(1.300deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(-1.040deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .p1 { animation: plag1 var(--dur) 0.12s both, pflap1 3.4s calc(var(--dur) + 0.12s) infinite; }
@keyframes plag1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(5.82deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-1.164deg); } }
@keyframes pflap1 { 0%, 100% { transform: skewX(-1.164deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(0.931deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .n1 { animation: nlag1 var(--dur) 0.12s both, nflap1 3.4s calc(var(--dur) + 0.12s) infinite; }
@keyframes nlag1 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(-5.82deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(1.164deg); } }
@keyframes nflap1 { 0%, 100% { transform: skewX(1.164deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(-0.931deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .p2 { animation: plag2 var(--dur) 0.24s both, pflap2 3.4s calc(var(--dur) + 0.24s) infinite; }
@keyframes plag2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(5.31deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-1.062deg); } }
@keyframes pflap2 { 0%, 100% { transform: skewX(-1.062deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(0.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .n2 { animation: nlag2 var(--dur) 0.24s both, nflap2 3.4s calc(var(--dur) + 0.24s) infinite; }
@keyframes nlag2 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(-5.31deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(1.062deg); } }
@keyframes nflap2 { 0%, 100% { transform: skewX(1.062deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(-0.850deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .p3 { animation: plag3 var(--dur) 0.36s both, pflap3 3.4s calc(var(--dur) + 0.36s) infinite; }
@keyframes plag3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(4.80deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-0.960deg); } }
@keyframes pflap3 { 0%, 100% { transform: skewX(-0.960deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(0.768deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .n3 { animation: nlag3 var(--dur) 0.36s both, nflap3 3.4s calc(var(--dur) + 0.36s) infinite; }
@keyframes nlag3 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(-4.80deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0.960deg); } }
@keyframes nflap3 { 0%, 100% { transform: skewX(0.960deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(-0.768deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .p4 { animation: plag4 var(--dur) 0.48s both, pflap4 3.4s calc(var(--dur) + 0.48s) infinite; }
@keyframes plag4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(4.29deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-0.858deg); } }
@keyframes pflap4 { 0%, 100% { transform: skewX(-0.858deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(0.686deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .n4 { animation: nlag4 var(--dur) 0.48s both, nflap4 3.4s calc(var(--dur) + 0.48s) infinite; }
@keyframes nlag4 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(-4.29deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(0.858deg); } }
@keyframes nflap4 { 0%, 100% { transform: skewX(0.858deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(-0.686deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
.is-open .p5 { animation: plag5 var(--dur) 0.60s both, pflap5 3.4s calc(var(--dur) + 0.60s) infinite; }
@keyframes plag5 { 0% { transform: skewX(0); animation-timing-function: cubic-bezier(.45,0,.55,1); } 35% { transform: skewX(3.78deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 100% { transform: skewX(-0.756deg); } }
@keyframes pflap5 { 0%, 100% { transform: skewX(-0.756deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 50% { transform: skewX(0.605deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } }
/* curtain:end */

.spot { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(55% 75% at 50% -5%, rgba(243,239,228,.06), rgba(243,239,228,0) 70%); transition: opacity 1.2s ease; }
.is-open .spot { opacity: 0; }

/* Click-to-open mode */
.opener { display: none; position: absolute; inset: 0; z-index: 6; border: 0; padding: 0; background: none; cursor: pointer; }
.open-click.is-closed .opener { display: block; }
.opener:hover ~ .curtains .emb { filter: brightness(1.15); }
.play { position: absolute; left: 50%; top: 82%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(243,239,228,.75); border-radius: 50%; background: rgba(10,24,17,.35); animation: pulse 2.4s ease-in-out infinite; }
.play svg { margin-left: 4px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- The cinema ---------- */

/* The row is the animation's own 16:9 frame cut down to its bottom rows (1280×324), as wide as the film on a screen
   of 16:9 or narrower; on very wide screens it keeps to the height (its ends fade, so it may stop short of the sides),
   and on upright screens it is twice the width, so the middle three seats show and he walks in from the edge. It
   stands in front of the film but behind the gathered curtain (its faded ends would show the velour through them),
   so he comes in from behind the curtain, and it comes up as the curtain opens. */
.bio { position: absolute; left: 50%; bottom: 0; z-index: 3; width: min(100%, 190vh); aspect-ratio: 1280 / 324; translate: -50% 0; pointer-events: none; opacity: 0; transform: translateY(14%); }
.is-open .bio { opacity: 1; transform: none; transition: opacity .5s ease .25s, transform .6s cubic-bezier(.2,.8,.2,1) .25s; }
.is-snap .bio { transition: none; }
.bio img, .bio video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* One layer at a time, swapped on the frame the next one shows (two see-through rows on top of each other would darken
   the faded ends): the poster (the empty row) until the walk-in runs, then the walk-in, then the loop */
.bio video { opacity: 0; }
.bio.is-walking .bio-ind, .bio.is-sitting .bio-sid { opacity: 1; }
.bio.is-walking img, .bio.is-sitting .bio-ind { opacity: 0; }
@media (max-aspect-ratio: 4/5) { .bio { width: min(205vw, 125vh); } }
/* He sits right where the scroll hint stood, so the hint gives way to him */
.hero:has(.bio) .scroll { display: none; }
/* Scroll ned on the back of Rune's seat, the middle one (its centre at 49.6 % across the row, 87 % down it), in the
   lime of SHOWREEL's stitching, with a chevron nodding down; it comes with the seats and leads down the page */
.bio { container-type: inline-size; }
/* (the open curtains' full-width bands are see-through in the middle, but would still catch the click) */
.is-open .curtains { pointer-events: none; }
.bio-scroll { position: absolute; left: 49.6%; top: 87%; display: flex; align-items: center; gap: .7em; padding: .6em .9em; pointer-events: auto; font-size: clamp(9px, 1cqw, 13px); font-weight: 500; letter-spacing: .26em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--lime); text-decoration: none; text-shadow: 0 1px 0 rgba(0,0,0,.7); transform: translate(-50%, -50%); opacity: .85; transition: opacity .2s ease; }
.bio-scroll i { width: .62em; height: .62em; margin-top: -.3em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; animation: chev 1.8s ease-in-out infinite; }
.bio-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .bio-scroll:hover { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bio video { display: none; } .is-open .bio { transition: none; } }

/* ---------- Top bar ---------- */

/* The burger is fixed over the whole page (css/menu.css); its row keeps its height, so the logo sits level with it */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 7; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 48px; align-items: center; padding: 26px clamp(16px, 4vw, 56px); }
.logo { grid-column: 2; justify-self: center; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--creme); font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: .26em; line-height: 1; text-transform: uppercase; }

/* The showreel's sound, at the left of the bar as the burger and MENU are at the right (js/hero-sound.js): a speaker
   with a lime × while the film is silent, with waves while it plays. It comes as the curtain has opened. */
.sound { grid-column: 1; grid-row: 1; justify-self: start; position: relative; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--creme); cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.sound[hidden] { display: none; }
.hero.is-open.has-video .sound { opacity: 1; visibility: visible; transition: opacity .5s ease calc(var(--dur) * .6), visibility 0s calc(var(--dur) * .6); }
.is-snap .sound { transition: none !important; }
.sound svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-cone { stroke: var(--creme); }
.sound-x, .sound-w { stroke: var(--lime); transform-box: view-box; transform-origin: 31px 24px; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.sound-w { opacity: 0; transform: scale(.5); }
.sound.is-on .sound-x { opacity: 0; transform: scale(.4); }
.sound.is-on .sound-w { opacity: 1; transform: none; }
.sound.is-on .sound-w + .sound-w { animation: sound-wave 1.6s ease-in-out .3s infinite; }
@keyframes sound-wave { 50% { opacity: .3; } }
.sound-label { position: absolute; top: 50%; left: calc(100% + 12px); font-size: 12px; font-weight: 500; letter-spacing: .24em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--creme); transform: translateY(-50%); transition: color .2s ease; }
@media (hover: hover) { .sound:hover .sound-label { color: var(--lime); } }
.sound:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- Scroll hint ---------- */

.scroll { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 36px); z-index: 3; width: 48px; height: 64px; margin-left: -24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity 1.2s ease, transform 1.2s ease; }
.is-open .scroll { opacity: .8; transform: none; transition-delay: calc(var(--dur) * .8); }
.scroll:hover { opacity: 1; }
.mouse { position: relative; display: block; width: 22px; height: 34px; border: 1.5px solid rgba(243,239,228,.85); border-radius: 12px; }
.wheel { position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.chev { display: block; width: 8px; height: 8px; border-right: 1.5px solid rgba(243,239,228,.7); border-bottom: 1.5px solid rgba(243,239,228,.7); animation: chev 1.8s ease-in-out infinite; }
@keyframes chev { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .4; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }

/* Touch screens and phones: no mouse, so the hint becomes a thin line with a lime dot running down it */
@media (hover: none), (max-width: 600px) {
  .scroll { justify-content: flex-end; height: 56px; bottom: 24px; }
  .mouse { width: 1.5px; height: 44px; border: 0; border-radius: 0; overflow: hidden; background: rgba(243,239,228,.3); }
  .wheel { left: 0; top: 0; width: 1.5px; height: 14px; margin: 0; border-radius: 0; animation: dot 1.8s cubic-bezier(.6,0,.4,1) infinite; }
  .chev { display: none; }
}
@keyframes dot { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(44px); } }

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  .bar { grid-template-rows: 44px; padding: 16px 16px 0 20px; }
  .logo { font-size: 20px; letter-spacing: .24em; }
  /* the speaker as far in from the left as the burger is from the right, its word under it as MENU is under that */
  .sound { width: 44px; height: 44px; margin-left: -4px; }
  .sound-label { top: calc(100% + 5px); left: 50%; font-size: 9px; letter-spacing: .22em; transform: translateX(calc(-50% + .11em)); }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Replay snaps shut without transitions */
.is-snap .spot, .is-snap .scroll { transition: none !important; }

/* Nothing animates while the hero is scrolled out of view */
.is-paused, .is-paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .curtains, .k, .drape, .wave, .breeze, .scene, .mist, .grain, .wheel, .chev, .bio-scroll i, .play { animation: none !important; }
  .breeze { display: none; }
  .is-open.mode-gather .drape { transform: scaleX(.075); }
  .is-open.mode-glide .drape { transform: translateX(-102%); }
}
