/* ==========================================================================
   Skrotbil Stockholm – stilmall
   Struktur: typsnitt → variabler → grund → delar (sidhuvud, startvy, steg,
   tjänster, om oss, frågor, kontakt, sidfot) → rörelse → mobil
   ========================================================================== */

/* ---------- Typsnitt (självhostat, inga anrop till Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variabler ---------- */
:root {
  /* Färger hämtade ur loggan */
  --bg: #f3f5f7;
  --surface: #e3e9ee;
  --ink: #0f2233;
  --muted: #4a5c6b;
  --brand: #1c5885;
  --brand-deep: #154670;
  --accent: #f7843a;
  --accent-press: #ec7429;
  --plate-blue: #0b3b9a;
  --field-line: #93a3b1;
  --danger: #b3261e;
  --on-dark: #ffffff;

  /* Typskala – sex steg på hela sidan */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem);
  --step-head: clamp(2.25rem, 0.6rem + 9.8vw, 9.5rem);
  --step-display: clamp(3rem, 12.2vw, 13rem);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Rytm */
  --margin: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(112px, 12vw, 200px);
  --header-h: 72px;

  /* Rörelse */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-shutter: cubic-bezier(0.77, 0, 0.18, 1);
}

/* ---------- Grund ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--margin);
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

/* Rubrikstilen: smal, tung och versal */
.display {
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.86;
}

.head { font-size: var(--step-head); line-height: 0.95; } /* luft för Å och Ä */
.lead { font-size: var(--step-lead); line-height: 1.35; }

.statement {
  font-size: var(--step-statement);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.section { padding: var(--section) var(--margin) 0; }

/* ---------- Knappar och länkar ---------- */
.btn {
  --btn-fill: var(--brand);
  --btn-fill-ink: var(--on-dark);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  font-size: var(--step-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--ease-out), transform 0.15s var(--ease-out);
}
/* Fyllnaden sveper in från vänster och ut åt höger */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover { color: var(--btn-fill-ink); }
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--accent { --btn-fill: var(--ink); background: var(--accent); color: var(--ink); }

.btn--tall { min-height: 72px; padding: 0 32px; }

.btn[disabled] { cursor: progress; opacity: 0.7; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-underline-offset 0.2s var(--ease-out), color 0.2s ease;
}
.text-link:hover { text-underline-offset: 0.36em; color: var(--brand); }

/* ---------- Sidhuvud ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: transform 0.45s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  padding-inline: var(--margin);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 800;
  font-stretch: 75%;
  font-size: var(--step-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 40px; height: auto; transition: transform 0.7s var(--ease-out); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }

.nav ul { display: flex; gap: 32px; }
.nav a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s var(--ease-out);
}
.nav a:hover { text-decoration-color: currentColor; text-underline-offset: 0.2em; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { min-height: 44px; padding: 0 20px; }

/* Telefonnumret i sidhuvudet: hela numret på stora skärmar, "Ring" på mobil */
.header__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s var(--ease-out);
}
.header__phone:hover { text-decoration-color: currentColor; text-underline-offset: 0.2em; }
.header__phone-short { display: none; }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* ---------- Startvy ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 6vh, 64px);
  padding: clamp(32px, 8vh, 96px) var(--margin) clamp(40px, 8vh, 88px);
}

.hero__title { font-size: var(--step-display); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line__inner { display: block; white-space: nowrap; }

/* Bildfönstret mitt i meningen – lika högt som versalerna */
.slot {
  position: relative;
  display: inline-block;
  width: 2.3em;
  height: 0.72em;
  margin-right: 0.06em;
  overflow: hidden;
  vertical-align: baseline;
  background: var(--surface);
}
.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}
.hero__lead { grid-column: 1 / span 5; max-width: 34ch; }

.quick {
  grid-column: 7 / -1;
  justify-self: end;
  width: min(100%, 620px);
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink);
  color: var(--on-dark);
}
.quick__label { display: block; margin-bottom: 12px; font-weight: 500; }
.quick__row { display: flex; gap: 12px; }
.quick__note { margin-top: 14px; font-size: var(--step-small); color: #b9c6d2; }
.quick__note a { color: #fff; font-weight: 600; text-underline-offset: 0.2em; white-space: nowrap; }
.quick__note a:hover { color: var(--accent); }
/* Skylten i det mörka kortet: vit kant och svart innerram som en riktig skylt */
.quick .plate { border-color: #fff; outline: 2px solid var(--ink); outline-offset: -6px; }
.quick .plate:focus-within { border-color: var(--accent); }
.quick .btn--accent { --btn-fill: #fff; --btn-fill-ink: var(--ink); }

/* ---------- Prislappen ---------- */
.hang-tag {
  position: absolute;
  top: 0;
  right: calc(var(--margin) + clamp(0px, 4vw, 72px));
  z-index: 3;
}
.hang-tag__swing {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  transform: rotate(-4deg);
}
.hang-tag__string { position: relative; z-index: 2; display: block; color: var(--ink); }
.hang-tag__card {
  position: relative;
  width: 196px;
  margin-top: -30px;
  padding: 48px 18px 22px;
  background: var(--accent);
  color: var(--ink);
  text-align: center;
  clip-path: polygon(22% 0, 78% 0, 100% 20%, 100% 100%, 0 100%, 0 20%);
}
/* Hålet med en vit förstärkningsring */
.hang-tag__card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--bg);
}
.hang-tag__big {
  display: block;
  font-size: var(--step-statement);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Rullande band ---------- */
.ticker {
  overflow: hidden;
  padding-block: clamp(14px, 1.6vw, 22px);
  background: var(--ink);
  color: var(--on-dark);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__group li {
  display: flex;
  align-items: center;
  font-size: var(--step-statement);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group li::after {
  content: "";
  flex: none;
  width: 0.3em;
  height: 0.3em;
  margin-inline: 0.9em;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* Registreringsskylten */
.plate {
  display: flex;
  flex: 1;
  height: 72px;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.plate:focus-within { border-color: var(--brand); }

.plate__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 42px;
  padding-bottom: 8px;
  background: var(--plate-blue);
  color: #fff;
  font-weight: 700;
  font-size: var(--step-small);
  line-height: 1;
}

.plate__input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-stretch: 80%;
  font-size: 2.375rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.plate__input::placeholder { color: #a9b4bd; }
.plate__input:focus { outline: none; }

/* ---------- Så går det till ---------- */
.panel {
  position: relative;
  height: 100svh;
  min-height: 560px;
  /* Verbet startar i mitten och stannar ovanför textrutan när panelen lämnar skärmen */
  padding-top: calc(50svh - 0.43em);
  padding-bottom: 220px;
  overflow: clip;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step-display);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, 0.4);
}

.panel__img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.panel__verb-wrap {
  position: sticky;
  top: calc(50svh - 0.43em);
  z-index: 2;
  text-align: center;
}
.panel__verb { font-size: 1em; }

.panel__text {
  position: absolute;
  left: var(--margin);
  bottom: var(--margin);
  z-index: 2;
  max-width: 34ch;
  padding: 18px 22px;
  background: rgba(8, 18, 28, 0.78);
  font-size: var(--step-body);
  line-height: 1.5;
}

/* ---------- Tjänster ---------- */
/* ---------- Pris ---------- */
.price {
  padding-bottom: var(--section);
  background: var(--accent);
  color: var(--ink);
}
.price__figure { grid-column: 1 / span 7; align-self: start; }
.price__amount {
  font-size: var(--step-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__amount [data-count] { display: inline-block; text-align: right; }
.price__body { grid-column: 8 / -1; padding-top: 0.5em; }
.price__title { margin-bottom: 16px; font-weight: 600; }
.price__intro { max-width: 40ch; }
.price__factors { display: grid; gap: 10px; margin: 24px 0 28px; }
.price__factors li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.25;
}
.price__factors li::before {
  content: "";
  flex: none;
  width: 0.42em;
  height: 0.42em;
  background: var(--ink);
  transform: translateY(-0.08em) rotate(45deg);
}
.price__note { max-width: 44ch; margin-bottom: 32px; }

/* ---------- Tjänster ---------- */
.services__title { grid-column: 1 / -1; margin-bottom: clamp(32px, 4vw, 56px); }
.services__text { grid-column: 1 / span 11; }

.pic {
  position: relative;
  display: inline-block;
  width: 1.9em;
  height: 1em;
  overflow: hidden;
  vertical-align: -0.16em;
  background: var(--surface);
}
.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.js .statement .pic:hover img,
.pic:hover img { transform: scale(1.1); }
.pic--bilar img { object-position: 62% 55%; }
.pic--delar img { object-position: 64% 50%; }
.pic--metall img { object-position: 50% 82%; }

.services__figure {
  grid-column: 1 / span 6;
  margin: 72px 0 0;
  overflow: hidden;
  background: var(--surface);
}
.services__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.js .services__figure.is-in:hover img,
.services__figure:hover img { transform: scale(1.03); transition-delay: 0s; }

.services__foot {
  grid-column: 8 / span 5;
  align-self: end;
  margin-top: 72px;
}
.services__foot p { max-width: 44ch; }
.services__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

/* ---------- Om oss ---------- */
.facts {
  grid-column: 1 / span 2;
  display: grid;
  gap: 20px;
  align-content: start;
  padding-top: 0.4em;
  font-size: var(--step-small);
}
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts a { text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

.about__text {
  grid-column: 3 / -1;
  font-size: var(--step-statement);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.about__lead strong { font-weight: 700; }
.about__more { margin-top: 1.2em; color: var(--muted); }

.dropcap {
  float: left;
  display: block;
  width: 3.6em;
  height: 3.6em;
  margin: 0.14em 0.5em 0 0;
  overflow: hidden;
  background: var(--surface);
}
.dropcap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vanliga frågor ---------- */
.faq {
  margin-top: var(--section);
  padding-bottom: var(--section);
  background: var(--surface);
}
.faq__list { display: grid; row-gap: clamp(40px, 4.5vw, 64px); }
.faq__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
}
.faq__title,
.faq__q {
  grid-column: 1 / span 6;
  font-size: var(--step-statement);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.faq__title { color: var(--muted); }
.faq__a { grid-column: 8 / -1; max-width: 42ch; line-height: 1.55; }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: var(--section); }

.contact__intro { grid-column: 1 / span 6; align-self: start; padding-right: var(--gap); }
.contact__title { margin-bottom: 28px; }
.contact__intro .lead { max-width: 30ch; }

.contact__direct {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 48px;
}
.contact__direct img { width: 160px; height: 160px; flex: none; object-fit: cover; }
.contact__q { margin-bottom: 8px; font-weight: 600; }
.contact__links { display: grid; gap: 6px; }
.contact__note { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

.form { grid-column: 7 / -1; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px var(--gap);
}

.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.optional { font-weight: 400; color: var(--muted); }

.field input:not(.plate__input),
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--field-line);
  border-radius: 0;
  background: #fff;
  transition: border-color 0.2s ease;
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230f2233' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:not(.plate__input):focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; }
.field input::placeholder,
.field textarea::placeholder { color: #8796a3; }

.field [aria-invalid="true"],
.field .plate:has([aria-invalid="true"]) { border-color: var(--danger) !important; }
.field__error { font-size: var(--step-small); font-weight: 600; color: var(--danger); }
.field__hint { font-size: var(--step-small); color: var(--muted); }

.field--chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--chips legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.chips { display: flex; gap: 8px; }
.chip { position: relative; flex: 1; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 12px;
  border: 2px solid var(--field-line);
  background: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip input:active + span { transform: scale(0.97); }

.plate--small { height: 56px; border-width: 2px; border-radius: 6px; flex: none; }
.plate--small .plate__band { flex-basis: 30px; padding-bottom: 7px; }
.plate--small .plate__input { font-size: 1.75rem; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore */

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.form__privacy { max-width: 32ch; font-size: var(--step-small); color: var(--muted); }
.form__status { margin-top: 20px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--danger); }

.form-done {
  grid-column: 7 / -1;
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
}
.form-done h3 { font-size: var(--step-statement); font-weight: 600; line-height: 1.15; margin-bottom: 12px; }

/* ---------- Sidfot ---------- */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  min-height: 72svh;
  padding: 40px var(--margin) 28px;
  background: var(--brand);
  color: var(--on-dark);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--step-small);
}
.footer__totop { font-weight: 600; text-underline-offset: 0.25em; }
.footer__top a:not(.footer__totop) { font-weight: 600; text-underline-offset: 0.2em; white-space: nowrap; }
.footer__top a:hover { color: var(--accent); }

.footer__mail {
  display: block;
  font-size: var(--step-head);
  text-transform: none;
  text-decoration: none;
  line-height: 0.92;
  transition: color 0.25s ease;
}
.footer__mail:hover { color: var(--accent); }

.footer__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  font-size: var(--step-small);
}
.footer__meta nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__meta a { text-underline-offset: 0.2em; transition: color 0.2s ease; }
.footer__meta a:hover { color: var(--accent); }
.footer__meta p:last-child { text-align: right; }

/* ==========================================================================
   Rörelse – bara transform, opacitet och clip-path. Allt syns utan JS och
   med "minska rörelse" påslaget.
   ========================================================================== */

/* Grund: element glider upp när de kommer in i bild (JS sätter .is-in och --i) */
.js [data-reveal-item],
.js [data-hero-item] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal-item].is-in,
.js .is-in [data-hero-item] { opacity: 1; transform: none; }

/* Rubriker reser sig rad för rad bakom en osynlig kant */
.mask-lines .line {
  display: block;
  overflow: hidden;
  padding-top: 0.14em;          /* plats för Å och Ä */
  margin-top: -0.14em;
}
.mask-lines .line__inner { display: block; }
.mask-lines .line:nth-child(2) { --li: 1; }

.js [data-reveal-item="mask"] { opacity: 1; transform: none; }
.js [data-reveal-item="mask"] .line__inner {
  --mask-delay: calc(var(--i, 0) * 90ms + var(--li, 0) * 110ms);
  opacity: 0;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out), opacity 0.5s var(--ease-out);
  /* Texten tonar in först när den nästan har landat */
  transition-delay: var(--mask-delay), calc(var(--mask-delay) + 0.3s);
}
.js [data-reveal-item="mask"].is-in .line__inner { opacity: 1; transform: none; }

/* Bilder som öppnas nerifrån medan motivet landar (ramen observeras, bilden klipps) */
.js [data-reveal-item="clip"] { opacity: 1; transform: none; }
.js [data-reveal-item="clip"] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition: clip-path 1.2s var(--ease-shutter), transform 1.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal-item="clip"].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Startvyn: rubriken reser sig, sedan öppnas bildfönstret som en slutare */
.js .hero__title .line__inner {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.js .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.1s; }
.js .is-in .hero__title .line__inner { transform: none; }

.js [data-hero-item] { transition-delay: calc(0.5s + var(--i, 0) * 110ms); }

.js .slot { clip-path: inset(0 100% 0 0); }
.js .slot img { transform: scale(1.16); }
.js .is-in .slot {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-shutter) 0.4s;
}
.js .is-in .slot img {
  transform: none;
  transition: transform 1.6s var(--ease-out) 0.4s;
  animation: drift 16s ease-in-out 2.2s infinite alternate;
}
/* Kranbilden lever vidare med en långsam drift */
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-3%, 2%, 0); }
}

/* Skylten "stämplas" fram och lyfter vid fokus */
.js .is-in .quick .plate { animation: stamp 0.7s var(--ease-out) 0.95s backwards; }
@keyframes stamp {
  from { transform: scale(0.94); }
  60% { transform: scale(1.015); }
  to { transform: scale(1); }
}
.plate:focus-within { transform: translateY(-2px); }

/* Prislappen faller ned i sin snodd och gungar sedan lätt */
.hang-tag__swing { animation: tag-swing 3.6s ease-in-out infinite alternate; }
@keyframes tag-swing {
  from { transform: rotate(-7deg); }
  to { transform: rotate(3deg); }
}
.js .hang-tag { opacity: 0; transform: translateY(-16px); }
.js .is-in .hang-tag {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out) 0.7s, transform 0.8s var(--ease-out) 0.7s;
}
@media (min-width: 1100px) {
  .js .hang-tag { opacity: 1; transform: translateY(-120%); }
  .js .is-in .hang-tag { transition: none; animation: tag-drop 1.2s var(--ease-out) 0.7s backwards; }
}
@keyframes tag-drop {
  from { transform: translateY(-120%); }
  65% { transform: translateY(4%); }
  to { transform: none; }
}

/* Stegen: verbets bokstäver reser sig en i taget, texten glider in efter */
.panel__verb { overflow: hidden; padding-top: 0.14em; margin-top: -0.14em; }
.panel__verb .char {
  display: inline-block;
  will-change: transform;
}
.js .panel__verb .char {
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--ci, 0) * 45ms);
}
.js .panel.is-in .panel__verb .char { transform: none; }

.js .panel__text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out) 0.45s, transform 0.9s var(--ease-out) 0.45s;
}
.js .panel.is-in .panel__text { opacity: 1; transform: none; }

/* Bilderna i stegen glider och zoomar långsamt (sätts av JS) */
.panel__img { will-change: transform; }

/* Tjänster: de små bildfönstren i texten öppnas ett i taget */
.pic--bilar { --pi: 0; }
.pic--delar { --pi: 1; }
.pic--metall { --pi: 2; }
.js .statement .pic {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-shutter);
  transition-delay: calc(0.4s + var(--pi, 0) * 0.2s);
}
.js .statement.is-in .pic { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js [data-reveal-item],
  .js [data-hero-item],
  .js .line__inner,
  .js .panel__verb .char,
  .js .panel__text,
  .js .hang-tag,
  .js .slot img,
  .js [data-reveal-item="clip"] img { opacity: 1; transform: none; }
  .js .slot,
  .js .statement .pic,
  .js [data-reveal-item="clip"] img { clip-path: none; }
}

@media (min-width: 1100px) {
  .hero { padding-top: 96px; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .header__phone { display: none; }
}

/* ==========================================================================
   Surfplatta
   ========================================================================== */
@media (max-width: 1024px) {
  /* Menyn fälls ut under sidhuvudet på surfplatta och mobil */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--margin) 24px;
    background: var(--bg);
    box-shadow: 0 24px 40px rgba(15, 34, 51, 0.14); /* menyn flyter ovanpå sidan – taste-skill-ignore */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: var(--step-lead); font-weight: 600; }

  .menu-toggle { display: inline-block; }
  .hero__lead { grid-column: 1 / span 7; margin-bottom: 32px; max-width: 40ch; }
  .quick { grid-column: 1 / -1; justify-self: start; }
  .hang-tag {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 9 / -1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin-right: 14px;
  }
  .hang-tag__string { display: none; }
  .hang-tag__card { margin-top: 0; }
  .price__figure, .price__body { grid-column: 1 / -1; }
  .price__body { padding-top: 40px; max-width: 640px; }
  .services__text { grid-column: 1 / -1; }
  .services__figure { grid-column: 1 / -1; }
  .services__foot { grid-column: 1 / -1; margin-top: 40px; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin-bottom: 40px; order: 2; padding-top: 0; margin-top: 48px; }
  .about__text { grid-column: 1 / -1; }
  .faq__title, .faq__q { grid-column: 1 / span 6; }
  .faq__a { grid-column: 7 / -1; }
  .contact__intro { grid-column: 1 / -1; margin-bottom: 56px; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .contact__intro .contact__title { grid-column: 1 / -1; }
  .contact__direct { margin-top: 0; }
  .form, .form-done { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .brand { font-size: 1.0625rem; gap: 10px; }
  .brand img { width: 34px; }

  .header__cta { display: none; }
  .header__phone-full { display: none; }
  .header__phone-short { display: inline; }

  .hero { gap: 36px; padding-top: 36px; padding-bottom: 48px; }
  .hero__title { font-size: 13.6vw; }
  .slot { width: 1.55em; }
  .hero__lead { grid-column: 1 / -1; margin-bottom: 24px; }
  .hang-tag { grid-column: 1 / -1; grid-row: auto; justify-self: end; margin-bottom: 24px; }
  .hang-tag__card { width: 176px; }
  .quick { width: 100%; }
  .price__amount { font-size: 21vw; }
  .quick__row { flex-direction: column; }
  .quick__row .btn { width: 100%; min-height: 60px; }
  .plate { flex: none; height: 68px; }

  .panel { min-height: 520px; padding-bottom: 180px; font-size: 20vw; }
  .panel__text {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 20px var(--margin) 24px;
  }

  .services__title { margin-bottom: 28px; }
  .pic { width: 1.5em; }
  .services__figure { margin-top: 40px; }
  .services__foot { margin-top: 32px; }

  .facts { grid-template-columns: 1fr; gap: 16px; }
  .about__text { line-height: 1.25; }
  .dropcap { width: 4.75em; height: 4.75em; }

  .faq__title, .faq__q, .faq__a { grid-column: 1 / -1; }
  .faq__q { margin-bottom: 12px; }

  .contact__intro { display: block; margin-bottom: 48px; }
  .contact__direct { margin-top: 32px; gap: 16px; }
  .contact__direct img { width: 96px; height: 96px; }

  .form__grid { grid-template-columns: 1fr; gap: 20px; }
  .form__submit .btn { width: 100%; }

  .footer { min-height: 64svh; }
  .footer__top { flex-direction: column; }
  .footer__meta { grid-template-columns: 1fr; gap: 8px; }
  .footer__meta p:last-child { text-align: left; }
}
