/* Ritningsbladet: skarpt, svartvitt, linjer. Den enda färgen kommer när huset färgläggs. */
:root {
  --bg: #000;
  --ink: #F2F0EB;
  --muted: #9D9B95;
  --line: rgba(242, 240, 235, .16);
  --line-strong: rgba(242, 240, 235, .42);
  --red: #9E3A2B;
  --frame: 14px;
  --head: 72px;
  --pad: clamp(24px, 4vw, 64px);
  --disp: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  /* Loggans ruta på bladet: höjden följer fönstret, bredden följer loggans proportioner (207 x 306) */
  --mh: min(calc(100svh - (2 * var(--frame)) - var(--head) - 28px), 59vw);
  --mw: calc(var(--mh) * .6765);
  --mx: calc(var(--frame) + 64px);
  --my: calc(var(--frame) + var(--head) + 14px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 800; letter-spacing: .005em; line-height: .92; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Ram runt hela sidan med hörnmarkeringar */
.frame { position: fixed; inset: var(--frame); z-index: 60; pointer-events: none; border: 1px solid var(--line); }
.frame i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--line-strong); }
.frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* Knappar: raka, utan rundning */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 500 15px var(--body); text-decoration: none; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.btn.solid { background: var(--ink); color: #000; border-color: var(--ink); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sidhuvud inne i ramen */
header { position: fixed; top: var(--frame); left: var(--frame); right: var(--frame); z-index: 50; height: var(--head); display: flex; align-items: center; gap: 28px; padding: 0 20px; background: rgba(0, 0, 0, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo svg { display: block; flex: none; height: 52px; aspect-ratio: 207 / 306; fill: #fff; }
.logo-name { font: 800 22px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.logo:hover .logo-name { color: var(--muted); }
header nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
header nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
header nav a:hover { color: var(--ink); }
header .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* Ritningsbladet */
.build { position: relative; height: 100vh; height: 100svh; }
.sheet { position: relative; height: 100%; overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; }
.sheet::before { content: ""; position: absolute; inset: 0; background: radial-gradient(75% 70% at 62% 55%, rgba(0, 0, 0, .3), #000 95%); pointer-events: none; }
/* Loggan: stor i bakgrunden. Linjerna ritas upp när sidan öppnas, och ytan fylls i när huset är färdigt. */
.mark-bg { position: absolute; z-index: 0; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); overflow: visible; pointer-events: none; animation: mark-in .7s ease-out; }
.mark-bg .mk-w { fill: #4D4D4D; }
.mark-bg .mk-v { fill: #000; stroke: #000; stroke-width: 1.2; }
@keyframes mark-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Huset till höger på bladet, anteckningarna på loggans vita yta, ovanför V:et */
#scene { position: absolute; right: calc(var(--frame) + 1vw); top: calc(var(--frame) + var(--head) + 8px); bottom: calc(var(--frame) + 76px); width: min(1040px, calc(100vw - var(--mx) - var(--mw) - 36px)); height: auto; }
#scene .f { stroke: var(--ink); stroke-opacity: calc(.9 - var(--fill, 0) * .75); stroke-width: 1.1; stroke-linejoin: round; fill-opacity: var(--fill, 0); }
#scene .fo { fill-opacity: var(--fill, 0); }
#scene .fo-lines { opacity: var(--fill, 0); }
#scene .dim { font: 500 13px var(--body); fill: var(--muted); letter-spacing: .04em; }

/* Mätstickan: markören följer scrollen uppifrån och ner */
.ruler { position: absolute; z-index: 2; left: calc(var(--frame) + 22px); top: calc(var(--frame) + var(--head) + 24px); bottom: calc(var(--frame) + 24px); width: 18px; border-left: 1px solid var(--line-strong); }
.ticks { position: absolute; inset: 0; }
.ticks i { position: absolute; left: -1px; height: 1px; background: var(--line-strong); }
.marker { position: absolute; left: -6px; top: 0; width: 11px; height: 11px; background: var(--ink); transform: translateY(-50%) rotate(45deg); }

/* Anteckningsfältet: ett innehåll i taget, på samma plats */
.notes { position: absolute; z-index: 3; left: calc(var(--mx) + var(--mw) * .085); top: calc(var(--my) + var(--mh) * .058); width: calc(var(--mw) * .83); }
/* Loggans yta är mörkgrå (#4D4D4D) med ett svart V, så texten på den är ljus. Allt i anteckningarna använder samma variabler. */
.notes { color: #F2F0EB; --ink: #F2F0EB; --muted: #D0CEC8; --line: rgba(242, 240, 235, .2); --line-strong: rgba(242, 240, 235, .5); }
.notes .btn:hover { background: #F2F0EB; color: #000; border-color: #F2F0EB; }
.notes .btn.solid { background: #F2F0EB; color: #000; border-color: #F2F0EB; }
.notes .btn.solid:hover { background: transparent; color: #F2F0EB; }
.notes :focus-visible { outline-color: #F2F0EB; }
.note { position: absolute; top: 0; left: 0; width: 100%; }
.note h1 { font-size: calc(var(--mw) * .14); text-wrap: balance; }
.note h2 { font-size: calc(var(--mw) * .125); text-wrap: balance; }
.note .lede { color: var(--muted); margin: calc(var(--mw) * .035) 0 calc(var(--mw) * .042); max-width: 36ch; font-size: clamp(14px, calc(var(--mw) * .034), 17px); }
.note .btns { gap: 8px; }
.note .btn { min-height: clamp(42px, calc(var(--mw) * .095), 50px); padding: 0 clamp(14px, calc(var(--mw) * .045), 22px); }
.lines { margin-top: calc(var(--mw) * .045); border-top: 1px solid var(--line-strong); }
.lines > div { padding: calc(var(--mw) * .02) 0; border-bottom: 1px solid var(--line); }
.lines h3 { font-size: clamp(22px, calc(var(--mw) * .056), 30px); font-weight: 700; }
.lines p { color: var(--muted); font-size: clamp(13px, calc(var(--mw) * .03), 15px); line-height: 1.5; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-strong); font-size: clamp(12px, calc(var(--mw) * .028), 14px); }
.phone-big { display: inline-block; margin: calc(var(--mw) * .03) 0 calc(var(--mw) * .05); font: 700 calc(var(--mw) * .105)/1 var(--disp); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.phone-big:hover { color: var(--muted); border-color: var(--muted); }

/* Lappen som är tejpad på ritningen: det enda papperet på bladet */
.tape-note { position: absolute; z-index: 4; right: calc(var(--frame) + 56px); top: calc(var(--frame) + var(--head) + 48px); width: 200px; padding: 22px 20px 18px; background: #EDE9E0; color: #1A1916; text-decoration: none; display: grid; gap: 4px; justify-items: start;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .9); transform: rotate(-4deg); transition: rotate .35s ease, box-shadow .35s ease; }
.tape-note b { font: 800 26px/1 var(--disp); margin-top: 10px; }
.tape-note span:not(.tape) { font-size: 14px; color: #4D4A44; }
.tape-note .tape { position: absolute; width: 74px; height: 22px; background: rgba(226, 214, 186, .72); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.tape-note .t1 { top: -10px; left: -14px; transform: rotate(-32deg); }
.tape-note .t2 { top: -10px; right: -14px; transform: rotate(28deg); }
.tape-note:hover { rotate: 4deg; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .95); }
.tape-note:focus-visible { outline-color: #EDE9E0; }

/* Ritningshuvudet: VG:s eget */
.titleblock { position: absolute; z-index: 3; right: calc(var(--frame) + 20px); bottom: calc(var(--frame) + 18px); width: min(420px, calc(100vw - 2 * var(--frame) - 40px)); display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .82); font-size: 12px; }
.titleblock > * { padding: 8px 12px; }
.tb-firm { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-firm b { display: block; font: 700 20px/1.05 var(--disp); }
.tb-firm span { color: var(--muted); }
.tb-phone { display: flex; align-items: center; border-bottom: 1px solid var(--line); font: 700 22px var(--disp); text-decoration: none; }
.tb-phone:hover { background: var(--ink); color: #000; }
.tb-mail, .tb-ig { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.tb-mail { border-right: 1px solid var(--line); }
.tb-mail:hover, .tb-ig:hover { background: var(--ink); color: #000; }
/* Instagram i Instagrams färger (lappen på bladet behåller sitt papper) */
.tb-ig svg, .copy a svg { box-sizing: content-box; padding: 3px; border-radius: 5px; background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; flex: none; }
.copy a { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.tb-meta { color: var(--muted); border-right: 1px solid var(--line); }
.tb-right { border-right: 0; text-align: right; }
.tb-bar { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 0; height: 4px; }
.tb-bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* Från ritning till verklighet: text till vänster, bygget till höger, ritningshuvud i hörnet. Som bladet ovanför. */
.jobb-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
/* Rubriken i linje med fotots överkant, texten i linje med underkanten */
.jobb-text { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.jobb-text h2 { text-wrap: balance; }
.jobb-text .sub { max-width: 32ch; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; }
.foto { position: relative; margin: 0; }
.foto-ram { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); background: #000; }
.foto-ram img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.mini-tb { position: absolute; right: -1px; bottom: -1px; display: grid; grid-template-columns: auto auto; border: 1px solid var(--line-strong); background: #000; font-size: 13px; }
.mini-tb > * { padding: 8px 14px; display: flex; align-items: center; }
.mini-tb b { font: 700 19px/1 var(--disp); border-right: 1px solid var(--line); }
.mini-tb span { color: var(--muted); }

/* Mosaiken: rutorna sitter i ritningens rutnät, med hårfina linjer emellan */
.mosaik { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: var(--line-strong); border: 1px solid var(--line-strong); }
.tile { position: relative; overflow: hidden; margin: 0; padding: 0; border: 0; background: #000; color: var(--ink); font: inherit; text-align: left; cursor: zoom-in; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:focus-visible { outline-offset: -4px; }
.tile .cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 8px 14px; background: #000; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.tile .cap b { display: block; font: 800 24px/1 var(--disp); }
.tile .cap span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.tile::after { content: ""; position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F2F0EB' stroke-width='2'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center no-repeat; border: 1px solid var(--line-strong); opacity: 0; transition: opacity .2s; }
.tile:focus-visible::after { opacity: 1; }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.035); }
  .tile:hover::after { opacity: 1; }
}
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.split .half { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; overflow: hidden; }
.split .half.r { left: 50%; border-left: 1px solid var(--ink); }
.split .half img { width: 200%; max-width: none; }
.split .half.r img { left: -100%; }
.split .lab { position: absolute; top: 10px; z-index: 2; padding: 1px 10px; font: 700 16px var(--disp); background: #000; border: 1px solid var(--line-strong); }
.split .lab.l { left: 10px; }
.split .lab.r { left: calc(50% + 10px); }
.m-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 24px 28px; background: #000; }
.m-cta b { font: 800 clamp(32px, 3.2vw, 44px)/.95 var(--disp); }
.m-cta p { color: var(--muted); }
.gal-more { margin-top: 16px; font-size: 13px; }
.gal-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-underline-offset: 4px; }
.gal-more a:hover { color: var(--ink); }
.gal-more svg { box-sizing: content-box; padding: 3px; border-radius: 5px; background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; flex: none; }

/* Bildvisningen */
dialog.lb { width: min(1200px, calc(100vw - 2 * var(--frame) - 16px)); max-width: none; max-height: calc(100svh - 2 * var(--frame) - 16px); padding: 0; border: 1px solid var(--line-strong); background: #000; color: var(--ink); overflow: hidden; }
dialog.lb[open] { display: flex; flex-direction: column; animation: lb-in .32s cubic-bezier(.2, .7, .2, 1); }
dialog.lb::backdrop { background: rgba(0, 0, 0, .92); }
dialog.lb[open]::backdrop { animation: fade-in .32s ease; }
@keyframes lb-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
html.lb-open { overflow: hidden; }
.lb-imgs { display: grid; gap: 1px; min-height: 0; flex: 1; background: var(--line-strong); touch-action: pan-y; }
.lb-imgs.two { grid-template-columns: 1fr 1fr; }
.lb-imgs figure { position: relative; min-height: 0; margin: 0; display: grid; place-items: center; background: #000; animation: fade-in .3s ease; }
.lb-imgs img { width: 100%; height: 100%; max-height: calc(100svh - 2 * var(--frame) - 110px); object-fit: contain; }
.lb-imgs figcaption { position: absolute; top: 10px; left: 10px; padding: 1px 10px; font: 700 18px var(--disp); background: #000; border: 1px solid var(--line-strong); }
.lb-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px 56px 56px; align-items: stretch; border-top: 1px solid var(--line-strong); }
.lb-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; }
.lb-text b { font: 800 30px/1 var(--disp); }
.lb-text span { color: var(--muted); }
.lb-count { display: flex; align-items: center; padding: 0 16px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); }
.lb-foot button { min-height: 56px; padding: 0; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.lb-foot button:hover { background: var(--ink); color: #000; }
.lb-foot button:focus-visible { outline-offset: -4px; }

/* Efter ritningen */
.sec { scroll-margin-top: calc(var(--frame) + var(--head)); max-width: 1200px; margin: 0 auto; padding: clamp(72px, 11vh, 120px) var(--pad); position: relative; }
.sec::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line-strong); }
.sec h2 { font-size: clamp(46px, 5.6vw, 88px); }
.sub { color: var(--muted); margin: 14px 0 32px; }
.process { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line-strong); }
.process li { counter-increment: s; padding: 22px 22px 26px 0; border-right: 1px solid var(--line); }
.process li + li { padding-left: 22px; }
.process li:last-child { border-right: 0; }
.process li::before { content: counter(s); display: block; font: 800 64px/1 var(--disp); margin-bottom: 18px; }
.process h3 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 15px; line-height: 1.55; }

#mapview { height: clamp(300px, 46vh, 460px); border: 1px solid var(--line-strong); background: #000; }
.map-tiles { filter: grayscale(1) invert(1) brightness(.85) contrast(1.05); }
.leaflet-container { font: inherit; background: #000; }
.leaflet-control-attribution { background: rgba(0, 0, 0, .8) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--ink) !important; }
.leaflet-bar { border-radius: 0 !important; border: 1px solid var(--line-strong) !important; }
.leaflet-bar a { background: #000; color: var(--ink); border-radius: 0 !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--ink); color: #000; }
.mal-label { width: 0; height: 0; }
.mal-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 800 clamp(30px, 3.6vw, 48px) var(--disp); letter-spacing: .1em; color: var(--ink); text-shadow: 0 0 12px #000; pointer-events: none; }
.hem-pin { width: 0; height: 0; }
.hem-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 2px #000; }
.hem-pin span { position: absolute; left: 14px; top: -10px; white-space: nowrap; font-weight: 500; font-size: 13px; color: var(--ink); text-shadow: 0 0 6px #000; }

footer { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) calc(var(--frame) + 28px); }
.foot { display: grid; grid-template-columns: 1fr auto auto; align-items: stretch; border: 1px solid var(--line-strong); }
.foot > * { padding: 16px 20px; }
.foot > div:first-child { border-right: 1px solid var(--line); }
.foot-firm { display: flex; align-items: center; gap: 18px; }
.foot-mark { flex: none; height: 64px; aspect-ratio: 207 / 306; fill: #fff; }
.foot b { display: block; font: 700 24px/1.05 var(--disp); }
.foot span { color: var(--muted); font-size: 13px; }
.foot-phone { display: flex; align-items: center; border-right: 1px solid var(--line); font: 700 30px var(--disp); text-decoration: none; }
.foot-phone:hover { background: var(--ink); color: #000; }
.foot .btns { align-items: center; }
.copy { color: var(--muted); font-size: 12px; margin-top: 12px; }
.copy a { margin-left: 14px; color: var(--muted); }
.copy a:hover { color: var(--ink); }

@media (max-width: 1000px) { header nav { display: none; } header { justify-content: space-between; } }
@media (max-width: 900px) {
  :root { --frame: 8px; --head: 62px; }
  .ruler { display: none; }
  /* Mobil: samma låsta blad som på datorn, men utan huset. Loggakortet (vit yta, svart V) står still och texten i det byts när man scrollar. */
  /* Bladet ligger fast med sticky: scrollsträckan är byggets höjd minus bladets höjd (210 % av skärmen) */
  .build { height: calc(var(--sh, 100svh) * 3.1); }
  .sheet { position: sticky; top: 0; height: var(--sh, 100svh); }
  /* V:et går hela vägen ned till kortets nederkant, som i loggan: spetsen är öppen nedåt */
  .sheet::before { content: ""; display: block; inset: auto; left: 16px; right: 16px; top: calc(var(--frame) + var(--head) + 10px); bottom: calc(var(--frame) + 30px); z-index: 0;
    background: #4D4D4D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 168 207 138'%3E%3Cpath fill='%23000000' d='M25.4 174H47.3L104 296.4L159.6 174H180.6L120.6 306H85.4Z'/%3E%3C/svg%3E") center bottom / 123% auto no-repeat; }
  .mark-bg, #scene, .tape-note { display: none; }
  /* Ramen ritas inne i bladet i stället för fast mot skärmen. Då hoppar ingenting när webbläsarens adressfält fälls in vid första scrollen. */
  .frame { display: none; }
  .sheet::after { content: ""; position: absolute; inset: var(--frame); border: 1px solid var(--line); pointer-events: none; z-index: 5; }
  .notes { left: 38px; right: 38px; width: auto; top: calc(var(--frame) + var(--head) + 34px); }
  .note h1 { font-size: 44px; }
  .note h2 { font-size: 40px; }
  .note .lede { font-size: 16px; margin: 12px 0 18px; max-width: none; }
  .lines { margin-top: 14px; }
  .lines > div { padding: 9px 0; }
  .lines h3 { font-size: 23px; }
  .lines p { font-size: 14px; margin-top: 2px; }
  .tags li { font-size: 13px; padding: 5px 10px; }
  .phone-big { font-size: 38px; margin: 12px 0 16px; }
  .note .btn, .btn { min-height: 48px; padding: 0 18px; }
  /* Bara förloppsstrecket kvar av ritningshuvudet: visar hur långt man kommit */
  .titleblock { display: block; left: 16px; right: 16px; bottom: calc(var(--frame) + 10px); width: auto; padding: 0; border: 0; background: none; }
  .titleblock > :not(.tb-bar) { display: none; }
  .tb-bar { height: 4px; border: 0; background: var(--line); }
  .logo { gap: 10px; }
  .logo svg { height: 40px; }
  .logo-name { font-size: 15px; line-height: 1.05; white-space: normal; max-width: 8.5em; }
  header { gap: 12px; padding: 0 12px; }
  .jobb-intro { grid-template-columns: 1fr; gap: 26px; }
  .jobb-text .sub { font-size: 16px; }
  .foto-ram { aspect-ratio: 4 / 5; }
  .mini-tb b { font-size: 16px; }
  .mini-tb > * { padding: 7px 10px; }
  .mosaik { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .tile.big { grid-row: span 1; }
  .tile.tall { grid-row: span 1; }
  .tile .cap { padding: 6px 10px; }
  .tile .cap b { font-size: 20px; }
  .tile .cap span { font-size: 12px; }
  .split .lab { top: 8px; font-size: 14px; padding: 0 8px; }
  .split .lab.l { left: 8px; } .split .lab.r { left: calc(50% + 8px); }
  .m-cta { padding: 22px 20px; }
  .lb-imgs.two { grid-template-columns: 1fr; }
  .lb-imgs img { max-height: calc((100svh - 2 * var(--frame) - 150px) / 2); }
  .lb-imgs:not(.two) img { max-height: calc(100svh - 2 * var(--frame) - 150px); }
  .lb-foot { grid-template-columns: minmax(0, 1fr) 52px 52px 52px; }
  .lb-text { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .lb-text b { font-size: 24px; }
  .lb-count { border-left: 0; }
  .lb-foot button { min-height: 52px; }
  .foot-mark { height: 52px; }
  .sec { padding: 56px var(--pad); }
  .sec h2 { font-size: 42px; }
  #mapview { height: 300px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--line); }
  .process li:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .process li:nth-child(2n + 1) { padding-left: 0; }
  .foot { grid-template-columns: 1fr; }
  .foot > div:first-child, .foot-phone { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mark-bg { animation: none; } .tile img { transition: none; } dialog.lb[open], dialog.lb[open]::backdrop, .lb-imgs figure { animation: none; } }

/* ===== Scroll-craft (aktivt när <html> har klassen craft; ?klassisk i adressen slår av allt nedan) ===== */
.v-build, .mk-hole, .mk-out { display: none; }
.craft-on .process { position: relative; }
.craft-on .process::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.craft-on .process li { opacity: .28; transition: opacity .5s ease; }
.craft-on .process li.on { opacity: 1; }
.craft #omrade { min-height: 175vh; }
.craft .map-stick { position: sticky; top: calc(var(--frame) + var(--head) + 16px); }
.craft #mapview { height: clamp(300px, 52vh, 520px); }
@media (prefers-reduced-motion: reduce) {
  .craft-on .process li { opacity: 1; transition: none; }
  .craft-on .process::after { transform: none; }
  .craft #omrade { min-height: 0; }
  .craft .map-stick { position: static; }
}
