/* 3-materialet — Ståhle Digital showroom
   Designmagasin med byggets material: benvitt papper, nästan svart text, bränd orange,
   enorm serif, betong och trä som genereras i realtid. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2-variations"), url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight.woff2") format("woff2-variations"), url("../fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f5f1ea;
  --paper: #fbf8f3;
  --paper-2: #ede7dc;
  --ink: #161412;
  --ink-2: #2b2723;
  --muted: #5a534b;
  --faint: #6f675e;
  --line: rgba(22, 20, 18, 0.14);
  --line-2: rgba(22, 20, 18, 0.3);
  --orange: #c2511f;
  --orange-deep: #a8431a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(18px, 4.6vw, 76px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cut: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.acc { color: var(--orange); }
.acc-2 { color: var(--ink-2); }

/* ---------------------------------------------------------------- egen pekare (bara mus) */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
html.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
}
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--ink);
  transition: opacity 0.25s, background-color 0.25s;
}
.cursor-ring {
  --s: 38px;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.35s, border-color 0.35s, opacity 0.3s, border-radius 0.45s var(--ease);
}
.cursor-label {
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.45s var(--ease);
}
.cursor.is-link .cursor-ring { --s: 78px; background: var(--orange); border-color: var(--orange); }
.cursor.is-link .cursor-label { opacity: 1; transform: none; }
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-button .cursor-ring { --s: 64px; border-color: var(--orange); background: rgba(194, 81, 31, 0.12); }
.cursor.is-type .cursor-ring { --s: 190px; border-color: var(--line-2); }
.cursor.is-material .cursor-ring { --s: 120px; border-radius: 2px; border-color: rgba(251, 248, 243, 0.8); }
.cursor.is-material .cursor-dot { background: var(--paper); }
.cursor.is-field .cursor-ring, .cursor.is-field .cursor-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(245, 241, 234, 0.92); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand-logo { display: block; width: 128px; flex: none; }
.brand-logo img { width: 100%; height: auto; }
.site-header nav { display: flex; gap: 6px; margin-left: auto; font-size: 15px; }
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--cut);
}
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------------------------------------------- knappar */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 500 15.5px/1 var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  /* snitt i bränd orange som skär in från vänster */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--orange);
  clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%);
  transition: clip-path 0.6s var(--cut);
}
.btn:hover::before, .btn.is-pressed::before { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); }
.btn:hover { border-color: var(--orange); }
.btn > span { position: relative; z-index: 1; pointer-events: none; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn.is-stamped { animation: stamp 0.6s var(--ease); }
@keyframes stamp { 30% { transform: translateY(2px); } 100% { transform: none; } }

.text-link {
  color: var(--ink);
  background-image: linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--line-2), var(--line-2));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.6s var(--cut), color 0.3s;
}
.text-link:hover { background-size: 100% 1px, 100% 1px; color: var(--orange-deep); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vh, 90px)) 0 clamp(60px, 9vh, 110px);
}
.slab {
  position: absolute;
  top: calc(var(--header-h) + clamp(90px, 17vh, 180px));
  right: 0;
  width: 44vw;
  height: min(78vh, 760px);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  background: #c9c3b8;
  z-index: 0;
}
.slab canvas { width: 100%; height: 100%; }
.js.motion .slab { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.js.motion .slab.is-cut { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); transition: clip-path 1.5s var(--cut) 0.15s; }
.slab::after {
  /* tunn skuggkant längs snittet */
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(22, 20, 18, 0.06), inset 0 -60px 80px -60px rgba(22, 20, 18, 0.25);
  pointer-events: none;
}

.hero-main { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.hero-copy { display: block; }
.hero-copy .tag { display: flex; white-space: nowrap; }
.hero-copy .tag::after { content: ""; flex: 0 1 180px; min-width: 24px; height: 1px; background: var(--line-2); margin-left: 12px; }
.hero-copy h1 {
  --hs: clamp(62px, 14.2vw, 244px);
  margin-top: clamp(20px, 3vh, 40px);
  font-family: var(--serif);
  font-size: var(--hs);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
.hero-copy h1 br { display: none; }
.h1-line { display: block; }
.hero-copy h1 .h1-line:first-child > .word { display: block !important; width: max-content; }
.hero-copy h1 .h1-line:first-child > .word:nth-child(2) { margin-left: 0.9em; }
/* delad rubrik döljs tills introt tar över; reserv efter 3 s om skripten uteblir */
.js.motion .hero-copy h1 { visibility: hidden; }
.js.motion:not(.intro-run) .hero-copy h1 { animation: show-h1 0s 3s forwards; }
@keyframes show-h1 { to { visibility: visible; } }
.hero-copy h1 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 300;
}
.hero-copy h1 .word { display: inline-block; white-space: nowrap; }
.hero-copy h1 .char { display: inline-block; will-change: transform; transform-origin: 50% 80%; }
.hero-copy .lead {
  max-width: 30ch;
  margin-top: clamp(34px, 5vh, 60px);
  margin-left: clamp(0px, 8vw, 140px);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.5;
  color: var(--ink-2);
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.koll-wrap { margin-top: clamp(70px, 11vh, 130px); }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); }
.hero-koll { padding: clamp(26px, 3.4vw, 54px); }
.koll-entry { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 clamp(24px, 4vw, 70px); }
.koll-entry > .tag { grid-column: 1 / -1; margin-bottom: 26px; }
.koll-entry-divider { background: var(--line); }
.koll-q h2 { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 54px); line-height: 1; letter-spacing: -0.03em; font-weight: 350; font-variation-settings: "opsz" 96; }
.koll-q > p { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 42ch; }
.koll-q-open { display: none; margin-top: 20px; }
.koll-q-body { margin-top: 26px; }
.koll-form { display: grid; gap: 14px; }

label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 18px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease);
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder { color: #8a8278; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--orange); }
.agar-doh-note { font-size: 13.5px; line-height: 1.55; color: var(--faint); }

.anders-wrap { margin: clamp(40px, 6vw, 80px) var(--gutter) 0 max(var(--gutter), calc(100% - 760px - var(--gutter))); }
.anders-trust {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
}
.anders-trust picture {
  display: block;
  width: 150px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.js.motion .anders-trust picture { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 1.2s var(--cut); }
.js.motion .anders-trust.is-in picture { clip-path: polygon(0 0, 100% 0, 100% 86%, 78% 100%, 0 100%); }
.anders-trust img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05) sepia(0.12); }
.anders-trust-copy p { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; font-weight: 350; font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
.anders-social { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 14px; font-size: 14.5px; }
.anders-social a { display: inline-flex; align-items: center; min-height: 40px; border-bottom: 1px solid transparent; }
.anders-social a:hover { color: var(--orange-deep); }

/* ---------------------------------------------------------------- kapitel som magasinsindex */
.home-story { position: relative; }
.chapters { max-width: 1600px; margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gutter) 0; }
.home-chapters { border-bottom: 1px solid var(--line-2); }
.home-chapter { position: relative; border-top: 1px solid var(--line-2); }
.home-chapter-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 14vw, 220px) 56px;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 52px) 0;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-chapter-summary::-webkit-details-marker { display: none; }
.home-chapter-copy { display: grid; grid-template-columns: clamp(70px, 9vw, 150px) minmax(0, 1fr); column-gap: clamp(12px, 2vw, 32px); row-gap: 12px; }
.home-chapter-kicker { display: contents; }
.kicker-num {
  grid-row: 1 / span 2;
  padding-top: 0.9em;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.home-chapter-kicker {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.chapter-title { display: block; transition: font-variation-settings 0.7s var(--ease), font-weight 0.7s var(--ease); }
.home-chapter-summary:hover .chapter-title,
.home-chapter.is-focus .chapter-title,
.home-chapter[open] .chapter-title { font-weight: 520; font-variation-settings: "opsz" 144, "SOFT" 100; }
.home-chapter-lede { grid-column: 2; max-width: 56ch; color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); }

.swatch {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  /* stängt: en smal, snett avskuren remsa av materialet; öppnas till helt snitt */
  clip-path: polygon(0 0, 9% 0, 4% 100%, 0 100%);
  transition: clip-path 0.9s var(--cut);
}
.swatch-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; }
.swatch-frame .swatch { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.swatch.wood { background-image: var(--wood, none); }
.swatch.concrete { background-image: var(--concrete, none); }
.home-chapter-summary:hover .swatch,
.home-chapter.is-focus .swatch,
.home-chapter[open] .swatch { clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }

.home-chapter-arrow { position: relative; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.7s var(--cut), background-color 0.3s, border-color 0.3s; }
.home-chapter-arrow::before, .home-chapter-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1px;
  margin: -0.5px 0 0 -9px;
  background: var(--ink);
}
.home-chapter-arrow::after { transform: rotate(90deg); }
.home-chapter-summary:hover .home-chapter-arrow { background: var(--ink); border-color: var(--ink); }
.home-chapter-summary:hover .home-chapter-arrow::before, .home-chapter-summary:hover .home-chapter-arrow::after { background: var(--paper); }
.home-chapter[open] .home-chapter-arrow { transform: rotate(135deg); }

.home-chapter-body { padding: 0 0 clamp(40px, 5vw, 80px) calc(clamp(70px, 9vw, 150px) + clamp(12px, 2vw, 32px)); }
details.is-animating { overflow: hidden; }

.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); }
.service-list article { padding: 22px 26px 26px 0; border-bottom: 1px solid var(--line); }
.service-list h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 380; font-variation-settings: "opsz" 72; }
.service-list h3 a { display: inline-flex; min-height: 40px; align-items: center; background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0% 1px; background-position: 0 92%; background-repeat: no-repeat; transition: background-size 0.6s var(--cut); }
.service-list h3 a:hover { background-size: 100% 1px; }
.service-list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.scope { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); }
.scope-full { grid-template-columns: 1fr; }
.scope > div > p { color: var(--ink-2); font-size: 18px; }
.scope-full > div > p { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.scope-full > div > p:first-child { border-top: 1px solid var(--line); }
.scope-full .text-link { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.015em; font-variation-settings: "opsz" 48; }
.scope > div > .text-link { display: inline-block; margin-top: 24px; font-weight: 500; }
.scope ol { margin: 0; padding: 0; list-style: none; display: grid; }
.scope li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.scope li small { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.scope li h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; font-weight: 380; font-variation-settings: "opsz" 72; }
.scope li p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.faq-list { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 14px 46px 14px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 380;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--ink);
  box-shadow: none;
}
.faq-list summary::before {
  content: "";
  position: absolute;
  right: 13.5px;
  top: calc(50% - 7.5px);
  width: 1px;
  height: 16px;
  background: var(--ink);
  transition: transform 0.5s var(--cut);
}
.faq-list details[open] summary::before { transform: scaleY(0); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------------- kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 220px) var(--gutter) clamp(100px, 15vh, 180px);
}
.contact h2 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(52px, 7.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
}
.contact h2 br { display: none; }
.contact h2 em { font-style: italic; color: var(--orange); white-space: nowrap; }
.contact-copy > p:last-child { margin-top: 30px; margin-left: clamp(0px, 6vw, 100px); max-width: 38ch; color: var(--ink-2); font-size: 19px; }
.contact-form { display: grid; gap: 22px; margin-top: clamp(0px, 12vw, 190px); }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.contact-form small { color: var(--faint); font-size: 13.5px; line-height: 1.55; }
.contact-form small a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- sidfot */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  grid-template-areas: "brand addr contact nav" "copy copy copy nav";
  gap: 30px 40px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.site-footer .brand-logo-footer { grid-area: brand; width: 180px; }
.site-footer > p { grid-area: addr; }
.site-footer > div { grid-area: contact; }
.footer-nav { grid-area: nav; }
.site-footer a:hover { color: var(--orange-deep); }
.site-footer small { grid-area: copy; align-self: end; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--faint); }

/* ---------------------------------------------------------------- rad-för-rad */
.line-mask { overflow: clip; }

/* ---------------------------------------------------------------- responsivt */
@media (max-width: 1100px) {
  .site-header .small { display: none; }
  .slab { width: 52vw; }
}

@media (max-width: 850px) {
  :root { --header-h: 102px; }
  .site-header { flex-wrap: wrap; align-content: center; gap: 0; padding-top: 6px; }
  .brand-logo { width: 112px; }
  .site-header nav { order: 3; width: 100%; margin: 0 -10px; justify-content: space-between; font-size: 14px; gap: 0; }
  .site-header nav a { padding: 0 10px; }
  .site-header nav a::after { left: 10px; right: 10px; }

  /* mobil: plattan ligger under ingressen som ett eget ögonblick (ui.js sätter --slab-top), aldrig bakom text */
  .slab { top: var(--slab-top, 640px); left: var(--gutter); right: 0; width: auto; height: 42vh; min-height: 280px; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .js.motion .slab.is-cut { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .koll-wrap { margin-top: calc(max(42vh, 280px) + 90px); }
  .hero-copy h1 { --hs: 18.6vw; line-height: 0.9; }
  .hero-copy h1 .h1-line:first-child > .word:nth-child(2) { margin-left: 0.45em; }
  .hero-copy .lead { margin-left: 0; font-size: 18px; }
  .koll-entry { grid-template-columns: 1fr; }
  .koll-entry-divider { height: 1px; margin: 30px 0; }
  .koll-q-open { display: inline-flex; }
  .koll-q-body { display: none; }
  .koll-q[data-open="true"] .koll-q-body { display: block; }
  .koll-q[data-open="true"] .koll-q-open { display: none; }
  .anders-trust { grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .anders-trust picture { width: 104px; }

  .home-chapter-summary { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px; padding: 26px 0; align-items: start; }
  .home-chapter-copy { grid-template-columns: 1fr; }
  .kicker-num { grid-row: auto; padding-top: 0; }
  .home-chapter-lede { grid-column: 1; }
  .home-chapter-kicker { font-size: 38px; }
  .swatch-frame { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 21 / 7; }
  .home-chapter-arrow { width: 44px; height: 44px; grid-column: 2; grid-row: 1; }
  .home-chapter-body { padding-left: 0; }
  .scope { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-form { margin-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "addr contact" "nav nav" "copy copy"; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer-nav br { display: none; }
  .footer-nav a { display: flex; align-items: center; min-height: 40px; line-height: 1.3; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-koll { padding: 26px 20px; }
  .scope li { grid-template-columns: 1fr; gap: 2px; }
  .site-footer { grid-template-columns: 1fr; grid-template-areas: "brand" "addr" "contact" "nav" "copy"; gap: 22px; }
  .contact h2 { font-size: 15vw; }
  .service-list article { padding-right: 0; }
}

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

.stilprov-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 36rem;
}
.stilprov-note a { font-weight: 650; }
.sd-live-link {
  position: fixed;
  z-index: 60;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: rgba(15, 15, 16, 0.88);
  color: #f6f5f1;
  border: 1px solid rgba(246, 245, 241, 0.28);
  backdrop-filter: blur(8px);
}
.sd-live-link:hover,
.sd-live-link:focus-visible {
  outline: 2px solid #f0643b;
  outline-offset: 2px;
}
html[data-theme="light"] .sd-live-link,
body.theme-light .sd-live-link {
  background: rgba(253, 251, 247, 0.94);
  color: #161412;
  border-color: rgba(22, 20, 18, 0.18);
}

/* Showroom live-länk på ljus yta */
.sd-live-link {
  background: rgba(253, 251, 247, 0.94);
  color: #161412;
  border-color: rgba(22, 20, 18, 0.18);
}
