/* Celine Frostberg – sajtens stilar. Byggt från designsystemet ds/cf och sidorna i Claude Design. */

/* ---------- Typsnitt (självhostat Instrument Sans, variabel vikt) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f5f1;
  --ink: #000000;
  --ink-illustration: #111111;
  --muted: #737373;
  --muted-aa: #6b6b6b;
  --on-ink: #ffffff;
  --line: #00000026;
  --placeholder: #d9d9d9;
  --image-veil: #0000000d;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --radius-none: 0px;
  --radius-button: 8px;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cf-ease: cubic-bezier(.2, .7, .2, 1);
  --cf-dur-fast: 160ms;
  --cf-dur: 280ms;
  --cf-dur-slow: 600ms;
}

/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
a { color: #000; }
a:hover { color: #333; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cf-skip { position: absolute; left: 24px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 16px; font-size: 16px; text-decoration: none; }
.cf-skip:focus { top: 12px; color: var(--on-ink); }

.cf-page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background-color: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.cf-main { padding: 0 24px; display: flex; flex-direction: column; }

/* ---------- Rörelse: fade-up vid laddning och scroll ---------- */
@keyframes cf-fade-up { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
.cf-in { animation: cf-fade-up 1000ms cubic-bezier(.22, 1, .36, 1) both; }
.cf-d150 { animation-delay: 150ms; }
.cf-d300 { animation-delay: 300ms; }
.cf-d500 { animation-delay: 500ms; }
@supports (animation-timeline: view()) {
  .cf-sv { animation: cf-fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
/* Fallback för webbläsare utan scroll-driven animation (Safari, Firefox): site.js sätter .cf-io */
@supports not (animation-timeline: view()) {
  .cf-io .cf-sv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1); }
  .cf-io .cf-sv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-in, .cf-sv { animation: none !important; }
  .cf-io .cf-sv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Link ---------- */
.cf-link { position: relative; display: inline-block; color: var(--ink); text-decoration: none; font-size: 20px; line-height: 24px; padding: 6px 0; }
.cf-link:hover { color: var(--ink); }
.cf-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cf-link[data-hover="underline"]::after,
.cf-link[data-hover="slide"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--cf-dur) var(--cf-ease);
}
.cf-link[data-hover="underline"]::after { transform: none; opacity: 0; transition: opacity var(--cf-dur-fast) linear; }
.cf-link[data-hover="underline"]:hover::after { opacity: 1; }
.cf-link[data-hover="slide"]:hover::after { transform: scaleX(1); transform-origin: left; }
.cf-link[data-active="true"]::after { transform: scaleX(1); opacity: 1; }

/* ---------- Header ---------- */
.cf-header { width: 100%; max-width: 100%; min-height: 60px; padding: 12px var(--space-24); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; background: var(--paper); font-family: var(--font-sans); }
.cf-header nav { display: flex; gap: 45px; }
.cf-header nav .cf-link { font-weight: 600; }

/* ---------- Footer ---------- */
.cf-footer-wrap { margin-top: var(--cf-foot, 127px); }
.cf-footer { width: 100%; max-width: 100%; padding: 0 var(--space-24); display: flex; flex-direction: column; gap: 150px; background: var(--paper); font-family: var(--font-sans); color: var(--ink); }
.cf-label { margin: 0; font: 600 20px/24px var(--font-sans); color: var(--ink); }
.cf-footer__contact { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 48px; }
.cf-footer__contact .cf-label { padding-top: 4px; }
.cf-footer__email { color: var(--ink); text-decoration: none; font-size: clamp(28px, 4.2vw, 64px); line-height: 1; padding-bottom: 6px; letter-spacing: -0.01em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--cf-dur) var(--cf-ease); }
.cf-footer__email:hover { color: var(--ink); background-size: 100% 2px; }
.cf-footer__email:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cf-footer__base { border-top: 1px solid var(--line); padding: 42px 0 60px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.cf-footer__base p { margin: 0; font-size: 20px; line-height: 24px; color: var(--muted); }
.cf-footer__link { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cf-footer__link:hover { color: #333; }
.cf-footer__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Media (bild eller video i samma ruta) ---------- */
.cf-media { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 50%; }
.cf-fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.cf-box { position: relative; overflow: hidden; background: var(--placeholder); }

/* ---------- ProjectCard (Collection of work) ---------- */
.cf-card { display: flex; flex-direction: column; gap: var(--space-8); color: var(--ink); text-decoration: none; width: 100%; }
.cf-card:hover { color: var(--ink); }
.cf-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cf-card__label { font-size: 20px; line-height: 24px; }
.cf-card__label[data-tone="muted"] { color: var(--muted); }
.cf-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-none); background: var(--placeholder); }
.cf-card__media img, .cf-card__media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--cf-dur-slow) var(--cf-ease), filter var(--cf-dur) var(--cf-ease); }
.cf-card__media::after { content: ""; position: absolute; inset: 0; background: var(--image-veil); transition: background var(--cf-dur) var(--cf-ease); pointer-events: none; }
.cf-card__caption { font-size: 20px; line-height: 24px; }
.cf-card[data-hover="zoom"]:hover .cf-card__media img, .cf-card[data-hover="zoom"]:hover .cf-card__media video { transform: scale(1.04); }
.cf-card__soon { display: inline-block; margin-left: 12px; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; line-height: 18px; vertical-align: middle; color: var(--ink); }

/* ---------- Startsidan ---------- */
.cf-home { transition: background-color 800ms cubic-bezier(.45, 0, .25, 1), color 800ms cubic-bezier(.45, 0, .25, 1); }
.cf-home .cf-header, .cf-home .cf-footer { background: transparent; }
.cf-home .cf-divider { transition: border-color 600ms; }
.cf-ink-img { transition: filter 600ms; }
.cf-home[data-tone="dark"] { color: #fff; }
.cf-home[data-tone="dark"] .cf-link, .cf-home[data-tone="dark"] .cf-name, .cf-home[data-tone="dark"] .cf-card, .cf-home[data-tone="dark"] .cf-footer,
.cf-home[data-tone="dark"] .cf-footer__email, .cf-home[data-tone="dark"] .cf-label, .cf-home[data-tone="dark"] .cf-footer__link { color: #fff; }
.cf-home[data-tone="dark"] .cf-card__label[data-tone="muted"], .cf-home[data-tone="dark"] .cf-footer__base p { color: rgba(255, 255, 255, .72); }
.cf-home[data-tone="dark"] .cf-divider, .cf-home[data-tone="dark"] .cf-footer__base { border-color: rgba(255, 255, 255, .25); }
.cf-home[data-tone="dark"] .cf-ink-img { filter: invert(1); }
.cf-home[data-tone="dark"] .lab-l { color: #fff; }

/* Hero med logotyp */
.cf-hero { position: relative; overflow-x: clip; padding: 94px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cf-hero h1 { margin: 0; width: 100%; max-width: 837px; display: flex; flex-direction: column; align-items: center; gap: 31px; font: inherit; }
.cf-namelink { width: 100%; display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; }
.cf-namelink:hover { color: inherit; }
.cf-namelink:focus-visible { outline: 2px solid currentColor; outline-offset: 10px; }
.cf-word { position: relative; display: block; width: 100%; aspect-ratio: 728.3 / 211.6; }
.lab-layer { position: absolute; inset: 0; }
.lab-l { position: absolute; display: block; color: var(--ink-illustration); transition: color 800ms cubic-bezier(.45, 0, .25, 1); will-change: transform; }
.lab-l svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lab-l path { fill: currentColor; }
.fx-goo { filter: url(#lab-goo); pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 0px 0px at -999px -999px, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 0px 0px at -999px -999px, #000 45%, transparent 100%); }
.cf-tagline { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; column-gap: 0.28em; }
.cf-tagline__lead { font-weight: 400; }
.cf-roles { position: relative; display: block; height: 24px; overflow: hidden; text-align: left; width: 7.2em; transition: width 500ms cubic-bezier(.65, 0, .35, 1); }
.cf-role { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform 600ms cubic-bezier(.65, 0, .35, 1), opacity 450ms cubic-bezier(.65, 0, .35, 1); }
.cf-role.is-active { transform: translateY(0); opacity: 1; }
.cf-role.is-prev { transform: translateY(-110%); opacity: 0; }
.cf-namecard { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transform: translate3d(900px, 220px, 0); transition: transform 380ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease; }
.cf-namecard__inner { position: relative; width: 140px; height: 140px; margin: 18px 0 0 18px; border-radius: 50%; overflow: hidden; background: var(--placeholder); transform: scale(.6); transform-origin: 0 0; transition: transform 420ms cubic-bezier(.34, 1.4, .64, 1); }
.cf-namecard.is-on { opacity: 1; }
.cf-namecard.is-on .cf-namecard__inner { transform: scale(1); }
.cf-namecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.cf-namecard__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, .28); color: #000; font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; }

/* Sektioner på startsidan */
.cf-sec { margin: 152px 24px 0; border-top: 1px solid var(--line); padding-top: 25px; display: flex; flex-direction: column; gap: 121px; }
.cf-sec--selected { margin-top: 130px; padding-top: 18px; gap: 91px; }
@media (min-width: 761px) { .cf-sec--selected + .cf-sec { margin-top: 110px; } }
.cf-sec h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; }

/* Selected work */
.cf-sel { display: grid; grid-template-columns: minmax(0, 824fr) minmax(0, 640fr); align-items: stretch; }
.cf-sel-left { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.cf-hand-col { position: relative; }
.cf-hand { position: absolute; left: 2px; top: 25px; width: 159px; height: 81px; display: block; transition: transform 700ms cubic-bezier(.22, 1, .36, 1), opacity 400ms cubic-bezier(.22, 1, .36, 1); }
.cf-sel-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cf-name { display: inline-block; color: #000; text-decoration: none; font-size: 64px; line-height: 77px; letter-spacing: -0.01em; transition: opacity 500ms cubic-bezier(.22, 1, .36, 1); }
.cf-name:hover { color: inherit; }
span.cf-name { cursor: default; }
.cf-name:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.cf-home[data-tone="dark"] .cf-name:focus-visible { outline-color: #fff; }
.cf-soon { display: inline-block; margin-left: 16px; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 16px; line-height: 20px; vertical-align: middle; white-space: nowrap; }
.cf-sel-figure { margin: 0; position: relative; display: flex; flex-direction: column; }
.cf-sel-frame { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; background: var(--placeholder); overflow: hidden; }
.cf-sel-img { position: absolute; inset: 0; display: block; opacity: 0; z-index: 1; transition: opacity 450ms cubic-bezier(.45, 0, .25, 1); will-change: opacity; }
.cf-sel-img.is-active { opacity: 1; z-index: 2; }
.cf-sel-figure figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; font-size: 20px; line-height: 24px; }
.cf-sel-m { margin: 0; padding: 0; list-style: none; display: none; flex-direction: column; gap: 40px; }
.cf-sel-m a, .cf-sel-m .cf-sel-m__item { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.cf-sel-m__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--placeholder); overflow: hidden; }
.cf-sel-m__name { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.cf-sel-m__name .cf-soon { margin-left: 12px; padding: 3px 10px; font-size: 14px; line-height: 18px; letter-spacing: 0; }
.cf-sel-m__caption { font-size: 16px; line-height: 22px; }

/* Collection of work – utspridd tvåkolumnsgrid */
.cf-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.cf-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.cf-item { width: var(--w, 50%); margin-left: var(--ml, 0); margin-top: var(--mt, 0); }

/* ---------- Case ---------- */
.cf-casehero { width: 100%; aspect-ratio: 1463 / 778; background: var(--placeholder); overflow: hidden; position: relative; }
.cf-intro { margin-top: 58px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.cf-intro__meta { display: flex; flex-direction: column; gap: 32px; }
.cf-intro__title { display: flex; flex-direction: column; }
.cf-intro__title h1 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; color: #000; }
.cf-intro__title p { margin: 0; font-size: 20px; line-height: 24px; }
.cf-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 32px; font-size: 20px; line-height: 30px; }
.cf-facts dt { color: var(--muted); }
.cf-facts dd { margin: 0; }
.cf-intro__lead { display: flex; flex-direction: column; gap: 32px; }
.cf-lead { margin: 0; max-width: 660px; font-size: 28px; line-height: 42px; font-weight: 500; }
.cf-live { align-self: flex-start; font-size: 20px; line-height: 24px; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 4px; }

/* Avstånd mellan block i case-innehållet */
.cf-block { margin-top: var(--cf-space, 126px); }

/* Textsektion: två kolumner (rubrik + text) eller etikett + text */
.cf-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
.cf-text--label { gap: 32px 16px; }
.cf-text--divided { border-top: 1px solid rgba(0, 0, 0, .15); padding-top: 42px; gap: 32px 16px; }
.cf-text__col { display: flex; flex-direction: column; gap: 20px; }
.cf-h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; color: #000; }
.cf-body { margin: 0; max-width: 665px; font-size: 20px; line-height: 30px; }
.cf-body + .cf-body { margin-top: 0; }
.cf-text__col .cf-body + .cf-body { margin-top: 10px; }

/* Modulgrid för bild och video */
.cf-modules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cf-modules--captions { gap: 40px 16px; }
.cf-module { position: relative; overflow: hidden; background: var(--placeholder); grid-column: span 3; }
.cf-module--full { grid-column: span 6; }
.cf-module--half { grid-column: span 3; }
.cf-module--third { grid-column: span 2; }
.cf-module--two-thirds { grid-column: span 4; }
.cf-module--tall { grid-column: span 3; grid-row: span 2; }
.cf-module--start { grid-column-start: 1; }
.cf-module--two-thirds.cf-module--start { grid-column: 1 / span 4; }
figure.cf-module { margin: 0; display: flex; flex-direction: column; gap: 10px; overflow: visible; background: none; }
.cf-module__box { position: relative; width: 100%; overflow: hidden; background: var(--placeholder); }
.cf-module__inset { position: absolute; }
.cf-caption { font-size: 16px; line-height: 22px; color: #6b6b6b; }
.cf-caption a { color: #6b6b6b; }
.cf-lottie { overflow: hidden; }
.cf-lottie svg { display: block; }
.cf-lottie-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: none; }

/* Citat, insikter, fokusområden, resultat (används i HTML-block) */
.cf-q { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
.cf-q::before { content: "\201C"; display: block; height: 40px; font-size: 88px; line-height: 76px; font-weight: 600; color: #000; letter-spacing: -0.04em; }
.cf-q p { margin: 0; font-size: 28px; line-height: 40px; font-weight: 500; letter-spacing: -0.01em; }

/* Brand book */
.cf-bb-cover { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: #effdc3; cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden; }
.cf-bb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-textbtn { align-self: flex-start; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 20px; line-height: 24px; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 4px; }
.cf-bb { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .94); color: #fff; font-family: var(--font-sans); }
.cf-bb[open] { display: flex; flex-direction: column; }
.cf-bb::backdrop { background: transparent; }
.cf-bb__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 16px; line-height: 22px; }
.cf-bb__close { border: 0; background: none; color: #fff; font-size: 28px; line-height: 28px; cursor: pointer; padding: 4px 8px; }
.cf-bb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 24px; }
.cf-bb__nav { flex: none; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.cf-bb__img { display: block; max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: pointer; min-width: 0; }
.cf-bb button:focus-visible, .cf-bb-cover:focus-visible, .cf-textbtn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- About ---------- */
.cf-about-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
.cf-about-intro__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 9px 0 6px; }
.cf-about-intro__text h1 { margin: 0; max-width: 680px; font-size: 28px; line-height: 42px; font-weight: 500; }
.cf-peace { width: 127px; height: 218px; display: block; margin-left: 3px; }
.cf-portrait { width: 100%; aspect-ratio: 724 / 714; background: var(--placeholder); overflow: hidden; position: relative; }
@media (min-width: 761px) { .cf-portrait { max-height: calc(100svh - 84px); } }
.cf-cv { border-top: 1px solid rgba(0, 0, 0, .15); margin-top: var(--cf-mt, 0); padding: var(--cf-pt, 42px) 0 var(--cf-pb, 39px); display: grid; grid-template-columns: minmax(0, 722fr) minmax(0, 702fr); gap: 16px 40px; }
.cf-cv--first { padding-top: 43px; padding-bottom: 43px; }
.cf-cv--last { padding-bottom: 0; }
.cf-cv h2 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 600; color: #000; }
.cf-cv__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 20px; line-height: 30px; }
.cf-cv__entries { display: flex; flex-direction: column; gap: 32px; }
.cf-exp { display: flex; flex-direction: column; gap: 2px; font-size: 20px; line-height: 30px; }
.cf-exp h3 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 500; }
.cf-exp p { margin: 0; }
.cf-exp__period { color: var(--muted); }

/* Bildband */
@keyframes cf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cf-marquee { margin: var(--cf-space, 112px) -24px 0; overflow: hidden; }
.cf-marquee__track { display: flex; gap: 8px; width: max-content; padding-right: 8px; animation: cf-marquee 90s linear infinite; }
.cf-marquee:hover .cf-marquee__track { animation-play-state: paused; }
.cf-marquee__item { flex: none; width: min(528px, 80vw); aspect-ratio: 528 / 502; display: block; overflow: hidden; background: var(--placeholder); position: relative; }
@media (prefers-reduced-motion: reduce) {
  .cf-marquee { overflow-x: auto; }
  .cf-marquee__track { animation: none !important; }
}

/* ---------- 404 ---------- */
.cf-404 { padding: 130px 24px 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cf-404 h1 { font-size: 64px; line-height: 77px; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Mobil (brytpunkt 760px) ---------- */
@media (max-width: 760px) {
  .cf-header > .cf-link { display: none; }
  .cf-footer { gap: 58px; }
  .cf-footer-wrap { margin-top: calc(var(--cf-foot, 127px) * .75); }
  .cf-footer__base { padding-bottom: 57px; }
  .cf-footer__email { font-size: 6.2vw; white-space: nowrap; overflow-wrap: normal; }
  .cf-footer__base { align-items: center; }

  /* Start */
  .cf-col { flex-basis: 100%; }
  .cf-item { width: 100% !important; margin-left: 0 !important; margin-top: 48px !important; }
  .cf-sel, .cf-hand-col { display: none !important; }
  .cf-sel-m { display: flex; }
  .cf-hero { padding-top: 56px; }
  .cf-tagline { flex-direction: column; align-items: center; row-gap: 2px; }
  .cf-roles { width: 100% !important; text-align: center; }
  .cf-role { left: 0; right: 0; text-align: center; }
  .cf-sec { margin-top: 96px; gap: 40px; }
  .cf-sec--selected { margin-top: 91px; }
  .cf-item--dup { display: none !important; }
  .cf-home .cf-footer-wrap { margin-top: 72px; }

  /* Case – samma regler som i designen (de gäller även HTML-blocken med specialsektioner) */
  .cf-2col { grid-template-columns: minmax(0, 1fr) !important; margin-top: 64px !important; }
  .cf-modules { grid-template-columns: minmax(0, 1fr) !important; margin-top: 40px !important; }
  .cf-module { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .cf-module--tall, .cf-module-tall { aspect-ratio: 724 / 1020; }
  .cf-casehero { aspect-ratio: 1 / 1 !important; }
  .cf-hero-shrink .cf-media { position: absolute; width: 130% !important; height: auto !important; max-width: none !important; left: -15%; top: 50%; transform: translateY(-50%); }
  .cf-intro { margin-top: 34px !important; }
  .cf-focus-sec, .cf-dd { margin-top: 64px !important; }
  .cf-res { grid-template-columns: minmax(0, 1fr) !important; }
  .cf-res span[style*="font-size: 64px"] { font-size: 44px !important; line-height: 52px !important; }
  .cf-q { grid-template-columns: 30px minmax(0, 1fr) !important; }
  .cf-q::before { height: 32px !important; font-size: 60px !important; line-height: 54px !important; }
  .cf-q p { font-size: 22px !important; line-height: 32px !important; }
  .cf-ins-cols { grid-template-columns: minmax(0, 1fr) !important; }
  .cf-ins-cols > [data-mo="1"] { order: 1 !important; }
  .cf-ins-cols > [data-mo="2"] { order: 2 !important; }
  .cf-ins-cols > [data-mo="3"] { order: 3 !important; }
  .cf-ins-cols > [data-mo="4"] { order: 4 !important; margin-top: 24px; }
  .cf-ins-cols > [data-mo="5"] { order: 5 !important; }
  .cf-ins-cols > [data-mo="6"] { order: 6 !important; }
  .cf-ins-eye { width: 96px !important; }
  .cf-ins-cols p[style*="font-size: 28px"], .cf-ins-cols blockquote { font-size: 22px !important; line-height: 32px !important; }
  .cf-ins-cols p[style*="line-height: 30px"] { font-size: 18px !important; line-height: 27px !important; }
  .cf-divided, section[style*="border-top: 1px solid rgba(0, 0, 0, 0.15)"] { margin-top: 56px !important; padding-top: 32px !important; }
  .cf-dd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cf-2col div[style*="padding-top: 54px"] { padding-top: 0 !important; }
  .cf-focus li span:last-child { font-size: 18px !important; line-height: 27px !important; }
  section[aria-label="Research material"], section[aria-label="Wireframes"] { row-gap: 24px !important; }
  .cf-focus-head { grid-template-columns: minmax(0, 1fr) !important; }
  .cf-focus { grid-template-columns: minmax(0, 1fr) !important; row-gap: 24px !important; }
  .cf-ins-big { font-size: 22px !important; line-height: 32px !important; }
  /* Kompakt mobiltext (Sundsvall Energi och HL Display i designen) */
  .cf-compact .cf-2col p[style*="font-size: 28px"], .cf-compact .cf-2col blockquote { font-size: 22px !important; line-height: 32px !important; }
  .cf-intro .cf-lead { font-size: 24px; line-height: 36px; }
  .cf-compact .cf-intro .cf-lead { font-size: 18px; line-height: 27px; }
  .cf-compact .cf-2col p[style*="line-height: 30px"], .cf-compact .cf-text .cf-body { font-size: 18px !important; line-height: 27px !important; }

  /* About */
  .cf-about-intro, .cf-cv { grid-template-columns: minmax(0, 1fr); }
  .cf-portrait { order: -1; }
  .cf-about-intro__text h1 { font-size: 24px; line-height: 36px; }
  .cf-cv { padding-bottom: calc(var(--cf-pb, 39px) * .8); }
  .cf-marquee { margin-top: calc(var(--cf-space, 112px) * .85); }
  .cf-peace { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-link, .cf-link::after, .cf-card *, .cf-card__media::after, .cf-footer *, .cf-hand, .cf-sel-img, .cf-name, .cf-home, .cf-ink-img,
  .cf-home .cf-divider, .cf-roles, .cf-role, .cf-namecard, .cf-namecard__inner, .lab-l { transition: none !important; }
  .cf-card[data-hover="zoom"]:hover .cf-card__media img, .cf-card[data-hover="zoom"]:hover .cf-card__media video { transform: none; }
}
