/* MISSPRYM.md – designspråk efter human-md.ai, innehåll från Miss Prym */

:root {
  --ink: #201e1f;
  --paper: #f4efe8;
  --accent: #fc4109;
  --pink: #ffabc8;
  --purple: #e7bfff;
  --lilac: #cb9cf8;
  --blue: #5d9dc5;
  --cobalt: #0b41c2;
  --ocker: #c7963c;
  --green: #1c3d24;
  --mint: #69b488;
  --tomato: #e83729;
  --yellow: #f8d867;
  --floor: #d1c2af;
  --card: #f3ead8;
  --cardred: #d8402c;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Cutive Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 2.4vw, 40px);
  --top: max(15vh, 112px);
  --fs-word: clamp(48px, 7vw, 140px);
  --fs-say: clamp(34px, 5vw, 100px);
  --fs-head: clamp(30px, 4.6vw, 92px);
  --fs-cap: clamp(20px, 2.4vw, 46px);
  --fs-note: clamp(16px, 1.4vw, 24px);
  --fs-mono: clamp(14px, 1.3vw, 21px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--ink); }
p, h1, h2, h3, ul, ol, blockquote { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.md { font-family: var(--f-mono); color: var(--accent); font-weight: 400; letter-spacing: 0; }
.hl-human { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--pink); font-size: 1.08em; line-height: .9; }
.hl-machine { font-family: var(--f-mono); letter-spacing: -.07em; font-size: .86em; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ---------- skip / läsläge ---------- */
.skip {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-mono); font-size: 13px; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.read { display: none; }
html.reading .read {
  display: block; max-width: 40em; margin: 0 auto;
  padding: 18vh var(--pad) 14vh;
  font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; letter-spacing: -.005em;
}
html.reading #stage, html.reading #scroll, html.reading .dot, html.reading .hud-watch, html.reading .hud-crumb { display: none !important; }
.read__by, .read blockquote, .read .mono { font-family: var(--f-mono); }
.read h1 { font-weight: 700; letter-spacing: -.04em; font-size: clamp(56px, 11vw, 168px); line-height: .9; margin: .2em 0 .4em; }
.read h1 .md2 { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.read h2, .read h3 { color: var(--accent); font-weight: 700; letter-spacing: -.015em; margin: 2.4em 0 .8em; }
.read em { font-family: var(--f-serif); font-size: 1.12em; line-height: 1; }
.read p, .read ul { margin: 0 0 1.2em; }
.read ul { padding-left: 1.4em; }
.read hr { border: 0; border-top: 1px solid; opacity: .4; margin: 3em 0; }
.read a { text-underline-offset: 3px; }
.read__back { margin-top: 4em; font-family: var(--f-mono); }

/* ---------- HUD ---------- */
body { --hud-fg: var(--paper); --hud-bg: var(--ink); }
body[data-hud="light"] { --hud-fg: var(--ink); --hud-bg: var(--paper); }
body.index-open { --hud-fg: var(--ink); }

.hud {
  position: fixed; z-index: 60;
  top: max(var(--pad), 22px); left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--hud-fg); pointer-events: none;
  transition: color .6s var(--ease);
}
.hud > * { pointer-events: auto; }
.hud__l, .hud__r { display: flex; align-items: center; gap: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: .6em;
  height: 42px; padding: 0 17px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
}
.hud-file .md { color: inherit; font-family: inherit; font-weight: inherit; }
.hud-file__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hud-crumb {
  border-color: currentColor; opacity: 0; max-width: 0; padding: 0; border-width: 0; overflow: hidden;
  transition: max-width .9s var(--ease), padding .9s var(--ease), opacity .5s;
}
.hud-crumb.is-on { opacity: 1; max-width: 480px; padding: 0 17px; border-width: 1px; }
.hud-crumb .md { color: inherit; opacity: .55; }
.hud-watch { padding-right: 15px; }
.hud-watch:hover .hud-watch__t, .hud-watch[aria-pressed="true"] .hud-watch__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hud-index { background: var(--pink); color: var(--ink); gap: 12px; }
.hud-index__i { display: grid; gap: 4px; width: 14px; }
.hud-index__i i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
body.index-open .hud-index__i i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.index-open .hud-index__i i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
body.index-open .hud-watch { opacity: 0; pointer-events: none; }

.hud-mark { display: block; width: 58px; height: 58px; margin: -8px 6px -8px 0; }
.hud-mark svg { width: 100%; height: 100%; overflow: visible; }
.hud-mark__ring { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.hud-mark__lid { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.hud-mark__iris { fill: var(--cobalt); }
.hud-mark__pupil { fill: var(--ink); }
.hud-mark__iris, .hud-mark__pupil { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .25s var(--ease); }

@media (max-width: 760px) {
  .hud-crumb { display: none; }
  .pill { height: 36px; padding: 0 13px; font-size: 13px; }
  .hud-mark { width: 46px; height: 46px; margin: -5px 4px -5px 0; }
}

/* ---------- prick & korn ---------- */
.dot {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); pointer-events: none;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  will-change: transform;
}
.dot.is-big { width: 46px; height: 46px; margin: -23px 0 0 -23px; mix-blend-mode: multiply; }
@media (pointer: coarse) { .dot { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6, end) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---------- scen (fast) ---------- */
#stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: var(--ink); }
#scroll { position: relative; width: 1px; pointer-events: none; }

.L { position: absolute; inset: 0; visibility: hidden; overflow: hidden; color: var(--paper); }
.L.is-on { visibility: visible; }
.L.is-top { z-index: 3; }
.L.is-under { z-index: 2; }
.wipe-ring { position: absolute; inset: 0; background: var(--accent); z-index: 2; visibility: hidden; }

/* textur-vägg (kobolt som standard) */
.wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(80% 60% at 85% 100%, rgba(0,0,0,.16), transparent 70%),
    var(--wall, var(--cobalt));
}
.wall::after {
  content: ""; position: absolute; inset: 0; opacity: .38; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.04' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 2 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--fh, 26vh);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 168px),
    linear-gradient(rgba(0,0,0,.1), transparent 30%),
    var(--floor, #d1c2af);
}
.floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(rgba(0,0,0,.18), transparent); }
.cloth {
  position: absolute; left: -2vw; right: -2vw; bottom: 0; height: var(--ch, 30vh);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 5vw, rgba(0,0,0,.05) 6vw, rgba(255,255,255,.4) 7.5vw, rgba(0,0,0,0) 9vw),
    linear-gradient(#ffffff, #ece8e2 40%, #f7f4ef);
  box-shadow: 0 -2px 0 rgba(0,0,0,.06);
}
.cloth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.2vh; background: linear-gradient(#fff, #f1ede7); border-bottom: 1px solid rgba(0,0,0,.06); }

/* text */
.ln-mask { display: block; overflow: hidden; padding: .2em .12em .16em; margin: -.2em -.12em -.16em; }
.ln { display: block; transform: translateY(105%); will-change: transform; }
.lab { position: absolute; left: var(--pad); top: calc(var(--top) - 2.2em); font-weight: 700; font-size: max(13px, .9vw); letter-spacing: -.01em; }
.lab .md { margin-right: .35em; }
.lead {
  position: absolute; left: var(--pad); top: var(--top); max-width: min(92vw, 17em);
  font-size: var(--fs-say); font-weight: 300; letter-spacing: -.035em; line-height: 1.02;
}
.lead--sm { font-size: var(--fs-cap); letter-spacing: -.018em; line-height: 1.12; max-width: min(88vw, 19em); }
.lead--ink { color: var(--ink); }
.chap { position: absolute; left: var(--pad); top: var(--top); font-weight: 700; font-size: var(--fs-say); letter-spacing: -.035em; line-height: 1; max-width: 16ch; }
.chap .md { font-size: .5em; vertical-align: .3em; margin-right: .3em; }
.chap .hl-human { color: var(--accent); }
.mono { font-family: var(--f-mono); }

/* --- open --- */
.L-open .wall { bottom: 26vh; }
.cam { position: absolute; inset: 0; transform-origin: 63% 56%; will-change: transform; }
.o-title {
  position: absolute; left: 50%; top: 29vh; transform: translateX(-50%);
  display: flex; align-items: baseline; white-space: nowrap;
  font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variation-settings: "opsz" 96;
  font-size: clamp(54px, 11.4vw, 230px); color: var(--paper);
}
.o-title .ch { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
body:not(.is-loading) .o-title .ch { transform: none; }
.o-mask { display: inline-flex; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.o-title__dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--accent); margin: 0 .06em 0 .08em; }
.o-title__md { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; font-size: .86em; }
.o-frame {
  position: absolute; left: 27vw; top: 50vh; width: clamp(120px, 13vw, 220px); aspect-ratio: 4 / 3;
  background: var(--card); padding: clamp(7px, .7vw, 12px); transform: rotate(2.5deg);
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}
.o-frame img, .o-frame video { display: block; width: 100%; height: 100%; object-fit: cover; outline: 1.5px solid var(--cardred); outline-offset: -1.5px; background: #000; }
.o-frame::before { content: ""; position: absolute; left: 50%; top: -38px; width: 1px; height: 38px; background: rgba(0,0,0,.45); }
.o-frame::after { content: ""; position: absolute; left: calc(50% - 4px); top: -44px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.o-shadow { position: absolute; left: 63vw; bottom: 26vh; width: 22vw; height: 3vh; border-radius: 50%; background: rgba(0,0,0,.18); filter: blur(10px); transform: translateY(50%); }
.o-quote {
  position: absolute; left: clamp(20px, 24vw, 460px); bottom: 7vh;
  font-family: var(--f-mono); color: var(--ink); font-size: clamp(12px, 1.05vw, 17px); letter-spacing: .04em; line-height: 1.2;
}
.o-quote p { margin: 0 0 .47em; }
.o-quote .md { margin-right: .6em; }
.o-meta { position: absolute; bottom: 3.2vh; font-family: var(--f-mono); color: var(--ink); font-size: clamp(10px, .78vw, 13px); letter-spacing: .12em; }
.o-meta--l { left: var(--pad); } .o-meta--r { right: var(--pad); }
.o-hint {
  position: absolute; right: calc(var(--pad) + 2vw); bottom: 30vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; color: var(--paper); opacity: .8;
}
.o-hint i, .hint-line { display: block; width: 1px; height: 42px; background: currentColor; animation: hint 2.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes hint {
  0% { transform-origin: 50% 0; transform: scaleY(0); } 45% { transform-origin: 50% 0; transform: scaleY(1); }
  55% { transform-origin: 50% 100%; transform: scaleY(1); } 100% { transform-origin: 50% 100%; transform: scaleY(0); }
}

/* --- jätteord --- */
.giant {
  position: absolute; left: 0; right: 0; bottom: -.16em; text-align: center; white-space: nowrap;
  font-weight: 800; letter-spacing: -.06em; line-height: .8; font-variation-settings: "opsz" 96;
  font-size: clamp(120px, 30vw, 620px); color: var(--pink); will-change: transform;
}
.giant .ch { display: inline-block; will-change: transform; }
.after { display: block; }

/* --- bord med piller --- */
.L-expertise { --wall: #ffabc8; }
.pills { position: absolute; left: 0; right: 0; bottom: 30vh; height: 0; }
.tpill {
  position: absolute; left: 0; bottom: 0; white-space: nowrap; will-change: transform;
  font-family: var(--f-serif); font-style: italic; color: var(--ink); font-size: clamp(22px, 2.7vw, 54px); letter-spacing: -.02em; line-height: 1.1;
  background: var(--paper); border-radius: 999px; padding: .02em .42em .1em;
  box-shadow: 0 .18em .3em rgba(80, 30, 40, .18);
}
.tpill:nth-child(3n) { background: #fff; }
.tpill:nth-child(4n) { background: var(--yellow); }

/* --- centrerad mening (ord tänds) --- */
.say {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%);
  max-width: 15em; margin: 0 auto; text-align: center;
  font-size: clamp(38px, min(6.4vw, 11vh), 140px); font-weight: 300; letter-spacing: -.04em; line-height: 1.02;
}
.w { --lit: 0; display: inline-block; color: color-mix(in srgb, var(--paper) calc(var(--lit) * 100%), #5578dc); }
.w .hl-human { color: color-mix(in srgb, var(--pink) calc(var(--lit) * 100%), #5578dc); }
.say-lab { display: block; margin-bottom: 1.2em; font-size: max(14px, .17em); font-weight: 700; letter-spacing: -.01em; }
.say-lab .md { color: var(--pink); margin-right: .35em; }

/* --- citat-fragment --- */
.frag {
  position: absolute; left: 0; right: 0; top: 50%; text-align: center; white-space: nowrap;
  font-family: var(--f-serif); letter-spacing: -.02em; line-height: .9; font-size: clamp(48px, 9.4vw, 210px);
  color: var(--pink); transform: translateY(-50%); will-change: opacity, transform;
}
.frag:nth-child(even) { color: var(--purple); }
.frag-end { color: var(--paper); }
.frag-end .p { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--accent); margin-left: .05em; }
.q-cite {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 8vh; max-width: 46em; margin: 0 auto;
  text-align: center; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.45;
}
.q-cite cite { display: block; margin-top: .7em; font-style: normal; color: var(--pink); }
@media (orientation: portrait) { .frag { white-space: normal; padding: 0 var(--pad); font-size: 14vw; } }

/* --- långt bord som panoreras --- */
.L-who { --wall: var(--ocker); }
.strip { position: absolute; left: 0; bottom: 0; height: 100%; display: flex; align-items: flex-end; gap: 7vw; padding: 0 30vw 0 46vw; will-change: transform; }
.easel {
  position: relative; flex: none; width: clamp(150px, 19vw, 330px); margin-bottom: calc(30vh - 2px);
  background: var(--card); padding: clamp(8px, .8vw, 13px) clamp(8px, .8vw, 13px) clamp(30px, 3vw, 52px);
  border-radius: 6px; transform: rotate(var(--a)); transform-origin: 50% 100%;
  box-shadow: 0 14px 26px rgba(70,40,0,.3);
}
.easel img { width: 100%; aspect-ratio: 1; object-fit: cover; outline: 1.5px solid var(--cardred); outline-offset: -1.5px; background: var(--room); }
.easel span { position: absolute; left: clamp(9px, .9vw, 15px); bottom: clamp(8px, .7vw, 12px); font-family: var(--f-serif); font-style: italic; color: var(--cardred); font-size: clamp(16px, 1.6vw, 28px); line-height: 1; }
.easel b { position: absolute; left: clamp(32px, 3.2vw, 56px); right: 8px; bottom: clamp(10px, .9vw, 15px); font-weight: 700; font-size: clamp(10px, .85vw, 14px); line-height: 1.15; color: var(--ink); }
.L-who .cap-wrap { position: absolute; right: var(--pad); top: var(--top); width: min(40vw, 21em); }
.L-who .cap { position: absolute; left: 0; top: 0; font-size: var(--fs-note); line-height: 1.32; letter-spacing: -.01em; color: var(--ink); will-change: opacity, transform; }
.L-who .chap { color: var(--ink); }
@media (orientation: portrait) { .L-who .cap-wrap { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--top) + 4.4 * var(--fs-say)); } }

/* --- from → to-rum --- */
.L-shift { --wall: var(--room); }
.L-shift .floor { --fh: 18vh; }
.sh-img {
  position: absolute; right: 4vw; bottom: 18vh; height: min(74vh, 62vw); aspect-ratio: var(--ar);
  object-fit: contain; will-change: transform; transform-origin: 50% 100%;
}
.sh-shadow { position: absolute; right: 6vw; bottom: 18vh; width: 40vw; height: 3vh; border-radius: 50%; background: rgba(0,0,0,.22); filter: blur(12px); transform: translateY(50%); }
.sh-title { position: absolute; left: var(--pad); top: var(--top); font-weight: 700; color: var(--ink); font-size: var(--fs-say); letter-spacing: -.035em; line-height: 1; max-width: 9em; }
.sh-title .num { margin-right: .1em; }
.sh-x { position: relative; display: inline-block; }
.sh-x svg { position: absolute; left: -3%; top: 52%; width: 106%; height: .5em; overflow: visible; transform: translateY(-50%); }
.sh-x path { fill: none; stroke: var(--accent); stroke-width: clamp(4px, .55vw, 10px); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sh-to { position: absolute; left: var(--pad); top: calc(var(--top) + 2.4 * var(--fs-say)); font-family: var(--f-serif); font-style: italic; color: var(--ink); font-size: calc(var(--fs-word) * 1.25); letter-spacing: -.02em; line-height: 1; }
.sh-to i { display: inline-block; width: .18em; height: .18em; border-radius: 50%; background: var(--accent); margin-left: .04em; }
.sh-p { position: absolute; left: var(--pad); bottom: calc(18vh + 4vh); width: min(40vw, 27em); font-size: clamp(15px, 1.25vw, 22px); line-height: 1.32; letter-spacing: -.01em; color: var(--ink); }
.sh-n { position: absolute; right: var(--pad); bottom: 4vh; font-family: var(--f-mono); color: var(--ink); font-size: 12px; letter-spacing: .12em; }
@media (orientation: portrait) {
  .sh-img { right: -6vw; height: 46vh; }
  .sh-to { top: calc(var(--top) + 3.4 * var(--fs-say)); }
  .sh-p { width: auto; right: var(--pad); bottom: 3vh; font-size: 14px; background: color-mix(in srgb, var(--room) 86%, transparent); padding: .6em .7em; border-radius: 10px; }
}

/* --- what we do --- */
.L-what { background: var(--ink); }
.c2-item {
  position: absolute; left: 50%; top: 52%; width: min(88vw, 26em); transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.5; text-align: center; will-change: opacity, transform;
}
.c2-item h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--pink); font-size: var(--fs-say); letter-spacing: -.02em; line-height: 1; margin-bottom: .6em; }

/* --- work with us --- */
.L-work { --wall: #26512f; }
.L-work .floor { --floor: #ffabc8; --fh: 22vh; }
.bubbles { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--top) + 1.5 * var(--fs-say)); bottom: 26vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; align-items: end; }
.bubble {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); border-radius: 28px; padding: 20px 24px 24px;
  will-change: transform, opacity;
}
.bubble::after { content: ""; position: absolute; bottom: -11px; right: 26px; width: 20px; height: 20px; background: var(--paper); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg) skew(12deg, 12deg); }
.bubble h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 42px); letter-spacing: -.012em; line-height: 1.05; margin-bottom: .45em; }
.bubble p { font-size: clamp(13px, 1vw, 17px); line-height: 1.38; }
.bubble .go { display: inline-block; margin-top: .9em; font-family: var(--f-mono); color: var(--accent); }
.bubble:hover { background: #fff; }
.L-work .chap { color: var(--paper); }
.L-work .chap .hl-human { color: var(--pink); }
@media (orientation: portrait) {
  .bubbles { grid-template-columns: 1fr; gap: 14px; top: calc(var(--top) + 3.4 * var(--fs-say)); bottom: 6vh; align-content: start; }
  .bubble { padding: 12px 16px 14px; } .bubble p { display: none; }
}

/* --- labbet --- */
.L-lab { --wall: #ffc3e5; color: var(--ink); }
.L-lab .cloth { --ch: 22vh; }
.mgiant { position: absolute; left: 0; right: 0; top: 34vh; text-align: center; white-space: nowrap; color: var(--green); font-size: clamp(64px, 14vw, 300px); line-height: .9; letter-spacing: -.03em; }
.mgiant .ch { display: inline-block; will-change: transform; }
.mgiant .f1 { font-family: var(--f-display); font-weight: 800; }
.mgiant .f2 { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.mgiant .f3 { font-family: var(--f-mono); }
.lab-cards { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2vw; }
.lcard {
  position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 10px; padding: 12px 12px 14px;
  box-shadow: 0 6px 14px rgba(70,40,0,.18); will-change: transform, opacity; min-height: 13vh;
}
.lcard .n { font-family: var(--f-serif); font-style: italic; color: var(--cardred); font-size: clamp(18px, 1.6vw, 28px); line-height: 1; }
.lcard b { display: block; margin-top: .3em; font-size: clamp(13px, 1.05vw, 18px); letter-spacing: -.01em; }
.lcard p { margin-top: .4em; font-size: clamp(11px, .78vw, 13px); line-height: 1.35; }
.lcard:hover { transform: translateY(-6px) rotate(0deg) !important; background: #fff; }
.L-lab .lead { color: var(--ink); }
@media (orientation: portrait) {
  .mgiant { top: 40vh; font-size: 17vw; }
  .lab-cards { grid-template-columns: 1fr 1fr; gap: 8px; bottom: 3vh; } .lcard p { display: none; } .lcard { min-height: 0; padding: 8px 10px; }
}

/* --- event --- */
.L-events { background: var(--paper); color: var(--ink); }
.ev-date { position: absolute; left: var(--pad); top: calc(var(--top) + 6vh); font-family: var(--f-serif); font-style: italic; color: var(--accent); font-size: clamp(110px, 21vw, 420px); line-height: .8; letter-spacing: -.03em; will-change: transform; }
.ev-box { position: absolute; right: var(--pad); top: calc(var(--top) + 6vh); width: min(44vw, 30em); }
.ev-box h3 { font-weight: 700; font-size: var(--fs-cap); letter-spacing: -.02em; line-height: 1.05; margin-bottom: .5em; }
.ev-when { font-family: var(--f-mono); font-size: var(--fs-mono); margin-bottom: 1em; }
.ev-box p { font-size: var(--fs-note); line-height: 1.35; }
.ev-box .cta { margin-top: 1.1em; background: var(--ink); color: var(--paper); }
.ev-past { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4vw; border-top: 1px solid rgba(32,30,31,.25); padding-top: 1.4vh; }
.ev-past .d { display: block; font-family: var(--f-mono); color: var(--cardred); font-size: 13px; }
.ev-past .t { display: block; font-weight: 700; font-size: clamp(12px, 1vw, 16px); letter-spacing: -.01em; margin-top: .2em; }
.ev-past-h { position: absolute; left: var(--pad); bottom: calc(5vh + 9vh); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; }
@media (orientation: portrait) {
  .ev-date { top: calc(var(--top) + 3vh); } .ev-box { left: var(--pad); width: auto; top: calc(var(--top) + 18vh); }
  .ev-past { grid-template-columns: 1fr 1fr; } .ev-past li:nth-child(n+5) { display: none; } .ev-past-h { display: none; }
}

/* --- bibliotek --- */
.L-library { --wall: var(--green); }
.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 17vh; display: flex; align-items: flex-end; gap: 3px; padding: 0 var(--pad); }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #a67325; }
.spine { flex: none; width: var(--w); height: var(--h); background: var(--c); border-radius: 2px 2px 0 0; margin-bottom: 14px; will-change: transform; }
.L-library .say { top: 40%; }
.L-library .say .hl-human { color: var(--mint); }
.books-p { position: absolute; left: var(--pad); right: var(--pad); top: 66%; max-width: 38em; margin: 0 auto; text-align: center; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.45; }
.books-p a { color: var(--mint); }
@media (orientation: portrait) { .books-p { top: 62%; font-size: 13px; } }

/* --- kontakt --- */
.L-contact { background: #e65564; color: #ffd765; }
.L-contact .md { color: var(--paper); }
.L-contact .c-mail:hover { color: var(--paper); }
.c-lead { position: absolute; left: var(--pad); top: var(--top); width: min(88vw, 22em); font-size: var(--fs-cap); letter-spacing: -.018em; line-height: 1.12; }
.c-mail { position: absolute; left: var(--pad); bottom: 22vh; font-weight: 300; font-size: clamp(34px, 8vw, 170px); letter-spacing: -.045em; line-height: 1; text-decoration: none; white-space: nowrap; }
.c-mail:hover { font-family: var(--f-serif); font-style: italic; color: var(--pink); letter-spacing: -.02em; }
.c-row { position: absolute; left: var(--pad); bottom: 14vh; display: flex; flex-wrap: wrap; gap: .6em 3em; font-family: var(--f-mono); font-size: var(--fs-mono); }
.c-row a { text-underline-offset: 4px; }
.foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 3.5vh; display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font-family: var(--f-mono); font-size: 13px; }
.foot b { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 56px); letter-spacing: -.045em; }
.foot b span { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.foot button { text-decoration: underline; text-underline-offset: 4px; }
@media (orientation: portrait) { .c-mail { font-size: 8.2vw; bottom: 26vh; } .foot b { display: none; } }

.cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-decoration: none; background: var(--pink); color: var(--ink); }

/* ---------- index ---------- */
.index {
  position: fixed; inset: 0; z-index: 55; color: var(--ink);
  background: var(--ocker);
  clip-path: circle(0% at calc(100% - 64px) 44px);
  transition: clip-path .9s cubic-bezier(.65,0,.35,1);
}
.index::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 38px), radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.12), transparent); }
.index[hidden] { display: block; visibility: hidden; }
body.index-open .index { clip-path: circle(150% at calc(100% - 64px) 44px); visibility: visible; }
.index__track {
  --cw: min(calc((100vw - 94px) / 6.6), calc((100vh - 180px) / 3.3)); --u: calc(var(--cw) / 156);
  position: absolute; inset: 0; overflow: hidden auto; scrollbar-width: none;
  display: grid; grid-template-columns: repeat(6, var(--cw)); column-gap: calc(18 * var(--u)); row-gap: calc(40 * var(--u));
  place-content: center; padding: 120px 0 50px;
}
.index__track::-webkit-scrollbar { display: none; }
.icard {
  position: relative; width: var(--cw); height: calc(236 * var(--u)); text-decoration: none; color: inherit; perspective: 1400px;
  transform: rotate(var(--a)); transition: transform .5s var(--ease);
}
.icard__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.icard:hover .icard__in, .icard:focus-visible .icard__in { transform: rotateY(180deg); }
.icard__face, .icard__back { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.icard__back { position: absolute; inset: 0; border-radius: calc(12 * var(--u)); background: var(--room); box-shadow: inset 0 0 0 calc(9 * var(--u)) var(--card); transform: rotateY(180deg); overflow: hidden; }
.icard__file { display: block; padding: calc(18 * var(--u)) calc(16 * var(--u)); font-family: var(--f-mono); font-size: calc(9 * var(--u)); line-height: 1.45; color: var(--ink); white-space: pre-wrap; }
.icard:hover, .icard:focus-visible { transform: translateY(calc(-8 * var(--u))) scale(1.06); z-index: 2; outline: none; }
.icard__face { position: absolute; inset: 0; background: var(--card); border-radius: calc(12 * var(--u)); overflow: hidden; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(70,40,0,.18); }
.icard:hover .icard__face { box-shadow: 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(70,40,0,.28); }
.icard__pic { position: absolute; left: calc(9 * var(--u)); top: calc(9 * var(--u)); width: calc(138 * var(--u)); height: calc(132 * var(--u)); background: var(--room, var(--pink)); overflow: hidden; display: grid; place-items: center; }
.icard__pic::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--cardred); }
.icard__pic img { width: 100%; height: 100%; object-fit: cover; }
.icard__glyph { font-family: var(--f-serif); font-style: italic; font-size: calc(64 * var(--u)); color: var(--ink); line-height: 1; }
.icard__glyph.mono { font-family: var(--f-mono); font-style: normal; font-size: calc(40 * var(--u)); color: var(--accent); }
.icard__n { position: absolute; left: calc(11 * var(--u)); top: calc(141 * var(--u)); font-family: var(--f-serif); font-style: italic; color: var(--cardred); font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
.icard__t { position: absolute; left: calc(11 * var(--u)); right: calc(11 * var(--u)); top: calc(173 * var(--u)); font-weight: 700; font-size: calc(11.5 * var(--u)); line-height: calc(14 * var(--u)); letter-spacing: -.005em; }
.icard__dot { position: absolute; left: 50%; top: calc(-16 * var(--u) - 7px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); opacity: 0; }
.icard.is-here .icard__dot { opacity: 1; }
@media (max-width: 1130px), (max-height: 560px) {
  .index__track { --cw: min(calc((100vw - 2 * var(--pad)) / 4.27), 190px); grid-template-columns: repeat(4, var(--cw)); row-gap: calc(24 * var(--u)); align-content: start; padding: 34px 0 60px; top: 92px; }
}
@media (max-width: 600px) {
  .index__track { --cw: calc((100vw - 52px) / 2.09); grid-template-columns: repeat(2, var(--cw)); top: 84px; }
}

/* ---------- .md-fönster ---------- */
.file { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 72px var(--pad) 40px; }
.file[hidden] { display: none; }
.file__scrim { position: absolute; inset: 0; background: rgba(16,14,15,.62); }
.file__win { position: relative; width: min(820px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; background: #0b0b0b; color: #e6e2db; border: 1px solid #2b2a29; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.file__bar, .file__text { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.file__bar { flex: none; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 18px; border-bottom: 1px solid #222120; color: #8d8a85; font-size: 13px; }
.file__name { margin-right: auto; color: #e6e2db; }
.file__btn { height: 30px; padding: 0 10px; border-radius: 6px; color: #8d8a85; font-size: 13px; }
.file__btn:hover, .file__btn:focus-visible { background: #1c1b1a; color: #e6e2db; outline: none; }
.file__text { flex: auto; margin: 0; padding: 26px 34px 64px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: break-word; font-size: 14px; line-height: 1.65; outline: none; }
.file__text .h { color: var(--accent); }
.file__text .q { color: var(--pink); }
@media (max-width: 600px) { .file { padding: 64px 10px 10px; } .file__text { padding: 18px 18px 48px; font-size: 12.5px; } }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .ln, .o-title .ch { transition: none; transform: none; }
}

/* ---------- figurer från Figma ---------- */
.fig { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 16 / 9; pointer-events: none; }
.pc { position: absolute; max-width: none; will-change: transform; transform-origin: 50% 100%; }
.a-top { transform-origin: 60% 0; }
.a-sc { transform-origin: 30% 50%; filter: drop-shadow(0 6px 6px rgba(80,20,20,.18)); }
.a-free { transform-origin: 20% 90%; }
.a-woman { transform-origin: 70% 100%; }
.a-net { transform-origin: 60% 60%; }
.a-flasks { transform-origin: 50% 100%; }
.bub { position: absolute; top: 40%; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.18); opacity: 0; }
@media (orientation: portrait) { .fig { height: 60%; } .L-shift .sh-to { z-index: 1; } }

.roll { flex: none; width: clamp(160px, 20vw, 340px); aspect-ratio: 1; margin: 0 0 calc(30vh - 6px) 0; will-change: transform; filter: drop-shadow(0 18px 18px rgba(70,40,0,.28)); }
.roll img { width: 100%; height: 100%; }

.cradle { position: absolute; right: 3vw; top: 0; height: 58vh; width: min(34vw, 50vh); display: flex; justify-content: center; will-change: transform; }
.pend { position: relative; width: 25%; height: 100%; transform-origin: 50% 0; }
.pend i { position: absolute; left: 50%; top: 0; bottom: 50%; width: 1.5px; background: #ffd765; transform: translateX(-50%); }
.pend b { position: absolute; left: 1%; right: 1%; top: 50%; aspect-ratio: 1; border-radius: 50%; background: #ffd765; transform: translateY(-50%); }
@media (orientation: portrait) { .cradle { right: 6vw; height: 34vh; width: 60vw; opacity: .9; } }

/* nätverksrummet: fåglar bakom bordet */
.L-shift .cloth { --ch: 30vh; }
.balloon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bal-str { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .7; }
.bal-b { fill: var(--tomato); }
.bal-h { fill: rgba(255,255,255,.35); }
.bal-k { fill: #b4231a; }
.a-crow, .a-owl { transform-origin: 50% 100%; }
.a-robin, .a-robin2 { transform-origin: 50% 90%; }
.L-shift .cloth ~ .fig { z-index: 1; }

/* statyerna på piedestaler i öppningen */
.statue { position: absolute; bottom: calc(26vh - 2px); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.statue img { height: min(46vh, 30vw); width: auto; transform-origin: 50% 100%; filter: drop-shadow(10px 18px 14px rgba(0,0,0,.28)); will-change: transform; }
.st-r img { height: min(56vh, 36vw); }
.plinth { display: block; width: 118%; height: 7vh; margin-top: -2px; background: linear-gradient(90deg, #bdb3a3, #e3dbcd 40%, #cfc6b7 70%, #a69b8a); box-shadow: 0 10px 18px rgba(0,0,0,.25); border-top: 4px solid #efe8dc; }
.st-l { left: 3vw; } .st-r { right: 3vw; }
@media (orientation: portrait) { .statue img { height: 24vh; } .st-r img { height: 30vh; } .plinth { height: 4vh; } .o-frame { left: 30vw; top: 50vh; } }

/* ögat blinkar */
.hud-mark__blink { fill: var(--card); transform-origin: 32px 17px; transform: scaleY(0); transition: transform .07s ease-in; }
.hud-mark__blink.is-on { transform: scaleY(1.02); }

/* what we do: tallrikar och kupor */
.L-what { background: none; color: var(--ink); --wall: #ffeaa6; }
.chap--ink { color: var(--ink); }
.plates { position: absolute; left: var(--pad); right: var(--pad); bottom: 12vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; align-items: end; }
.plate { position: relative; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.dish { display: block; width: min(22vw, 34vh); aspect-ratio: 1 / .32; border-radius: 50%; background: radial-gradient(closest-side, #ffd765 60%, #f0c54e 62%, #fff 64%, #ece6dc 92%, #d8d1c4); box-shadow: 0 10px 18px rgba(80,60,10,.2); }
.dish-t { position: absolute; left: 50%; top: calc(min(22vw, 34vh) * -.05); transform: translate(-50%, -50%); font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.8vw, 54px); white-space: nowrap; background: var(--paper); border-radius: 999px; padding: .02em .45em .1em; box-shadow: 0 .15em .3em rgba(80,60,10,.18); opacity: 0; }
.cl { position: absolute; left: 50%; bottom: calc(min(22vw, 34vh) * .14); width: min(19vw, 30vh); margin-left: calc(min(19vw, 30vh) / -2); transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 8px 10px rgba(60,50,30,.25)); }
.cl-svg { display: block; width: 100%; height: auto; }
.dish-p { position: absolute; top: calc(100% + 2vh); left: 0; right: 0; text-align: center; font-size: clamp(13px, .95vw, 16px); line-height: 1.4; opacity: 0; }
@media (orientation: portrait) {
  .plates { grid-template-columns: 1fr; gap: 7vh; bottom: auto; top: calc(var(--top) + 2.6 * var(--fs-say)); }
  .dish { width: 36vw; } .cl { width: 30vw; margin-left: -15vw; bottom: 4vw; } .dish-p { display: none; }
  .dish-t { top: -1vw; font-size: 20px; }
}

/* work with us: sammetsrep */
.rope { position: absolute; left: 50%; bottom: 4vh; width: min(70vw, 900px); transform: translateX(-50%); overflow: visible; pointer-events: none; }
@media (orientation: portrait) { .rope { width: 92vw; bottom: 2vh; } }

/* labbet: kugghjul under ytan */
.gear { position: absolute; fill: #e4a2c6; stroke: rgba(28,61,36,.25); stroke-width: 2; will-change: transform; }
.gear circle { fill: #ffc3e5; }
.g1 { width: 34vh; left: -8vh; bottom: 6vh; }
.g2 { width: 22vh; left: 21vh; bottom: 24vh; }
.g3 { width: 40vh; right: -12vh; top: 18vh; }

/* agentomaten */
.L-agentomaten { --wall: #0b41c2; }
.ag-lead { max-width: min(46vw, 12em); }
.ag-listen { position: absolute; left: var(--pad); top: calc(var(--top) + 3.5 * var(--fs-say)); display: inline-flex; align-items: center; gap: .8em; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .14em; background: var(--paper); color: var(--ink); border-radius: 999px; padding: .5em 1.1em; }
.ag-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--accent); animation: agblink 1.1s steps(2, end) infinite; }
@keyframes agblink { 50% { opacity: .15; } }
.ag-wave { display: inline-flex; gap: 3px; height: 1.1em; align-items: center; }
.ag-wave b { display: block; width: 3px; height: 100%; background: var(--ink); border-radius: 2px; transform-origin: 50% 50%; }
.ag-p { position: absolute; left: var(--pad); top: calc(var(--top) + 4.6 * var(--fs-say)); width: min(40vw, 24em); font-size: var(--fs-note); line-height: 1.35; }
.ag-win { position: absolute; right: var(--pad); top: calc(var(--top) - 1vh); width: min(46vw, 640px); background: #0b0b0b; color: #e6e2db; border: 1px solid #2b2a29; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.ag-text { margin: 0; padding: 22px 26px 30px; min-height: 40vh; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(12px, 1vw, 15px); line-height: 1.7; white-space: pre-wrap; }
.caret { display: inline-block; width: .55em; height: 1.1em; background: var(--pink); vertical-align: -.2em; margin-left: 2px; animation: agblink .9s steps(2, end) infinite; }
.ag-cta { position: absolute; left: var(--pad); bottom: 8vh; display: flex; gap: 10px; flex-wrap: wrap; }
.ag-cta .cta--ghost { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
@media (orientation: portrait) {
  .ag-listen { top: calc(var(--top) + 4.5 * var(--fs-say)); font-size: 12px; }
  .ag-p { top: calc(var(--top) + 5.6 * var(--fs-say)); width: auto; right: var(--pad); font-size: 15px; }
  .ag-win { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: 18vh; } .ag-text { min-height: 24vh; font-size: 11px; padding: 14px 16px; }
  .ag-cta { bottom: 5vh; } .ag-cta .cta { height: 36px; font-size: 13px; }
}

/* figurerna bakom bordet i "our expertise" */
.crowd { position: absolute; left: 0; right: 0; bottom: calc(30vh - 4px); height: 34vh; }
.dude { position: absolute; left: var(--x); bottom: 0; height: 100%; width: auto; transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 8px 10px rgba(80,20,50,.18)); }
@media (orientation: portrait) { .crowd { height: 20vh; } }

/* rubrikens bokstäver hoppar */
body:not(.is-loading) .o-title .ch.hop { animation: chhop .52s var(--ease); }
@keyframes chhop { 0% { transform: none; } 35% { transform: translateY(-14%) scaleY(1.06); } 60% { transform: translateY(2%) scaleY(.94); } 100% { transform: none; } }


/* labbet: kamera ner i källaren */
.labcam { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform; }
.lab-top { position: absolute; left: 0; right: 0; top: 0; height: 50%; overflow: hidden; --wall: #ffc3e5; }
.L-lab .lab-top .wall { background: radial-gradient(120% 90% at 18% 0%, rgba(255,255,255,.08), transparent 60%), #ffc3e5; }
.cellar { position: absolute; left: 0; right: 0; top: 50%; height: 50%; background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 3px, transparent 3px 46px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 3px, transparent 3px 92px), #cf4a1a; }
.pit { position: absolute; left: 6vw; right: 6vw; top: 9vh; bottom: 30vh; background: #6e1f0b; border: 10px solid #a33b14; box-shadow: inset 0 18px 40px rgba(0,0,0,.55); overflow: hidden; }
.pit .gear { fill: #d9b25a; stroke: #7a5a1c; stroke-width: 3; bottom: auto; right: auto; height: auto; }
.pit .gear circle { fill: #b78f3c; } .pit .gear .hub { fill: #7a5a1c; }
.pit .g1 { width: 30vh; left: 12%; top: 18%; } .pit .g2 { width: 18vh; left: calc(12% + 26vh); top: 8%; }
.pit .g3 { width: 34vh; right: 16%; top: 12%; left: auto; } .pit .g4 { width: 14vh; right: calc(16% + 31vh); top: 52%; }
.crank { position: absolute; left: 3%; top: -14%; width: 30vh; transform-origin: 70% 10%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.4)); will-change: transform; }
.cellar .lab-cards { bottom: 6vh; }
@media (orientation: portrait) { .pit { left: 4vw; right: 4vw; bottom: 36vh; } .crank { width: 16vh; } }

/* work: figurer i kö vid repet */
.queue { position: absolute; left: 0; right: 0; bottom: 3vh; height: 40vh; pointer-events: none; }
.walker { position: absolute; left: 22vw; bottom: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.walker img { height: 20vh; width: auto; filter: drop-shadow(6px 12px 10px rgba(0,0,0,.25)); }
.walker .plinth { width: 110%; height: 4vh; }
@media (orientation: portrait) { .walker img { height: 16vh; } }

/* händer som lyfter kuporna */
.cl-hand { position: absolute; left: 22.7%; top: 0; width: 130%; margin-top: -123%; max-width: none; transform-origin: 23% 82%; will-change: transform; filter: drop-shadow(0 6px 8px rgba(60,40,10,.2)); pointer-events: none; }
.plate .cl { overflow: visible; }

/* ballongen som skjuts sönder */
.berry { fill: #c2142f; stroke: #5a0a16; stroke-width: 2; opacity: 0; }
.bal-str { transition: none; }
.a-man { transform-origin: 50% 100%; }

/* hela laget: runda figurer som rullar in */
.team { position: relative; flex: none; display: flex; align-items: flex-end; gap: 1.2vw; margin: 0 4vw calc(30vh - 4px) 0; }
.mate { position: relative; flex: none; width: clamp(80px, 8.6vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; will-change: transform;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.35), transparent 42%), radial-gradient(rgba(0,0,0,.16) 1.1px, transparent 1.3px) 0 0 / 6px 6px, var(--c);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.08), 0 14px 16px rgba(70,40,0,.25); }
.mate b { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--fg); font-size: clamp(12px, 1.05vw, 19px); text-align: center; line-height: 1; padding: 0 10%; }
.team-net { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.team-net path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Agentomatens ansikte i en gammal dator (som Netlights CRT) */
.crt { position: absolute; left: 51vw; bottom: 21vh; width: clamp(240px, 27vw, 500px); transform-style: preserve-3d; will-change: transform; z-index: 1; }
.crt-case { position: relative; padding: 7% 7% 4%; border-radius: 18px 18px 14px 14px; background: linear-gradient(160deg, #efe7d6, #d9cfba 55%, #c4b89f); box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 -6px 10px rgba(0,0,0,.12), 0 26px 40px rgba(0,0,0,.35); }
.crt-bezel { padding: 5.5%; border-radius: 14px; background: linear-gradient(#3b3631, #26221f); box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 6px 14px rgba(0,0,0,.6); }
.crt-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 9% / 12%; overflow: hidden; background: #0d0b09; box-shadow: inset 0 0 40px rgba(0,0,0,.85), 0 0 22px rgba(255,200,140,.25); animation: crton 1.4s cubic-bezier(.2,.8,.2,1) .6s both; }
.crt-screen video { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 50% 60%; filter: saturate(1.15) contrast(1.08) brightness(1.05); animation: crtflick 4s infinite steps(1); }
.crt-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.7)); mix-blend-mode: multiply; pointer-events: none; }
.crt-glare { position: absolute; inset: 0; background: radial-gradient(120% 70% at 25% 8%, rgba(255,255,255,.22), transparent 45%); pointer-events: none; }
.crt-text { position: absolute; left: 7%; bottom: 7%; margin: 0; font-family: var(--f-mono); color: #ffd765; font-size: clamp(9px, .8vw, 14px); letter-spacing: .1em; text-shadow: 0 0 6px rgba(255,200,80,.8); }
.crt-cur { display: inline-block; width: .6em; height: 1em; margin-left: .3em; vertical-align: -.15em; background: #ffd765; animation: agblink .9s steps(2, end) infinite; }
.crt-panel { display: flex; align-items: center; gap: 4%; padding: 4% 2% 0; }
.crt-badge { margin-right: auto; font-family: var(--f-mono); font-size: clamp(8px, .65vw, 12px); letter-spacing: .14em; color: #8a7d64; }
.crt-led { width: 7px; height: 7px; border-radius: 50%; background: #7cff8a; box-shadow: 0 0 8px #7cff8a; animation: agblink 2.4s steps(2, end) infinite; }
.crt-knob { width: clamp(10px, 1.1vw, 18px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5efe2, #a99b80); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.crt-foot { width: 46%; height: clamp(10px, 1.6vw, 24px); margin: 0 auto; background: linear-gradient(#cfc4ad, #a99c83); border-radius: 0 0 10px 10px; box-shadow: 0 14px 20px rgba(0,0,0,.3); }
@keyframes crton { 0% { clip-path: inset(50% 0 50% 0); filter: brightness(3); } 35% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3); } 70% { clip-path: inset(0 0 0 0); filter: brightness(1.6); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes crtflick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .82; } 98% { opacity: .95; } }
@media (orientation: portrait) { .crt { left: 15vw; width: 70vw; bottom: 30vh; } }

.o-title { z-index: 2; }

/* datorn som sprängs isär */
.crt-case { background: transparent !important; box-shadow: none !important; }
.crt-p { position: absolute; background: linear-gradient(160deg, #efe7d6, #d9cfba 55%, #c4b89f); box-shadow: inset 0 3px 0 rgba(255,255,255,.7), 0 14px 22px rgba(0,0,0,.25); will-change: transform; }
.crt-top { left: 0; right: 0; top: 0; height: 9%; border-radius: 18px 18px 0 0; }
.crt-left { left: 0; top: 9%; bottom: 0; width: 7.5%; border-radius: 0 0 0 14px; }
.crt-right { right: 0; top: 9%; bottom: 0; width: 7.5%; border-radius: 0 0 14px 0; }
.crt-panel { position: relative; background: linear-gradient(#ddd3be, #c9bea6); margin: 0 -7.6% -4.6%; padding: 4% 9% 4.4%; border-radius: 0 0 14px 14px; will-change: transform; }
.crt-bezel { position: relative; z-index: 1; will-change: transform; }
.crt-shell { position: absolute; left: 50%; top: 45%; width: 88%; height: 80%; transform: translate(-50%, -50%); background: linear-gradient(#cfc4ad, #a99c83); border-radius: 20px; box-shadow: 0 20px 30px rgba(0,0,0,.3); will-change: transform; }
.crt-parts { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 2; }
.part { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.p0 { width: 46px; height: 30px; background: #1f6b3a; border: 2px solid #c8a24a; border-radius: 3px; } /* kretskort */
.p1 { width: 22px; height: 22px; background: #222; box-shadow: inset 0 0 0 3px #555; border-radius: 2px; } /* chip */
.p2 { width: 10px; height: 26px; background: linear-gradient(#2a4fbf 70%, #ccc 70%); border-radius: 5px; } /* kondensator */
.p3 { width: 30px; height: 8px; background: repeating-linear-gradient(90deg, #d9b25a 0 4px, #8a3a1a 4px 7px); border-radius: 4px; } /* resistor */
.p4 { width: 60px; height: 14px; border: 3px solid #e83729; border-radius: 50%; border-bottom-color: transparent; } /* sladd */
.p5 { width: 16px; height: 16px; background: radial-gradient(circle at 35% 35%, #f5efe2, #a99b80); border-radius: 50%; } /* skruv/vred */
.crt-kb { position: absolute; left: 50%; top: calc(100% + 6px); width: 115%; height: 22%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; padding: 6px; background: linear-gradient(#e7dfcc, #c9bea6); border-radius: 6px; box-shadow: 0 10px 16px rgba(0,0,0,.25); opacity: 0; transform-origin: 50% 100%; }
.crt-kb b { background: #f4efe4; border-radius: 2px; box-shadow: 0 2px 0 #b6aa90; }
.crt-mouse { position: absolute; right: -24%; top: calc(100% + 18px); width: 9%; aspect-ratio: .65; background: linear-gradient(#efe7d6, #cfc4ad); border-radius: 45% 45% 40% 40%; box-shadow: 0 6px 10px rgba(0,0,0,.25); opacity: 0; }

/* Netlight-sektionen: stor text och svävande kort */
.L-together { background: var(--paper); color: var(--ink); }
.swarm { position: absolute; inset: 0; perspective: 900px; }
.fl { position: absolute; left: var(--x); top: 0; width: clamp(110px, 12vw, 210px); aspect-ratio: 3 / 4; margin: 0; background: var(--bg); border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 18px 30px rgba(0,0,0,.18); will-change: transform, filter; }
.fl img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.fl img[src*="OT"] { object-fit: cover; padding: 0; }
.fl span { font-family: var(--f-serif); font-style: italic; font-size: clamp(16px, 1.6vw, 28px); color: var(--ink); text-align: center; padding: 0 8%; }
.big-say { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 15em); text-align: center; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(36px, 5.4vw, 104px); z-index: 2; text-shadow: 0 2px 30px rgba(244,239,232,.9); }
.big-say .ln-mask { padding-bottom: .1em; }

/* ---------- öppningen i Netlight-stil ---------- */
.L-top { background: #f7f7f7; color: #111; }
.nl { position: absolute; inset: 0; will-change: transform; }
.nl-h { position: absolute; left: 6vw; top: 16vh; margin: 0; font-weight: 800; font-size: clamp(48px, 6.4vw, 124px); letter-spacing: -.035em; line-height: .98; color: #111; font-variation-settings: "opsz" 96; }
.nl-dot { display: inline-block; width: .16em; height: .16em; margin-left: .05em; border-radius: 50%; background: var(--accent); }
.nl-p { position: absolute; left: 6vw; top: calc(16vh + 3.75 * clamp(48px, 6.4vw, 124px)); width: min(34vw, 30em); font-size: clamp(15px, 1.15vw, 19px); line-height: 1.45; color: #222; }
.pc { position: absolute; right: 1vw; top: 14vh; width: 44vw; height: 72vh; perspective: 1600px; perspective-origin: 50% 40%;
  --W: min(24vw, 42vh); --H: calc(var(--W) * .84); --D: calc(var(--W) * .9); }
.rig { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.mon { position: absolute; left: calc(var(--W) / -2); top: calc(var(--H) / -2); width: var(--W); height: var(--H); transform-style: preserve-3d; }
.fc { position: absolute; display: block; background: linear-gradient(160deg, #ece5d5, #d6ccb7 60%, #c3b79e); will-change: transform; backface-visibility: visible; }
.f-front, .f-back { left: 0; top: 0; width: var(--W); height: var(--H); border-radius: 10px; }
.f-front { background: transparent; box-shadow: inset 0 0 0 calc(var(--W) * .07) #e7dfcd, inset 0 0 0 calc(var(--W) * .072) #cfc4ad, inset 0 0 0 calc(var(--W) * .11) #2a2622; border-radius: 10px; }
.f-front .badge { position: absolute; left: 9%; bottom: 1.8%; font-family: var(--f-mono); font-size: calc(var(--W) * .026); letter-spacing: .14em; color: #8a7d64; }
.f-front .led { position: absolute; right: 9%; bottom: 2.6%; width: 6px; height: 6px; border-radius: 50%; background: #7cff8a; box-shadow: 0 0 8px #7cff8a; }
.f-front .slot { position: absolute; right: 16%; bottom: 2.2%; width: 18%; height: 3px; background: #9d917a; border-radius: 2px; }
.f-left, .f-right { top: 0; left: calc((var(--W) - var(--D)) / 2); width: var(--D); height: var(--H); background: linear-gradient(90deg, #cfc4ad, #b7ab92); }
.f-right::after { content: ""; position: absolute; left: 12%; right: 12%; top: 30%; height: 30%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 3px, transparent 3px 9px); }
.f-top, .f-bot { left: 0; top: calc((var(--H) - var(--D)) / 2); width: var(--W); height: var(--D); background: linear-gradient(#efe8d9, #d9cfba); }
.tube { position: absolute; left: 11%; top: 11%; width: 78%; height: 72%; border-radius: 8% / 10%; overflow: hidden; background: #0d0b09; box-shadow: inset 0 0 30px rgba(0,0,0,.9), 0 0 18px rgba(255,190,120,.25); will-change: transform; }
.tube video { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 50% 60%; filter: saturate(1.15) contrast(1.08); }
.pcb { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; background: linear-gradient(135deg, #1f6b3a, #17502c); border: 2px solid #c8a24a; border-radius: 4px; transform-style: preserve-3d; opacity: .95;
  background-image: linear-gradient(135deg, #1f6b3a, #17502c), repeating-linear-gradient(90deg, rgba(200,162,74,.45) 0 1px, transparent 1px 18px); background-blend-mode: normal; will-change: transform; }
.pcb2 { left: 14%; top: 14%; width: 72%; height: 72%; background: linear-gradient(135deg, #2a4fbf, #1d3a8f); }
.chip { position: absolute; width: 14%; height: 12%; background: #1b1b1b; box-shadow: inset 0 0 0 2px #555, 0 2px 0 #000; border-radius: 2px; will-change: transform; }
.chip.c1 { width: 8%; height: 16%; background: linear-gradient(#2a4fbf 70%, #ddd 70%); border-radius: 6px; box-shadow: none; }
.chip.c2 { width: 18%; height: 6%; background: repeating-linear-gradient(90deg, #d9b25a 0 4px, #8a3a1a 4px 7px); border-radius: 4px; box-shadow: none; }
.yoke { position: absolute; left: 34%; top: 30%; width: 32%; height: 36%; border-radius: 50%; border: 6px solid #b4231a; box-shadow: inset 0 0 0 6px #e8a23a; will-change: transform; }
.base { position: absolute; left: calc(var(--W) * -.22); top: calc(var(--H) / 2 - 2px); width: calc(var(--W) * .44); height: calc(var(--H) * .1); transform-style: preserve-3d; will-change: transform; }
.b-top { inset: 0; border-radius: 4px; background: linear-gradient(#e2d9c6, #c9bea6); }
.kbd { position: absolute; left: calc(var(--W) * -.62); top: calc(var(--H) * .62); width: calc(var(--W) * 1.24); height: calc(var(--W) * .36); transform-style: preserve-3d; will-change: transform; }
.kb-top { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; padding: 5px; background: linear-gradient(#ebe4d3, #cfc4ad); border-radius: 6px; transform: rotateX(72deg); transform-origin: 50% 100%; transform-style: preserve-3d; box-shadow: 0 30px 30px rgba(0,0,0,.18); }
.kb-top b { background: #f6f1e6; border-radius: 2px; box-shadow: 0 2px 0 #b3a78d; will-change: transform; }
.kb-front { position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; background: #bfb399; border-radius: 0 0 6px 6px; }
.mouse { position: absolute; left: calc(var(--W) * .72); top: calc(var(--H) * .78); width: calc(var(--W) * .1); height: calc(var(--W) * .14); border-radius: 45% 45% 40% 40%; background: linear-gradient(#efe7d6, #cfc4ad); box-shadow: 0 8px 10px rgba(0,0,0,.2); transform: rotateX(60deg); will-change: transform; }
.coil { position: absolute; left: calc(var(--W) * .5); top: calc(var(--H) * .6); width: calc(var(--W) * .5); fill: none; stroke: #d6ccb7; stroke-width: 4; }
.marquee { position: absolute; left: 0; right: 0; top: 104vh; height: 7vh; background: #a99cff; overflow: hidden; display: flex; align-items: center; will-change: transform; }
.mq { display: flex; white-space: nowrap; animation: mq 30s linear infinite; }
.mq span { font-family: var(--f-mono); font-weight: 400; font-size: clamp(20px, 3vh, 34px); letter-spacing: .04em; color: #111; padding-right: .5em; }
@keyframes mq { to { transform: translateX(-50%); } }
.nl-down { position: absolute; left: 50%; top: 88vh; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #a99cff; color: #111; font-size: 20px; box-shadow: 0 14px 18px rgba(0,0,0,.12); }
body.paused .mq, body.paused .grain { animation-play-state: paused; }
@media (orientation: portrait) {
  .nl-h { top: 12vh; font-size: 12vw; } .nl-p { top: calc(12vh + 3.7 * 12vw); width: auto; right: 6vw; font-size: 14px; }
  .pc { left: 0; right: 0; width: auto; top: 46vh; height: 44vh; --W: 50vw; }
  .marquee { height: 5vh; } .nl-down { top: 92vh; }
}

.pause { position: fixed; left: var(--pad); bottom: var(--pad); z-index: 61; width: 44px; height: 44px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pause i { display: block; width: 4px; height: 14px; background: #f7f7f7; border-radius: 1px; }
.pause[aria-pressed="true"] i:first-child { width: 0; height: 0; border-left: 12px solid #f7f7f7; border-top: 8px solid transparent; border-bottom: 8px solid transparent; background: none; border-radius: 0; }
.pause[aria-pressed="true"] i:last-child { display: none; }
html.reading .pause { display: none; }

/* Netlight-sektionen: ljusgrå, grå text som blir svart, porträttkort */
.L-together { background: #f7f7f7; color: #111; }
.L-together .w { color: color-mix(in srgb, #111 calc(var(--lit) * 100%), #c9c9c9); }
.big-say { font-family: var(--f-display); text-shadow: none; }
.big-say.s2 { opacity: 0; }
.fl { background: #fff; padding: 6px 6px 0; border-radius: 3px; box-shadow: 0 16px 30px rgba(0,0,0,.14); }
.fl img { background: var(--bg); border-radius: 2px; }
.fl span { background: var(--bg); width: 100%; height: 100%; display: grid; place-items: center; border-radius: 2px; }

/* textrytmen: Chaos. / We don't fear chaos. / We face it together. */
.chaos-word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; margin: 0; font-family: var(--f-serif); font-size: clamp(90px, 20vw, 420px); line-height: .9; color: var(--pink); letter-spacing: -.02em; white-space: nowrap; }
.chaos-word .ch { display: inline-block; will-change: transform; }
.cdot { display: inline-block; width: .16em; height: .16em; margin-left: .04em; border-radius: 50%; background: var(--accent); }
.chaos-small { position: absolute; left: 0; right: 0; bottom: 18vh; text-align: center; margin: 0; font-size: clamp(18px, 1.8vw, 32px); font-weight: 300; letter-spacing: -.01em; opacity: 0; }
.chaos-small .cdot { width: .22em; height: .22em; }
.chaos-big { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); text-align: center; margin: 0; font-size: clamp(44px, 7vw, 150px); font-weight: 300; letter-spacing: -.04em; line-height: 1; opacity: 0; }

/* ---------- tajtare & mer eget ---------- */
/* Miss Pryms egen palett och gula pill-knappar */
:root { --mp-coral: #d9646a; --mp-cream: #f7eaad; --mp-lav: #b9bee9; --mp-pink: #f0bad9; --mp-navy: #3a4650; --mp-yellow: #f2cd5c; }
.cta, .hud-index { background: var(--mp-yellow) !important; color: var(--ink) !important; }
.cta--ghost { background: transparent !important; color: inherit !important; }
.marquee, .nl-down { background: var(--mp-yellow) !important; }
.L-agentomaten .ag-cta .cta--ghost { color: var(--paper) !important; }
.hl-human { color: var(--mp-coral); }
.L-together .fl span, .mate b { font-family: var(--f-serif); }

/* guldtackorna – frestelsen ur Djävulen och fröken Prym */
.gold { position: absolute; left: 24vw; bottom: 17vh; display: flex; align-items: flex-end; gap: 4px; will-change: transform; z-index: 1; }
.bar { display: block; width: clamp(48px, 5.4vw, 96px); height: clamp(18px, 2vw, 34px); border-radius: 3px;
  background: linear-gradient(170deg, #fff2b0, #f2cd5c 35%, #c99a2e 70%, #8f6a17); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 8px 10px rgba(80,50,0,.25); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.bar:nth-child(2) { position: absolute; left: 50%; bottom: 100%; transform-origin: 50% 100%; margin-left: calc(clamp(48px, 5.4vw, 96px) / -2); }
.gold-tag { position: absolute; left: 50%; bottom: calc(100% + clamp(26px, 2.6vw, 44px)); transform: translateX(-50%); font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 36px); background: var(--paper); border-radius: 999px; padding: .02em .5em .1em; white-space: nowrap; opacity: 0; color: var(--ink); box-shadow: 0 .15em .3em rgba(80,30,40,.18); }
@media (orientation: portrait) { .gold { left: 8vw; bottom: 40vh; } }

/* laget: läsbart, ögon, mjuk tråd, mobil i två rader */
.mate b { color: var(--fg); position: relative; z-index: 1; }
.eyes { position: absolute; left: 50%; top: 22%; display: flex; gap: 14%; width: 46%; margin-left: -23%; justify-content: center; transition: transform .2s; }
.eyes i { display: block; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--fg); transition: transform .08s; }
.eyes.blink i { transform: scaleY(.1); }
.mate b { margin-top: 22%; }
.team-net path { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
@media (orientation: portrait) {
  .team { flex-wrap: wrap; width: calc(100vw - 2 * var(--pad)); gap: 2.4vw; justify-content: center; margin: 0 var(--pad) calc(30vh + 2vh) var(--pad); }
  .mate { width: 17vw; } .mate b { font-size: 3vw; }
  .L-who .strip { padding-left: 0; }
}

/* silverfaten i human-md-stil: ånga, rätten, gnistor, menykort */
.plate { position: relative; }
.steam { position: absolute; left: 50%; bottom: calc(min(22vw, 34vh) * .3); width: calc(min(22vw, 34vh) * .55); margin-left: calc(min(22vw, 34vh) * -.275); opacity: 0; overflow: visible; pointer-events: none; }
.steam path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 22 14; animation: steam 2.6s linear infinite; opacity: .55; }
.steam path:nth-child(2) { animation-duration: 3.1s; } .steam path:nth-child(3) { animation-duration: 2.2s; }
@keyframes steam { to { stroke-dashoffset: -72; } }
.serve { position: absolute; left: 50%; bottom: calc(min(22vw, 34vh) * .14); height: calc(min(22vw, 34vh) * .62); width: auto; max-width: 90%; object-fit: contain; transform-origin: 50% 100%; opacity: 0; filter: drop-shadow(0 6px 6px rgba(60,40,10,.25)); will-change: transform; }
.spark { position: absolute; left: 50%; bottom: calc(min(22vw, 34vh) * .4); width: 0; height: 0; }
.spark i { position: absolute; left: -6px; top: -2px; width: 12px; height: 4px; border-radius: 2px; background: var(--accent); opacity: 0; }
.menu { position: absolute; left: 6%; right: 6%; top: calc(100% + 1.4vh); background: #fffdf6; border: 1px solid rgba(32,30,31,.25); border-radius: 4px; padding: .8em 1em 1em; box-shadow: 0 10px 16px rgba(60,40,10,.15); transform-origin: 50% 0; opacity: 0; font-family: var(--f-mono); color: var(--ink); }
.menu-h { display: block; font-size: clamp(13px, 1.05vw, 18px); margin-bottom: .45em; }
.menu p { margin: 0; font-family: var(--f-display); font-size: clamp(11px, .82vw, 14px); line-height: 1.38; }
.dish-t, .dish-p { display: none !important; }
@media (orientation: portrait) {
  .plates { gap: 9vh; } .menu { left: calc(100% + 2vw); right: auto; width: 46vw; top: 0; } .menu p { display: none; }
  .plate { margin-right: 46vw; } .steam, .serve, .spark { --w: 36vw; }
}

.L-what .plates { bottom: 30vh; }
.L-what .cloth { --ch: 36vh; }
.mate { width: clamp(100px, 10.5vw, 180px); }
.mate b { font-size: clamp(13px, 1.25vw, 22px); }
@media (orientation: portrait) { .L-what .plates { bottom: auto; } .mate { width: 17vw; } .mate b { font-size: 3vw; } }

/* egna filmer */
.bgfilm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
.bgtint { position: absolute; inset: 0; background: linear-gradient(rgba(11,65,194,.72), rgba(11,65,194,.55)); mix-blend-mode: multiply; }
.L-prym .frag, .L-prym .q-cite { z-index: 1; }
.give { position: absolute; right: 6vw; top: 50%; width: min(40vw, 64vh); aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); will-change: transform; }
.give video { width: 100%; height: 100%; object-fit: cover; }
.say--left { left: var(--pad); right: auto; margin: 0; width: min(52vw, 14em); text-align: left; }
@media (orientation: portrait) { .give { right: 50%; margin-right: -36vw; top: 70%; width: 72vw; } .say--left { width: auto; right: var(--pad); top: 30%; } }
.painting { position: absolute; right: 7vw; top: 14vh; height: 34vh; aspect-ratio: 724 / 960; margin: 0; padding: 10px; background: #2a2622; box-shadow: inset 0 0 0 3px #c9a24a, 0 20px 30px rgba(0,0,0,.4); transform: rotate(1.5deg); }
.painting video { width: 100%; height: 100%; object-fit: cover; }
.painting::before { content: ""; position: absolute; left: 50%; top: -40px; width: 1px; height: 40px; background: rgba(0,0,0,.5); }
@media (orientation: portrait) { .painting { right: 6vw; top: 11vh; height: 18vh; } }

/* 1,01^365 */
.L-one-percent { --wall: #f7eaad; color: var(--ink); }
.eq { position: absolute; left: var(--pad); display: flex; align-items: baseline; gap: .25em; font-family: var(--f-mono); font-size: clamp(34px, 5vw, 96px); letter-spacing: -.02em; }
.eq1 { top: var(--top); opacity: .45; } .eq2 { top: calc(var(--top) + 1.4em * 1); }
.eq2 { top: calc(var(--top) + clamp(34px, 5vw, 96px) * 1.4); }
.eq sup { font-size: .38em; align-self: flex-start; margin-left: -.15em; min-width: 2.2em; }
.eqs { color: var(--accent); }
.r2 { display: inline-block; transform-origin: 0 70%; color: var(--mp-coral); }
.curve { position: absolute; left: var(--pad); right: var(--pad); bottom: 8vh; width: calc(100% - 2 * var(--pad)); height: 34vh; overflow: visible; }
.curve .flat { stroke: rgba(32,30,31,.35); stroke-width: 2; stroke-dasharray: 6 8; fill: none; vector-effect: non-scaling-stroke; }
.curve .grow { stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.eq-cap { position: absolute; right: var(--pad); top: var(--top); width: min(40vw, 16em); text-align: right; font-size: var(--fs-cap); line-height: 1.1; letter-spacing: -.02em; }
@media (orientation: portrait) { .eq { font-size: 9vw; } .eq2 { top: calc(var(--top) + 13vw); } .eq-cap { left: var(--pad); right: auto; top: 44vh; width: auto; text-align: left; } .curve { height: 22vh; } }
@media (orientation: landscape) { .L-library .say { right: 30vw; max-width: 12em; } .L-library .books-p { right: 30vw; } .painting { top: 18vh; height: 44vh; right: 8vw; } }

/* finputs */
.big-say::before { content: ""; position: absolute; inset: -18% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(247,247,247,.95), rgba(247,247,247,.8) 60%, transparent); filter: blur(6px); }
.big-say { z-index: 3; }
@media (orientation: portrait) {
  .L-agentomaten .ag-lead { font-size: 8vw; max-width: none; right: var(--pad); }
  .L-agentomaten .ag-listen { top: calc(var(--top) + 3 * 8vw + 2vh); }
  .L-agentomaten .ag-p { top: calc(var(--top) + 3 * 8vw + 9vh); }
  .L-contact .cradle { height: 20vh; width: 44vw; right: 4vw; }
  .L-contact .c-lead { top: calc(var(--top) + 16vh); font-size: 17px; }
}
/* Transparency: frostat glas */
.glass-wrap { position: absolute; right: 4vw; bottom: 18vh; height: min(70vh, 58vw); aspect-ratio: 2243 / 2160; will-change: transform; }
.glass-wrap .sh-img { position: absolute; inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; object-fit: contain; }
.frost { position: absolute; inset: -4%; background: rgba(240,244,255,.35); backdrop-filter: blur(14px) saturate(.8); -webkit-backdrop-filter: blur(14px) saturate(.8); border: 2px solid rgba(255,255,255,.7); border-radius: 6px; box-shadow: inset 0 0 40px rgba(255,255,255,.5); }
.wiper { position: absolute; top: -6%; bottom: -6%; width: 10px; margin-left: -5px; border-radius: 5px; background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.4); opacity: 0; }
@media (orientation: portrait) { .glass-wrap { height: 40vh; right: -4vw; bottom: 26vh; } }
/* guldet vid repet */
.gold--rope { left: 50%; bottom: 7vh; z-index: 0; transform: translateX(-50%); }

/* Intervjuomaten: lappar som blir en berättelse */
.L-story { --wall: #f7eaad; color: var(--ink); }
.pile { position: absolute; inset: 0; }
.slip { position: absolute; padding: .35em .7em .4em; background: #fffdf6; border: 1px solid rgba(32,30,31,.2); box-shadow: 0 6px 10px rgba(80,60,10,.15); font-family: var(--f-mono); font-size: clamp(12px, 1.1vw, 18px); white-space: nowrap; will-change: transform; }
.slip:nth-child(3n) { background: #fff; } .slip:nth-child(4n) { background: var(--mp-pink); }
.st-a { position: absolute; left: var(--pad); top: var(--top); font-size: var(--fs-say); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.st-b { position: absolute; left: var(--pad); top: var(--top); font-size: calc(var(--fs-say) * 1.15); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.story-card { position: absolute; left: var(--pad); right: var(--pad); bottom: 9vh; max-width: 40em; padding: 1.2em 1.4em; background: #fffdf6; border: 1px solid rgba(32,30,31,.2); border-radius: 6px; box-shadow: 0 16px 30px rgba(80,60,10,.18); font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 34px); line-height: 1.25; opacity: 0; }
.story-card p { margin: .7em 0 .9em; font-family: var(--f-mono); font-style: normal; font-size: clamp(12px, .9vw, 15px); }

/* ================= slick ================= */
html { text-rendering: optimizeLegibility; font-kerning: normal; }
.lead, .chap, .i-head, .sh-title, .say, .big-say, .st-a, .st-b, .nl-h { text-wrap: balance; }
.grain { opacity: .035; }
.wipe-ring { background: var(--ink); }

/* progress längs överkanten + scenräknare */
.prog { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; pointer-events: none; }
.prog i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.hud-count { font-family: var(--f-mono); font-weight: 400; font-size: 13px; letter-spacing: .06em; padding: 0 8px; opacity: .7; }
@media (max-width: 760px) { .hud-count { display: none; } }

/* markören: liten prick → ring med etikett */
.dot { transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s; display: grid; place-items: center; }
.dot.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: transparent; border: 1.5px solid var(--accent); mix-blend-mode: normal; }
.dot::after { content: attr(data-label); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.dot.is-big::after { opacity: 1; }

/* mjukare skuggor och knappar */
.cta { transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.14); }
.pill { transition: background-color .3s, color .3s, transform .4s var(--ease); }
.hud-index:hover, .hud-watch:hover { transform: translateY(-1px); }
.bubble, .lcard, .menu, .story-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s; }
.lcard:hover, .bubble:hover { box-shadow: 0 18px 30px rgba(0,0,0,.16); }

/* laddningsskärm */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper); display: grid; place-items: center; clip-path: circle(150% at 50% 50%); transition: clip-path 1.1s cubic-bezier(.76,0,.24,1); }
.loader.is-out { clip-path: circle(0% at 50% 50%); }
.loader-t { font-weight: 800; letter-spacing: -.045em; font-size: clamp(36px, 6vw, 110px); }
.loader-t b { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.loader-n { position: absolute; right: var(--pad); bottom: var(--pad); font-family: var(--f-mono); font-size: clamp(14px, 1.2vw, 18px); letter-spacing: .1em; opacity: .7; }
.loader-eye { position: absolute; left: var(--pad); bottom: var(--pad); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--paper); display: grid; place-items: center; }
.loader-eye i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: lpulse 1s ease-in-out infinite; }
@keyframes lpulse { 50% { transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .loader { transition: none; } }
@media (orientation: landscape) and (max-height: 760px) { .sh-to { font-size: calc(var(--fs-word) * .85); } .sh-p { bottom: 21vh; width: min(34vw, 26em); font-size: 14px; } .sh-to { top: calc(var(--top) + 1.9 * var(--fs-say)); } }


/* ================= designrunda ================= */
/* etiketter: mono, versaler, luft – samma överallt */
.lab, .h2, .say-lab, .chap .md, .i-head .md { font-family: var(--f-mono) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(11px, .8vw, 13px) !important; }
.lab .md, .h2 .md, .say-lab .md { margin-right: .6em; }
.chap .md { display: block; vertical-align: 0; margin: 0 0 1.4em; }
/* rubriker: tajtare och jämnare */
.chap, .sh-title, .lead { letter-spacing: -.04em; }
.chap { font-weight: 700; }

/* Who we are: krämvägg i stället för brunt – figurerna lyser */
.L-who { --wall: #f7eaad; }
.L-who .wall::after { opacity: .18; }

/* golven i From→To-rummen: samma ton som väggen, fast mörkare */
.L-shift .floor { --floor: color-mix(in srgb, var(--room) 72%, #201e1f); }
.L-shift .floor::before { height: 6px; }

/* textblock i rummen: ren panel i stället för text rakt över bilden */
.sh-p { background: rgba(255,255,255,.55); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-radius: 14px; padding: 1em 1.2em; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
@media (orientation: portrait) { .sh-p { border-radius: 12px; padding: .8em .9em; font-size: 13.5px; line-height: 1.38; } }

/* kontakt: läsbar text på korallen */
.L-contact { color: #fff8e6; }
.L-contact .c-lead { color: #fff8e6; opacity: .92; }
.L-contact .c-mail { color: #fff8e6; }
.L-contact .c-row, .L-contact .foot { color: #fff8e6; }
.L-contact .c-mail:hover { color: #f2cd5c; }

/* event: lugnare, tydligare hierarki */
.L-events { background: #fbf6ea; }
.ev-past { border-top-color: rgba(32,30,31,.15); }
.ev-box .cta { background: var(--ink) !important; color: var(--paper) !important; }

/* kort och paneler: samma radie och skuggspråk */
.lcard, .bubble, .menu, .story-card, .fl, .icard__face { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.10); }
.bubble { border-color: rgba(32,30,31,.85); }
.sh-p { font-size: clamp(13px, .95vw, 16px); width: min(32vw, 25em); line-height: 1.42; }
@media (orientation: portrait) {
  .sh-p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; width: auto; }
  .L-contact .cradle { top: 9vh; }
}
@media (orientation: portrait) { .sh-p { bottom: 11vh !important; } }
/* laget: aldrig över texten – en rad på breda skärmar, två ordnade rader på höga */
.team { flex-wrap: nowrap; }
.mate { width: min(10.5vw, 15vh, 180px) !important; }
.mate b { font-size: calc(min(10.5vw, 15vh, 180px) * .13) !important; }
@media (orientation: portrait) {
  .team { flex-wrap: wrap; width: calc(100vw - 2 * var(--pad)); gap: 2vw 3vw; margin-bottom: calc(30vh + 2vh); }
  .mate { width: min(16vw, 9.5vh) !important; }
  .mate b { font-size: calc(min(16vw, 9.5vh) * .15) !important; }
  .team-net { display: none; }
  .L-who .cap-wrap { top: calc(var(--top) + 3.2 * var(--fs-say)); }
  .L-who .chap { font-size: 8.4vw; }
}
@media (orientation: portrait) { .L-who .cap-wrap { top: calc(var(--top) + 30vw); } .L-who .cap { font-size: clamp(14px, 2.6vw, 22px); } }


/* 1,01^365 i svart med staplar */
.L-one-percent { background: #0d0d0d; color: #f4efe8; --wall: #0d0d0d; }
.L-one-percent .eq { color: #f4efe8; }
.L-one-percent .eq1 { opacity: .4; }
.L-one-percent .r2 { color: var(--mp-yellow); }
.ticks { position: absolute; left: var(--pad); right: var(--pad); bottom: 30vh; height: 40vh; display: flex; align-items: flex-end; justify-content: space-between; }
.ticks i { display: block; width: 3px; height: 100%; background: #f4efe8; transform-origin: 50% 100%; transform: scaleY(.03); }
.tick-mark { position: absolute; bottom: calc(30vh - 7vh); margin: 0; transform: translateX(-50%); text-align: center; font-family: var(--f-mono); color: #f4efe8; font-size: clamp(12px, 1vw, 16px); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tick-mark b { display: block; font-size: 1.2em; margin-bottom: .3em; }
.L-one-percent .eq-cap { color: #f4efe8; }
.L-one-percent .hl-human { color: var(--mp-yellow); }
@media (orientation: portrait) { .ticks { bottom: 22vh; height: 30vh; } .ticks i { width: 2px; } .tick-mark { bottom: 15vh; } }

/* berättelsens linje */
.story-line { position: absolute; left: 12vw; right: 12vw; top: 30vh; height: 40vh; width: 76vw; overflow: visible; opacity: 1; pointer-events: none; }
.story-line path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.story-line circle { fill: var(--accent); opacity: 0; }

/* kontakt: Norra Hamngatan i solnedgång */
.c-photo { position: absolute; right: 0; top: 0; height: 100%; width: 46vw; object-fit: cover; }
.c-tint { position: absolute; right: 0; top: 0; height: 100%; width: 46vw; background: linear-gradient(90deg, #e65564, rgba(230,85,100,.15) 40%, rgba(230,85,100,.25)); }
.L-contact .cradle { z-index: 1; }
.L-contact .c-lead { max-width: 46vw; }
@media (orientation: portrait) { .c-photo, .c-tint { width: 100%; height: 42vh; top: auto; bottom: 0; } .c-tint { background: linear-gradient(#e65564, rgba(230,85,100,.2) 45%, rgba(230,85,100,.35)); } .L-contact .c-lead { max-width: none; } }

.tick-mark { font-size: clamp(13px, 1.15vw, 18px); }
.tm-t { display: block; }
@media (orientation: landscape) { .L-contact .c-mail { font-size: clamp(28px, 4.4vw, 84px); } }

.bgtint--commit { background: linear-gradient(rgba(11,65,194,.78), rgba(11,65,194,.62) 60%, rgba(11,65,194,.85)); mix-blend-mode: multiply; }
.L-commitment .lead, .L-commitment .lab, .L-commitment .giant { position: absolute; z-index: 1; }
.L-commitment .lead { position: absolute; }
/* "If you give…": hela bilden syns, pratbubblan inklusive */
.give { border-radius: 28px; background: #3a4650; }
.give video { object-fit: contain; }

/* ================= verktygsfönstret ================= */
.app { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 70px var(--pad) 28px; }
.app[hidden] { display: none; }
.app__scrim { position: absolute; inset: 0; background: rgba(16,14,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .4s; }
.app__win { position: relative; width: min(1180px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; background: #fbf6ea; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4); animation: winin .6s var(--ease); }
@keyframes winin { from { transform: translateY(30px) scale(.97); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }
.app__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(32,30,31,.12); background: #fff8e6; }
.app__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin: 0 8px 0 4px; flex: none; }
.app__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.app__tab { height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; color: rgba(32,30,31,.65); }
.app__tab:hover { background: rgba(32,30,31,.06); color: var(--ink); }
.app__tab.on { background: var(--mp-yellow); color: var(--ink); }
.app__ext { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; white-space: nowrap; padding: 0 8px; color: rgba(32,30,31,.7); }
.app__close { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; flex: none; }
.app__body { flex: 1; overflow: hidden; position: relative; }
.app__frame { width: 100%; height: 100%; border: 0; background: #111; }
body.app-open { overflow: hidden; }

.ua { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; height: 100%; }
.ua-side { padding: 26px 24px; border-right: 1px solid rgba(32,30,31,.1); display: flex; flex-direction: column; gap: 14px; background: #f7eaad; }
.ua-side .lab { position: static; }
.ua-h { margin: 0; font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.035em; line-height: 1.05; }
.ua-h em { font-family: var(--f-serif); font-weight: 400; color: var(--mp-coral); }
.ua-q { width: 100%; resize: vertical; border: 1px solid rgba(32,30,31,.25); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; background: #fffdf6; color: var(--ink); outline: none; }
.ua-q:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,205,92,.6); }
.ua-f { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(32,30,31,.3); font-size: 13px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ua-meta { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; opacity: .75; }
.ua-list { overflow-y: auto; padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-content: start; }
.ua-card { background: #fffdf6; border: 1px solid rgba(32,30,31,.12); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ua-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.1); }
.ua-top { display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; opacity: .7; }
.ua-score { margin-left: auto; color: var(--accent); letter-spacing: 2px; }
.ua-card h4 { margin: 0; font-size: 17px; letter-spacing: -.015em; line-height: 1.2; }
.ua-loc { margin: 0; font-family: var(--f-serif); font-style: italic; color: var(--mp-coral); font-size: 16px; }
.ua-sum { margin: 0; font-size: 13.5px; line-height: 1.4; opacity: .85; }
.ua-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.ua-skills span { font-family: var(--f-mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; background: rgba(185,190,233,.45); }
.ua-cta { align-self: flex-start; height: 34px !important; font-size: 13px !important; margin-top: 4px; }
.ua-empty { grid-column: 1 / -1; font-family: var(--f-serif); font-style: italic; font-size: 22px; opacity: .7; }
@media (max-width: 760px) {
  .app { padding: 60px 8px 8px; }
  .ua { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ua-side { border-right: 0; border-bottom: 1px solid rgba(32,30,31,.1); padding: 16px; gap: 10px; }
  .ua-h { font-size: 22px; } .ua-q { min-height: 0; }
  .ua-list { padding: 14px; grid-template-columns: 1fr; }
  .app__ext { display: none; }
}

/* finalen: stumfilm, finputsad */
.L-finale { background: #0b0a09; }
.silent { position: absolute; inset: 0; overflow: hidden; }
.frame { position: absolute; inset: 0 3.2vw; filter: grayscale(1) sepia(.32) contrast(1.1) brightness(1.03); will-change: transform; overflow: hidden; border-radius: 10px; }
.sky { position: absolute; inset: 0 0 42% 0; background: radial-gradient(120% 90% at 50% 70%, #fffaf0 0%, #ebe4d6 35%, #c8c0b2 75%, #a9a193 100%); }
.sun { position: absolute; left: 50%; top: 30%; width: 22vh; height: 22vh; border-radius: 50%; background: radial-gradient(circle, #fffdf6 38%, rgba(255,250,240,.6) 52%, transparent 70%); will-change: transform; }
.clouds { position: absolute; inset: 0; will-change: transform; }
.clouds i { position: absolute; height: 2.2vh; border-radius: 999px; background: rgba(255,252,245,.75); filter: blur(2px); }
.clouds i:nth-child(1) { left: 12%; top: 18%; width: 22vw; } .clouds i:nth-child(2) { left: 58%; top: 12%; width: 16vw; } .clouds i:nth-child(3) { left: 74%; top: 26%; width: 26vw; height: 1.6vh; }
.crow-fly { position: absolute; left: 0; top: 16%; height: 6vh; filter: brightness(0); will-change: transform; }
.hills { position: absolute; left: -5%; right: -5%; }
.h3 { top: 44%; height: 12%; background: #a8a194; clip-path: polygon(0 100%, 0 60%, 8% 40%, 18% 58%, 30% 30%, 44% 52%, 56% 26%, 70% 48%, 84% 32%, 100% 55%, 100% 100%); }
.h2 { top: 49%; height: 10%; background: #85807a; clip-path: polygon(0 100%, 0 50%, 12% 30%, 26% 55%, 40% 35%, 52% 60%, 66% 38%, 80% 58%, 92% 36%, 100% 52%, 100% 100%); }
.h1 { top: 54%; height: 6%; background: #5f5b55; clip-path: polygon(0 100%, 0 40%, 20% 70%, 38% 45%, 62% 75%, 82% 40%, 100% 65%, 100% 100%); }
.road { position: absolute; left: 0; right: 0; top: 58%; bottom: 0; background: linear-gradient(#7d7972, #3e3c38); }
.tarmac { position: absolute; left: 50%; top: 0; bottom: 0; width: 90%; transform: translateX(-50%); background: linear-gradient(#d8d2c6, #a49e93); clip-path: polygon(49.3% 0, 50.7% 0, 100% 100%, 0 100%); }
.midline { position: absolute; left: 50%; top: 0; bottom: 0; width: 8%; transform: translateX(-50%); background: repeating-linear-gradient(#f6f2ea 0 6%, transparent 6% 13%); clip-path: polygon(49.6% 0, 50.4% 0, 54% 100%, 46% 100%); opacity: .8; }
.poles { position: absolute; inset: 0; width: 100%; height: 100%; }
.poles .pole { stroke: #2a2724; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.poles .arm { stroke: #2a2724; stroke-width: 2; vector-effect: non-scaling-stroke; }
.poles .wire { fill: none; stroke: #2a2724; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pair { position: absolute; left: 50%; bottom: 3vh; display: flex; align-items: flex-end; transform-origin: 50% 100%; will-change: transform; }
.pair-sh { position: absolute; left: 10%; right: 10%; bottom: -1.2vh; height: 2.4vh; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(6px); }
.walk { position: relative; height: 46vh; width: auto; filter: brightness(.16) contrast(1.4); transform-origin: 50% 100%; }
.w-b { margin-left: -4%; }
.dust { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.5px), radial-gradient(rgba(0,0,0,.4) 1px, transparent 1.5px); background-size: 170px 130px, 230px 190px; animation: dust .4s steps(3) infinite; opacity: .45; }
@keyframes dust { 33% { background-position: 60px 40px, 20px 90px; } 66% { background-position: 120px 10px, 80px 30px; } }
.iris { position: absolute; inset: 0 3.2vw; z-index: 2; pointer-events: none; border-radius: 10px; }
.sprockets { position: absolute; top: 0; bottom: 0; width: 3.2vw; z-index: 5; background-color: #0b0a09; background-image: radial-gradient(closest-side, #2b2925 70%, transparent 74%); background-size: 60% 64px; background-repeat: repeat-y; background-position-x: center; }
.sprockets.l { left: 0; } .sprockets.r { right: 0; }
.title-card { position: absolute; inset: 0 3.2vw; display: grid; place-items: center; align-content: center; background: radial-gradient(ellipse at center, #1d1b18, #0f0e0c 75%); color: #ece6d8; text-align: center; opacity: 0; z-index: 3; border-radius: 10px; overflow: hidden; }
.title-card::before { content: ""; position: absolute; inset: 7vh 6vw; border: 1.5px solid rgba(236,230,216,.55); outline: 1px solid rgba(236,230,216,.22); outline-offset: 10px; pointer-events: none;
  background: linear-gradient(rgba(236,230,216,.55), rgba(236,230,216,.55)) top left / 18px 1.5px no-repeat, linear-gradient(rgba(236,230,216,.55), rgba(236,230,216,.55)) top left / 1.5px 18px no-repeat; }
.title-card::after { content: "✦"; position: absolute; left: 0; right: 0; bottom: calc(7vh + 22px); font-size: 14px; color: rgba(236,230,216,.5); }
.tc-mark { position: absolute; top: calc(7vh + 22px); left: 0; right: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .35em; color: rgba(236,230,216,.45); }
.title-card p { margin: 0; font-family: var(--f-serif); font-size: clamp(30px, 4.4vw, 84px); line-height: 1.12; }
.title-card em { font-style: italic; color: #f2cd5c; }
.tc-credits { place-items: start center; align-content: start; }
.tc-credits::after, .tc-credits::before { display: none; }
.roll { padding-top: 0; will-change: transform; }
.cr { margin: 0 0 7vh; }
.cr span { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .55; margin-bottom: 1.2vh; }
.cr p { font-size: clamp(22px, 2.4vw, 42px) !important; line-height: 1.3 !important; }
.tc3 { gap: 2.2vh; }
.tc3 .fin { font-size: clamp(64px, 10vw, 200px); font-style: italic; line-height: .9; }
.tc3 .fin i { display: inline-block; width: .13em; height: .13em; margin-left: .05em; border-radius: 50%; background: var(--accent); }
.fin-sub { font-family: var(--f-mono) !important; font-size: clamp(11px, .85vw, 13px) !important; letter-spacing: .26em; opacity: .55; }
.fin-mail { position: relative; font-family: var(--f-mono); color: #ece6d8; font-size: clamp(15px, 1.4vw, 22px); letter-spacing: .06em; text-underline-offset: 5px; }
.fin-btns { display: flex; gap: 10px; justify-content: center; margin-top: 1.4vh; position: relative; }
.fin-btn { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(236,230,216,.55); color: #ece6d8; font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; transition: background-color .3s, color .3s; }
.fin-btn:first-child { background: #f2cd5c; color: #121110; border-color: #f2cd5c; }
.fin-btn:hover { background: #ece6d8; color: #121110; }
.flick { position: absolute; inset: 0; background: #fff; mix-blend-mode: overlay; pointer-events: none; z-index: 4; }
.vign { position: absolute; inset: 0 3.2vw; border-radius: 10px; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.72)); pointer-events: none; z-index: 4; }
.scratch { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.8); z-index: 4; pointer-events: none; }
.burn { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(circle at 82% 18%, rgba(255,175,70,.95), rgba(170,50,0,.65) 16%, transparent 38%); mix-blend-mode: screen; }
@media (orientation: portrait) { .frame, .iris, .vign, .title-card { inset: 0 5vw; } .sprockets { width: 5vw; } .walk { height: 26vh; } .title-card::before { inset: 10vh 6vw; } .sun { width: 15vh; height: 15vh; } }
/* laget, tydligare: platta färger, skarp text, står på duken under texten */
.team { margin-bottom: 7vh !important; align-items: flex-end; }
.team-net { display: none !important; }
.mate { background: var(--c) !important; box-shadow: inset 0 0 0 2px rgba(32,30,31,.9), 0 10px 18px rgba(70,40,0,.18) !important; width: min(10vw, 17vh, 170px) !important; }
.mate b { font-family: var(--f-display) !important; font-style: normal !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.05 !important; font-size: calc(min(10vw, 17vh, 170px) * .12) !important; margin-top: 26% !important; padding: 0 12% !important; }
.eyes { top: 24% !important; }
.eyes i { width: 15% !important; }
.L-who .cloth { --ch: 30vh; }
@media (orientation: landscape) { .L-who .cap-wrap { width: min(36vw, 22em); } .L-who .cap { font-size: clamp(14px, 1.15vw, 19px); line-height: 1.38; } }
@media (orientation: portrait) {
  .team { margin-bottom: 6vh !important; }
  .mate { width: min(16vw, 10vh) !important; }
  .mate b { font-size: calc(min(16vw, 10vh) * .14) !important; }
}

/* ================= indexkortens bilder ================= */
.icard__pic { display: grid; place-items: center; }
.icard__pic .th { position: absolute; inset: 0; width: 100%; height: 100%; }
.th.cover { object-fit: cover; }
.th.duo { filter: grayscale(1) contrast(1.1); mix-blend-mode: screen; opacity: .9; }
.th.fig { object-fit: contain; object-position: 50% 100%; padding: 8% 8% 0; }
.th.fig.wide { padding: 4% 2% 0; }
.th-word { font-weight: 800; letter-spacing: -.05em; font-size: calc(46 * var(--u)); line-height: 1; }
.th-word.pink { color: #ffabc8; } .th-word.red { color: var(--accent); } .th-word.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.th-crt { width: 62%; aspect-ratio: 1.1; background: linear-gradient(160deg, #ece5d5, #c9bea6); border-radius: 10%; padding: 9%; box-shadow: 0 calc(6 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.18); }
.th-crt span { display: block; width: 100%; height: 100%; border-radius: 12%; overflow: hidden; background: #111; box-shadow: inset 0 0 0 calc(3 * var(--u)) #2a2622; }
.th-crt img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.th-cards { position: relative; width: 70%; height: 70%; }
.th-cards i { position: absolute; width: 46%; aspect-ratio: 3 / 4; background: var(--b); border: calc(3 * var(--u)) solid #fff; box-shadow: 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.15); }
.th-cards i:nth-child(1) { left: 0; top: 18%; transform: rotate(-8deg); } .th-cards i:nth-child(2) { left: 28%; top: 0; transform: rotate(4deg); } .th-cards i:nth-child(3) { right: 0; top: 30%; transform: rotate(10deg); }
.th-team { display: flex; flex-wrap: wrap; justify-content: center; gap: 5%; width: 82%; }
.th-team i { width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 calc(2 * var(--u)) #201e1f; position: relative; }
.th-team b { position: absolute; left: 30%; top: 30%; width: 40%; height: 14%; background: radial-gradient(circle at 20% 50%, #201e1f 30%, transparent 32%), radial-gradient(circle at 80% 50%, #201e1f 30%, transparent 32%); }
.th-balloon { position: absolute; right: 16%; top: 10%; width: 20%; aspect-ratio: .82; border-radius: 50%; background: #e83729; }
.th-bars { display: flex; align-items: flex-end; gap: 6%; width: 72%; height: 58%; }
.th-bars i { flex: 1; height: var(--h); min-height: 3%; background: #f4efe8; }
.th-cl { width: 70%; } .th-cl svg { width: 100%; height: auto; display: block; }
.th-rope { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 18%; border-bottom: calc(5 * var(--u)) solid #b4122a; border-radius: 0 0 50% 50%; }
.th-gear { width: 72%; fill: #d9b25a; stroke: #7a5a1c; stroke-width: 3; } .th-gear circle { fill: #7a5a1c; }
.th-slips { display: flex; flex-direction: column; gap: 6%; align-items: center; width: 80%; }
.th-slips i { font-style: normal; font-family: var(--f-mono); font-size: calc(10 * var(--u)); background: #fffdf6; border: 1px solid rgba(32,30,31,.25); padding: 3% 8%; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.th-slips i:nth-child(1) { transform: rotate(-6deg); } .th-slips i:nth-child(3) { transform: rotate(5deg); background: #f0bad9; }
.th-mail { position: relative; color: #f4efe8; font-size: calc(60 * var(--u)); line-height: 1; }
.th-mail b { position: absolute; right: -14%; top: -6%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.th-end { display: flex; align-items: flex-end; height: 70%; }
.th-end .sil { position: static; width: auto; height: 100%; filter: brightness(.12); }
.th-end .sil + .sil { margin-left: -10%; transform: scaleX(-1); }
.th-balloon { right: 6%; top: 6%; width: 16%; }
.th-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 120%; background: #201e1f; transform: rotate(-12deg); transform-origin: 0 0; }
