/* Rune Nissen – sektionerne under heroen (retning 2: lys resten) */

.after { position: relative; z-index: 1; background: var(--creme); color: var(--petrol-900); }
.hero-end { position: absolute; top: 0; left: 0; width: 1px; height: 1px; } /* tells the hero when it is out of sight */

/* ---------- Lysene tændes: the page enters dark, then the light rises up through it ----------
   A dark "curtain" (35vh solid, then a 55vh eased fade into creme, mixed in oklab so it never goes grey)
   lies over the top of the page. Once the page is past halfway up, js/overgang.js lifts it off twice as fast
   as the page scrolls (--lys-y), so the seam to the punchline stays dark almost to the end, and the light
   is all the way up by the time the page reaches the top of the screen.
   --ink (0 → 1) turns the brand strip's text from light to dark as the light reaches it. */

.after { --lys-y: 0px; --ink: 0; overflow: hidden; overflow: clip; }
.after::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90vh; pointer-events: none;
  transform: translateY(var(--lys-y)); will-change: transform;
  background: linear-gradient(180deg,
    var(--petrol-900) 0,
    var(--petrol-900) 38.9%,
    color-mix(in oklab, var(--creme) 4%, var(--petrol-900)) 46.5%,
    color-mix(in oklab, var(--creme) 16%, var(--petrol-900)) 54.2%,
    color-mix(in oklab, var(--creme) 33%, var(--petrol-900)) 61.8%,
    color-mix(in oklab, var(--creme) 50%, var(--petrol-900)) 69.4%,
    color-mix(in oklab, var(--creme) 67%, var(--petrol-900)) 77.1%,
    color-mix(in oklab, var(--creme) 84%, var(--petrol-900)) 84.7%,
    color-mix(in oklab, var(--creme) 96%, var(--petrol-900)) 92.4%,
    rgb(243 239 228 / 0) 100%); /* creme, see-through: over the Rune backdrop the light blends in instead of ending in an edge */
}
.after > section { position: relative; z-index: 1; }

/* ---------- Punchline: Projekter fra A–Z ---------- */

/* The page scrolls freely, and the punchline plays when it comes on screen. Only Alt arbejde pulls: let go near its
   top and the page settles there (on touch screens; with a mouse or trackpad js/scroll.js does it, gliding the
   whole way from Rune i midten to Alt arbejde). */
html { scroll-snap-type: y proximity; }
/* The page places itself (the glide, the menu's links); Safari's scroll anchoring would pull a jump from Rune i
   midten to Alt arbejde back again, so it is off */
html { overflow-anchor: none; }
.work, .work-spacer { scroll-snap-align: start; }
/* With a mouse or trackpad js/scroll.js scrolls the page itself */
html.is-gliding { scroll-snap-type: none; }
/* Safari only lets the page rest inside a long last part if that part reaches past the bottom of the screen (the
   wall's plain list, without the script) */
.work { scroll-margin-bottom: 4px; }

.punch { position: relative; z-index: 1; overflow-x: clip; background: var(--petrol-900); color: var(--creme); } /* clip: the letter's runner ends past the track on narrow screens */
.punch-stage { height: 100vh; height: 100svh; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(56px, 10vh, 112px); padding: 0 clamp(16px, 4vw, 56px); }
.punch-title { margin: 0; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(48px, 6.6vw, 112px); line-height: .9; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.punch-title > span:last-child { white-space: nowrap; } /* if it wraps, it breaks as PROJEKTER / FRA A–Z */
.punch-title em { font-style: normal; color: var(--lime); }
.punch-head { text-align: center; }
.punch-sub { margin: clamp(16px, 2.6vh, 28px) 0 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.45; color: rgba(243,239,228,.72); }
/* ---------- The punchline's animation ----------
   When the punchline lands on screen (js/punchline.js adds .is-playing) it plays once, about 2 s:
   the letters fill in and the line under them rises in, the bulb pops up and blinks, a letter flies out of it along the line, drawing the line
   as it goes, and drops into the mailbox, which shuts its door and raises its flag.
   The plain rules are the finished state (what shows without the script, or with reduced motion);
   .is-armed sets the starting state; .is-playing runs the keyframes from one to the other. */

/* Letters: each starts faint and fills in left to right, about three fading at a time (the script wraps each in
   .ch with its index --i and puts the count in --n; --pt runs 0 → 1) */
@property --pt { syntax: '<number>'; inherits: true; initial-value: 1; }
.punch-title .ch { opacity: clamp(.14, calc(.14 + .86 * (var(--pt) * (var(--n) + 3) - var(--i)) / 3), 1); }

/* The bar: a light bulb and a mailbox as real emoji, and between them a dashed path that the flying letter
   draws over in lime. The track runs between the two emoji (half a step plus half an icon in from each side),
   so the letter sets off from the bulb and disappears into the mailbox. */
.flow { position: relative; display: flex; justify-content: space-between; width: min(760px, 100%); }
.flow-step { position: relative; z-index: 1; width: 160px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.emo { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; font-weight: 400; line-height: 1; }
.flow-icon { display: grid; place-items: center; width: 72px; height: 72px; font-size: 60px; }
.flow-icon .emo { grid-area: 1 / 1; } /* the mailbox's two states sit on top of each other */
.flow-label { font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: .18em; text-transform: uppercase; text-align: center; color: var(--creme); }
.flow-idea .emo { filter: grayscale(0) brightness(1) drop-shadow(0 0 12px rgba(255,214,90,.35)); } /* lit, with a soft warm glow */
.box-open { opacity: 0; } /* finished: door shut, flag up (📫) */

.flow-track { position: absolute; top: 35px; left: 124px; right: 124px; height: 2px; background: repeating-linear-gradient(90deg, rgba(243,239,228,.24) 0 6px, transparent 6px 14px); }
.flow-track::before { content: ''; position: absolute; inset: 0; background: var(--lime); transform-origin: 0 50%; }
.flow-mail { position: absolute; inset: 0; transform: translateX(100%); } /* moves the letter along the track */
.flow-letter { position: absolute; top: -15px; left: -15px; font-size: 30px; opacity: 0; }

/* Starting state: everything faint, the bulb small and unlit, path empty, the mailbox grey with its door open and flag down */
.punch.is-armed .punch-stage { --pt: 0; }
.punch.is-armed .punch-sub { opacity: 0; transform: translateY(8px); }
.punch.is-armed .flow-step { opacity: .14; }
.punch.is-armed .flow-label { color: rgba(243,239,228,.5); }
.punch.is-armed .flow-idea .flow-icon { transform: scale(.5); }
.punch.is-armed .flow-idea .emo { filter: grayscale(1) brightness(.55) drop-shadow(0 0 0 rgba(255,214,90,0)); }
.punch.is-armed .flow-track { opacity: .35; }
.punch.is-armed .flow-track::before { transform: scaleX(0); }
.punch.is-armed .flow-mail { transform: translateX(0); }
.punch.is-armed .flow-end .flow-icon { filter: grayscale(1) brightness(.85); }
.punch.is-armed .box-open { opacity: 1; }
.punch.is-armed .box-shut { opacity: 0; }

/* The sequence, about 2 s (delays are from the moment it lands). The page holds still until the flag is up
   (js/punchline.js listens for flag-up ending on the shut mailbox). */
.punch.is-playing .punch-stage { animation: pt-fill .65s linear both; }
.punch.is-playing .punch-sub { animation: sub-in .4s ease .42s both; } /* rises in as the last letters fill */
.punch.is-playing .flow-idea { animation: step-show .2s ease .32s both; }
.punch.is-playing .flow-idea .flow-icon { animation: bulb-pop .32s cubic-bezier(.3,1.7,.5,1) .32s both; }
.punch.is-playing .flow-idea .emo { animation: bulb-blink .5s linear .5s both; }
.punch.is-playing .flow-idea .flow-label { animation: label-on .25s ease .5s both; }
.punch.is-playing .flow-track { animation: track-show .25s ease .58s both; }
.punch.is-playing .flow-end { animation: step-show .25s ease .65s both; }
.punch.is-playing .flow-track::before { animation: line-draw .6s cubic-bezier(.45,0,.4,1) .9s both; }
.punch.is-playing .flow-mail { animation: letter-travel .6s cubic-bezier(.45,0,.4,1) .9s both; }
.punch.is-playing .flow-letter { animation: letter-flutter .6s ease-in-out .9s both; }
.punch.is-playing .flow-end .flow-icon { animation: box-arrive .38s ease 1.5s both; }
.punch.is-playing .box-open { animation: box-hide .06s linear 1.52s both; }
.punch.is-playing .box-shut { animation: flag-up .32s cubic-bezier(.3,1.6,.5,1) 1.52s both; } /* 📭 becomes 📫 */
.punch.is-playing .flow-end .flow-label { animation: label-on .25s ease 1.6s both; }

@keyframes pt-fill { from { --pt: 0; } to { --pt: 1; } }
@keyframes step-show { from { opacity: .14; } to { opacity: 1; } }
@keyframes sub-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes label-on { from { color: rgba(243,239,228,.5); } to { color: var(--creme); } }
@keyframes track-show { from { opacity: .35; } to { opacity: 1; } }
@keyframes bulb-pop { from { transform: scale(.5); } to { transform: scale(1); } }
/* Flickers on twice, then stays lit; the glow settles to a soft halo */
@keyframes bulb-blink {
  0%, 9%, 23%, 37% { filter: grayscale(1) brightness(.55) drop-shadow(0 0 0 rgba(255,214,90,0)); }
  10%, 22%, 38%, 60% { filter: grayscale(0) brightness(1.15) drop-shadow(0 0 22px rgba(255,214,90,.9)); }
  100% { filter: grayscale(0) brightness(1) drop-shadow(0 0 12px rgba(255,214,90,.35)); }
}
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes letter-travel { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes letter-flutter {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  5% { opacity: 1; }
  25% { transform: translateY(-8px) rotate(-9deg); }
  50% { transform: translateY(3px) rotate(5deg); }
  75% { transform: translateY(-6px) rotate(-6deg); }
  95% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0) rotate(4deg); }
}
/* The mailbox takes the letter: a little jolt while its colour comes on, and the door shuts with the flag up */
@keyframes box-arrive {
  0% { filter: grayscale(1) brightness(.85); transform: none; }
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(5deg); }
  100% { filter: grayscale(0) brightness(1); transform: none; }
}
@keyframes box-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes flag-up { from { opacity: 0; transform: scale(.9); } 25% { opacity: 1; } 60% { transform: scale(1.06); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .punch-stage { gap: 56px; padding: 0 20px; }
  .punch-title { font-size: min(14vw, 64px); }
  .punch-sub { margin-top: 16px; font-size: 15px; }
  .flow-track { top: 27px; left: 89px; right: 89px; }
  .flow-step { width: 110px; gap: 10px; }
  .flow-icon { width: 56px; height: 56px; font-size: 46px; }
  .flow-letter { top: -12px; left: -12px; font-size: 24px; }
  .flow-label { font-size: 10px; letter-spacing: .12em; }
}

/* ---------- Brand ticker ---------- */

/* A band of its own, a third of the screen, where the light comes up under the punchline; Rune i midten follows */
.brands { display: flex; flex-direction: column; justify-content: center; min-height: 34vh; min-height: 34svh; padding: 40px 0; }
.brands-label { margin: 0 0 26px; padding: 0 16px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in oklab, rgba(13,26,28,.6) calc(var(--ink) * 100%), rgba(243,239,228,.6)); }
/* (room over and under the logos, so the tallest still fits when it lifts under the mouse; the layout is the same) */
.brands-view { padding: 6px 0; margin: -6px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.brands-track { display: flex; width: max-content; animation: brands 88s linear infinite; }
.brands:not(.is-live) .brands-view:hover .brands-track { animation-play-state: paused; }
.brands-track ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.brands-track li { padding-right: clamp(48px, 6vw, 88px); font-size: clamp(28px, 3vw, 40px); line-height: 1; white-space: nowrap; color: color-mix(in oklab, rgba(13,26,28,.56) calc(var(--ink) * 100%), rgba(243,239,228,.6)); transition: color .25s ease; }
/* Run by js/brands.js (.is-live): under the mouse the logo there darkens and lifts a little, the others dim a touch;
   towards either end an arrow comes up (--edge-l, --edge-r: 0 away from the strip, .35 over it, 1 at the very end) */
.brands-roll { position: relative; }
.brands.is-live .brands-track { animation: none; will-change: transform; }
.brands.is-over .brands-track li { color: color-mix(in oklab, rgba(13,26,28,.4) calc(var(--ink) * 100%), rgba(243,239,228,.45)); }
.brands.is-over .brands-track li.is-lit { color: color-mix(in oklab, var(--petrol-900) calc(var(--ink) * 100%), var(--creme)); }
.brands-track .brand-logo { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.brands-track li.is-lit .brand-logo { transform: scale(1.08); }
.brands-edge { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 1px solid rgba(13,26,28,.16); border-radius: 50%; background: rgba(243,239,228,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--petrol-900); font-size: 16px; line-height: 1; pointer-events: none; transition: opacity .2s ease; }
.brands-edge.is-left { left: clamp(12px, 2.5vw, 40px); opacity: var(--edge-l, 0); transform: scale(calc(.9 + var(--edge-l, 0) * .1)); }
.brands-edge.is-right { right: clamp(12px, 2.5vw, 40px); opacity: var(--edge-r, 0); transform: scale(calc(.9 + var(--edge-r, 0) * .1)); }
@media (hover: none) { .brands-edge { display: none; } }
@keyframes brands { to { transform: translateX(-50%); } }

/* A logo: its silhouette (the mask image on each, in the page) filled with the strip's ink */
.brand-logo { display: block; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- Rune i midten ----------
   Rune on a stool in front of his name, the line about what he makes above it. Left of him what the work has
   done, in four numbers; right of him the formats, each leading to its own page.
   The section is at least as tall as the screen, so it fills it where the page comes to rest on it.
   Wide screens: the scene is laid out on a 1440 px frame (--u is one frame px), scaled with the window to fill the
   screen's height (never below 0.4×); where the window is too narrow for that, it stands in the middle.
   Narrow screens: the scene on a 390 px frame (--m, fitted to the screen height the same way, the room it leaves
   over and under it --pad), with the two lists side by side under it at the width of the screen (--mw).
   The backdrop lies under the dark overlay of .after (z-index -1; the section makes no stacking context of its
   own), so the light comes up over it as over the rest of the page. Everything else is positioned and on top. */

.after > .rune { z-index: auto; }
.rune {
  --u: min(100vw / 1440, max(.4px, 100svh / 1175));
  display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh;
}
/* (it comes in from the creme of the brands above) */
.rune::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 50% at 50% 58%, #F8F5EE 0, rgba(248,245,238,0) 72%), linear-gradient(180deg, var(--creme) 0%, #E9E4D8 12%, #E5DFD2 70%, #DBD4C5 100%);
}
.rune-frame { position: relative; width: calc(1440 * var(--u)); height: calc(1175 * var(--u)); margin: 0 auto; }
.rune-scene { position: absolute; inset: 0; }

/* The line is in PERFORMER's lettering but has to be read: bright white fading to warm paper down each line
   (the gradient repeats every line, --lh), a thin dark lower edge and a soft shadow lift it off the backdrop */
.rune-words {
  position: absolute; top: calc(36 * var(--u)); left: 0; right: 0; margin: 0;
  font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: calc(100 * var(--u)); line-height: .86; letter-spacing: .03em; text-align: center; text-transform: uppercase;
  filter: drop-shadow(0 1.5px 0 rgba(13,26,28,.32)) drop-shadow(0 10px 18px rgba(13,26,28,.22));
}
.rune-words span { display: block; background: linear-gradient(180deg, #FFF 0%, #FFF 40%, #F1ECE1 100%) 0 0 / 100% var(--lh, .86em) repeat-y; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rune-big { position: absolute; top: calc(264 * var(--u)); left: 0; right: 0; margin: 0; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: calc(340 * var(--u)); line-height: .78; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: #FBF9F4; text-shadow: 0 2px 0 #fff, 0 24px 60px rgba(13,26,28,.10); translate: 0 calc(var(--drift, 0) * 80 * var(--u)); }
/* The body image has the photo's floor shadow around him, so it is bigger than he is: he is 900 scene px from cap
   to shoe, his face over the middle and his shoes 66 px off the bottom. The head box sits over the body, which has
   nothing above the collar; each head (with the shoulders) fades into its sweater just under the collar. */
.rune-figure { position: absolute; left: 50%; bottom: calc(-15 * var(--u)); width: calc(750 * var(--u)); height: calc(1001 * var(--u)); margin-left: calc(-390 * var(--u)); }
.rune-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.rune-head { position: absolute; left: 36.744%; top: 0; width: 36.213%; height: 26.494%; }
.rune-head img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.rune-head img.is-on, .rune-head img.is-was { opacity: 1; }
/* Turning, the head smears the way it turns (--mx, --my: the step from the old direction to the new, -2 to 2,
   from js/rune.js): the old one slides on and blurs away under the new, which comes in blurred and settles */
.rune-head img.is-on { z-index: 1; animation: rune-head-in .22s cubic-bezier(.2,.7,.2,1) both; }
.rune-head img.is-was { animation: rune-head-out .22s ease-in both; }
@keyframes rune-head-in { from { opacity: 0; filter: blur(5px); transform: translate(calc(var(--mx, 0) * -1%), calc(var(--my, 0) * -.9%)); } 45% { opacity: 1; } }
@keyframes rune-head-out { 60% { opacity: 1; } to { opacity: 0; filter: blur(6px); transform: translate(calc(var(--mx, 0) * 1%), calc(var(--my, 0) * .9%)); } }

/* The two lists stand 300 scene px either side of the middle with their tops level, and grow outwards; each is
   wide enough that the words beside the numbers stay on one line */
.rune-sides { position: absolute; left: 0; right: 0; bottom: calc(100 * var(--u)); display: flex; justify-content: center; align-items: flex-start; gap: calc(600 * var(--u)); }
.rune-side { position: relative; flex: none; width: max(calc(364 * var(--u)), calc(216 * var(--u) + 140px)); }
.rune-eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.6); }
.rune-side h3 { margin: calc(14 * var(--u)) 0 0; font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: calc(84 * var(--u)); line-height: .88; letter-spacing: .01em; text-transform: uppercase; }
.rune-facts, .rune-links { margin: calc(20 * var(--u)) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(13,26,28,.14); }
.rune-facts li, .rune-links li { border-bottom: 1px solid rgba(13,26,28,.14); }
.rune-facts b, .rune-links b { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: calc(52 * var(--u)); line-height: .9; letter-spacing: .02em; }
/* The numbers stand in one column and the words beside them in another */
.rune-facts { display: grid; grid-template-columns: max-content 1fr; column-gap: calc(20 * var(--u)); }
.rune-facts li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: last baseline; padding: calc(9 * var(--u)) 0; }
/* a line that wraps grows upwards beside the big word, so the row keeps the height of the Formater rows across from it */
.rune-facts b { justify-self: start; }
.rune-facts li:first-child b { background: linear-gradient(180deg, rgba(212,238,106,0) 58%, var(--lime) 58%, var(--lime) 92%, rgba(212,238,106,0) 92%) 0 0 / 100% 100% no-repeat; }
.rune-facts span { font-size: max(12px, calc(13 * var(--u))); line-height: 1.2; letter-spacing: .06em; color: rgba(13,26,28,.66); }
/* Each format is its own way in: on hover the same lime marker sweeps under the name and the arrow nudges */
.rune-links a { display: grid; grid-template-columns: calc(38 * var(--u)) 1fr auto; align-items: baseline; padding: calc(9 * var(--u)) 0; }
.rune-links a:focus-visible { outline: 2px solid var(--petrol-900); outline-offset: 4px; border-radius: 4px; }
.rune-links b { justify-self: start; background: linear-gradient(180deg, rgba(212,238,106,0) 58%, var(--lime) 58%, var(--lime) 92%, rgba(212,238,106,0) 92%) 0 0 / 0% 100% no-repeat; transition: background-size .3s ease; }
.rune-links a:hover b, .rune-links a:focus-visible b { background-size: 100% 100%; }
.rune-n { font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .16em; color: rgba(13,26,28,.5); }
.rune-links i { font-style: normal; font-size: calc(24 * var(--u)); line-height: 1; color: rgba(13,26,28,.4); transition: transform .25s ease, color .25s ease; }
.rune-links a:hover i, .rune-links a:focus-visible i { color: var(--petrol-900); transform: translateX(4px); }

@media (max-width: 1099px) {
  .rune { --mw: min(100vw / 390, 1.5px); --m: min(var(--mw), max(.7px, 100svh / 670)); --pad: max(0px, (100svh - 670 * var(--m)) / 2); justify-content: flex-start; }
  .rune::before { background: radial-gradient(55% calc(335 * var(--m)) at 50% calc(389 * var(--m) + var(--pad)), #F8F5EE 0, rgba(248,245,238,0) 72%), linear-gradient(180deg, var(--creme) 0, #E9E4D8 calc(80 * var(--m)), #E5DFD2 calc(469 * var(--m) + var(--pad)), #DBD4C5 calc(670 * var(--m) + 2 * var(--pad))); }
  .rune-frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: calc(390 * var(--mw)); height: auto; padding: 0 calc(8 * var(--mw)) calc(28 * var(--mw)); }
  .rune-scene { position: relative; grid-column: 1 / -1; height: calc(670 * var(--m) + 2 * var(--pad)); margin: 0 calc(-8 * var(--mw)) calc(12 * var(--mw)); }
  .rune-words { --lh: .9em; top: calc(32 * var(--m) + var(--pad)); width: calc(354 * var(--m)); margin: 0 auto; font-size: calc(44 * var(--m)); line-height: .9; text-wrap: balance; }
  .rune-words br { display: none; }
  .rune-big { top: calc(200 * var(--m) + var(--pad)); font-size: calc(92 * var(--m)); translate: 0 calc(var(--drift, 0) * 40 * var(--m)); }
  .rune-figure { bottom: calc(-16 * var(--m) + var(--pad)); width: calc(408 * var(--m)); height: calc(545 * var(--m)); margin-left: calc(-212 * var(--m)); }

  .rune-sides { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; bottom: auto; }
  .rune-side { width: auto; padding: calc(18 * var(--mw)) calc(12 * var(--mw)); }
  .rune-formats::before { content: ''; position: absolute; left: 0; top: calc(16 * var(--mw)); bottom: calc(16 * var(--mw)); width: 1px; background: rgba(13,26,28,.16); }
  .rune-eyebrow { font-size: calc(10 * var(--mw)); letter-spacing: .16em; }
  .rune-side h3 { margin-top: calc(10 * var(--mw)); font-size: calc(46 * var(--mw)); }
  .rune-facts, .rune-links { margin-top: calc(16 * var(--mw)); }
  /* Number over its words; each row as tall as a format row, so the lines run straight across */
  .rune-facts { display: block; }
  .rune-facts li { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: calc(4 * var(--mw)); height: calc(70 * var(--mw) + 1px); padding: 0; } /* + its border, like a link row */
  .rune-facts b { font-size: calc(34 * var(--mw)); }
  .rune-facts span { font-size: max(11px, calc(11 * var(--mw))); line-height: 1.3; letter-spacing: .04em; }
  .rune-links a { grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(6 * var(--mw)); align-items: center; height: calc(70 * var(--mw)); padding: 0; }
  .rune-n { display: none; }
  .rune-links b { font-size: calc(32 * var(--mw)); }
  .rune-links i { font-size: calc(18 * var(--mw)); }
}

/* ---------- Rune i midten: playing in ----------
   js/rune.js arms the section (.is-armed is the starting state; without the script, or with reduced motion, it is
   simply there), plays the scene when most of it is on screen (.scene-in) and the lists when they are (.sides-in;
   on wide screens at least .55 s after the scene, --wait). The line comes up out of a blur, PERFORMER's letters one by
   one, then Rune; the lists follow row by row while the numbers count up (in the script) and the marker sweeps
   under the first. About 2 s in all. --drift (also from the script) lets PERFORMER rise into place as the section
   scrolls up. */
.rune-big span { display: inline-block; }
.rune-figure { transform-origin: 50% 100%; }
.rune-facts li, .rune-links li { --i: 0; }
.rune-facts li:nth-child(2), .rune-links li:nth-child(2) { --i: 1; }
.rune-facts li:nth-child(3), .rune-links li:nth-child(3) { --i: 2; }
.rune-facts li:nth-child(4), .rune-links li:nth-child(4) { --i: 3; }
.rune-facts li:nth-child(5), .rune-links li:nth-child(5) { --i: 4; }

.rune.is-armed :is(.rune-words, .rune-big span, .rune-figure, .rune-eyebrow, .rune-side h3, .rune-facts li, .rune-links li) { opacity: 0; }
.rune.is-armed .rune-facts li:first-child b { background-size: 0 100%; }

.rune.scene-in .rune-words { animation: rune-words .8s cubic-bezier(.2,.7,.2,1) both; }
.rune.scene-in .rune-big span { animation: rune-letter .7s cubic-bezier(.2,.8,.2,1) calc(.15s + var(--i) * 45ms) both; }
.rune.scene-in .rune-figure { animation: rune-figure .8s cubic-bezier(.2,.7,.2,1) .4s both; }
.rune.sides-in :is(.rune-eyebrow, .rune-side h3) { animation: rune-soft .6s cubic-bezier(.2,.7,.2,1) var(--wait, 0s) both; }
.rune.sides-in .rune-facts li { animation: rune-row-left .55s cubic-bezier(.2,.7,.2,1) calc(var(--wait, 0s) + .15s + var(--i) * 80ms) both; }
.rune.sides-in .rune-links li { animation: rune-row-right .55s cubic-bezier(.2,.7,.2,1) calc(var(--wait, 0s) + .15s + var(--i) * 80ms) both; }
.rune.sides-in .rune-facts li:first-child b { animation: rune-mark .4s ease calc(var(--wait, 0s) + 1.25s) both; }

/* Each ends at the plain state: opacity is given, the rest falls back to the rule's own value */
@keyframes rune-words { from { opacity: 0; transform: translateY(.3em); filter: drop-shadow(0 1.5px 0 rgba(13,26,28,0)) drop-shadow(0 10px 18px rgba(13,26,28,0)) blur(10px); } to { opacity: 1; } }
@keyframes rune-letter { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; } }
@keyframes rune-figure { from { opacity: 0; transform: translateY(6%) scale(.97); } to { opacity: 1; } }
@keyframes rune-soft { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; } }
@keyframes rune-row-left { from { opacity: 0; transform: translateX(-24px); filter: blur(4px); } to { opacity: 1; } }
@keyframes rune-row-right { from { opacity: 0; transform: translateX(24px); filter: blur(4px); } to { opacity: 1; } }
@keyframes rune-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }

/* ---------- Alt arbejde ----------
   Every project on one endless wall in the dark, as big as the screen. The cards are all the same size and show
   their film in its own format (longform letterboxed like the cinema, shortform and stills upright on a blur of
   themselves). They lie on the inside of a sphere: the card in the middle faces you, those further out turn away and
   dim. Scrolling in, the wall comes up out of the dark and closes in until it fills the screen. With a mouse it is
   dragged any way, on touch screens sideways. On hover a viewfinder frames the card while its clip plays.
   js/arbejde.js builds the wall (.is-live) from the list in the page; without the script the list is a plain grid. */

.work, .work-spacer { position: relative; z-index: 1; background: #050A0B; color: var(--creme); }
/* Lysene slukkes: going on down from Rune i midten, the dark the wall begins in rises up over it. A dark "curtain"
   (a 55vh eased fade, then 100vh solid) starts at the top of the wall, and js/overgang.js lifts it off the wall's
   top twice as fast as the page scrolls (--mork-y), so the screen above the wall is all dark by the time the wall
   is halfway up; scrolled back up, the light comes back the same way. Without the script there is none (a plain
   edge). */
.work::before, .work-spacer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 155vh; pointer-events: none;
  visibility: var(--mork, hidden); transform: translateY(var(--mork-y, 0px));
  background: linear-gradient(180deg,
    rgba(5,10,11,0) 0,
    rgba(5,10,11,.04) 4.4%,
    rgba(5,10,11,.16) 8.9%,
    rgba(5,10,11,.33) 13.3%,
    rgba(5,10,11,.5) 17.7%,
    rgba(5,10,11,.67) 22.2%,
    rgba(5,10,11,.84) 26.6%,
    rgba(5,10,11,.96) 31%,
    #050A0B 35.5%);
}
.work-head { position: relative; z-index: 3; padding: 56px clamp(20px, 4vw, 56px) 28px; pointer-events: none; }
.work-title { margin: 0; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(48px, 5vw, 80px); line-height: .8; letter-spacing: .02em; text-transform: uppercase; }
.work-count { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,239,228,.6); }
.work-count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(212,238,106,.7); }

/* Without the script: a plain grid */
.work-view { position: relative; }
.work-plane { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0 clamp(20px, 4vw, 56px) 40px; list-style: none; }
.work-card { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r, 16px); overflow: hidden; background: #0E1718; color: var(--creme); container-type: inline-size; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); -webkit-user-drag: none; }
.work-card img, .work-video { position: absolute; inset: 0; width: 100%; height: 100%; margin: auto; object-fit: cover; -webkit-user-drag: none; }
.work-fill { transform: scale(1.15); }
/* The film in its own format: longform letterboxed, shortform and stills upright, each centred */
.work-card[data-format="longform"] :is(.work-img, .work-video) { height: auto; aspect-ratio: 2.39; }
.work-card[data-format="shortform"] :is(.work-img, .work-video) { width: auto; aspect-ratio: 9 / 16; }
.work-card[data-format="stills"] .work-img { width: auto; aspect-ratio: 4 / 5; }
.work-img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-img { transform: scale(1.04); }
.work-video { opacity: 0; transition: opacity .25s ease; }
.work-card.is-playing .work-video { opacity: 1; }
/* Glass: a bright rim, light catching the top edge, a hint of colour fringing at the sides */
.work-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(165deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 26%);
  box-shadow: inset 0 0 0 1px rgba(243,239,228,.16), inset 0 1.5px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.08),
    inset 4px 0 8px -5px rgba(255,96,150,.5), inset -4px 0 8px -5px rgba(96,214,255,.5), inset 0 0 30px rgba(255,255,255,.06);
}
/* The viewfinder: four corners close in around the card on hover */
.work-card::before {
  --c: rgba(243,239,228,.92); --l: 5cqw; --t: 1.5px;
  content: ''; position: absolute; inset: 3.5cqw; z-index: 4; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.06); transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.work-card:hover::before, .work-card:focus-visible::before, .work-card.is-focus::before { opacity: 1; transform: none; }
.work-card:focus-visible, .work-card.is-focus { outline: 2px solid var(--lime); outline-offset: 4px; }
.work-tag { position: absolute; top: 5.5cqw; left: 5.5cqw; z-index: 2; display: inline-flex; align-items: center; gap: .7em; padding: .65em 1em .65em .8em; border: 1px solid rgba(243,239,228,.16); border-radius: 999px; background: rgba(5,10,11,.5); font-size: clamp(9px, 2.3cqw, 12px); font-weight: 500; line-height: 1; letter-spacing: .18em; text-transform: uppercase; }
.work-tag::before { content: ''; flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--lime); }
.work-card:hover .work-tag::before { animation: work-rec 1s steps(1) infinite; }
/* The client's mark, in the corner across from the format */
.work-card .work-client { inset: 4.5cqw 5cqw auto auto; z-index: 2; width: auto; height: clamp(24px, 10cqw, 56px); margin: 0; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(5,10,11,.5)); }
/* A wordmark (POWER's) is lower; on an upright card, too narrow for it beside the format, it stands under the format
   (the format's chip is 2.3 times its letters high) */
.work-card .work-client.is-wide { top: 5.5cqw; height: clamp(12px, 4.6cqw, 26px); }
.work-cell.is-upright .work-card .work-client.is-wide { inset: calc(5.5cqw + clamp(9px, 2.3cqw, 12px) * 2.3 + 2px + 9px) auto auto 5.5cqw; height: clamp(14px, 9cqw, 32px); }
@keyframes work-rec { 50% { opacity: .15; } }
.work-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: .5em; height: 62%; padding: 0 6cqw 5.5cqw; background: linear-gradient(180deg, rgba(5,10,11,0), rgba(5,10,11,.82)); }
.work-info b { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(20px, 10cqw, 72px); line-height: .84; letter-spacing: .02em; text-transform: uppercase; }
.work-info small { overflow: hidden; font-size: clamp(11px, 3cqw, 18px); letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; color: rgba(243,239,228,.74); }
.work-light, .work-hint, .work-cursor, .work-filter { display: none; }
.work-note { margin: 0; padding: 0 clamp(20px, 4vw, 56px) 40px; font-size: 12px; color: rgba(243,239,228,.42); }

/* ---- The wall (js/arbejde.js places each card in 3D and moves them) ---- */
.work.is-live { height: 100vh; height: 100svh; min-height: 520px; }
.work.is-live .work-head { position: absolute; top: 0; left: 0; z-index: 3; padding: clamp(24px, 4svh, 44px) clamp(20px, 3.6vw, 52px); }
.work.is-live .work-view { position: absolute; inset: 0; overflow: hidden; overflow: clip; perspective: var(--persp, 1400px); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.work.is-live.is-dragging .work-view { cursor: grabbing; }
/* The list stays in the page for screen readers and the keyboard; a focused project is brought to the middle */
.work.is-live .work-plane { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Scenen ligger i z=0 ligesom det forreste kort; uden pointer-events: none dækker den halvdelen af kortet ved klik. */
.work-stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.work-cell { position: absolute; top: 0; left: 0; backface-visibility: hidden; will-change: transform; pointer-events: auto; }
.work-cell > .work-card { width: 100%; height: 100%; aspect-ratio: auto; }
/* An upright film among the wide ones takes half a place (its cell is about 3:4, as wide as the script makes it),
   filled by its film, a little cut off top and bottom */
.work-cell.is-upright .work-card :is(.work-img, .work-video) { width: 100%; aspect-ratio: auto; }
.work-cell.is-upright .work-fill { display: none; }
/* The dark round the edges, closing in while the wall is still far off (--lr from the script) */
.work.is-live .work-light { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle var(--lr, 900px) at 50% 50%, rgba(5,10,11,0) 0, rgba(5,10,11,0) 38%, rgba(5,10,11,.55) 72%, #050A0B 100%); }
.work.is-live .work-view::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 200px; z-index: 2; background: linear-gradient(180deg, rgba(5,10,11,.8), rgba(5,10,11,0)); pointer-events: none; }
/* The formats, in a glass bar along the bottom */
.work.is-live .work-filter { display: flex; position: absolute; left: 50%; bottom: clamp(18px, 3.4svh, 34px); z-index: 4; gap: 2px; max-width: calc(100% - 24px); padding: 5px; overflow-x: auto; border: 1px solid rgba(243,239,228,.14); border-radius: 999px; background: rgba(16,25,26,.66); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); scrollbar-width: none; transform: translateX(-50%); }
.work-filter::-webkit-scrollbar { display: none; }
.work-filter button { flex: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(243,239,228,.78); font: 500 12px/38px 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.work-filter button[hidden] { display: none; }
.work-filter button sup { font-size: 9px; letter-spacing: .06em; color: rgba(243,239,228,.42); }
.work-filter button:hover { background: rgba(243,239,228,.08); color: var(--creme); }
.work-filter button[aria-pressed="true"] { background: var(--lime); color: var(--petrol-900); }
.work-filter button[aria-pressed="true"] sup { color: rgba(13,26,28,.55); }
.work-filter button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.work.is-live .work-note { position: absolute; top: clamp(24px, 4svh, 44px); right: clamp(20px, 3.6vw, 52px); z-index: 3; max-width: 24ch; padding: 0; text-align: right; line-height: 1.5; }
.work.is-live .work-hint { display: flex; position: absolute; left: 50%; bottom: calc(clamp(18px, 3.4svh, 34px) + 62px); z-index: 3; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(5,10,11,.62); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: rgba(243,239,228,.85); pointer-events: none; transform: translateX(-50%); transition: opacity .4s ease, transform .4s ease; }
.work-hint b { font-weight: 500; }
.work-hint span { color: var(--lime); animation: work-nudge 1.6s ease-in-out infinite; }
.work-hint span:last-child { animation-direction: reverse; }
.work.has-dragged .work-hint, .work.is-fit .work-hint { opacity: 0; transform: translate(-50%, 8px); }
@keyframes work-nudge { 50% { transform: translateX(-3px); } }
/* After a new filter the cards come up from the middle outwards (--d) */
.work.is-switching .work-stage { opacity: 0; transition: opacity .15s ease; }
.work.work-in .work-cell > .work-card { animation: work-in .5s cubic-bezier(.2,.8,.2,1) var(--d, 0ms) both; }
@keyframes work-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; } }
/* The pointer becomes a ring that says what a press does: drag the wall, or see the project */
.work.is-live.has-cursor .work-view, .work.is-live.has-cursor .work-card { cursor: none; }
.work.is-live.has-cursor .work-cursor { display: grid; position: absolute; top: 0; left: 0; z-index: 5; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1.5px solid rgba(243,239,228,.85); border-radius: 50%; font-size: 8.5px; font-weight: 500; letter-spacing: .14em; text-indent: .14em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), margin .25s cubic-bezier(.2,.8,.2,1); }
.work.is-live.has-cursor .work-cursor.is-on { opacity: 1; }
.work.is-live.has-cursor .work-cursor.is-card { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--lime); background: var(--lime); color: var(--petrol-900); }
.work.is-live.is-dragging .work-cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
/* On phones the wall drifts in the page; Udforsk opens it over the whole screen (from where the section is) to drag
   any way, Luk closes it. .work-spacer keeps the section's place (and its snap point) in the page meanwhile */
.work-open, .work-close { display: none; }
html.has-wall { overflow: hidden; }
.work.is-live.is-open { scroll-snap-align: none; position: fixed; inset: 0; z-index: 40; height: auto; min-height: 0; }
.work.is-live.is-open .work-view { touch-action: none; }
.work.is-live .work-filter { overscroll-behavior-x: contain; }
/* A few projects (a filter) are laid out once, as large as fits: nothing to drag, the ring only over a card */
.work.is-live.is-fit .work-view, .work.is-live.has-cursor.is-fit .work-view { cursor: default; }
.work.is-live.has-cursor.is-fit .work-cursor:not(.is-card) { opacity: 0; }

@media (max-width: 699px) {
  .work-head { padding: 48px 20px 20px; }
  .work-plane { grid-template-columns: minmax(0, 1fr); padding: 0 20px 32px; }
  .work-note { padding: 0 20px 40px; }
  .work.is-live .work-head { padding: 22px 20px; }
  .work.is-live .work-title { font-size: 44px; }
  .work.is-live .work-note { top: auto; right: auto; bottom: 86px; left: 20px; max-width: none; text-align: left; font-size: 11px; }
  .work.is-live .work-hint { bottom: 118px; }
  .work.is-live:not(.is-open) .work-hint { display: none; }
  /* In the page the wall is only a glimpse: it drifts on behind frosted glass, and Udforsk stands big in the middle
     (a tap anywhere on the wall opens it too, js/arbejde.js), since dragging it over the whole screen is the real
     thing. The filters wait for the open wall. A filter of a few projects lays them out plainly, with no glass. */
  /* The wall itself is blurred (Safari leaves the 3D cards out of a backdrop-filter), the dark laid over it */
  .work.is-live .work-view { transition: filter .3s ease; }
  .work.is-live:not(.is-open):not(.is-fit) .work-view { filter: blur(8px) saturate(1.1); }
  .work.is-live .work-view::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(120% 70% at 50% 52%, rgba(5,10,11,.3), rgba(5,10,11,.74)); opacity: 0; transition: opacity .3s ease; }
  .work.is-live:not(.is-open):not(.is-fit) .work-view::after { opacity: 1; }
  .work.is-live:not(.is-open):not(.is-fit) :is(.work-filter, .work-note) { display: none; }
  .work.is-live:not(.is-open):not(.is-fit) .work-open { display: flex; position: absolute; left: 50%; top: 52%; z-index: 4; flex-direction: column; align-items: center; gap: 16px; padding: 0; border: 0; background: none; color: var(--creme); transform: translate(-50%, -50%); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .work-open-key { display: inline-flex; align-items: center; gap: 12px; min-height: 68px; padding: 2px 34px 0 28px; border-radius: 999px; background: var(--lime); color: var(--petrol-900); font: 900 40px/1 'Smooch Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 24px 50px -16px rgba(0,0,0,.9); animation: work-call 2.4s ease-out infinite; }
  .work-open-key svg { width: 22px; height: 22px; margin-top: -2px; }
  .work-open small { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgba(243,239,228,.8); }
  .work-open:active .work-open-key { transform: scale(.97); }
  @keyframes work-call { 0% { box-shadow: 0 24px 50px -16px rgba(0,0,0,.9), 0 0 0 0 rgba(212,238,106,.5); } 70%, 100% { box-shadow: 0 24px 50px -16px rgba(0,0,0,.9), 0 0 0 18px rgba(212,238,106,0); } }
  .work.is-live.is-open .work-close { display: inline-flex; position: absolute; top: 22px; right: 20px; z-index: 4; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 12px; border: 1px solid rgba(243,239,228,.16); border-radius: 999px; background: rgba(16,25,26,.7); color: var(--creme); font: 500 12px/1 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .work-close span { font-size: 18px; line-height: 1; }
  .work-open:focus-visible, .work-close:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
  .work.is-live .work-filter { bottom: 18px; justify-content: flex-start; }
  .work-filter button { min-height: 36px; padding: 0 13px; font-size: 11px; line-height: 36px; }
}

/* ---------- Projekt ----------
   One project opened over the page, as on the wall it came from: the card flies up to the player (.project-flyer,
   from js/arbejde.js) while the wall goes dark behind it, then the rest comes in. The player keeps the project's
   format (16:9, shortform upright, stills 4:5) and is as large as the screen allows; the full film plays in it from
   YouTube. Beside it (below it on phones), more work to go on to. */

html.has-project { overflow: hidden; }
.work.is-live .work-stage { transition: opacity .45s ease; }
.work.is-away :is(.work-stage, .work-head, .work-filter, .work-note, .work-hint, .work-open, .work-close) { opacity: 0; transition: opacity .4s ease; }

.project { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 21vw, 300px); grid-template-rows: auto minmax(0, 1fr); gap: 18px clamp(24px, 3vw, 48px); padding: clamp(20px, 3.4svh, 36px) clamp(20px, 3.6vw, 52px) clamp(20px, 4svh, 40px); color: var(--creme); }
.project[hidden] { display: none; }
.project::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #050A0B; opacity: 0; transition: opacity .45s ease; }
.project.is-in::before { opacity: 1; }
.project-close, .project-meta, .project-note, .project-more-label, .project-more li { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.project.is-shown :is(.project-close, .project-meta, .project-note, .project-more-label, .project-more li) { opacity: 1; transform: none; }
.project.is-shown .project-meta { transition-delay: .05s; }
.project.is-shown .project-more-label { transition-delay: .1s; }
.project.is-shown .project-more li:nth-child(1) { transition-delay: .14s; }
.project.is-shown .project-more li:nth-child(2) { transition-delay: .2s; }
.project.is-shown .project-more li:nth-child(3) { transition-delay: .26s; }
.project-close { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 12px; border: 1px solid rgba(243,239,228,.16); border-radius: 999px; background: rgba(16,25,26,.7); color: var(--creme); font: 500 12px/1 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.project-close span { font-size: 18px; line-height: 1; }
.project-close:hover { border-color: rgba(243,239,228,.4); }
.project-close:focus-visible, .project-yt:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.project-main { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; min-height: 0; transition: opacity .15s ease; }
.project.is-swapping :is(.project-main) { opacity: 0; }
/* The player: a glass card the size the screen allows, in the project's own format */
.project-screen { width: 100%; }
.project-frame { width: min(100%, calc((100svh - 260px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: clamp(14px, 1.6vw, 24px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.project-frame[data-format="shortform"] { width: min(100%, calc((100svh - 260px) * 9 / 16)); aspect-ratio: 9 / 16; }
.project-frame[data-format="stills"] { width: min(100%, calc((100svh - 260px) * 4 / 5)); aspect-ratio: 4 / 5; }
.project-frame::before { display: none; }
.project-frame::after { background: none; }
.project-frame:hover .work-img { transform: none; }
.project-frame.is-rising { animation: project-rise .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes project-rise { from { opacity: 0; transform: scale(.94); } to { opacity: 1; } }
.project-media { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity .4s ease; }
.project-media.is-on { opacity: 1; }
.project-flyer { position: fixed; z-index: 60; margin: 0; aspect-ratio: auto; pointer-events: none; }
.project-flyer::before { display: none; }

.project-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: min(100%, calc((100svh - 260px) * 16 / 9)); margin-top: 18px; }
.project-tag { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,239,228,.6); }
.project-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.project-title { margin: 0; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(36px, 3.6vw, 56px); line-height: .84; letter-spacing: .02em; text-transform: uppercase; }
.project-sub { margin: 8px 0 0; font-size: 14px; color: rgba(243,239,228,.7); }
.project-client { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,239,228,.6); }
.project-client[hidden] { display: none; }
.project-client img { width: auto; height: 30px; }
.project-client img.is-wide { height: 18px; }
.project-yt { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid rgba(243,239,228,.18); border-radius: 999px; background: rgba(16,25,26,.7); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.project-yt[hidden] { display: none; }
.project-yt span { color: var(--lime); }
.project-note { margin: 10px 0 0; font-size: 12px; color: rgba(243,239,228,.42); }
/* Upright films (shortform, stills) stand taller, with their words beside them instead of below */
@media (min-width: 700px) {
  .project-main.is-upright { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; column-gap: clamp(24px, 3vw, 44px); align-items: end; }
  .is-upright .project-screen { grid-row: 1 / 4; width: auto; }
  .is-upright .project-frame[data-format="shortform"] { width: calc((100svh - 140px) * 9 / 16); }
  .is-upright .project-frame[data-format="stills"] { width: min(calc((100svh - 140px) * 4 / 5), 46vw); }
  .is-upright .project-meta { flex-direction: column; align-items: flex-start; width: auto; margin: 0; }
}

.project-more { grid-column: 2; grid-row: 1 / 3; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.project-more::-webkit-scrollbar { display: none; }
.project-more-label { margin: 10px 0 16px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,239,228,.6); }
.project-more ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.project-more .work-card { --r: 16px; }
.project-more .work-info b { font-size: clamp(18px, 10cqw, 34px); }

@media (max-width: 699px) {
  .project { display: block; overflow-y: auto; padding: 16px 16px 40px; }
  .project-close { margin-bottom: 14px; }
  .project-frame, .project-meta { width: 100%; }
  .project-frame[data-format="shortform"] { width: min(100%, calc((100svh - 240px) * 9 / 16)); margin: 0 auto; }
  .project-frame[data-format="stills"] { width: min(100%, calc((100svh - 240px) * 4 / 5)); margin: 0 auto; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .project-title { font-size: 40px; }
  .project-more { margin-top: 32px; overflow: visible; }
  .project-more ul { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .project-more ul::-webkit-scrollbar { display: none; }
  .project-more li { flex: 0 0 68%; }
}

/* A low screen (a phone turned sideways): the film takes the height, the words follow below and scroll in */
@media (min-width: 700px) and (max-height: 560px) {
  .project { overflow-y: auto; }
  .project-frame, .project-meta { width: min(100%, calc((100svh - 96px) * 16 / 9)); }
  .project-meta { padding-bottom: 20px; }
  .is-upright .project-frame[data-format="shortform"] { width: calc((100svh - 96px) * 9 / 16); }
  .is-upright .project-frame[data-format="stills"] { width: min(calc((100svh - 96px) * 4 / 5), 46vw); }
}

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

@media (max-width: 600px) {
  .brands { padding: 32px 0; }
  .brands-label { margin-bottom: 20px; padding: 0 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  .brands-track li, .brands-track .brand-logo, .brands-edge { transition: none; }
  .rune-links b, .rune-links i { transition: none; }
  .rune-head img { animation: none !important; }
  .work-img, .work-card::before, .work-hint span, .work-open-key { transition: none; animation: none; }
  .project::before, .project-close, .project-meta, .project-note, .project-more-label, .project-more li, .project-media { transition: none; }
  .work-card:hover .work-img { transform: none; }
}

/* ---------- The pizza: the mouse in Rune's section (js/rune.js) ---------- */
.rune.has-pizza, .rune.has-pizza * { cursor: none !important; }
.pizza-cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 52px; height: 52px; pointer-events: none; opacity: 0; transform-origin: 3.25px 3.25px; will-change: transform; transition: opacity .16s ease .04s; }
/* In and out from its tip: as the mouse crosses into the section the slice pops up out of the point, small and turned
   back, to its size with a little overshoot (.32 s); leaving, it shrinks back into the point (.16 s). Over a link a
   little bigger */
.pizza-cursor img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(13,26,28,.25)); transform-origin: 6% 6%; transform: scale(.2) rotate(-35deg); transition: transform .16s cubic-bezier(.5,0,.75,0); }
.pizza-cursor.is-on { opacity: 1; transition: opacity .1s ease; }
.pizza-cursor.is-on img { transform: none; transition: transform .32s cubic-bezier(.3,1.6,.5,1); }
.pizza-cursor.is-on.is-link img { transform: scale(1.15); transition-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .pizza-cursor img, .pizza-cursor.is-on img { transform: none; transition: none; } }
html.has-menu .pizza-cursor, html.has-wall .pizza-cursor, html.has-project .pizza-cursor { opacity: 0; }
