/*
  Glimt – webbyrå
  Typsnitt: Schibsted Grotesk (400, 500, 600)
  Färger:
    --paper  #F3F2EE  bakgrund
    --ink    #10131F  text
    --accent #8B9CFF  periwinkle (huvudaccent)
    Temafärger: mint #8CE8C4, persika #FFB38A, sol #FFD54A, rosa #FF8FC1, himmel #8FD3FF
*/

:root {
  --paper: #F3F2EE;
  --white: #FFFFFF;
  --ink: #10131F;
  --ink-soft: rgba(16, 19, 31, 0.68);
  --ink-faint: rgba(16, 19, 31, 0.14);
  --accent: #8B9CFF;
  --accent-deep: #3442C9;
  --mint: #8CE8C4;
  --peach: #FFB38A;
  --sun: #FFD54A;
  --pink: #FF8FC1;
  --sky: #8FD3FF;

  --page-bg: var(--paper);
  --page-ink: var(--ink);

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.8vw, 40px);
  --radius-xl: clamp(20px, 2.4vw, 36px);
  --radius-l: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Typskala */
  --fs-mega: clamp(3rem, 9.2vw, 8.4rem);
  --fs-xl: clamp(2.3rem, 6.2vw, 6rem);
  --fs-l: clamp(1.9rem, 4.2vw, 4.1rem);
  --fs-m: clamp(1.35rem, 2vw, 1.8rem);
  --fs-body: clamp(1.02rem, 1.1vw, 1.15rem);
  --fs-s: 0.9rem;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--page-ink);
  background: var(--page-bg);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-theme="periwinkle"] { --page-bg: var(--accent); }

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); color: var(--ink); }

/* Länk som blir en mörk pill vid hover */
.link-pill {
  display: inline-block;
  padding: 0.55em 1.1em;
  margin-left: -1.1em;
  border-radius: 999px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), margin 0.35s var(--ease);
}
.link-pill:hover,
.link-pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration-color: transparent;
  margin-left: 0;
}

/* ---------- Sidhuvud ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), background-color 0.7s var(--ease);
}
@media (max-width: 760px) {
  .site-header.is-scrolled::before { opacity: 1; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}
.logo__mark { width: 26px; height: 26px; fill: var(--accent); transition: transform 0.8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__word { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

.pillnav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(16, 19, 31, 0.04), 0 8px 24px -12px rgba(16, 19, 31, 0.25);
}
.pillnav a {
  position: relative;
  z-index: 1;
  padding: 0.55em 1em;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.pillnav a.is-hover { color: var(--paper); }
.pillnav a.is-current:not(.is-hover) { background: rgba(16, 19, 31, 0.07); }
.pillnav__blob {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s ease;
}

.header-cta { justify-self: end; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(150px, 22vh, 230px) var(--gutter) var(--gutter);
}
.hero__title {
  font-size: var(--fs-mega);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: clamp(48px, 14vh, 150px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

/* Showreel-ruta */
.reel {
  position: relative;
  background: #141833;
  color: var(--paper);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 420px;
  transform-origin: 50% 0;
}
.reel__stage { position: absolute; inset: 0; overflow: hidden; }
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; }

.reel__buttons {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.reel__sound,
.reel__toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 242, 238, 0.85);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}
.reel__sound:hover,
.reel__toggle:hover,
.reel__sound:focus-visible,
.reel__toggle:focus-visible { opacity: 1; background: var(--paper); }
.reel__sound svg,
.reel__toggle svg { width: 18px; height: 18px; fill: currentColor; }
/* Ikonerna växlar: ljud av/på och paus/spela */
.reel__wave, .reel__play { display: none; }
.reel__sound[aria-pressed="true"] .reel__wave { display: block; }
.reel__sound[aria-pressed="true"] .reel__mute { display: none; }
.reel.is-paused .reel__pause { display: none; }
.reel.is-paused .reel__play { display: block; }

/* ---------- Påstående ---------- */
.statement {
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px);
  text-align: center;
}
.statement__text {
  max-width: 17em;
  margin: 0 auto;
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.statement__text .w { opacity: 0.18; transition: opacity 0.4s linear; }
.statement__text .w.on { opacity: 1; }

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(28px, 5vw, 72px);
  margin-top: clamp(64px, 10vh, 110px);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

/* ---------- Case ---------- */
.cases {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(40px, 6vh, 80px) var(--gutter);
}
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2.6vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--c);
  color: var(--c-ink);
  transform: scale(var(--s, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
.case__media { min-width: 0; }
.case__info h3 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.4em; }
.case__info p { max-width: 30ch; }
.case__result { margin: 1.2em 0 1em; padding-top: 1em; border-top: 1.5px solid currentColor; }
.case__result strong { display: block; font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.15em; }
.case .link-pill:hover, .case .link-pill:focus-visible { background: var(--c-ink); color: var(--c); }

/* Webbläsarram */
.browser {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease);
}
.case:hover .browser { transform: translateY(-6px) rotate(-0.4deg); }
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ECEBE6;
  font-size: 0.75rem;
  color: rgba(16, 19, 31, 0.55);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(16, 19, 31, 0.16); }
.browser__bar span { margin: 0 auto; padding: 3px 14px; background: var(--white); border-radius: 999px; }

.mock { aspect-ratio: 16 / 9.4; position: relative; overflow: hidden; color: var(--ink); font-size: clamp(0.55rem, 0.95vw, 0.9rem); }
.mock__btn { display: inline-block; padding: 0.6em 1.2em; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; }

/* Mock: riktig skärmbild */
.mock--shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Mock: karta */
.mock--map { display: grid; grid-template-columns: 0.9fr 1.1fr; background: #fff; }
.mock__list { padding: 1.4em; display: grid; gap: 0.6em; align-content: start; }
.mock__h { font-size: 1.6em; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.3em; }
.row { display: flex; justify-content: space-between; gap: 1em; padding: 0.8em 1em; border-radius: 10px; background: #F2F6F4; }
.row.is-on { background: #10131F; color: #fff; }
.row span { opacity: 0.7; }
.mock__mapsvg { width: 100%; height: 100%; object-fit: cover; }

/* Mock: hav */
.mock--sea { background: #CFE9F7; }
.sea__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sea__title { position: absolute; left: 6%; top: 12%; font-size: 3em; font-weight: 600; line-height: 0.95; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 24px rgba(0, 30, 60, 0.35); }
.sea__book {
  position: absolute;
  left: 6%; right: 6%; bottom: 9%;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 1em;
  padding: 0.8em 0.8em 0.8em 1.4em;
  background: #fff;
  border-radius: 999px;
}
.sea__book small { display: block; opacity: 0.6; font-size: 0.8em; }

/* Mock: telefoner */
.phones { position: relative; aspect-ratio: 16 / 10.4; display: grid; place-items: center; }
.phone {
  position: relative;
  z-index: 2;
  width: 31%;
  aspect-ratio: 9 / 19;
  padding: 2.4%;
  border-radius: 14% / 6.6%;
  background: #10131F;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
  transform: translateX(-28%) rotate(-4deg);
}
.phone--back { position: absolute; z-index: 1; transform: translateX(52%) rotate(5deg); }
.phone__screen {
  height: 100%;
  border-radius: 11% / 5.2%;
  background: #FFFBEA;
  padding: 18% 9% 9%;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  font-size: clamp(0.45rem, 0.8vw, 0.8rem);
}
.phone__screen--b { background: #fff; }
.app__h { font-size: 1.9em; font-weight: 600; letter-spacing: -0.03em; }
.app__card, .app__stat { padding: 0.9em; border-radius: 12px; background: #FFD54A; }
.app__stat { background: #F3F2EE; }
.app__card small, .app__stat small { display: block; opacity: 0.65; }
.app__card b, .app__stat b { font-size: 1.25em; }
.app__bike { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: auto 0; border-radius: 12px; }
.phone .mock__btn { text-align: center; }

/* ---------- Rubriker ---------- */
.section-title {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

/* ---------- Tjänster ---------- */
.services { padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(60px, 10vh, 120px); }
.service-list { margin-top: clamp(40px, 6vh, 70px); border-top: 1.5px solid var(--ink); }
.service-list li { border-bottom: 1.5px solid var(--ink-faint); }
.service-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(16px, 2.4vh, 26px) 0;
  font-size: var(--fs-l);
  letter-spacing: -0.04em;
  line-height: 1.05;
  cursor: pointer;
  list-style: none;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:hover { padding-left: 0.4em; color: var(--accent-deep); }
.service-list summary i {
  position: relative;
  flex: none;
  width: clamp(38px, 4vw, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.service-list summary i::before,
.service-list summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 36%; height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.service-list summary i::after { rotate: 90deg; transition: rotate 0.4s var(--ease); }
.service-list details[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.service-list details[open] summary i::after { rotate: 0deg; }
.service-list details p {
  max-width: 46ch;
  padding: 0 0 clamp(20px, 3vh, 32px);
  font-size: var(--fs-m);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  animation: open 0.5s var(--ease);
}
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Om oss ---------- */
.about { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.about__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.smile { display: inline-block; width: 0.82em; vertical-align: -0.08em; }
.smile svg { width: 100%; transition: transform 0.6s var(--ease); }
.about__title:hover .smile svg { transform: rotate(-18deg) scale(1.08); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.about__copy { display: grid; gap: 1em; max-width: 40ch; color: var(--ink-soft); }
.about__copy .btn { justify-self: start; margin-top: 0.6em; }

.team-photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
}
.team-photo__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.team-photo__small {
  position: absolute;
  left: -8%;
  bottom: -6%;
  width: 46%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  border: 6px solid var(--paper);
  rotate: -4deg;
  box-shadow: 0 20px 50px rgba(16, 19, 31, 0.18);
}
.team-photo__star {
  position: absolute;
  right: -5%;
  top: -6%;
  width: 20%;
  fill: var(--sun);
  filter: drop-shadow(0 10px 20px rgba(16, 19, 31, 0.15));
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(0.92); } }

/* Bildband */
.strip {
  margin: clamp(60px, 10vh, 120px) calc(-1 * var(--gutter)) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: strip 60s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip img {
  width: clamp(220px, 24vw, 360px);
  height: auto;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: var(--radius-l);
}
.strip img:nth-child(odd) { translate: 0 18px; }
@keyframes strip { to { transform: translateX(-50%); } }
/* Loopen: spåret är dubblerat, så halva bredden minus halva mellanrummet = exakt en runda */
.strip__track { padding-right: 16px; }

.stats { display: grid; }
.stats > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1.5px solid var(--ink-faint);
}
.stats dt { font-size: var(--fs-l); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { font-size: 1rem; line-height: 1.3; padding-top: 0.3em; }

.process {
  margin-top: clamp(80px, 12vh, 140px);
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--white);
}
.process h3 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 1.4em; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); counter-reset: step; }
.process li { display: grid; gap: 0.5em; align-content: start; counter-increment: step; }
.process li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 0.4em;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 600;
}
.process li:nth-child(2)::before { background: var(--mint); }
.process li:nth-child(3)::before { background: var(--sun); }
.process li:nth-child(4)::before { background: var(--pink); }
.process b { font-size: 1.3rem; letter-spacing: -0.02em; }
.process span { color: var(--ink-soft); }

/* ---------- Prisexempel ---------- */
.prices { padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(80px, 12vh, 140px); }
.prices__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.prices__head p { max-width: 44ch; color: var(--ink-soft); }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.price {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: transform 0.5s var(--ease);
}
.price:hover { transform: translateY(-6px); }
.price--featured { background: var(--c); }
.price__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-s);
}
.price h3 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.03em; }
.price__from { font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price__from small { display: block; font-size: var(--fs-s); font-weight: 400; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 0.4em; }
.price__desc { color: var(--ink-soft); }
.price ul { list-style: none; padding: 0; margin: 0.4em 0 0.8em; display: grid; gap: 0.55em; }
.price li { position: relative; padding-left: 1.6em; }
.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--c);
}
.price--featured li::before { background: var(--ink); }
.price .btn { justify-self: start; margin-top: auto; }
.prices__extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 5vh, 56px); }
.prices__extra > div { padding-top: 18px; border-top: 1.5px solid var(--ink-faint); }
.prices__extra dt { font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; margin-bottom: 0.35em; }
.prices__extra dd { color: var(--ink-soft); }
.prices__note { max-width: 60ch; margin-top: clamp(24px, 4vh, 40px); color: var(--ink-soft); font-size: var(--fs-s); }

/* ---------- Nytt ---------- */
.news { padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px); }
.news__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vh, 48px); }
.news__arrows { display: flex; gap: 8px; }
.arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.arrow svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ink); color: var(--paper); }

.news__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 28vw, 400px);
  gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 12px;
  scrollbar-width: none;
  cursor: grab;
}
.news__track::-webkit-scrollbar { display: none; }
.news__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.news-card { scroll-snap-align: start; display: grid; gap: 0.5em; align-content: start; }
.news-card__img {
  position: relative;
  aspect-ratio: 4 / 4.6;
  margin-bottom: 0.6em;
  border-radius: var(--radius-l);
  background: var(--ink);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .news-card__img { transform: scale(0.97); }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.tag { position: absolute; left: 12px; top: 12px; padding: 0.35em 0.8em; border-radius: 999px; background: var(--paper); font-size: 0.85rem; }
.news-card time { font-size: var(--fs-s); color: var(--ink-soft); }
.news-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
.news-card p { color: var(--ink-soft); }
.news-card a { justify-self: start; font-size: var(--fs-s); text-underline-offset: 3px; }

/* ---------- Sidfot ---------- */
.footer { padding: 0 var(--gutter) var(--gutter); }
.footer__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(28px, 4vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--white);
  overflow: hidden;
}
.footer__cta { position: relative; z-index: 2; }
.cta-title { font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: clamp(32px, 5vh, 56px); }
.cta-title a { text-decoration: none; display: inline-block; transition: color 0.35s var(--ease); }
.cta-title a > span { display: block; }
.cta-title a:hover { color: var(--accent-deep); }
.cta-arrow {
  display: inline-block;
  width: 0.7em;
  vertical-align: -0.05em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.cta-title a:hover .cta-arrow { transform: translateX(0.2em); }
.rotator { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.rotator__word { display: inline-block; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.rotator__word.out { transform: translateY(-100%); opacity: 0; }
.rotator__word.in { transform: translateY(100%); opacity: 0; transition: none; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-s); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid var(--ink-faint);
  border-radius: 16px;
  background: var(--paper);
  font-weight: 400;
  transition: border-color 0.2s, background-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); background: var(--white); }
.field [aria-invalid="true"] { border-color: #C2263A; }
.contact-form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: var(--fs-s); min-height: 1.5em; }

/* Fallande former (fysik). De statiska formerna visas bara om fysiken inte laddas. */
.footer__shapes { position: relative; z-index: 1; min-height: 420px; margin: calc(-1 * clamp(28px, 4vw, 64px)) calc(-1 * clamp(28px, 4vw, 64px)) 0 0; }
.footer__pit { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.footer__shapes.has-pit .footer__pit { display: block; }
.footer__shapes.has-pit .shape { display: none; }
.shape { position: absolute; }
.shape--spark { width: 30%; right: 8%; top: 8%; fill: var(--accent); }
.shape--ring { width: 34%; aspect-ratio: 1; border-radius: 50%; border: 30px solid var(--pink); right: 34%; top: 20%; }
.shape--dot { width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); right: 22%; top: 46%; }
.shape--arc { width: 30%; aspect-ratio: 2 / 1; border: 30px solid var(--mint); border-top: 0; border-radius: 0 0 999px 999px; right: 6%; top: 52%; }
.shape--bar { width: 7%; height: 26%; border-radius: 999px; background: var(--peach); right: 48%; top: 10%; rotate: 20deg; }

.footer__info {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1.5px solid var(--ink-faint);
}
.footer__info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4em; }
.footer__info p { color: var(--ink-soft); }
.footer__info a { text-underline-offset: 3px; }
.footer__info a:hover { color: var(--ink); }
.footer__privacy { position: relative; z-index: 2; grid-column: 1 / -1; font-size: var(--fs-s); color: var(--ink-soft); max-width: 70ch; }
.footer__privacy strong { color: var(--ink); font-weight: 600; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 26px 4px 4px;
  font-size: var(--fs-s);
}
.footer__bottom .logo__word { font-size: 1.3rem; margin-right: auto; }
.footer__bottom p { color: var(--ink-soft); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- Mobil och surfplatta ---------- */
@media (max-width: 1080px) {
  .case { grid-template-columns: 1fr; align-items: start; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .stats > div { grid-template-columns: 1fr; }
  .process ol { grid-template-columns: 1fr 1fr; }
  .prices__head { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .prices__extra { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 14px var(--gutter); grid-template-columns: 1fr auto; }
  .header-cta { padding: 0.65em 1.1em; font-size: 0.9rem; }
  /* Menyn blir en flytande list längst ner */
  .pillnav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    translate: -50% 0;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pillnav::-webkit-scrollbar { display: none; }
  .pillnav a { padding: 0.55em 0.8em; font-size: 0.85rem; white-space: nowrap; }
  .pillnav a[href="#top"] { display: none; }

  .hero { padding-top: 120px; }
  .reel { aspect-ratio: 4 / 5; min-height: 0; }

  .statement { text-align: left; }
  .statement__text { margin: 0; }
  .clients { justify-content: flex-start; }

  .mock--map { grid-template-columns: 1fr; }
  .mock__mapsvg { display: none; }
  .sea__book { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .sea__book span:nth-child(3) { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .team-photo { margin-bottom: 8%; }
  .team-photo__small { left: 0; bottom: -8%; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { grid-template-columns: 1fr 1fr; }
  .process ol { grid-template-columns: 1fr; }

  .news__arrows { display: none; }
  .news__track { grid-auto-columns: 78vw; }

  .footer__card { grid-template-columns: 1fr; }
  .footer__shapes { min-height: 300px; margin: 0 calc(-1 * clamp(28px, 4vw, 64px)); }
  .contact-form { grid-template-columns: 1fr; }
  .footer__info { grid-template-columns: 1fr; }
  .footer__bottom { padding-bottom: 90px; }
}

/* Mindre rörelse */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .line > span { transform: none; }
  .statement__text .w { opacity: 1; }
  .case { transform: none; }
}
