/* ==========================================================================
   henrikhoglund.se
   ========================================================================== */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-normal.woff2") format("woff2");
}

:root {
  --ink: #333;
  --ink-strong: #111;
  --muted: #767676;
  --line: #e6e6e6;
  --grey: #f7f7f7;
  --link: #1756ea;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(24px, 4.2vw, 56px);
  --gap: clamp(8px, 1.67vw, 24px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-space: 130px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--nav-space) + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.3s var(--ease);
}
@media (hover: hover) {
  a:hover {
    color: #666;
  }
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font: 600 15px var(--sans);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--inset {
  max-width: calc(1080px + 2 * var(--pad));
}
.narrow {
  max-width: 50rem;
}
.wrap.narrow {
  max-width: calc(896px + 2 * var(--pad));
}

/* --------------------------------------------------------------------------
   Floating navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  left: 50%;
  bottom: max(clamp(16px, 5.4vh, 48px), env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  view-transition-name: nav;
  transition: translate 0.4s var(--ease);
}
/* Mobil: menyn glider ner ur bild när man scrollar nedåt (main.js) */
.nav.is-hidden {
  translate: 0 calc(100% + 120px);
}
.nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 10px 30px -6px rgba(0, 0, 0, 0.18);
}
.nav a {
  position: relative;
  display: block;
  padding: 16px clamp(16px, 1.6vw, 24px);
  border-radius: 16px;
  color: var(--ink);
  font: 600 clamp(17px, 1.5vw, 21px) / 1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
@media (hover: hover) {
  .nav a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
  }
}
.nav a[aria-current="page"] {
  color: #000;
}
@media (hover: hover) {
  .nav a[aria-current="page"]:hover {
    background: none;
  }
}
/* Markeringen är ett eget element så att den kan glida vid sidbyte */
.nav__pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.075);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav ul {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.home {
  padding-top: clamp(24px, 7.6vw, 112px);
  padding-bottom: 24px;
}
.home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.intro {
  align-self: center;
  padding: clamp(24px, 4vw, 40px) clamp(0px, 2.2vw, 32px);
}
.intro h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font: 400 clamp(54px, 6.4vw, 92px) / 1.1 var(--serif);
  letter-spacing: -0.02em;
}
.intro__lede {
  margin: 0 0 48px;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.75;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  margin-inline: calc(-1 * clamp(0px, 2.2vw, 32px));
  min-height: clamp(56px, 5vw, 72px);
  padding: 8px clamp(16px, 2.2vw, 32px);
  border: 1px solid #bcbcbc;
  border-radius: 999px;
  background: #f4f4f4;
  color: var(--ink);
  font: 500 clamp(17px, 2.2vw, 32px) / 1.4 var(--serif);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease);
}
@media (hover: hover) {
  .status:hover {
    border-color: #a5a5a5;
    background: #dbdbdb;
    color: #000;
  }
}
.status__dot {
  position: relative;
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: #f00;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1060 / 1200;
  background: #eee;
  color: inherit;
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .card:hover img {
    transform: scale(1.035);
  }
}
.card__btn {
  position: absolute;
  left: 5.4%;
  right: 5.4%;
  bottom: 4.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(48px, 4.2vw, 64px);
  border: 2px solid #fff;
  border-radius: 999px;
  font: 500 clamp(18px, 1.7vw, 24px) / 1 var(--serif);
  letter-spacing: -0.01em;
  transition:
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    color 0.6s var(--ease);
}
.card__btn--solid {
  background: #fff;
  color: #020202;
}
.card__btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  color: #fff;
}
.card:focus-visible .card__btn--solid {
  border-color: #000;
  background: #000;
  color: #fff;
}
@media (hover: hover) {
  .card:hover .card__btn--solid {
    border-color: #000;
    background: #000;
    color: #fff;
  }
}
.card:focus-visible .card__btn--ghost {
  background: #fff;
  color: #000;
}
@media (hover: hover) {
  .card:hover .card__btn--ghost {
    background: #fff;
    color: #000;
  }
}
.card:focus-visible {
  outline-offset: 4px;
}

.arrow {
  flex: none;
  width: 1.1em;
  height: 1em;
  transition: transform 0.6s var(--ease);
}
.arrow--left {
  transform: scaleX(-1);
}
@media (hover: hover) {
  .card:hover .arrow,
  .link-arrow:hover .arrow {
    transform: translateX(5px);
  }
}

.clients {
  padding-top: clamp(32px, 4vw, 56px);
}
.clients ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px) clamp(16px, 2.8vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients img {
  width: auto;
  height: clamp(18px, 2.2vw, 34px);
}

/* --------------------------------------------------------------------------
   Contact & 404
   -------------------------------------------------------------------------- */

.contact > * {
  max-width: 940px;
}
.contact {
  min-height: calc(100svh - 200px);
  padding-top: clamp(48px, 13vw, 192px);
  color: #444;
}
.contact h1 {
  margin: 0 0 32px;
  font: 700 clamp(60px, 7.8vw, 113px) / 1.1 var(--serif);
  letter-spacing: -0.015em;
}
.contact p {
  margin: 0 0 24px;
  font-size: clamp(20px, 1.95vw, 28px);
  line-height: 1.7;
}
.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 48px !important;
}
.contact__email {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease);
}
@media (hover: hover) {
  .contact__email:hover {
    color: #000;
    background-size: 100% 2px;
  }
}
.copy {
  padding: 8px 16px;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 15px / 1 var(--sans);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .copy:hover {
    border-color: #999;
    background: #f4f4f4;
  }
}
.copy.is-done {
  border-color: #1a7f37;
  color: #1a7f37;
}
.contact__elsewhere {
  font-size: clamp(17px, 1.5vw, 21px) !important;
}

/* --------------------------------------------------------------------------
   Contact (blå CV-sida)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 400 700;
  font-display: swap;
  /* Hanken har högre x-höjd än Calibre; 90 % ger samma x-höjd, så storlekarna på sidan behåller sin känsla */
  size-adjust: 90%;
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
}

.page-cv {
  --cv-blue: #1a48f0;
  background: var(--cv-blue);
  color: #fff;
}
.page-cv ::selection {
  background: #fff;
  color: var(--cv-blue);
}
.page-cv :focus-visible {
  outline-color: #fff;
}
.cv {
  width: 100%;
  max-width: calc(1200px + 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(48px, 6.875vw, 128px) var(--pad) 0;
  font-family: "Hanken Grotesk", var(--sans);
}
.cv p {
  margin: 0;
  text-wrap: wrap;
}
.cv__h {
  margin: 0;
  font: 600 36px / 1.2 "Hanken Grotesk", var(--sans);
  letter-spacing: 0;
}
.cv__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 7.5vw - 24px, 104px);
}
.cv__hero blockquote {
  margin: 0;
}
.cv__hero blockquote p {
  font: 500 clamp(40px, 4.9vw, 72px) / 1.1 "Hanken Grotesk", var(--sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cv__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  /* Squircle (superellips, n = 5) */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100.00 50.00L99.99 61.64L99.97 65.36L99.94 68.06L99.89 70.26L99.83 72.14L99.75 73.81L99.66 75.31L99.56 76.68L99.44 77.94L99.31 79.12L99.17 80.22L99.01 81.26L98.83 82.24L98.64 83.17L98.44 84.05L98.22 84.89L97.99 85.69L97.74 86.46L97.48 87.19L97.20 87.89L96.91 88.57L96.60 89.21L96.28 89.83L95.94 90.43L95.58 91.00L95.20 91.54L94.81 92.07L94.40 92.58L93.97 93.06L93.53 93.53L93.06 93.97L92.58 94.40L92.07 94.81L91.54 95.20L91.00 95.58L90.43 95.94L89.83 96.28L89.21 96.60L88.57 96.91L87.89 97.20L87.19 97.48L86.46 97.74L85.69 97.99L84.89 98.22L84.05 98.44L83.17 98.64L82.24 98.83L81.26 99.01L80.22 99.17L79.12 99.31L77.94 99.44L76.68 99.56L75.31 99.66L73.81 99.75L72.14 99.83L70.26 99.89L68.06 99.94L65.36 99.97L61.64 99.99L50.00 100.00L38.36 99.99L34.64 99.97L31.94 99.94L29.74 99.89L27.86 99.83L26.19 99.75L24.69 99.66L23.32 99.56L22.06 99.44L20.88 99.31L19.78 99.17L18.74 99.01L17.76 98.83L16.83 98.64L15.95 98.44L15.11 98.22L14.31 97.99L13.54 97.74L12.81 97.48L12.11 97.20L11.43 96.91L10.79 96.60L10.17 96.28L9.57 95.94L9.00 95.58L8.46 95.20L7.93 94.81L7.42 94.40L6.94 93.97L6.47 93.53L6.03 93.06L5.60 92.58L5.19 92.07L4.80 91.54L4.42 91.00L4.06 90.43L3.72 89.83L3.40 89.21L3.09 88.57L2.80 87.89L2.52 87.19L2.26 86.46L2.01 85.69L1.78 84.89L1.56 84.05L1.36 83.17L1.17 82.24L0.99 81.26L0.83 80.22L0.69 79.12L0.56 77.94L0.44 76.68L0.34 75.31L0.25 73.81L0.17 72.14L0.11 70.26L0.06 68.06L0.03 65.36L0.01 61.64L0.00 50.00L0.01 38.36L0.03 34.64L0.06 31.94L0.11 29.74L0.17 27.86L0.25 26.19L0.34 24.69L0.44 23.32L0.56 22.06L0.69 20.88L0.83 19.78L0.99 18.74L1.17 17.76L1.36 16.83L1.56 15.95L1.78 15.11L2.01 14.31L2.26 13.54L2.52 12.81L2.80 12.11L3.09 11.43L3.40 10.79L3.72 10.17L4.06 9.57L4.42 9.00L4.80 8.46L5.19 7.93L5.60 7.42L6.03 6.94L6.47 6.47L6.94 6.03L7.42 5.60L7.93 5.19L8.46 4.80L9.00 4.42L9.57 4.06L10.17 3.72L10.79 3.40L11.43 3.09L12.11 2.80L12.81 2.52L13.54 2.26L14.31 2.01L15.11 1.78L15.95 1.56L16.83 1.36L17.76 1.17L18.74 0.99L19.78 0.83L20.88 0.69L22.06 0.56L23.32 0.44L24.69 0.34L26.19 0.25L27.86 0.17L29.74 0.11L31.94 0.06L34.64 0.03L38.36 0.01L50.00 0.00L61.64 0.01L65.36 0.03L68.06 0.06L70.26 0.11L72.14 0.17L73.81 0.25L75.31 0.34L76.68 0.44L77.94 0.56L79.12 0.69L80.22 0.83L81.26 0.99L82.24 1.17L83.17 1.36L84.05 1.56L84.89 1.78L85.69 2.01L86.46 2.26L87.19 2.52L87.89 2.80L88.57 3.09L89.21 3.40L89.83 3.72L90.43 4.06L91.00 4.42L91.54 4.80L92.07 5.19L92.58 5.60L93.06 6.03L93.53 6.47L93.97 6.94L94.40 7.42L94.81 7.93L95.20 8.46L95.58 9.00L95.94 9.57L96.28 10.17L96.60 10.79L96.91 11.43L97.20 12.11L97.48 12.81L97.74 13.54L97.99 14.31L98.22 15.11L98.44 15.95L98.64 16.83L98.83 17.76L99.01 18.74L99.17 19.78L99.31 20.88L99.44 22.06L99.56 23.32L99.66 24.69L99.75 26.19L99.83 27.86L99.89 29.74L99.94 31.94L99.97 34.64L99.99 38.36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100.00 50.00L99.99 61.64L99.97 65.36L99.94 68.06L99.89 70.26L99.83 72.14L99.75 73.81L99.66 75.31L99.56 76.68L99.44 77.94L99.31 79.12L99.17 80.22L99.01 81.26L98.83 82.24L98.64 83.17L98.44 84.05L98.22 84.89L97.99 85.69L97.74 86.46L97.48 87.19L97.20 87.89L96.91 88.57L96.60 89.21L96.28 89.83L95.94 90.43L95.58 91.00L95.20 91.54L94.81 92.07L94.40 92.58L93.97 93.06L93.53 93.53L93.06 93.97L92.58 94.40L92.07 94.81L91.54 95.20L91.00 95.58L90.43 95.94L89.83 96.28L89.21 96.60L88.57 96.91L87.89 97.20L87.19 97.48L86.46 97.74L85.69 97.99L84.89 98.22L84.05 98.44L83.17 98.64L82.24 98.83L81.26 99.01L80.22 99.17L79.12 99.31L77.94 99.44L76.68 99.56L75.31 99.66L73.81 99.75L72.14 99.83L70.26 99.89L68.06 99.94L65.36 99.97L61.64 99.99L50.00 100.00L38.36 99.99L34.64 99.97L31.94 99.94L29.74 99.89L27.86 99.83L26.19 99.75L24.69 99.66L23.32 99.56L22.06 99.44L20.88 99.31L19.78 99.17L18.74 99.01L17.76 98.83L16.83 98.64L15.95 98.44L15.11 98.22L14.31 97.99L13.54 97.74L12.81 97.48L12.11 97.20L11.43 96.91L10.79 96.60L10.17 96.28L9.57 95.94L9.00 95.58L8.46 95.20L7.93 94.81L7.42 94.40L6.94 93.97L6.47 93.53L6.03 93.06L5.60 92.58L5.19 92.07L4.80 91.54L4.42 91.00L4.06 90.43L3.72 89.83L3.40 89.21L3.09 88.57L2.80 87.89L2.52 87.19L2.26 86.46L2.01 85.69L1.78 84.89L1.56 84.05L1.36 83.17L1.17 82.24L0.99 81.26L0.83 80.22L0.69 79.12L0.56 77.94L0.44 76.68L0.34 75.31L0.25 73.81L0.17 72.14L0.11 70.26L0.06 68.06L0.03 65.36L0.01 61.64L0.00 50.00L0.01 38.36L0.03 34.64L0.06 31.94L0.11 29.74L0.17 27.86L0.25 26.19L0.34 24.69L0.44 23.32L0.56 22.06L0.69 20.88L0.83 19.78L0.99 18.74L1.17 17.76L1.36 16.83L1.56 15.95L1.78 15.11L2.01 14.31L2.26 13.54L2.52 12.81L2.80 12.11L3.09 11.43L3.40 10.79L3.72 10.17L4.06 9.57L4.42 9.00L4.80 8.46L5.19 7.93L5.60 7.42L6.03 6.94L6.47 6.47L6.94 6.03L7.42 5.60L7.93 5.19L8.46 4.80L9.00 4.42L9.57 4.06L10.17 3.72L10.79 3.40L11.43 3.09L12.11 2.80L12.81 2.52L13.54 2.26L14.31 2.01L15.11 1.78L15.95 1.56L16.83 1.36L17.76 1.17L18.74 0.99L19.78 0.83L20.88 0.69L22.06 0.56L23.32 0.44L24.69 0.34L26.19 0.25L27.86 0.17L29.74 0.11L31.94 0.06L34.64 0.03L38.36 0.01L50.00 0.00L61.64 0.01L65.36 0.03L68.06 0.06L70.26 0.11L72.14 0.17L73.81 0.25L75.31 0.34L76.68 0.44L77.94 0.56L79.12 0.69L80.22 0.83L81.26 0.99L82.24 1.17L83.17 1.36L84.05 1.56L84.89 1.78L85.69 2.01L86.46 2.26L87.19 2.52L87.89 2.80L88.57 3.09L89.21 3.40L89.83 3.72L90.43 4.06L91.00 4.42L91.54 4.80L92.07 5.19L92.58 5.60L93.06 6.03L93.53 6.47L93.97 6.94L94.40 7.42L94.81 7.93L95.20 8.46L95.58 9.00L95.94 9.57L96.28 10.17L96.60 10.79L96.91 11.43L97.20 12.11L97.48 12.81L97.74 13.54L97.99 14.31L98.22 15.11L98.44 15.95L98.64 16.83L98.83 17.76L99.01 18.74L99.17 19.78L99.31 20.88L99.44 22.06L99.56 23.32L99.66 24.69L99.75 26.19L99.83 27.86L99.89 29.74L99.94 31.94L99.97 34.64L99.99 38.36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cv__about {
  max-width: 1150px;
}
.cv__lede {
  font-size: 36px;
  line-height: 1.1875;
}
.cv__body {
  margin-top: 24px;
  font-size: 27px;
  line-height: 1.2083;
}
.cv__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 7.25vw, 136px);
  row-gap: 56px;
  padding-top: clamp(56px, 4.2vw, 80px);
}
.cv__cols .cv__h {
  /* Tabellraderna är minst 58 px höga med texten centrerad; 8 px ger 24 px mellan rubrik och första raden */
  margin-bottom: 8px;
}
.cv__table {
  /* Lika bred som innehållet, så att gradientens mitt hamnar mitt på raden */
  width: fit-content;
  max-width: calc(100% + 16px);
  margin: 0 -8px;
  font-size: 21px;
  line-height: 1.2;
}
.cv__table div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  padding: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0)) 0 100% / 100% 1px no-repeat;
}
.cv__table dt,
.cv__table dd {
  margin: 0;
}
.cv__table dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cv__table strong {
  font-weight: 500;
}
.cv__table a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
@media (hover: hover) {
  .cv__table a:hover {
    color: #fff;
    background-size: 100% 1px;
  }
}
.page-cv .cv {
  padding-bottom: 40px;
}
.page-cv .nav ul {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 10px 30px -6px rgba(0, 10, 60, 0.35);
}

/* --------------------------------------------------------------------------
   Project pages
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 464px;
  max-height: 1200px;
  overflow: hidden;
  background: #ddd;
}
.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero img {
  object-fit: cover;
}
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.hero__cue svg {
  width: 26px;
  height: 13px;
}

.p-intro {
  padding-bottom: clamp(48px, 6.2vw, 88px);
  background: var(--grey);
}
.p-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.p-intro h1 {
  max-width: 22em;
  margin: 56px 0 24px;
  color: var(--ink);
  font: 500 clamp(32px, 3.4vw, 48px) / 1.15 var(--sans);
  letter-spacing: -0.02em;
}
.lede p {
  margin: 0 0 16px;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.6;
}
.lede p:last-child {
  margin-bottom: 0;
}
.meta {
  align-self: start;
  margin: 0;
  padding-top: clamp(0px, 5.4vw, 80px);
  font: 400 clamp(16px, 1.3vw, 19px) / 1.45 var(--sans);
}
.meta div {
  margin-bottom: 8px;
}
.meta dt {
  display: inline;
}
.meta dt::after {
  content: ": ";
}
.meta dd {
  display: inline;
  margin: 0;
  font-weight: 600;
}

.sec {
  padding-block: clamp(48px, 6.6vw, 96px);
}
.sec--tight {
  padding-block: var(--gap);
}
.sec--flush-top {
  padding-top: 0;
}
.sec--short-bottom {
  padding-bottom: clamp(24px, 3.3vw, 48px);
}
.band-grey {
  background: var(--grey);
}
.band-light {
  background: #f9f9f9;
}

.h {
  margin: 0 0 24px;
  color: var(--ink);
  font: 500 clamp(28px, 2.9vw, 44px) / 1.15 var(--sans);
  letter-spacing: -0.02em;
}
.h--sm {
  font-size: clamp(24px, 2.4vw, 36px);
}
.prose p,
.prose li {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
}
.prose p {
  margin: 0 0 24px;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose h3 {
  margin: 32px 0 8px;
  font: 600 clamp(19px, 1.5vw, 22px) / 1.3 var(--sans);
}
.prose--lg p {
  font-size: clamp(19px, 1.65vw, 24px);
}
.prose--invert,
.prose--invert .h {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 4vw, 64px) clamp(32px, 5vw, 80px);
}
.split--top {
  align-items: start;
}
.split--wide-left {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* Rader med telefonskärmar: rutnät på stor skärm, sidledsscroll på mobil */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.rail--3 {
  grid-template-columns: repeat(3, 1fr);
}
.rail--spaced {
  margin-top: clamp(32px, 4vw, 64px);
}

.caption {
  max-width: 52rem;
  margin: 16px 0 0;
  color: var(--muted);
  font: 400 15px / 1.55 var(--sans);
}

.zoomable {
  cursor: zoom-in;
}

/* SEB */
.callout {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: linear-gradient(135deg, #fbe7e6 0%, #e6edfb 100%);
}
.callout p {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
}
.callout .callout__label {
  margin-bottom: 8px;
  font: 600 14px / 1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pull {
  margin: 0 0 48px;
  color: var(--ink);
  font: 500 clamp(34px, 4.2vw, 62px) / 1.12 var(--sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-indent: -0.4em;
}
.band-seb {
  background: #003824;
  color: #fff;
}
.band-seb .h {
  color: #fff;
}
.band-seb a {
  color: #ff8a52;
}
@media (hover: hover) {
  .band-seb a:hover {
    color: #fff;
  }
}
.results {
  display: grid;
  gap: 0;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
}
.results li {
  padding: clamp(16px, 1.5vw, 24px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font: 400 clamp(20px, 2.1vw, 30px) / 1.4 var(--sans);
  letter-spacing: -0.01em;
}
.results li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.results strong {
  font-weight: 600;
}
.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: calc(8px + 0.6em);
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #60cd18;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Laddkoll */
.laddkoll-phone {
  align-self: start;
}
.laddkoll-phone img {
  width: 82%;
}
/* Texten bredvid telefonen ligger lite ovanför mitten (centreras, så marginalen lyfter den med halva) */
@media (min-width: 761px) {
  .laddkoll-ease {
    margin-bottom: 48px;
  }
}
.band-laddkoll {
  padding-top: clamp(48px, 6vw, 80px);
  background: #21ce99;
}
.band-laddkoll .split {
  align-items: end;
}
.band-laddkoll .prose {
  align-self: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.laddkoll-hand img {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

/* McDonald's */
.posts {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.posts__stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}
.posts__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 6px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
}
.posts__track::-webkit-scrollbar {
  display: none;
}
.posts__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}
.posts__slide img {
  width: 100%;
  aspect-ratio: 1;
}
.posts__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
@media (hover: hover) {
  .posts__btn:hover {
    transform: scale(1.08);
  }
}
.posts__btn:disabled {
  opacity: 0;
  pointer-events: none;
}
.posts__btn--prev {
  left: 16px;
}
.posts__btn--next {
  right: 16px;
}
.posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
}
.posts__list a {
  display: block;
  padding: 16px 0 16px 24px;
  border-left: 2px solid var(--line);
  color: #9a9a9a;
  text-decoration: none;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
@media (hover: hover) {
  .posts__list a:hover {
    color: #555;
  }
}
.posts__list a[aria-current="true"] {
  border-left-color: var(--ink);
  color: var(--ink);
}
.posts__list strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.3;
}
.posts__list span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.ba {
  margin-block: 0;
}
/* Större på stora skärmar: upp till 1800 px, men aldrig högre än fönstret (bilden är 2000 × 1326)
   och aldrig mindre än den vanliga bredden på 1280 px */
.wrap.ba {
  max-width: calc(max(var(--max), min(1800px, (100svh - 40px) * 2000 / 1326)) + 2 * var(--pad));
}
.ba__frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba__frame img {
  width: 100%;
}
.ba__before {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.ba__handle > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.ba__frame:has(.ba__range:focus-visible) .ba__handle > span {
  transform: translate(-50%, -50%) scale(1.1);
}
@media (hover: hover) {
  .ba__frame:hover .ba__handle > span {
    transform: translate(-50%, -50%) scale(1.1);
  }
}
.ba__frame:has(.ba__range:focus-visible) {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2px;
  height: 100vh;
}
.ba__range::-moz-range-thumb {
  width: 2px;
  height: 100vh;
  border: 0;
}

/* Prev / next */
.pn__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.pn__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding-block: 24px;
  color: #000;
  text-decoration: none;
}
.pn__link--next {
  align-items: flex-end;
  text-align: right;
}
.pn__link small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font: 400 clamp(15px, 1.2vw, 18px) / 1.3 var(--sans);
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease);
}
.pn__link strong {
  padding-top: 8px;
  font: 600 clamp(22px, 2.2vw, 32px) / 1.25 var(--sans);
  letter-spacing: -0.01em;
}
@media (hover: hover) {
  .pn__link:hover {
    color: #000;
  }
}
@media (hover: hover) {
  .pn__link:hover small {
    color: #000;
  }
}
@media (hover: hover) {
  .pn__link--next:hover .arrow {
    transform: translateX(5px);
  }
}
@media (hover: hover) {
  .pn__link--prev:hover .arrow {
    transform: scaleX(-1) translateX(5px);
  }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overscroll-behavior: contain;
}
.lightbox::backdrop {
  background: rgba(12, 12, 12, 0.92);
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.3s var(--ease);
}
.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}
.lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  cursor: pointer;
}
.lightbox__close svg {
  display: block;
  width: 20px;
  height: 20px;
}
@media (hover: hover) {
  .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.26);
  }
}
html:has(.lightbox[open]) {
  overflow: hidden;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.6s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  /* Det som syns direkt vid sidladdning ska inte vänta på en animation */
  .js .reveal--fast {
    transition: none;
  }

  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.35s;
  }
}

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

/* --------------------------------------------------------------------------
   Animationer – slås av och på med listan ANIMATIONS i build.mjs
   (varje block nedan hör till en klass anim-<namn> på <html>)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Sidbyten i allmänhet */
  ::view-transition-group(*) {
    animation-duration: 0.55s;
    animation-timing-function: var(--ease);
  }

  /* card-hero: kortets bild blir projektsidans hero */
  .anim-card-hero .card[data-vt="swedbank"] img,
  .anim-card-hero .hero[data-vt="swedbank"] img {
    view-transition-name: hero-swedbank;
  }
  .anim-card-hero .card[data-vt="seb"] img,
  .anim-card-hero .hero[data-vt="seb"] img {
    view-transition-name: hero-seb;
  }
  .anim-card-hero .card[data-vt="laddkoll"] img,
  .anim-card-hero .hero[data-vt="laddkoll"] img {
    view-transition-name: hero-laddkoll;
  }
  .anim-card-hero .card[data-vt="mcd"] img,
  .anim-card-hero .hero[data-vt="mcd"] img {
    view-transition-name: hero-mcd;
  }
  .anim-card-hero .card[data-vt="about"] img,
  .anim-card-hero .cv__photo[data-vt="about"] img {
    view-transition-name: hero-about;
  }
  .anim-card-hero .card img,
  .anim-card-hero .hero img,
  .anim-card-hero .cv__photo img {
    view-transition-class: morph;
  }
  ::view-transition-group(*.morph) {
    animation-duration: 0.6s;
    z-index: 2;
  }
  ::view-transition-old(*.morph),
  ::view-transition-new(*.morph) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: clip;
  }
  /* Inga bilder flyger mellan sidorna (Contact → Work och arket på mobil; klassen sätts i HEAD_JS i build.mjs) */
  html.vt-nomorph .cv__photo img,
  html.vt-nomorph .card img,
  html.vt-nomorph .hero img {
    /* !important: reglerna som ger bilderna namn är mer specifika */
    view-transition-name: none !important;
  }
  /* Bilden som växer fram ska inte samtidigt tona in */
  .vt-in .card.reveal,
  .vt-in .cv__photo.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Mobil: Contact som ett ark (bottom sheet). Klasserna sätts i HEAD_JS i build.mjs. */
  html.vt-sheet-up::view-transition,
  html.vt-sheet-down::view-transition {
    background: #000;
  }
  html.vt-sheet-up::view-transition-old(root),
  html.vt-sheet-up::view-transition-new(root),
  html.vt-sheet-down::view-transition-old(root),
  html.vt-sheet-down::view-transition-new(root) {
    mix-blend-mode: normal;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
    animation-fill-mode: both;
    transform-origin: 50% 0;
    overflow: clip;
  }
  html.vt-sheet-up::view-transition-old(root) {
    animation-name: sheet-behind;
  }
  html.vt-sheet-up::view-transition-new(root) {
    animation-name: sheet-up;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  }
  html.vt-sheet-down::view-transition-old(root) {
    z-index: 2;
    animation-name: sheet-up;
    animation-direction: reverse;
    animation-duration: 0.42s;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  }
  html.vt-sheet-down::view-transition-new(root) {
    animation-name: sheet-behind;
    animation-direction: reverse;
    animation-duration: 0.42s;
  }
  @keyframes sheet-up {
    from {
      transform: translateY(100%);
      border-radius: 20px 20px 0 0;
    }
    to {
      transform: none;
      border-radius: 0;
    }
  }
  @keyframes sheet-behind {
    from {
      transform: none;
      filter: none;
      border-radius: 0;
    }
    to {
      transform: translateY(16px) scale(0.92);
      filter: brightness(0.55);
      border-radius: 20px;
    }
  }

  /* nav-glide: markeringen i menyn glider */
  .anim-nav-glide .nav__pill {
    view-transition-name: nav-pill;
  }
  ::view-transition-group(nav-pill) {
    animation-duration: 0.5s;
    z-index: 3;
  }
  ::view-transition-group(nav) {
    z-index: 3;
  }

  /* intro: "I'm Henrik." ord för ord, sedan ingress och knapp */
  .js.anim-intro .intro.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js.anim-intro .intro__title .w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
    vertical-align: top;
  }
  .js.anim-intro .intro__title .w > span {
    display: inline-block;
    animation: word-up 0.6s var(--ease) both;
    /* "I'm" först, "Henrik." en stund efter */
    animation-delay: calc(var(--i) * 0.4s);
  }
  .js.anim-intro .intro__lede {
    animation: rise 0.6s var(--ease) 0.8s both;
  }
  .js.anim-intro .status {
    animation: rise 0.6s var(--ease) 0.9s both;
  }
  @keyframes word-up {
    from {
      transform: translateY(105%);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --nav-space: 110px;
  }
  .home__grid,
  .p-intro__grid,
  .split,
  .split--wide-left,
  .posts {
    grid-template-columns: minmax(0, 1fr);
  }
  .home__grid {
    gap: 16px;
  }
  .intro {
    padding: 8px 0 32px;
  }
  .status {
    margin-inline: 0;
  }
  .clients ul {
    justify-content: center;
    column-gap: 24px;
  }
  .clients img {
    height: 22px;
  }

  .meta {
    padding-top: 0;
  }

  /* Telefonskärmar i en sidledsrad */
  .rail,
  .rail--3 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scroll-padding-inline: var(--pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail > * {
    scroll-snap-align: start;
  }

  .split > .callout {
    order: 1;
  }
  .split > .callout + div {
    order: 2;
  }
  .laddkoll-phone img {
    width: 100%;
  }
  .band-laddkoll .prose {
    padding-bottom: 0;
  }
  .posts__stage {
    margin-inline: auto;
  }
  .ba__handle > span {
    width: 48px;
    height: 48px;
  }
  .pn__link {
    min-height: 96px;
  }
  .cv__cols,
  .cv__hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .cv__table {
    font-size: 19px;
  }
  .cv__table div {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 56px;
  }

}

/* --------------------------------------------------------------------------
   Mobil och touch
   -------------------------------------------------------------------------- */

/* Kontaktknapparna visas bara på mobil */
.cv__actions {
  display: none;
}

/* Större tryckyta för länkar i löptext, utan att texten flyttar sig */
@media (pointer: coarse) {
  .prose a,
  .cv__table a,
  .link-arrow {
    position: relative;
  }
  .prose a::after,
  .cv__table a::after,
  .link-arrow::after {
    content: "";
    position: absolute;
    inset: -12px -4px;
  }
}

@media (max-width: 760px) {
  /* Heron tar inte hela skärmen, så att rubriken syns och man förstår att man ska scrolla */
  .hero {
    height: 68vh;
    height: 68svh;
    min-height: 420px;
  }

  /* Kontakt: stora knappar högt upp */
  .cv__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
  }
  .cv__btn {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: none;
    color: #fff;
    font: 600 17px / 1 "Hanken Grotesk", var(--sans);
    text-decoration: none;
    cursor: pointer;
  }
  .cv__btn--primary {
    flex-basis: 100%;
    border-color: #fff;
    background: #fff;
    color: var(--cv-blue);
  }
  .cv__btn[hidden] {
    display: none;
  }
  .cv__btn.is-done {
    background: rgba(255, 255, 255, 0.16);
  }

  /* Prickar under telefonraderna */
  .rail-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .rail-dots[hidden] {
    display: none;
  }
  .rail-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
    transition: opacity 0.3s var(--ease);
  }
  .rail-dots span.is-on {
    opacity: 0.7;
  }

  /* Startsidan: större text på mobil */
  .intro h1 {
    /* Så stor som får plats på en rad: 62 px på 360 px breda telefoner, 68 px på 390, upp till 76 px */
    font-size: min(76px, 20vw - 10px);
  }
  .intro__lede {
    font-size: 24px;
    line-height: 1.6;
  }
  .status {
    min-height: 64px;
    padding-inline: 8px;
    /* Så stor som får plats på en rad: 18 px på 360 px breda telefoner, 20 px på 390, upp till 22 px */
    font-size: min(22px, 6.5vw - 5px);
  }
  .card__btn {
    height: 56px;
    font-size: 20px;
  }

  /* Minst 16 px text */
  .caption,
  .callout .callout__label,
  .posts__list span,
  .pn__link small,
  .copy {
    font-size: 16px;
  }
}

/* Prickarna behövs inte när raderna ligger i ett rutnät */
@media (min-width: 761px) {
  .rail-dots {
    display: none;
  }
}
