/*
 * Aistaine production CSS
 *
 * This is the site's single active stylesheet. Cascade order is contractual.
 * Every selector + responsive context + property combination has one owner.
 * Repeated selectors are allowed only when they add disjoint responsibilities
 * (for example layout and motion) without overwriting an owned property.
 * Responsive rules describe layout capacity, never named or exact devices.
 * No declaration may use !important.
 */

/*
 * Urbanist och Source Serif 4 hostas lokalt i temat. Inga anrop till Google
 * Fonts. Filerna ligger i assets/fonts/ och laddas relativt denna CSS-fil.
 */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 350;
  font-display: swap;
  src: url("../assets/fonts/urbanist/urbanist-latin-variable.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;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/urbanist/urbanist-latin-variable.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;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/urbanist/urbanist-latin-variable.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;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/urbanist/urbanist-latin-variable.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;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 350;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4/source-serif-4-latin-variable.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;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4/source-serif-4-latin-variable.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;
}

/*
 * Source Serif 4 fallback: a local-only alias face that resolves to the
 * approved lighter Helvetica/Arial track (visual weight 500) when Source
 * Serif 4 itself is unavailable. font-synthesis: none is applied alongside
 * every font-family: var(--font-serif) declaration to stop the browser
 * from faux-bolding this alias to match heading weights (600), which would
 * otherwise defeat the approved lighter fallback look. It is scoped to
 * those declarations only, not applied globally.
 */
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  --graphite: #1e201c;
  --graphite-soft: #292c27;
  --off-white: #f5f3ee;
  --sage: #8a9b7c;
  --sage-dark: #5a6a4f;
  --warm-grey-light: #e9e6df;
  --warm-grey-mid: #c9c5bb;
  --warm-grey-dark: #5d5b54;
  --line-dark: rgba(30, 32, 28, 0.2);
  --line-light: rgba(245, 243, 238, 0.24);
  --line-on-sage: rgba(30, 32, 28, 0.24);
  --shadow: 0 28px 80px rgba(21, 23, 20, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 220ms var(--ease);
  --split-flap-width-ms: 320;
  --gutter: clamp(20px, 3vw, 48px);
  --max-width: 1280px;
  --header-height: 86px;

  /*
   * Headerns verkliga underkant i viewporten. --header-height är scopead
   * till .site-header (96/76px) och når därför inte syskon som .service-nav,
   * som i stället såg :root-värdet. Dessa variabler ligger på :root så att
   * sticky-element kan låsa exakt mot headerns underkant, admin-bar inräknad.
   */
  --header-offset: var(--wp-toolbar-offset, var(--wp-admin--admin-bar--height, 0px));
  --header-height-rest: 96px;
  --header-height-scrolled: 76px;
  --header-bottom: calc(var(--header-offset) + var(--header-height-rest));
}

:root:has(.site-header.is-scrolled) {
  --header-bottom: calc(var(--header-offset) + var(--header-height-scrolled));
}

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

html {
  min-width: 320px;
  background: var(--graphite);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--off-white);
  color: var(--graphite);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--sage);
  color: var(--graphite);
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-synthesis: none;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.25rem, 4.25vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  margin-inline: auto;
}

.header-inner > *,
.section-intro > *,
.contact-layout > *,
.footer-grid > *,
.service-cols > *,
.contact-cols > * {
  min-width: 0;
}

@media (min-width: 700px) {
  .contact-info {
    /* Kortets 1px ram ligger utanpå dess padding, så indraget måste
       räkna med den för att rubrikerna ska hamna på exakt samma rad. */
    padding-top: calc(var(--contact-card-padding) + 1px);
  }
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 56px);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  /*
   * --header-offset är hur långt ned headern står från viewportens topp.
   * Statiskt är den 0. I WordPress sätts den till admin-bar-offseten.
   * Menypanelen är position: fixed och måste räkna in samma offset, annars
   * hamnar den för högt och lägger sig över headern i inloggat läge.
   * Värdet ligger numera på :root, se variabelblocket överst.
   */
  --header-color: var(--off-white);
  --header-border: var(--line-light);
  --header-surface: rgba(30, 32, 28, 0.88);
  position: fixed;
  z-index: 100;
  inset: var(--header-offset) 0 auto;
  color: var(--header-color);
  box-shadow: 0 1px 0 var(--header-border);
  transition: color 260ms var(--ease), background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]) {
  --header-color: var(--graphite);
  --header-border: rgba(30, 32, 28, 0.16);
}

.site-header[data-theme="light"] {
  --header-surface: rgba(245, 243, 238, 0.9);
}

.site-header[data-theme="warm-grey-mid"] {
  --header-surface: #c9c5be;
}

.site-header.is-scrolled {
  background: var(--header-surface);
  backdrop-filter: blur(16px) saturate(120%);
}

.home-page .site-header:not(.is-scrolled) {
  background: var(--graphite);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  min-height: var(--header-height);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.header-logo {
  width: clamp(112px, 9.8vw, 148px);
  height: auto;
  filter: none;
  transition: filter 260ms var(--ease), opacity var(--transition);
}

.site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]) .header-logo {
  filter: brightness(0) saturate(100%);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--sage);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation-name: scroll-progress;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 38px);
  list-style: none;
}

.site-nav a:not(.button) {
  position: relative;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.site-nav a:not(.button):hover::after,
.site-nav a:not(.button):focus-visible::after,
.site-nav a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/*
 * E-postknappen och menyknappen är samma kontrollfamilj i headern: samma
 * cirkel, ram och färg. Båda ärver headerns kontrastläge via --header-border
 * och color, så de skiftar tillsammans med logotypen utan egen mekanism.
 */
.menu-toggle,
.header-email {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--header-border);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle {
  padding: 13px 11px;
}

.header-email {
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  text-decoration: none;
}

.header-email svg {
  flex: 0 0 auto;
  stroke-width: 1.25;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--sage);
  color: var(--graphite);
}

.button--primary:hover {
  background: var(--off-white);
}

.site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]) .header-contact {
  background: var(--graphite);
  color: var(--off-white);
}

.button--secondary {
  border-color: currentColor;
  background: transparent;
}

.button--on-dark {
  color: var(--off-white);
}

.button--on-dark:hover {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--graphite);
}

.header-contact {
  min-height: 40px;
  padding: 10px 18px;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 320ms var(--ease),
    color 260ms var(--ease) 45ms,
    transform 420ms var(--ease) 80ms;
}

.text-link:focus-visible .text-link__arrow {
  background: var(--graphite);
  color: var(--off-white);
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover .text-link__arrow {
    background: var(--graphite);
    color: var(--off-white);
    transform: rotate(45deg);
  }
}

.back-link::before {
  content: "←";
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: radial-gradient(circle at 18% 22%, rgba(138, 155, 124, 0.12), transparent 32%),
    var(--graphite);
  color: var(--off-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: var(--header-height) auto 0 42%;
  width: 1px;
  background: linear-gradient(var(--line-light), transparent 82%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 610px;
  padding: clamp(80px, 10vh, 130px) clamp(38px, 5vw, 86px) clamp(72px, 9vh, 112px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow,
.page-head .eyebrow,
.references-hero .eyebrow,
.process-interlude .eyebrow {
  color: var(--warm-grey-mid);
}

/* Individuella referensprojektsidor behåller Sage på hero-eyebrow (klient · datumintervall); endast vanliga sidtyper byter till Warm grey mid. */
.project-page .page-head .eyebrow {
  color: var(--sage);
}

.hero .eyebrow {
  font-size: clamp(0.58rem, 0.64vw, 0.68rem);
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 15ch;
  margin-top: 28px;
  font-size: clamp(2.85rem, 4.65vw, 5.15rem);
}

.hero-intro {
  max-width: 60ch;
  margin-top: 30px;
  color: var(--off-white);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.hero-actions:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .hero-actions)) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-media {
  position: relative;
  min-height: 100%;
  margin-right: calc((100vw - min(100vw, var(--max-width))) / -2);
  overflow: hidden;
  background: #303630;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 32, 28, 0.5), transparent 42%),
    linear-gradient(0deg, rgba(18, 20, 17, 0.66), transparent 58%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 clamp(28px, 4.4vw, 68px);
  width: 1px;
  background: linear-gradient(transparent 18%, rgba(245, 243, 238, 0.22) 18%, rgba(245, 243, 238, 0.22) 82%, transparent 82%);
  pointer-events: none;
}

.hero-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.04) brightness(0.86);
}

.motion-toggle {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(245, 243, 238, 0.48);
  border-radius: 999px;
  background: rgba(30, 32, 28, 0.64);
  color: var(--off-white);
  font: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background-color var(--transition), border-color var(--transition);
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle:hover {
  border-color: var(--sage);
  background: var(--graphite);
}

.motion-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage);
}

.motion-toggle__icon i {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--graphite);
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero-motion.is-motion-paused *,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero-motion.is-motion-paused *::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero-motion.is-motion-paused *::after {
  animation-play-state: paused;
}

.hero-motion.is-motion-paused .motion-toggle__icon {
  position: relative;
}

.hero-motion.is-motion-paused .motion-toggle__icon i {
  display: none;
}

.hero-motion.is-motion-paused .motion-toggle__icon::after {
  content: "";
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--graphite);
}

@keyframes hero-story-step {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  3%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  31%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

main {
  counter-reset: section-index;
}

.section {
  position: relative;
  padding-block: clamp(80px, 8vw, 128px);
}

main > .section {
  counter-increment: section-index;
}

.section--off-white {
  background: var(--off-white);
}

.section--warm-grey {
  background: var(--warm-grey-light);
}

.section--graphite {
  background: var(--graphite);
  color: var(--off-white);
}

.section--graphite h2,
.section--graphite h3,
.section--graphite a {
  color: inherit;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(90px, 0.18fr) 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(58px, 7vw, 94px);
  color: var(--section-head-color, var(--warm-grey-dark));
}

.section-head::before {
  content: "AISTAINE";
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-head::after {
  content: counter(section-index, decimal-leading-zero);
  color: var(--section-head-index-color, currentColor);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: 0.88rem;
}

.section-head__index {
  height: 1px;
  background: var(--line-dark);
}

.section-head--on-dark {
  color: rgba(245, 243, 238, 0.58);
}

.section-head--on-dark .section-head__index {
  background: var(--line-light);
}

.section-head--on-sage {
  color: rgba(30, 32, 28, 0.58);
}

.section-head--on-sage .section-head__index {
  background: var(--line-on-sage);
}

.section-intro--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
}

.section-intro p {
  max-width: 58ch;
  color: #5d5b54;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  font-weight: 350;
  line-height: 1.58;
}

.services-page .section-intro--split:has(+ .text-link) {
  margin-bottom: clamp(32px, 3vw, 44px);
}

.section--graphite .section-intro p {
  color: rgba(245, 243, 238, 0.68);
}

.item-number {
  color: var(--item-number-color, var(--sage-dark));
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.stack-top {
  margin-top: 42px;
}

.stack-top-lg {
  margin-top: 64px;
}

.lead-muted {
  font-weight: 350;
  color: var(--warm-grey-dark);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.stats-transition {
  position: relative;
  z-index: 2;
  display: flow-root;
}

.stats-panel {
  position: relative;
  display: grid;
  gap: clamp(18px, 2vw, 36px);
  margin-top: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--warm-grey-mid);
  border-bottom: 0;
  border-top: 3px solid var(--sage);
  background: var(--off-white);
}

.stats-panel::before,
.stats-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  left: 0;
  height: 50%;
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.stats-panel::before {
  top: 0;
  background: var(--off-white);
  box-shadow: 0 0 0 100vmax var(--off-white);
}

.stats-panel::after {
  bottom: -2px;
  height: calc(50% + 2px);
  background: #303630;
  box-shadow: 0 0 0 100vmax #303630;
}

.stats-panel > div {
  min-width: 0;
}

.stat-value {
  color: var(--graphite);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.stat-number-group {
  white-space: nowrap;
}

.stat-suffix {
  margin-left: 4px;
  color: var(--sage-dark);
  font-size: 0.42em;
  letter-spacing: 0.04em;
}

.stat-label {
  max-width: 19ch;
  margin: 7px auto 0;
  color: #5d5b54;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 118px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.principle {
  min-height: 230px;
  padding: 30px clamp(20px, 3vw, 42px) 34px 0;
  border-right: 1px solid var(--line-dark);
}

.principle + .principle {
  padding-left: clamp(20px, 3vw, 42px);
}

.principle:last-child {
  border-right: 0;
}

.principle h3 {
  max-width: 100%;
  margin-top: 70px;
}

.services-concept-b .services-b {
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--services-line, var(--line-dark));
  border-bottom: 1px solid var(--services-line, var(--line-dark));
}

.services--hero-green {
  --item-number-color: var(--sage);
  --services-accent: var(--sage);
  --services-active-color: var(--graphite);
  --services-active-surface: var(--sage);
  --services-copy: var(--off-white);
  --services-line: var(--line-light);
  --services-marker-surface: var(--graphite);
  color: var(--services-copy);
  background: #303630;
}

.services--hero-green :is(.section-intro h2, .section-intro p, .services-b__link h3) {
  color: var(--services-copy);
}

.services-concept-b .services-b__map {
  --route-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-concept-b .services-b__map::before,
.services-concept-b .services-b__map::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  pointer-events: none;
}

.services-concept-b .services-b__map::before {
  background: var(--services-line, var(--line-dark));
}

.services-concept-b .services-b__map::after {
  background: var(--services-accent, var(--sage-dark));
  transform: scaleX(var(--route-progress));
  transform-origin: left center;
  transition: transform 520ms var(--ease);
}

.services-concept-b .services-b__node {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--services-line, var(--line-dark));
}

.services-concept-b .services-b__node:last-child {
  border-right: 0;
}

.services-concept-b .services-b__node::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 1px solid var(--services-accent, var(--sage-dark));
  border-radius: 50%;
  background: var(--services-marker-surface, var(--warm-grey-light));
  transform: translate(-50%, -50%);
  transition: background-color 320ms var(--ease),
    box-shadow 420ms var(--ease),
    transform 420ms var(--ease);
}

.services-concept-b .services-b__node::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 1px;
  height: 42px;
  background: var(--services-accent, var(--sage-dark));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 420ms var(--ease) 80ms;
}

.services-concept-b .services-b__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 48px clamp(24px, 2.5vw, 38px) 34px;
  color: inherit;
  text-decoration: none;
  transition: background-color 420ms var(--ease),
    opacity 360ms var(--ease);
}

.services-concept-b .services-b__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(138, 155, 124, 0.12), rgba(138, 155, 124, 0) 62%);
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.services-concept-b .services-b__link:focus-visible {
  outline: 2px solid var(--services-accent, var(--sage-dark));
  outline-offset: -5px;
}

.services-concept-b .services-b__link h3 {
  min-width: 0;
  max-width: none;
  margin-top: 72px;
  font-size: clamp(1.45rem, 1.5vw, 1.95rem);
  line-height: 1.08;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: wrap;
  transition: transform 420ms var(--ease);
}

.services-concept-b .services-b__link p {
  max-width: 34ch;
  margin-top: 26px;
  color: var(--services-copy, var(--warm-grey-dark));
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.58;
}

.services-concept-b .services-b__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: auto;
  border: 1px solid var(--services-line, var(--line-dark));
  border-radius: 50%;
  transition: background-color 340ms var(--ease) 80ms,
    color 280ms var(--ease) 110ms,
    transform 440ms var(--ease) 70ms;
}

.services-concept-b .services-b__arrow svg {
  display: block;
}

.services-concept-b .services-b__node:first-child::before {
  background: var(--services-accent, var(--sage-dark));
  box-shadow: 0 0 0 5px rgba(90, 106, 79, 0.12);
  transform: translate(-50%, -50%) scale(1.08);
}

.services-concept-b .services-b__node:first-child::after {
  transform: scaleY(1);
}

.services-concept-b .services-b__node:first-child .services-b__link::before {
  opacity: 1;
}

.services-concept-b .services-b__node:first-child .services-b__link h3 {
  transform: translateY(4px);
}

.services-concept-b .services-b__node:first-child .services-b__arrow {
  background: var(--services-active-surface, var(--graphite));
  color: var(--services-active-color, var(--off-white));
  transform: rotate(45deg);
}

.services-concept-b .services-b__map:has(.services-b__node:nth-child(1):focus-within) {
  --route-progress: 0;
}

.services-concept-b .services-b__map:has(.services-b__node:nth-child(2):focus-within) {
  --route-progress: 0.333;
}

.services-concept-b .services-b__map:has(.services-b__node:nth-child(3):focus-within) {
  --route-progress: 0.667;
}

.services-concept-b .services-b__map:has(.services-b__node:nth-child(4):focus-within) {
  --route-progress: 1;
}

.services-concept-b .services-b__map:has(.services-b__node:not(:first-child):focus-within) .services-b__node:first-child::before {
  background: var(--services-marker-surface, var(--warm-grey-light));
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.services-concept-b .services-b__map:has(.services-b__node:not(:first-child):focus-within) .services-b__node:first-child::after {
  transform: scaleY(0);
}

.services-concept-b .services-b__map:has(.services-b__node:not(:first-child):focus-within) .services-b__node:first-child .services-b__link::before {
  opacity: 0;
}

.services-concept-b .services-b__map:has(.services-b__node:not(:first-child):focus-within) .services-b__node:first-child .services-b__link h3 {
  transform: none;
}

.services-concept-b .services-b__map:has(.services-b__node:not(:first-child):focus-within) .services-b__node:first-child .services-b__arrow {
  background: transparent;
  color: inherit;
  transform: none;
}

.services-concept-b .services-b__map:has(.services-b__node:focus-within) .services-b__node:not(:focus-within) .services-b__link {
  opacity: 0.56;
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:focus-within::before {
  background: var(--sage-dark);
  box-shadow: 0 0 0 5px rgba(90, 106, 79, 0.12);
  transform: translate(-50%, -50%) scale(1.08);
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:focus-within::after {
  transform: scaleY(1);
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:focus-within .services-b__link::before {
  opacity: 1;
}

.services-concept-b .services-b__node:focus-within .services-b__link h3 {
  transform: translateY(4px);
}

.services-concept-b .services-b__node:focus-within .services-b__arrow {
  background: var(--services-active-surface, var(--graphite));
  color: var(--services-active-color, var(--off-white));
  transform: rotate(45deg);
}

@media (min-width: 1200px) {
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(1).is-touch-activating) {
    --route-progress: 0;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(2).is-touch-activating) {
    --route-progress: 0.333;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(3).is-touch-activating) {
    --route-progress: 0.667;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(4).is-touch-activating) {
    --route-progress: 1;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node.is-touch-activating)::after {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child::before {
    background: var(--services-marker-surface, var(--warm-grey-light));
    box-shadow: none;
    transform: translate(-50%, -50%);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child::after {
    transform: scaleY(0);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__link::before {
    opacity: 0;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__link h3 {
    transform: none;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__arrow {
    background: transparent;
    color: inherit;
    transform: none;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__link::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__link h3,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node:not(:first-child).is-touch-activating) .services-b__node:first-child .services-b__arrow {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node.is-touch-activating) .services-b__node:not(.is-touch-activating) .services-b__link {
    opacity: 0.56;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map:has(.services-b__node.is-touch-activating) .services-b__node:not(.is-touch-activating) .services-b__link {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating::before {
    background: var(--sage-dark);
    box-shadow: 0 0 0 5px rgba(90, 106, 79, 0.12);
    transform: translate(-50%, -50%) scale(1.08);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating::after {
    transform: scaleY(1);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__link::before {
    opacity: 1;
  }
  
  .services-concept-b .services-b__node.is-touch-activating .services-b__link h3 {
    transform: translateY(4px);
  }
  
  .services-concept-b .services-b__node.is-touch-activating .services-b__arrow {
    background: var(--services-active-surface, var(--graphite));
    color: var(--services-active-color, var(--off-white));
    transform: rotate(45deg);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__link,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__link::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__link h3,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__arrow {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
}

@media (hover: hover) and (pointer: fine) {
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(1):hover) {
    --route-progress: 0;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(2):hover) {
    --route-progress: 0.333;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(3):hover) {
    --route-progress: 0.667;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:nth-child(4):hover) {
    --route-progress: 1;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:not(:first-child):hover) .services-b__node:first-child::before {
    background: var(--services-marker-surface, var(--warm-grey-light));
    box-shadow: none;
    transform: translate(-50%, -50%);
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:not(:first-child):hover) .services-b__node:first-child::after {
    transform: scaleY(0);
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:not(:first-child):hover) .services-b__node:first-child .services-b__link::before {
    opacity: 0;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:not(:first-child):hover) .services-b__node:first-child .services-b__link h3 {
    transform: none;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:not(:first-child):hover) .services-b__node:first-child .services-b__arrow {
    background: transparent;
    color: inherit;
    transform: none;
  }
  
  .services-concept-b .services-b__map:has(.services-b__node:hover) .services-b__node:not(:hover) .services-b__link {
    opacity: 0.56;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:hover::before {
    background: var(--sage-dark);
    box-shadow: 0 0 0 5px rgba(90, 106, 79, 0.12);
    transform: translate(-50%, -50%) scale(1.08);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:hover::after {
    transform: scaleY(1);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:hover .services-b__link::before {
    opacity: 1;
  }
  
  .services-concept-b .services-b__node:hover .services-b__link h3 {
    transform: translateY(4px);
  }
  
  .services-concept-b .services-b__node:hover .services-b__arrow {
    background: var(--services-active-surface, var(--graphite));
    color: var(--services-active-color, var(--off-white));
    transform: rotate(45deg);
  }
}

@media (max-width: 1199px) {
  .services-concept-b .services-b__map {
    display: block;
  }
  
  .services-concept-b .services-b__map::before,
.services-concept-b .services-b__map::after,
.services-concept-b .services-b__node::before,
.services-concept-b .services-b__node::after {
    display: none;
  }
  
  .services-concept-b .services-b__node {
    border-right: 0;
    border-bottom: 1px solid var(--services-line, var(--line-dark));
  }
  
  .services-concept-b .services-b__node:last-child {
    border-bottom: 0;
  }
  
  .services-concept-b .services-b__link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    column-gap: 16px;
    row-gap: 18px;
    min-height: 0;
    padding: 26px 20px;
  }
  
  .services-concept-b .services-b__link > .item-number {
    padding-left: 12px;
  }
  
  .services-concept-b .services-b__link::before {
    display: none;
  }
  
  .services-concept-b .services-b__link h3 {
    margin-top: 0;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__link h3 {
    transform: none;
  }
  
  .services-concept-b .services-b__link p {
    grid-column: 2 / -1;
    margin-top: 4px;
    padding-right: 56px;
  }
  
  .services-concept-b .services-b__arrow {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-top: 0;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__arrow {
    background: transparent;
    color: inherit;
    transform: none;
  }
  
  .services-concept-b .services-b__node:focus-within .services-b__link {
    background-color: rgba(138, 155, 124, 0.1);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:focus-within .services-b__arrow {
    background: var(--services-active-surface, var(--graphite));
    color: var(--services-active-color, var(--off-white));
    transform: rotate(45deg);
  }
  
  .services-concept-b .services-b__node.is-touch-activating .services-b__link {
    background-color: rgba(138, 155, 124, 0.1);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__link {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node.is-touch-activating .services-b__arrow {
    background: var(--services-active-surface, var(--graphite));
    color: var(--services-active-color, var(--off-white));
    transform: rotate(45deg);
    transition-delay: 0ms;
    transition-duration: 130ms;
  }
}

@media (max-width: 1199px) and (hover: hover) and (pointer: fine) {
  .services-concept-b .services-b__node:hover .services-b__link {
    background-color: rgba(138, 155, 124, 0.1);
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node:hover .services-b__arrow {
    background: var(--services-active-surface, var(--graphite));
    color: var(--services-active-color, var(--off-white));
    transform: rotate(45deg);
  }
}

@media (max-width: 620px) {
  .services-concept-b .services-b__link {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    column-gap: 10px;
    row-gap: 12px;
  }

  .services-concept-b .services-b__link h3 {
    font-size: clamp(1.125rem, 5.7vw, 1.45rem);
  }
  
  .services-concept-b .services-b__link p {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__map::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__node::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__link,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__link::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__link h3,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-concept-b .services-b__arrow {
    transition: none;
  }
}

.services > .container > .text-link {
  margin-top: 42px;
}

.process {
  --section-head-color: var(--graphite);
  --item-number-color: var(--graphite);
  --process-label-color: var(--graphite);
  --process-surface: #c9c5be;
  background: var(--process-surface);
  color: var(--graphite);
}

.section-intro--stacked {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-intro--stacked p {
  color: var(--process-label-color, var(--sage-dark));
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(70px, 9vw, 112px);
  list-style: none;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 29px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-dark);
}

.process-grid::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 29px;
  left: 0;
  width: var(--process-progress, 0%);
  height: 1px;
  background: var(--sage-dark);
  pointer-events: none;
  transition: width 620ms var(--ease);
}

.process-grid li {
  position: relative;
  min-height: 260px;
  padding: 0 clamp(28px, 4vw, 58px) 32px 0;
  border-right: 1px solid var(--line-dark);
}

.process-grid li + li {
  padding-left: clamp(28px, 4vw, 58px);
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 23px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid var(--process-surface, var(--off-white));
  border-radius: 50%;
  background: var(--process-surface, var(--warm-grey-mid));
  box-shadow: 0 0 0 1px var(--line-dark);
  transition: background-color 500ms var(--ease), transform 500ms var(--ease);
}

.process-grid li + li::before {
  left: clamp(28px, 4vw, 58px);
}

.process-grid li.is-active::before {
  background: var(--sage-dark);
  transform: scale(1.3);
}

.process-grid .item-number {
  padding-left: 26px;
}

.process-grid h3 {
  max-width: 100%;
  margin-top: 80px;
}

.process > .container > .text-link {
  margin-top: 24px;
}

.references {
  padding-top: 0;
}

.references > .stats-transition + .container {
  padding-top: clamp(86px, 10vw, 160px);
}

.references > .container > .text-link {
  margin-top: 42px;
}

.contact-section {
  overflow: hidden;
  background: radial-gradient(circle at 90% 110%, rgba(245, 243, 238, 0.24), transparent 36%),
    var(--sage);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.64fr);
  gap: clamp(54px, 10vw, 150px);
  align-items: end;
}

.contact-section h2 {
  max-width: 12ch;
}

.contact-section .contact-body p {
  max-width: 48ch;
  color: #1e201c;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  font-weight: 400;
  line-height: 1.58;
}

.button--contact {
  margin-top: 34px;
  background: var(--graphite);
  color: var(--off-white);
}

.button--contact:hover {
  background: var(--off-white);
  color: var(--graphite);
}

.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, rgba(138, 155, 124, 0.09), transparent 42%),
    var(--graphite);
  color: var(--off-white);
}

.page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  display: grid;
  align-items: end;
  min-height: clamp(570px, 70svh, 760px);
  padding: calc(var(--header-height) + clamp(110px, 13vw, 180px)) 0 clamp(82px, 9vw, 120px);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: var(--header-height) var(--gutter) 0 auto;
  width: min(35vw, 500px);
  border-right: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  background: repeating-linear-gradient(90deg, transparent 0 24.8%, rgba(245, 243, 238, 0.06) 25%, transparent 25.2% 50%);
  transform: skewX(-8deg);
  transform-origin: bottom;
}

.page-head::after {
  content: "";
  position: absolute;
  right: clamp(30px, 7vw, 110px);
  bottom: -90px;
  width: min(30vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(138, 155, 124, 0.32);
  border-radius: 50%;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 13ch;
  margin-top: 28px;
}

.page-head .page-lead {
  color: var(--off-white);
}

.page-head .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  width: 100%;
  max-width: none;
  margin-top: 34px;
}

.page-head .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)):not(:where(:is(.project-page, .contact-page) main > .page-head *)) {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.page-head .hero-actions:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 38px;
}

.page-head .back-link {
  margin-bottom: 36px;
  color: rgba(245, 243, 238, 0.72);
}

.statement {
  max-width: 45ch;
  color: var(--warm-grey-dark);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.38;
}

.section--graphite .statement {
  color: rgba(245, 243, 238, 0.72);
}

.col-label {
  margin-bottom: 24px;
  color: var(--sage-dark);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.col-label--on-dark {
  color: var(--sage);
}

.service-story {
  position: relative;
  counter-reset: service-index;
}

.service-nav {
  position: sticky;
  z-index: 40;
  top: var(--header-bottom);
  border-top: 1px solid rgba(30, 32, 28, 0.1);
  border-bottom: 1px solid rgba(30, 32, 28, 0.14);
  background: rgba(245, 243, 238, 0.95);
  backdrop-filter: blur(16px);
}

.service-nav__inner {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  min-height: 74px;
}

.service-nav__label,
.service-nav a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid var(--line-dark);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-decoration: none;
}

.service-nav__label {
  padding-left: 0;
  color: var(--warm-grey-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-nav a {
  position: relative;
  gap: 10px;
  color: var(--warm-grey-dark);
  transition: color var(--transition), background-color var(--transition);
}

.service-nav a:last-child {
  border-right: 0;
}

.service-nav a span {
  color: var(--sage-dark);
}

.service-nav a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: var(--sage-dark);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-nav a:hover,
.service-nav a:focus-visible,
.service-nav a[aria-current="location"] {
  background: rgba(138, 155, 124, 0.12);
  color: var(--graphite);
}

.service-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.service-section {
  counter-increment: service-index;
}

.service-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(46px, 8vw, 116px);
  align-items: end;
}

.service-head::before {
  content: "0" counter(service-index);
  position: absolute;
  right: var(--gutter);
  top: clamp(85px, 8vw, 130px);
  color: rgba(30, 32, 28, 0.07);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(7rem, 16vw, 15rem);
  line-height: 0.7;
  pointer-events: none;
}

.section--graphite .service-head::before {
  color: rgba(245, 243, 238, 0.055);
}

.service-head > * {
  position: relative;
  z-index: 1;
}

.service-cols {
  display: grid;
  grid-template-columns: var(--service-columns, minmax(0, 1.15fr) minmax(0, 0.84fr) minmax(0, 0.84fr));
  gap: clamp(34px, 5vw, 72px);
  margin-top: clamp(70px, 8vw, 112px);
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}

.service-cols > div + div {
  padding-left: clamp(24px, 3vw, 46px);
  border-left: 1px solid var(--line-dark);
}

.section--graphite .service-cols,
.section--graphite .service-cols > div + div {
  border-color: var(--line-light);
}

.service-cols--single {
  --service-columns: 1fr;
}

.service-cols--two {
  --service-columns: repeat(2, minmax(0, 1fr));
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .service-cols--single > div {
  padding-left: 0;
  border-left: 0;
}

.services-page .service-section :is(.statement, .def-list dd, .dash-list li, .related) {
  font-weight: 350;
}

.def-list {
  display: grid;
}

.def-list--horizontal {
  container-type: inline-size;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 28px;
}

.def-list--horizontal > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.def-list dt {
  padding: 16px 0 8px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: 1.18rem;
  font-weight: 600;
}

@container (min-width: 476px) {
  .def-list--horizontal dt {
    display: flex;
    align-items: flex-start;
    min-height: calc(1.18rem * 1.62 * 2 + 8px);
  }
}

.def-list dt:first-child {
  padding-top: 0;
  border-top: 0;
}

.def-list dd {
  padding-bottom: 18px;
  color: var(--graphite);
}

.dash-list {
  list-style: none;
}

.dash-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line-dark);
}

.dash-list li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--sage-dark);
}

.dash-list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.section--graphite .dash-list li {
  border-color: var(--line-light);
}

.section--graphite .dash-list li::before {
  background: var(--sage);
}

.dash-list--two {
  columns: 2;
  column-gap: 60px;
}

.dash-list--two li {
  break-inside: avoid;
}

.service-foot {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: end;
  margin-top: clamp(70px, 8vw, 108px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.principle-list {
  margin-top: clamp(70px, 9vw, 118px);
  border-top: 1px solid var(--line-dark);
}

.principle-row {
  display: grid;
  grid-template-columns: 70px minmax(250px, 0.76fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line-dark);
}

.principle-row .principle-text {
  font-weight: 350;
  color: var(--warm-grey-dark);
}

.process-interlude,
.identity-interlude {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--off-white);
}

.process-interlude::before,
.identity-interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(138, 155, 124, 0.16), transparent 46%);
}

.process-interlude__inner {
  position: relative;
  min-height: 480px;
  padding-block: clamp(90px, 10vw, 145px);
}

.process-interlude__statement {
  max-width: 12ch;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #C9C5BB;
}

.process-interlude__track {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(60%, 720px);
  border-top: 1px solid var(--line-light);
}

.process-interlude__track span {
  position: relative;
  padding-top: 20px;
  color: var(--sage);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process-interlude__track span::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid var(--graphite);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
}

.process-detail .container {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  column-gap: clamp(60px, 10vw, 150px);
}

.process-detail .section-head {
  grid-column: 1 / -1;
}

.process-detail .section-intro {
  position: sticky;
  top: calc(var(--header-height) + 44px);
  align-self: start;
  display: block;
}

.process-detail .section-intro h2 {
  max-width: 9ch;
}

.process-detail .section-intro p {
  margin-top: 28px;
}

.process-steps {
  position: relative;
  list-style: none;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 40px;
  left: 18px;
  width: 1px;
  background: var(--line-dark);
}

.process-steps::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 2px;
  height: var(--process-progress, 0%);
  background: var(--sage-dark);
  transition: height 700ms var(--ease);
}

.process-steps li {
  position: relative;
  min-height: 178px;
  padding: 0 0 48px 82px;
}

.process-steps li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 10px;
  width: 17px;
  height: 17px;
  border: 5px solid var(--warm-grey-light);
  border-radius: 50%;
  background: var(--warm-grey-mid);
  box-shadow: 0 0 0 1px var(--line-dark);
  transition: transform 500ms var(--ease), background-color 500ms var(--ease);
}

.process-steps li.is-active::before {
  background: var(--sage-dark);
  transform: scale(1.35);
}

.process-steps h3 {
  margin-top: 16px;
}

.process-steps p:not(.item-number) {
  font-weight: 350;
  max-width: 50ch;
  margin-top: 12px;
  color: var(--warm-grey-dark);
}

.process-detail .text-link {
  grid-column: 2;
  margin-top: 12px;
}

.competence-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(390px, 1fr);
  gap: clamp(70px, 10vw, 150px);
}

.competence-cols .dash-list {
  columns: 2;
  column-gap: 50px;
}

.competence-cols .dash-list li {
  break-inside: avoid;
}

.person-block {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(360px, 1fr) 180px;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.person-block .person-text {
  color: rgba(245, 243, 238, 0.72);
}

.person-block .person-text p + p {
  margin-top: 24px;
}

.credential {
  display: block;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line-light);
  outline: 1px solid rgba(245, 243, 238, 0.62);
  outline-offset: 7px;
  overflow: hidden;
}

.credential img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.ref-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 62px;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.ref-list li {
  padding: 20px 28px 20px 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  line-height: 1.42;
}

.ref-list li:nth-child(even) {
  padding-left: 28px;
  border-right: 0;
}

.ref-list li strong {
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: 1.06rem;
}

.ref-list li span {
  color: var(--warm-grey-dark);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.case-facts > div {
  min-width: 0;
  overflow-wrap: anywhere;
  min-height: 170px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line-dark);
}

.case-facts > div + div {
  padding-left: 28px;
}

.case-facts > div:last-child {
  border-right: 0;
}

.case-facts dt {
  color: var(--sage-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-facts dd {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.3;
}

/* Beställare-raden särskiljs i Sage eftersom hero-eyebrow på projektsidor inte längre byter till Warm grey mid */
.case-facts__client dt,
.case-facts__client dd {
  color: var(--sage);
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1fr);
  gap: clamp(60px, 10vw, 150px);
}

.case-overview .case-text {
  font-weight: 350;
  color: var(--warm-grey-dark);
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
}

.case-overview .case-text p + p {
  margin-top: 25px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.image-grid figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--warm-grey-mid);
}

.image-grid figure.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8.2;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-cols {
  --contact-card-padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(420px, 1fr);
  gap: clamp(70px, 11vw, 160px);
}

.contact-info {
  position: sticky;
  top: calc(var(--header-height) + 50px);
  align-self: start;
}

.contact-facts {
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
}

.contact-facts > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-facts dt {
  color: var(--sage-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-facts dd {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: 1.2rem;
}

.contact-facts a {
  text-underline-offset: 4px;
}

.contact-form {
  padding: var(--contact-card-padding);
  border: 1px solid var(--line-dark);
  background: var(--warm-grey-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--warm-grey-dark);
  border-radius: 0;
  background: transparent;
  color: var(--graphite);
  font: inherit;
}

.form-field textarea {
  min-height: 136px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--sage-dark);
  outline: 2px solid var(--sage-dark);
  outline-offset: 5px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 34px;
}

.form-actions .button:disabled {
  opacity: 0.62;
  cursor: default;
  transform: none;
}

.site-footer {
  padding: clamp(78px, 9vw, 120px) 0 34px;
  background: var(--graphite);
  color: var(--off-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: auto;
}

.footer-brand p {
  color: rgba(245, 243, 238, 0.58);
}

.footer-brand .footer-company {
  color: var(--off-white);
  font-weight: 700;
}

.footer-brand a {
  display: inline-block;
  margin-top: 20px;
  text-underline-offset: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 18px 54px;
}

.footer-nav a {
  color: rgba(245, 243, 238, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--sage);
}

.footer-bottom {
  margin-top: 78px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  color: rgba(245, 243, 238, 0.48);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms var(--ease),
    transform 680ms var(--ease);
}

.js .reveal[data-reveal="line"] {
  transform: scaleX(0.82);
  transform-origin: left;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 960px) {
  .home-page .hero-copy {
    padding: clamp(58px, 7vh, 72px) clamp(42px, 4.5vw, 66px) clamp(44px, 5.5vh, 58px) 0;
  }
  
  .home-page .hero h1 {
    max-width: 15ch;
    margin-top: 22px;
    font-size: clamp(3rem, 4.05vw, 4.35rem);
  }
  
  .home-page .hero-intro {
    margin-top: 24px;
  }
  
  .home-page .hero-actions {
    margin-top: 30px;
  }
}

@media (max-width: 1199px) {
  :root {
    --max-width: 1080px;
  }
  
  .hero h1 {
    font-size: clamp(2.7rem, 4.8vw, 4.5rem);
  }
  
  .motion-toggle__label {
    display: none;
  }
  
  .motion-toggle {
    padding-right: 9px;
  }
  
  .service-nav__label {
    display: none;
  }
  
  .service-nav__inner {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-nav a:first-of-type {
    padding-left: 0;
  }
  
  .person-block {
    grid-template-columns: minmax(220px, 0.7fr) minmax(340px, 1fr);
  }
  
  .credential {
    grid-column: 2;
    width: 220px;
  }
}

@media (max-width: 959px) {
  :root {
    --gutter: clamp(22px, 4.6vw, 42px);
  }
  
  .hero {
    min-height: auto;
  }
  
  .hero::before {
    display: none;
  }
  
  .hero-copy {
    max-width: 790px;
    min-height: 650px;
    padding: 104px 0 90px;
  }
  
  .hero h1 {
    max-width: 15ch;
    font-size: clamp(3rem, 7.8vw, 5rem);
  }
  
  .hero-media {
    min-height: 600px;
    margin-right: 0;
  }
  
  .section-intro--split,
.contact-layout,
.service-head,
.case-overview {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  
  .contact-info {
    position: static;
  }
  
  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 0;
  }
  
  .service-cols {
    grid-template-columns: var(--service-columns, 1fr 1fr);
  }
  
  .service-cols > div:first-child {
    grid-column: 1 / -1;
  }
  
  .service-cols > div:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }
  
  .process-detail .container {
    grid-template-columns: 1fr;
  }
  
  .process-detail .section-intro {
    position: static;
  }
  
  .process-detail .section-intro h2 {
    max-width: 13ch;
  }
  
  .process-steps {
    margin-top: 62px;
  }
  
  .process-detail .text-link {
    grid-column: 1;
  }
  
  .competence-cols,
.person-block,
.contact-cols {
    grid-template-columns: 1fr;
  }
  
  .credential {
    grid-column: 1;
  }
  
  .case-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-facts > div + div:where(:nth-child(2n + 1)) {
    padding-left: 0;
  }

  .case-facts > div:nth-child(2) {
    border-right: 0;
  }
  
  .case-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 76px;
  }
  
  .header-inner {
    min-height: var(--header-height);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    z-index: 110;
    top: calc(var(--header-offset) + var(--header-height));
    right: 0;
    left: 0;
    max-height: calc(100svh - var(--header-offset) - var(--header-height));
    padding: 18px var(--gutter) 28px;
    border-top: 1px solid var(--header-border);
    background: var(--header-surface);
    color: var(--header-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    backdrop-filter: blur(18px) saturate(120%);
  }
  
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .site-nav ul {
    display: grid;
    gap: 0;
  }
  
  .site-nav a:not(.button) {
    display: block;
    padding: 18px 0;
    font-family: var(--font-serif);
    font-synthesis: none;
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
  }
  
  .site-nav a:not(.button)::after {
    display: none;
  }
  
  .site-nav .header-contact {
    width: 100%;
    margin-top: 22px;
  }
  
  .site-header:not(.is-scrolled) .site-nav.is-open {
    background: var(--graphite);
    color: var(--off-white);
  }
  
  .site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]):not(.is-scrolled) .site-nav.is-open {
    background: var(--off-white);
    color: var(--graphite);
  }
  
  .section-head {
    grid-template-columns: auto 1fr auto;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
  }
  
  .principle {
    min-height: 0;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  
  .principle + .principle {
    padding-left: 0;
  }
  
  .principle h3 {
    margin-top: 36px;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 5px;
    width: 1px;
    height: auto;
  }
  
  .process-grid::after {
    top: 0;
    left: 5px;
    width: 1px;
    height: var(--process-progress, 0%);
    transition-property: height;
  }
  
  .process-grid li,
.process-grid li + li {
    min-height: 180px;
    padding: 0 0 44px 50px;
    border-right: 0;
  }
  
  .process-grid li::before,
.process-grid li + li::before {
    top: 0;
    left: 0;
  }
  
  .process-grid .item-number {
    padding-left: 0;
  }
  
  .process-grid h3 {
    margin-top: 22px;
  }
  
  .service-nav__inner {
    width: 100%;
  }
  
  .service-nav a:first-of-type {
    padding-left: var(--gutter);
  }
  
  .principle-row {
    grid-template-columns: 46px 1fr;
    gap: 22px;
  }
  
  .principle-row .principle-text {
    grid-column: 2;
  }
  
  .process-interlude__track {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 74px;
  }
  
  .competence-cols .dash-list {
    columns: 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
  }
  
  h2 {
    font-size: clamp(2.05rem, 9vw, 3rem);
  }
  
  .hero-copy {
    min-height: auto;
    padding: 82px 0 76px;
  }
  
  .hero h1 {
    font-size: clamp(2.45rem, 10.8vw, 3.6rem);
    line-height: 1;
  }
  
  .hero-media {
    min-height: 470px;
  }
  
  .hero-media video {
    object-position: center;
  }
  
  .motion-toggle {
    right: 22px;
    bottom: 20px;
  }
  
  .hero-media::after {
    left: 24px;
  }
  
  .section {
    padding-block: 68px;
  }
  
  .section-head {
    margin-bottom: 42px;
  }
  
  .section-intro--stacked {
    display: grid;
  }
  
  .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: 590px;
  padding-top: calc(var(--header-height) + 94px);
  padding-bottom: 72px;
}
  
  .page-head::before {
    right: -12%;
    width: 66vw;
  }
  
  .page-head .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 26px;
}
  
  .service-nav__inner {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-nav a,
.service-nav a:first-of-type {
    justify-content: center;
    min-height: 64px;
    padding: 11px 6px;
    font-size: 0;
  }
  
  .service-nav a span {
    font-size: 0.72rem;
  }
  
  .service-nav a::before {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
  
  .service-nav a:nth-of-type(1)::before {
    content: "Styrning";
  }
  
  .service-nav a:nth-of-type(2)::before {
    content: "Upphandling";
  }
  
  .service-nav a:nth-of-type(3)::before {
    content: "Kontroll";
  }
  
  .service-nav a:nth-of-type(4)::before {
    content: "Fastighet";
  }
  
  .service-nav a {
    flex-direction: column;
    gap: 3px;
  }
  
  .service-head::before {
    top: 68px;
    right: 16px;
    font-size: 7rem;
  }
  
  .service-cols {
    grid-template-columns: 1fr;
  }
  
  .service-cols > div:first-child {
    grid-column: 1;
  }
  
  .service-cols > div + div,
.service-cols > div:nth-child(2) {
    padding-top: 30px;
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }
  
  
  .dash-list--two {
    columns: 1;
  }
  
  .process-interlude__inner {
    min-height: 430px;
  }
  
  .process-interlude__statement {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
  
  .process-steps li {
    padding-left: 58px;
  }
  
  .competence-cols .dash-list {
    margin-top: 32px;
  }
  
  .person-block {
    gap: 42px;
  }
  
  .credential {
    min-height: 180px;
  }
  
  .ref-list {
    grid-template-columns: 1fr;
  }
  
  .ref-list li,
.ref-list li:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }
  
  .case-facts {
    grid-template-columns: 1fr;
  }
  
  .case-facts > div,
.case-facts > div + div {
    min-height: 0;
    padding: 20px 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  
  .case-facts dd {
    margin-top: 10px;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid figure.wide {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }
  
  .contact-cols {
    gap: 58px;
  }
  
  .contact-form {
    padding: 26px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-field--full {
    grid-column: 1;
  }
  
  .form-actions {
    justify-content: flex-start;
  }
  
  .form-actions .button {
    width: 100%;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .stat-value {
    font-size: 2rem;
    white-space: normal;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 389px) {
  :root {
    --gutter: 18px;
  }
  
  .hero-actions:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .hero-actions)) {
  display: grid;
}
  
  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]),
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) *,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class])::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) *::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class])::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .text-link__arrow {
    transition-delay: 0ms;
  }
  
  html.js:has(> :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class])) .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero--concept-13 {
  /*
   * 100svh kan avrundas till strax under viewportens verkliga höjd när
   * skärmens pixelkvot ger bråkdelspixlar. Då hamnar herons underkant
   * innanför viewporten och nästa sektions ljusa bakgrund syns som en
   * hårfin rad längst ned. En hel CSS-pixel täcker all sådan avrundning.
   */
  --hero-viewport: calc(100svh + 1px);
  --hero-header-offset: var(--header-height);
  position: relative;
  min-height: max(780px, var(--hero-viewport));
  overflow: hidden;
  background: var(--graphite);
  color: var(--off-white);
}

.hero--concept-13::before {
  display: none;
}

.hero--concept-13 .hero-canvas {
  position: relative;
  min-height: max(780px, var(--hero-viewport));
  overflow: hidden;
  isolation: isolate;
}

.hero--concept-13 .hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #30352f;
}

.hero--concept-13 .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 32, 28, 0.98) 0%, rgba(30, 32, 28, 0.91) 23%, rgba(30, 32, 28, 0.62) 44%, rgba(30, 32, 28, 0.2) 70%, rgba(30, 32, 28, 0.04) 100%),
    linear-gradient(0deg, rgba(30, 32, 28, 0.98) 0%, rgba(30, 32, 28, 0.88) 16%, rgba(30, 32, 28, 0.48) 39%, rgba(30, 32, 28, 0.08) 68%, rgba(18, 20, 17, 0.12) 100%);
  pointer-events: none;
}

.hero--concept-13 .hero-media::after {
  display: none;
}

.hero--concept-13 .hero-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.68) contrast(1.03) brightness(0.82);
}

.hero--concept-13 .hero-stage {
  container-type: inline-size;
  position: relative;
  min-height: max(780px, var(--hero-viewport));
  padding-top: var(--hero-header-offset);
}

/* Hero font sizes shared by the homepage, information pages and project pages.
   Pixel limits keep the scale independent of root font sizes in other sections. */
:is(.home-page, .about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) {
  --hero-font-heading: min(clamp(67.2px, 4.05vw, 68.04px), 10svh);
  --hero-font-eyebrow: clamp(8.96px, 0.62vw, 10.88px);
  --hero-font-body: clamp(15.36px, 1.06vw, 17.28px);
}

@media (max-width: 699px) {
  :is(.home-page, .about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) {
    --hero-font-eyebrow: 8.64px;
  }
}

@media (orientation: landscape) and (max-width: 1199px) {
  :is(.home-page, .about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) {
    --hero-font-heading: min(clamp(41.6px, 7.2vw, 67.2px), 10svh);
    --hero-font-body: clamp(12.16px, calc(var(--hero-font-heading) * 0.23), 15.36px);
  }
}

@media (orientation: portrait) and (max-width: 699.98px) {
  :is(.home-page, .about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) {
    --hero-font-heading: clamp(36.8px, 9.65vw, 70.4px);
    --hero-font-body: clamp(12.16px, calc(var(--hero-font-heading) * 0.23), 15.36px);
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  :is(.home-page, .about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) {
    --hero-font-heading: min(calc(68.04 * clamp(1px, 0.053vw, 2px)), 10svh);
    --hero-font-eyebrow: calc(10.88 * clamp(1px, 0.053vw, 2px));
    --hero-font-body: calc(17.28 * clamp(1px, 0.053vw, 2px));
  }
}

.home-page .hero--concept-13 .hero-copy {
  --hero-heading-size: var(--hero-font-heading);
  --hero-compact-heading-gap: 0.45em;
  --hero-compact-intro-gap: 0.58em;
  --hero-compact-intro-size: clamp(0.76rem, 0.23em, 0.96rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: max-content;
  min-width: min(calc(var(--hero-compact-intro-size) * 21.4), 100%);
  max-width: 100%;
  min-height: calc(max(780px, var(--hero-viewport)) - var(--hero-header-offset));
  padding: 0;
  font-size: var(--hero-heading-size);
}

.hero--concept-13 .hero-copy__support {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: min(calc(var(--hero-compact-intro-size) * 27), 100cqw);
  contain: inline-size;
  margin-top: clamp(24px, 3.5vh, 40px);
}

.hero--concept-13 .eyebrow {
  contain: inline-size;
  color: var(--warm-grey-mid);
  font-size: var(--hero-font-eyebrow);
  letter-spacing: 0.13em;
}

.home-page .hero--concept-13 h1 {
  width: max-content;
  max-width: 100%;
  margin-top: clamp(24px, 3.2vh, 38px);
  font-size: 1em;
  line-height: 0.9;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero--concept-13 .hero-heading__line {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.home-page .hero--concept-13 .hero-heading__line--wrap {
  white-space: normal;
}

.hero--concept-13 .hero-heading__line + .hero-heading__line {
  margin-top: 0.12em;
}

.hero--concept-13 .hero-intro {
  width: 100%;
  max-width: none;
  margin-top: 0;
  color: var(--off-white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: var(--hero-font-body);
  font-weight: 350;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero--concept-13 .motion-toggle {
  z-index: 4;
  border-color: rgba(245, 243, 238, 0.34);
  background: rgba(30, 32, 28, 0.46);
}

.js .hero--concept-13 .hero-copy__lead,
.js .hero--concept-13 .hero-copy__support {
  animation: hero-concept-13-arrive 900ms var(--ease) both;
}

.js .hero--concept-13 .hero-copy__support {
  animation-delay: 140ms;
}

@keyframes hero-concept-13-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 960px) {
  .hero--concept-13 {
    --hero-header-offset: 96px;
  }
}

@media (max-width: 959px) {
  .hero--concept-13 .hero-media::before {
    background: linear-gradient(90deg, rgba(30, 32, 28, 0.96) 0%, rgba(30, 32, 28, 0.78) 35%, rgba(30, 32, 28, 0.34) 67%, rgba(30, 32, 28, 0.1) 100%),
        linear-gradient(0deg, rgba(30, 32, 28, 0.99) 0%, rgba(30, 32, 28, 0.92) 23%, rgba(30, 32, 28, 0.52) 50%, rgba(30, 32, 28, 0.08) 78%, rgba(18, 20, 17, 0.13) 100%);
  }

  .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(68px, 8vh, 94px);
  }
}

@media (max-width: 699px) {
  .hero--concept-13,
.hero--concept-13 .hero-canvas,
.hero--concept-13 .hero-stage {
    min-height: max(860px, var(--hero-viewport));
  }
  
  .hero--concept-13 .hero-copy {
    min-height: calc(max(860px, var(--hero-viewport)) - var(--hero-header-offset));
  }
  
  .hero--concept-13 .hero-media::before {
    background: linear-gradient(90deg, rgba(30, 32, 28, 0.96) 0%, rgba(30, 32, 28, 0.72) 54%, rgba(30, 32, 28, 0.2) 100%),
        linear-gradient(0deg, rgba(30, 32, 28, 1) 0%, rgba(30, 32, 28, 0.94) 31%, rgba(30, 32, 28, 0.48) 61%, rgba(18, 20, 17, 0.13) 100%);
  }
  
  .hero--concept-13 .eyebrow {
    max-width: 34ch;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero--concept-13 .hero-copy__lead,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero--concept-13 .hero-copy__support {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero--concept-13 .hero-canvas {
  background: var(--graphite);
}

.hero--concept-13 .hero-stage {
  z-index: 4;
}

.hero--concept-13 .hero-copy {
  position: static;
}

.hero--concept-13 .hero-copy__lead {
  margin-top: clamp(54px, 7.2vh, 86px);
}

.hero--concept-13 .hero-copy__support {
  padding-bottom: 130px;
}

.hero--concept-13 .hero-media::before {
  z-index: 2;
}

.hero--concept-13 .hero-media {
  z-index: 1;
}

.hero--concept-13 .hero-slides {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero--concept-13 .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.68) contrast(1.03) brightness(0.82);
}

.hero--concept-13 .hero-slide {
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.hero--concept-13 .hero-slide.is-active {
  opacity: 1;
}

.hero--concept-13 .hero-media.is-slide-immediate .hero-slide {
  transition: none;
}

.hero--concept-13 .hero-motion.is-motion-paused .hero-slide {
  transition-duration: 160ms;
}

.hero--concept-13 .eyebrow {
  flex-wrap: nowrap;
}

.hero--concept-13 .eyebrow::before {
  display: none;
}

.hero--concept-13 .eyebrow__term,
.hero--concept-13 .eyebrow__separator {
  flex: 0 0 auto;
}

.hero--concept-13 .slideshow-controls {
  position: absolute;
  z-index: 6;
  display: flex;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.hero--concept-13 .slideshow-controls[hidden] {
  display: none;
}

.hero--concept-13 .slideshow-controls.is-visible {
  opacity: 1;
  transform: translate(0, -50%);
}

.hero--concept-13 .slideshow-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(245, 243, 238, 0.36);
  border-radius: 50%;
  background: rgba(30, 32, 28, 0.48);
  color: var(--off-white);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), background-color var(--transition);
}

.hero--concept-13 .slideshow-control:hover {
  border-color: var(--sage);
  background: rgba(30, 32, 28, 0.82);
}

.hero--concept-13 .slideshow-control span {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.hero--concept-13 .slideshow-control--previous span {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.hero--concept-13 .slideshow-control--next span {
  margin-right: 3px;
  transform: rotate(45deg);
}

@media (min-width: 960px) and (min-height: 680px) and (max-height: 779px) {
  .hero--concept-13,
.hero--concept-13 .hero-canvas,
.hero--concept-13 .hero-stage {
    min-height: var(--hero-viewport);
  }
  
  .hero--concept-13 .hero-copy {
    min-height: calc(var(--hero-viewport) - var(--hero-header-offset));
  }
  
  .hero--concept-13 .hero-copy__support {
    padding-bottom: 88px;
  }
  
  .hero--concept-13 .hero-intro {
    line-height: 1.5;
  }
  
}

@media (max-width: 959px) {
  .hero--concept-13,
.hero--concept-13 .hero-canvas,
.hero--concept-13 .hero-stage {
    min-height: var(--hero-viewport);
  }
  
  .hero--concept-13 .hero-copy {
    min-height: calc(var(--hero-viewport) - var(--hero-header-offset));
  }
  
  .hero--concept-13 .hero-copy__support {
    padding-bottom: 148px;
  }
}

@media (max-width: 699px) {
  .hero--concept-13 .hero-copy__lead {
    margin-top: 50px;
  }
}

@media (max-width: 560px) {
  .hero--concept-13 .eyebrow {
    display: grid;
    gap: 3px;
    justify-items: start;
    max-width: none;
    line-height: 1.45;
  }
  
  .hero--concept-13 .eyebrow__separator {
    display: none;
  }
  
  .hero--concept-13 .eyebrow__term {
    grid-column: 1;
  }
}

@media (max-width: 389px) {
  .hero--concept-13,
.hero--concept-13 .hero-canvas,
.hero--concept-13 .hero-stage {
    min-height: 0;
  }
  
  .hero--concept-13 .hero-copy {
    min-height: 0;
  }
  
  .hero--concept-13 .hero-copy__lead {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero--concept-13 .hero-motion.is-motion-user-enabled .hero-slide {
    transition-duration: 900ms;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .hero--concept-13 .hero-motion.is-motion-user-enabled.is-motion-paused .hero-slide {
    transition-duration: 160ms;
  }
}

.cookie-dialog {
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 1px solid rgba(30, 32, 28, 0.2);
  border-radius: 4px;
  background: transparent;
  color: var(--graphite);
}

.cookie-dialog::backdrop {
  background: rgba(30, 32, 28, 0.5);
}

.cookie-dialog__surface {
  padding: clamp(28px, 5vw, 44px);
  background: var(--off-white);
}

.cookie-dialog h2 {
  font-size: clamp(1.35rem, 5.2vw, 2.25rem);
  line-height: 1.1;
}

/* Luft mellan eyebrow och rubrik; övrig dialoggeometri oförändrad. */
.cookie-dialog .eyebrow + h2 {
  margin-top: 14px;
}

.cookie-dialog p {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--warm-grey-dark);
}

.cookie-dialog p:not(.eyebrow) {
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-dialog__close {
  margin-top: 28px;
}

.footer-logo-lockup {
  gap: 0;
  margin-bottom: 30px;
}

.footer-logo {
  width: clamp(180px, 16vw, 220px);
}

.footer-brand .footer-company {
  margin-top: 0;
}

.footer-brand .footer-tagline {
  max-width: 34ch;
  margin-top: 10px;
  color: rgba(245, 243, 238, 0.62);
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 350;
  line-height: 1.5;
}

.menu-toggle:focus-visible,
.header-email:focus-visible {
  background: rgba(138, 155, 124, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .menu-toggle[aria-expanded="false"] .menu-toggle__line {
    margin-right: auto;
    margin-left: auto;
    transform-origin: center;
    transition: width 300ms var(--ease),
        transform 300ms var(--ease),
        opacity 300ms var(--ease);
  }
  
  .menu-toggle[aria-expanded="false"] .menu-toggle__line:nth-child(1) {
    transition-delay: 0ms;
  }
  
  .menu-toggle[aria-expanded="false"] .menu-toggle__line:nth-child(2) {
    transition-delay: 45ms;
  }
  
  .menu-toggle[aria-expanded="false"] .menu-toggle__line:nth-child(3) {
    transition-delay: 90ms;
  }
  
  .menu-toggle[aria-expanded="false"]:hover .menu-toggle__line:nth-child(1) {
    width: 78%;
    transform: translateX(-3px);
  }
  
  .menu-toggle[aria-expanded="false"]:hover .menu-toggle__line:nth-child(2) {
    width: 100%;
    transform: translateX(3px);
  }
  
  .menu-toggle[aria-expanded="false"]:hover .menu-toggle__line:nth-child(3) {
    width: 66%;
    transform: translateX(-2px);
  }
}

@media (min-width: 960px) {
  .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(78px, 9.5vh, 110px);
  }
}

@media (min-width: 960px) and (min-height: 680px) and (max-height: 779px) {
  .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(62px, 8.8vh, 70px);
  }
}

@media (min-width: 881px) and (max-width: 1100px) {
  .site-nav ul {
    gap: clamp(12px, 1.55vw, 17px);
  }
  
  .site-nav a:not(.button) {
    font-size: 0.7rem;
  }
  
  .site-nav .header-contact {
    min-height: 46px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 699px) {
  .footer-logo-lockup {
    margin-bottom: 26px;
  }
  
  .footer-logo {
    width: 190px;
  }
  
  .footer-brand .footer-tagline {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .menu-toggle[aria-expanded="false"] .menu-toggle__line {
    transition-duration: 0ms;
    transition-delay: 0ms;
  }
  
  .menu-toggle[aria-expanded="false"]:hover .menu-toggle__line {
    width: 100%;
    transform: none;
  }
}

@media (min-width: 960px) {
  .hero--concept-13 .hero-copy__support {
    margin-top: clamp(36px, 4.5vh, 48px);
  }
  
  .hero--concept-13 .hero-intro {
    max-width: none;
  }
  
}

@media (min-width: 960px) and (max-width: 1199px) and (orientation: portrait) {
  .hero--concept-13 .hero-intro {
    max-width: none;
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 699px) {
  .hero--concept-13,
.hero--concept-13 .hero-canvas,
.hero--concept-13 .hero-stage,
.hero--concept-13 .hero-copy {
    min-height: 0;
  }
  
  .hero--concept-13 .hero-copy__support {
    padding-bottom: clamp(72px, 12svh, 96px);
  }
}

.hero--concept-13 .motion-toggle {
  gap: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.hero--concept-13 .motion-toggle__label,
.kpi-semantic-value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1440px) {
  .section-intro--split,
.contact-layout {
    align-items: start;
  }
}

body.is-menu-open {
  overflow: hidden;
}

.header-logo-stack {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(158px, 18vw, 184px);
  aspect-ratio: 2004 / 496;
}

.header-logo-variant {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 280ms var(--ease);
}

.header-logo-variant--on-light,
.site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]) .header-logo-variant--on-dark {
  opacity: 0;
}

.site-header:is([data-theme="light"], [data-theme="warm-grey-mid"]) .header-logo-variant--on-light {
  opacity: 1;
}

.header-contact[aria-current="page"] {
  box-shadow: inset 0 0 0 1px currentColor, 0 0 0 1px rgba(138, 155, 124, 0.5);
}

.page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: end;
}

.page-head__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-width: 0;
}

.page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 14ch;
}


.page-head--contact .page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 11.5ch;
}

.page-head--case .page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 12ch;
}

.cookie-dialog {
  overflow: auto;
}

.cookie-dialog__setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-dialog__setting > span:first-child {
  display: grid;
  gap: 4px;
}

.cookie-dialog__setting strong {
  font-size: 0.9rem;
}

.cookie-dialog__setting small {
  color: var(--warm-grey-dark);
  font-size: 0.75rem;
  line-height: 1.35;
}

.cookie-dialog__required {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(138, 155, 124, 0.16);
  color: var(--sage-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.cookie-dialog__actions .button,
.cookie-dialog__actions .cookie-dialog__close {
  margin-top: 0;
}

.cookie-dialog__close {
  appearance: none;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.form-error {
  display: block;
  min-height: 1.25em;
  margin-top: 7px;
  color: #7b2f29;
  font-size: 0.76rem;
  line-height: 1.3;
}

.form-field :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #7b2f29;
  box-shadow: 0 1px 0 #7b2f29;
}

.form-hint {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--warm-grey-dark);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-status[data-state] {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: clamp(28px, 3vw, 38px);
  color: var(--graphite);
}

.form-status__label {
  color: var(--sage-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.form-status__title {
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 350;
  line-height: 1.3;
}

.form-status__detail {
  margin-top: 2px;
  color: var(--warm-grey-dark);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status[data-state] + .form-hint {
  display: none;
}

@media (max-width: 1100px) {
  .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(42px, 6vw, 72px);
}
}

@media (max-width: 880px) {
  .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: 0;
  padding: calc(var(--header-height) + 96px) 0 78px;
}
  
  .page-head::before {
    right: var(--gutter);
    width: 42vw;
  }
  
  .page-head::after {
    right: -90px;
    width: min(55vw, 360px);
  }
  
  .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-columns: minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}
  
  .page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 14ch;
}
}

@media (max-width: 620px) {
  .header-logo-stack {
    width: 164px;
  }
  
  .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 62px;
}
  
  .page-head .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 26px;
}
  
  .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  gap: 44px;
}
  
  .cookie-dialog__setting {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  
  .cookie-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }
  
  .cookie-dialog__actions .button,
.cookie-dialog__actions .cookie-dialog__close {
    width: 100%;
  }
  
  .footer-brand > a,
.footer-nav > a,
.back-link,
.text-link,
.contact-facts a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  
  .footer-nav > a {
    width: 100%;
  }
  
  .footer-nav {
    row-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-logo-variant {
    transition: none;
  }
}

:root:has(> body.home-page) {
  --graphite-deep: #121511;
  --warm-grey: #c9c4b8;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:where(body.home-page),
:where(body.home-page) *,
:where(body.home-page) *::before,
:where(body.home-page) *::after {
  box-sizing: border-box;
}

html:has(> body.home-page) {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--off-white);
  background: var(--graphite-deep);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

:where(body.home-page) ::selection {
  color: var(--graphite-deep);
  background: var(--sage);
}

:where(body.home-page) a {
  color: inherit;
}

:where(body.home-page) .skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 11px 15px;
  color: var(--graphite-deep);
  background: var(--off-white);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

:where(body.home-page) .skip-link:focus {
  transform: translateY(0);
}

:where(body.home-page) .experience {
  --experience-frame-gutter: max(var(--gutter), calc((100vw - var(--max-width)) / 2));
  --experience-hero-green: #303630;
  /*
   * Taket håller sektionen innehållsproportionerlig. 64svh ensamt lät höga
   * portrait-viewports (t.ex. 864x1613) driva sektionen mot 1020px trots att
   * innehållet bara är ~300px, vilket gav ~580px dött utrymme under CTA:n.
   * Golvet 660px är det godkända desktopläget och lämnas orört.
   */
  --experience-natural-min-height: clamp(660px, 64svh, 720px);
  position: relative;
  min-height: var(--experience-natural-min-height);
  scroll-margin-top: 0;
  overflow: hidden;
  color: var(--off-white);
  background: var(--graphite-deep);
}

:where(body.home-page) .experience__stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  min-height: var(--experience-natural-min-height);
  box-sizing: border-box;
  padding: clamp(80px, 8vw, 128px) var(--experience-frame-gutter) clamp(52px, 6svh, 80px);
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite-deep);
}

:where(body.home-page) .experience__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: grayscale(1) sepia(0.22) saturate(0.45) brightness(1.04) contrast(1.04);
}

:where(body.home-page) .experience__stage::before,
:where(body.home-page) .experience__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

:where(body.home-page) .experience__stage::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 13, 10, 0.96) 0%, rgba(12, 15, 11, 0.88) 29%, rgba(13, 16, 12, 0.5) 52%, rgba(13, 16, 12, 0.16) 74%, rgba(10, 13, 10, 0.24) 100%),
    linear-gradient(180deg, rgba(8, 10, 8, 0.26) 0%, rgba(8, 10, 8, 0.04) 42%, rgba(8, 10, 8, 0.5) 100%);
}

:where(body.home-page) .experience__stage::after {
  z-index: 2;
  box-shadow:
    inset 0 1px rgba(245, 243, 238, 0.08),
    inset 0 -1px rgba(245, 243, 238, 0.08),
    inset 0 72px 96px rgba(8, 10, 8, 0.16),
    inset 0 -104px 126px rgba(8, 10, 8, 0.34);
}

:where(body.home-page) .experience__masthead,
:where(body.home-page) .experience__content-group,
:where(body.home-page) .experience__prelude,
:where(body.home-page) .experience__footer {
  position: relative;
  z-index: 3;
}

:where(body.home-page) .experience__content-group {
  /*
   * Copygruppen fyller stagens innehållsrad (gridens standard-stretch).
   * Rubrik och brödtext ligger kvar överst efter sektionshuvudet, medan
   * CTA:n (footern, margin-top: auto) bottenjusteras mot stagens nedre
   * padding. gap är minsta avstånd mellan brödtext och CTA när raden
   * saknar ledig höjd; sektionens höjd styrs fortsatt av min-height.
   */
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vh, 72px);
  width: min(760px, 70vw);
  margin-top: clamp(28px, 3svh, 48px);
}

:where(body.home-page) .experience__masthead {
  --section-head-index-color: var(--experience-hero-green);
  color: var(--sage);
  margin-bottom: 0;
}

:where(body.home-page) .experience__masthead .section-head__index {
  background: linear-gradient(
    90deg,
    var(--sage) 0%,
    var(--sage) 62%,
    var(--sage-dark) 84%,
    var(--experience-hero-green) 100%
  );
}

:where(body.home-page) .experience__prelude {
  width: 100%;
  padding-block: 0;
}

:where(body.home-page) .experience__heading {
  font-size: clamp(1.75rem, 3.8vw, 4rem);
  line-height: 1.04;
}

:where(body.home-page) .experience__heading-line {
  display: block;
  white-space: nowrap;
}

:where(body.home-page) .experience__heading-accent {
  color: var(--sage);
}

:where(body.home-page) .experience__body {
  max-width: 40ch;
  margin-top: clamp(24px, 2.4vw, 34px);
  color: rgba(245, 243, 238, 0.76);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.6;
}

:where(body.home-page) .experience__footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  /*
   * Bottenjusterad i copygruppen. Den döda ytan som tidigare gjorde detta
   * olämpligt kom från sektionens höga min-height, som numera är takad
   * (--experience-natural-min-height); minsta avstånd ägs av gruppens gap.
   */
  margin-top: auto;
  padding-top: clamp(20px, 2.2vw, 30px);
}

/* CTA:n använder den delade .text-link-komponenten; här sätts bara
   placeringen i footergriden och färgen för den mörka sektionen. */
:where(body.home-page) .experience__link {
  grid-column: 1;
  min-height: 44px;
  color: var(--off-white);
}

/* Mörk sektion: pilen fylls inverterat, annars hade graphite mot
   graphite-deep blivit oläsbart i hover/focus. */
:where(body.home-page) .experience__link:focus-visible .text-link__arrow {
  color: var(--graphite-deep);
  background: var(--off-white);
}

@media (hover: hover) and (pointer: fine) {
  :where(body.home-page) .experience__link:hover .text-link__arrow {
    color: var(--graphite-deep);
    background: var(--off-white);
  }
}

@media (max-width: 720px) {
  :where(body.home-page) .experience {
    --experience-natural-min-height: max(600px, 74svh);
  }

  :where(body.home-page) .experience__stage {
    padding: 68px var(--experience-frame-gutter) clamp(36px, 5svh, 52px);
  }

  :where(body.home-page) .experience__image {
    object-position: 58% 50%;
  }

  :where(body.home-page) .experience__stage::before {
    background:
      linear-gradient(90deg, rgba(10, 13, 10, 0.94) 0%, rgba(12, 15, 11, 0.83) 48%, rgba(12, 15, 11, 0.46) 100%),
      linear-gradient(180deg, rgba(8, 10, 8, 0.2) 0%, rgba(8, 10, 8, 0.12) 50%, rgba(8, 10, 8, 0.62) 100%);
  }

  :where(body.home-page) .experience__content-group,
  :where(body.home-page) .experience__prelude {
    width: 100%;
    padding-block: 0;
  }

  :where(body.home-page) .experience__footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

}

@media (min-width: 721px) and (max-width: 880px) {
  :where(body.home-page) .experience__stage {
    padding-top: 68px;
  }
}

@media (min-width: 721px) and (max-height: 700px) {
  :where(body.home-page) .experience {
    --experience-natural-min-height: 640px;
  }

  :where(body.home-page) .experience__stage {
    padding-top: clamp(80px, 8vw, 128px);
    padding-bottom: 28px;
  }

}

@media (forced-colors: active) {
  :where(body.home-page) .experience,
  :where(body.home-page) .experience__stage {
    color: CanvasText;
    background: Canvas;
  }

  :where(body.home-page) .experience__image {
    opacity: 0.22;
  }

  :where(body.home-page) .experience__stage::before {
    display: none;
  }

  :where(body.home-page) .experience__masthead,
  :where(body.home-page) .experience__heading-accent,
  :where(body.home-page) .experience__link {
    --section-head-index-color: CanvasText;
    color: CanvasText;
  }

  :where(body.home-page) .experience__masthead .section-head__index {
    background: CanvasText;
  }
}
:root:has(> body.home-page) {
  --graphite: #1e201c;
  --graphite-soft: #292c27;
  --off-white: #f5f3ee;
  --sage: #8a9b7c;
  --sage-dark: #5a6a4f;
  --gutter: clamp(20px, 3vw, 48px);
  --max-width: 1280px;
}

html:has(> body.home-page) {
  background: var(--graphite);
}

body.home-page.hero-concept-21 {
  min-width: 320px;
  background: var(--off-white);
  color: var(--graphite);
  line-height: 1.62;
}

body.home-page.hero-concept-21 .skip-link {
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: var(--graphite);
  font-size: 0.86rem;
  transform: translateY(-150%);
}

body.home-page.hero-concept-21 .skip-link:focus,
body.home-page.hero-concept-21 .skip-link:focus-visible {
  transform: translateY(0);
  transition: none;
}

@media (max-width: 1199px) {
  :root:has(> body.home-page) {
    --max-width: 1080px;
  }
}

@media (max-width: 959px) {
  :root:has(> body.home-page) {
    --gutter: clamp(22px, 4.6vw, 42px);
  }
}

.home-page {
  --home-control-size: 44px;
  --home-control-gap: 12px;
  --home-control-clearance: 20px;
  --home-slideshow-gap: 14px;
  --home-control-edge: max(var(--gutter), calc(12px + env(safe-area-inset-right)));
  /*
   * Inloggad i WordPress skjuter core hela dokumentet nedåt med
   * html { margin-top: <admin-bar> }. Heron mäts fortfarande i svh (eller
   * sitt golv) och kontrollerna förankras mot herons underkant, så deras
   * marginal mot viewportens nederkant minskade med exakt admin-barens höjd
   * och kunde bli negativ. margin-bottom lyfter kontrollerna lika mycket, så
   * de hamnar på samma viewportposition som utloggat. Variabeln är statisk
   * (32/46px, satt av core) och påverkas inte av scroll; utloggat är den 0.
   */
  --home-control-admin-offset: var(--wp-admin--admin-bar--height, 0px);
}

.home-page .hero--concept-13 .motion-toggle {
  top: auto;
  right: 0;
  bottom: 130px;
  left: auto;
  margin-bottom: var(--home-control-admin-offset);
  width: var(--home-control-size);
  height: var(--home-control-size);
  min-width: var(--home-control-size);
  min-height: var(--home-control-size);
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.home-page .hero--concept-13 .slideshow-controls {
  top: auto;
  right: calc(var(--home-control-size) + var(--home-control-gap));
  bottom: 130px;
  left: auto;
  margin-bottom: var(--home-control-admin-offset);
  width: fit-content;
  justify-content: flex-start;
  gap: var(--home-slideshow-gap);
  transform: translateY(8px);
}

.home-page .hero--concept-13 .slideshow-controls.is-visible {
  transform: none;
}

@media (min-width: 1200px) and (min-height: 680px) and (max-height: 779px) {
  .home-page .hero--concept-13 .motion-toggle,
.home-page .hero--concept-13 .slideshow-controls {
    bottom: 88px;
  }
}

@media (max-width: 1199px) {
  .home-page .hero--concept-13 .motion-toggle {
    top: auto;
    right: auto;
    left: 0;
  }
  
  .home-page .hero--concept-13 .slideshow-controls {
    top: auto;
    right: auto;
    left: 50%;
    width: fit-content;
    justify-content: flex-start;
    gap: var(--home-slideshow-gap);
    transform: translate(-50%, 8px);
  }
  
  .home-page .hero--concept-13 .slideshow-controls.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (orientation: portrait) and (max-width: 699.98px) {
  /*
   * Kontrollerna är absolut positionerade mot herons underkant, och heron
   * mäts i svh. svh utesluter redan den expanderade webbläsarlisten och
   * därmed home indicator-ytan, så env(safe-area-inset-bottom) tillför
   * ingen verklig marginal här. Däremot växlar iOS Safari insetet från 0px
   * till 34px i samma ögonblick som listen fälls ihop under scroll, vilket
   * fick max() att byta värde och kontrollerna att hoppa uppåt medan heron
   * stod still. Värdet är därför konstant - inget env() - vilket bevarar den
   * fixen.
   *
   * 24px visade sig däremot vara för snålt i praktiken: på riktiga telefoner
   * ligger webbläsarens nedre fält och home indicator-ytan över just den
   * zonen, så kontrollerna såg avklippta ut. Surfplattor i portrait använder
   * redan 84px. 72px ger motsvarande säkerhetsmarginal på telefon utan att
   * komma nära hero-texten (uppmätt luft vid 375x667: 225px).
   */
  .home-page .hero--concept-13 .motion-toggle,
.home-page .hero--concept-13 .slideshow-controls {
    bottom: 72px;
  }
  
  .home-page {
    --home-slideshow-gap: 8px;
  }
}

@media (orientation: portrait) and (min-width: 700px) and (max-width: 1199px) {
  .home-page {
    --home-control-row-bottom: max(84px, calc(10px + env(safe-area-inset-bottom)));
  }
  
  .home-page .hero--concept-13 .motion-toggle,
.home-page .hero--concept-13 .slideshow-controls {
    bottom: var(--home-control-row-bottom);
  }
  
  body.home-page.home-page .hero--concept-13 .hero-copy__support {
    padding-bottom: calc(
        var(--home-control-row-bottom) +
        var(--home-control-size) +
        var(--home-control-clearance)
      );
  }
}

@media (orientation: landscape) and (max-width: 1199px) {
  /*
   * Samma orsak som i portraitläget ovan; konstant värde bevarar anti-hopp-
   * fixen. Höjt från 18px av samma skäl, men måttligare eftersom landscape-
   * viewporten är låg och hero-texten ligger närmare.
   */
  .home-page .hero--concept-13 .motion-toggle,
.home-page .hero--concept-13 .slideshow-controls {
    bottom: 32px;
  }
}

@media (orientation: landscape) and (max-width: 880px) and (max-height: 430px) {
  .home-page {
    --home-slideshow-gap: 8px;
  }
  
  .home-page .hero--concept-13 .slideshow-controls {
    right: calc(var(--home-control-size) + var(--home-control-gap));
    left: auto;
    transform: translateY(8px);
  }
  
  .home-page .hero--concept-13 .slideshow-controls.is-visible {
    transform: none;
  }
  
  .home-page .hero--concept-13 .motion-toggle {
    right: calc(
        var(--home-control-size) + var(--home-control-gap) +
        var(--home-control-size) + var(--home-slideshow-gap) +
        var(--home-control-size) + var(--home-control-gap)
      );
    left: auto;
  }
}

@media (orientation: landscape) and (min-width: 881px) and (max-width: 1199px) {
  .home-page .hero--concept-13 .slideshow-controls {
    right: calc(var(--home-control-size) + var(--home-control-gap));
    left: auto;
    transform: translateY(8px);
  }
  
  .home-page .hero--concept-13 .slideshow-controls.is-visible {
    transform: none;
  }
  
  .home-page .hero--concept-13 .motion-toggle {
    right: calc(
        var(--home-control-size) + var(--home-control-gap) +
        var(--home-control-size) + var(--home-slideshow-gap) +
        var(--home-control-size) + var(--home-control-gap)
      );
    left: auto;
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  .home-page .hero--concept-13 .slideshow-controls {
    top: auto;
    right: calc(var(--hero-wide-motion-size) + var(--hero-wide-actions-gap));
    bottom: var(--hero-wide-motion-bottom);
    left: auto;
    width: fit-content;
    gap: var(--hero-wide-actions-gap);
    justify-content: flex-start;
    transform: translateY(calc(8 * var(--hero-wide-unit)));
  }

  .home-page .hero--concept-13 .slideshow-controls.is-visible {
    transform: none;
  }
  
  .home-page .hero--concept-13 .slideshow-control {
    width: var(--hero-wide-slideshow-size);
    height: var(--hero-wide-slideshow-size);
    min-width: var(--hero-wide-slideshow-size);
    min-height: var(--hero-wide-slideshow-size);
    border-width: var(--hero-wide-hairline);
    backdrop-filter: blur(var(--hero-wide-control-blur));
  }
  
  .home-page .hero--concept-13 .slideshow-control span {
    width: var(--hero-wide-slideshow-arrow);
    height: var(--hero-wide-slideshow-arrow);
    border-top-width: var(--hero-wide-slideshow-arrow-stroke);
    border-right-width: var(--hero-wide-slideshow-arrow-stroke);
  }
  
  .home-page .hero--concept-13 .slideshow-control--previous span {
    margin-left: var(--hero-wide-slideshow-arrow-offset);
  }
  
  .home-page .hero--concept-13 .slideshow-control--next span {
    margin-right: var(--hero-wide-slideshow-arrow-offset);
  }
  
  .home-page .hero--concept-13 .motion-toggle {
    top: auto;
    right: 0;
    bottom: var(--hero-wide-motion-bottom);
    left: auto;
    width: var(--hero-wide-motion-size);
    height: var(--hero-wide-motion-size);
    min-width: var(--hero-wide-motion-size);
    min-height: var(--hero-wide-motion-size);
    padding: 0;
    border-width: var(--hero-wide-hairline);
    backdrop-filter: blur(var(--hero-wide-control-blur));
  }
  
  .home-page .hero--concept-13 .motion-toggle__icon {
    gap: calc(3 * var(--hero-wide-unit));
    width: var(--hero-wide-motion-icon-size);
    height: var(--hero-wide-motion-icon-size);
  }
  
  .home-page .hero--concept-13 .motion-toggle__icon i {
    width: calc(2 * var(--hero-wide-unit));
    height: calc(8 * var(--hero-wide-unit));
  }
  
  .home-page .hero--concept-13 .hero-motion.is-motion-paused .motion-toggle__icon::after {
    margin-left: calc(2 * var(--hero-wide-unit));
    border-top-width: calc(5 * var(--hero-wide-unit));
    border-bottom-width: calc(5 * var(--hero-wide-unit));
    border-left-width: calc(8 * var(--hero-wide-unit));
  }
}

.references-case-system-f-page {
  --case-system-gap: 52px;
}

.references-case-system-f-page .case-system-f-section {
  overflow: clip;
  padding-block: clamp(104px, 8vw, 128px) clamp(116px, 9vw, 144px);
}

.references-case-system-f-page .case-system-f-section > .container {
  width: min(calc(100% - 64px), 1376px);
}

.references-case-system-f-page .case-system-f-section .section-head {
  margin-bottom: clamp(58px, 5vw, 76px);
}

.references-case-system-f-page .case-system-f-list {
  display: grid;
  gap: var(--case-system-gap);
}

.references-case-system-f-page .case-system-f {
  --case-surface: var(--warm-grey-mid);
  --case-line: rgba(30, 32, 28, 0.24);
  --case-media-width: 51.5%;
  --case-media-cut: 18%;
  --case-media-cut-active: 11%;
  --case-image-position: center;
  --case-name-size: clamp(4.25rem, 5.4vw, 5.35rem);
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--case-surface);
  color: var(--graphite);
  isolation: isolate;
}

.references-case-system-f-page .case-system-f--sage {
  --case-surface: var(--sage);
}

.references-case-system-f-page .case-system-f--soft {
  --case-surface: var(--warm-grey-light);
}

.references-case-system-f-page .case-system-f__media {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: var(--case-media-width);
  overflow: hidden;
  background: var(--graphite-soft);
  clip-path: polygon(var(--case-media-cut) 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1000ms var(--ease);
}

.references-case-system-f-page .case-system-f__media:focus-visible {
  outline-offset: -4px;
}

.references-case-system-f-page .case-system-f--reverse .case-system-f__media {
  inset: 0 auto 0 0;
  clip-path: polygon(0 0, calc(100% - var(--case-media-cut)) 0, 100% 100%, 0 100%);
}

.references-case-system-f-page .case-system-f__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 32, 28, 0.18), transparent 32%);
  pointer-events: none;
}

.references-case-system-f-page .case-system-f--reverse .case-system-f__media::after {
  background: linear-gradient(270deg, rgba(30, 32, 28, 0.18), transparent 32%);
}

.references-case-system-f-page .case-system-f__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--case-image-position);
}

.references-case-system-f-page .case-system-f__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--case-media-width));
  min-height: 760px;
  padding: 48px 40px 40px 48px;

  gap: 40px;
  overflow-wrap: anywhere;
}

.references-case-system-f-page .case-system-f--reverse .case-system-f__copy {
  margin-left: auto;
  padding-right: 48px;
  padding-left: 40px;
}

.references-case-system-f-page .case-system-f__intro {
  min-width: 0;
}

.references-case-system-f-page .case-system-f__client {
  color: rgba(30, 32, 28, 0.72);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.references-case-system-f-page .case-system-f__client::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin-top: 17px;
  background: rgba(30, 32, 28, 0.48);
}

.references-case-system-f-page .case-system-f__title {
  max-width: 100%;
  margin-top: clamp(62px, 5vw, 72px);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: var(--case-name-size);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1;
}

.references-case-system-f-page .case-system-f__name,
.references-case-system-f-page .case-system-f__descriptor {
  display: block;
}

.references-case-system-f-page .case-system-f__name {
  line-height: 1.08;
}

.references-case-system-f-page .case-system-f__descriptor {
  max-width: 14.5ch;
  margin-top: 0.2em;
  font-size: clamp(2.35rem, 3.15vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.references-case-system-f-page .case-system-f__lead {
  max-width: 46ch;
  margin-top: 34px;
  color: rgba(30, 32, 28, 0.74);
  font-size: 0.94rem;
  line-height: 1.52;
}

.references-case-system-f-page .case-system-f__footer {
  width: min(100%, 456px);
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--case-line);
}

.references-case-system-f-page .case-system-f__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(30, 32, 28, 0.68);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.references-case-system-f-page .case-system-f__meta strong {
  color: var(--graphite);
}

.references-case-system-f-page .case-system-f__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 46px;
  margin-top: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--graphite);
  color: var(--graphite);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.references-case-system-f-page .case-system-f__link svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
  transition: transform 220ms var(--ease);
}

.references-case-system-f-page .case-system-f:not(.case-system-f--reverse):hover .case-system-f__media,
.references-case-system-f-page .case-system-f:not(.case-system-f--reverse):focus-within .case-system-f__media {
  clip-path: polygon(var(--case-media-cut-active) 0, 100% 0, 100% 100%, 0 100%);
}

.references-case-system-f-page .case-system-f--reverse:hover .case-system-f__media,
.references-case-system-f-page .case-system-f--reverse:focus-within .case-system-f__media {
  clip-path: polygon(0 0, calc(100% - var(--case-media-cut-active)) 0, 100% 100%, 0 100%);
}

.references-case-system-f-page .case-system-f__link:hover svg,
.references-case-system-f-page .case-system-f__link:focus-visible svg {
  transform: translateX(5px);
}

.references-case-system-f-page .case-system-f__link:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 7px;
}

.references-case-system-f-page .secondary-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 5vw, 68px);
}

.references-case-system-f-page .secondary-case {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 32, 28, 0.2);
  background: rgba(248, 246, 241, 0.68);
  color: var(--graphite);
}

.references-case-system-f-page .secondary-case__media {
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: var(--warm-grey-mid);
}

.references-case-system-f-page .secondary-case__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transition: transform 700ms var(--ease);
}

.references-case-system-f-page .secondary-case__media--ramsjo img {
  object-position: center 58%;
}

.references-case-system-f-page .secondary-case__body {
  padding: clamp(28px, 3vw, 38px);
}

.references-case-system-f-page .secondary-case__client {
  color: rgba(30, 32, 28, 0.64);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.references-case-system-f-page .secondary-case h3 {
  max-width: 16ch;
  margin-top: 22px;
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.references-case-system-f-page .secondary-case__summary {
  max-width: 51ch;
  margin-top: 24px;
  color: rgba(30, 32, 28, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

.references-case-system-f-page .secondary-case__meta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 32, 28, 0.22);
}

.references-case-system-f-page .secondary-case__meta dt,
.references-case-system-f-page .secondary-case__facts dt {
  color: rgba(30, 32, 28, 0.58);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.references-case-system-f-page .secondary-case__meta dd {
  margin-top: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.references-case-system-f-page .secondary-case__details {
  border-top: 1px solid rgba(30, 32, 28, 0.34);
  border-bottom: 1px solid rgba(30, 32, 28, 0.34);
}

.references-case-system-f-page .secondary-case__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.references-case-system-f-page .secondary-case__details summary::-webkit-details-marker {
  display: none;
}

.references-case-system-f-page .secondary-case__details summary:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 5px;
}

.references-case-system-f-page .secondary-case__details summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.25;
}

.references-case-system-f-page .secondary-case__details-vertical {
  transform-origin: center;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.references-case-system-f-page .secondary-case__details[open] .secondary-case__details-vertical {
  opacity: 0;
  transform: scaleY(0);
}

.references-case-system-f-page .secondary-case__details-body {
  display: grid;
  gap: 26px;
  padding: 8px 0 28px;
}

.references-case-system-f-page .secondary-case__details-body h4 {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.references-case-system-f-page .secondary-case__details-body p {
  margin-top: 10px;
  color: rgba(30, 32, 28, 0.72);
  font-size: 0.86rem;
  line-height: 1.58;
}

.references-case-system-f-page .secondary-case__facts {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 32, 28, 0.2);
}

.references-case-system-f-page .secondary-case__facts dd {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.references-case-system-f-page .ref-list li .ref-list__project {
  color: var(--graphite);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.27;
}

.references-case-system-f-page .ref-list li .ref-list__client {
  color: rgba(30, 32, 28, 0.57);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .references-case-system-f-page .case-system-f-section > .container {
    width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
  }
  
.references-case-system-f-page .case-system-f--long-name {
    --case-name-size: clamp(3.1rem, 6vw, 3.8rem);
  }
  
  .references-case-system-f-page .case-system-f__copy {
    width: 52%;
    padding: 40px 30px 34px 36px;
  }
  
.references-case-system-f-page .case-system-f__descriptor {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
  }
  
  .references-case-system-f-page .case-system-f__lead {
    font-size: 0.88rem;
  }
}

@media (max-width: 900px) {
  .references-case-system-f-page .secondary-cases {
    grid-template-columns: 1fr;
  }
  
  .references-case-system-f-page .secondary-case h3 {
    max-width: 19ch;
  }
  
  .references-case-system-f-page .reference-index .ref-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .references-case-system-f-page {
    --case-system-gap: 28px;
  }
  
  .references-case-system-f-page .case-system-f {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }
  
  .references-case-system-f-page .case-system-f__media,
.references-case-system-f-page .case-system-f--reverse .case-system-f__media {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    clip-path: none;
  }
  
  .references-case-system-f-page .case-system-f__copy,
.references-case-system-f-page .case-system-f--reverse .case-system-f__copy {
    order: 2;
    width: 100%;
    min-height: 560px;
    margin-left: 0;
    padding: 34px 28px 30px;
  }
  
  .references-case-system-f-page .case-system-f__title {
    margin-top: 48px;
  }
  
  .references-case-system-f-page .case-system-f__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  
  /*
   * Staplad layout har ingen diagonal, så det diagonala klippet nollställs.
   * Bilden blir då helt utan hoveruttryck. Den etablerade bildeffekten för
   * rektangulära referensbilder på samma sida - secondary-case__media img -
   * återanvänds i stället; se den guardade regeln längst ned i filen.
   */
  .references-case-system-f-page .case-system-f:not(.case-system-f--reverse):hover .case-system-f__media,
.references-case-system-f-page .case-system-f:not(.case-system-f--reverse):focus-within .case-system-f__media,
.references-case-system-f-page .case-system-f--reverse:hover .case-system-f__media,
.references-case-system-f-page .case-system-f--reverse:focus-within .case-system-f__media {
    clip-path: none;
  }

  .references-case-system-f-page .case-system-f__media img {
    transition: transform 700ms var(--ease);
  }

  /* Touch: kort zoom under fingertrycket (:active), ingen kvarliggande hover. */
  .references-case-system-f-page .case-system-f:focus-within .case-system-f__media img,
.references-case-system-f-page .case-system-f__media:active img {
    transform: scale(1.045);
  }
  
  .references-case-system-f-page .secondary-case__body {
    padding: 28px 24px;
  }
  
  .references-case-system-f-page .secondary-case__meta,
.references-case-system-f-page .secondary-case__facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .references-case-system-f-page .reference-index {
    margin-top: 84px;
  }
  
  .references-case-system-f-page .reference-index .ref-list li,
.references-case-system-f-page .reference-index .ref-list li:nth-child(even) {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .case-system-f__media,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .case-system-f__media img,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .case-system-f__link svg,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .secondary-case__details-vertical {
    transition: none;
  }
}

:where(body.references-case-system-f-page) .references-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, rgba(138, 155, 124, 0.1), transparent 38%),
    var(--graphite);
  color: var(--off-white);
}

:where(body.references-case-system-f-page) .references-hero:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: 820px;
}

:where(body.references-case-system-f-page) .references-hero::before {
  content: "";
  position: absolute;
  inset: var(--header-height) 0 0;
  background: linear-gradient(90deg, transparent 0 49.95%, rgba(245, 243, 238, 0.08) 50%, transparent 50.05%),
    linear-gradient(0deg, transparent 0 69.9%, rgba(245, 243, 238, 0.06) 70%, transparent 70.1%);
  pointer-events: none;
}

:where(body.references-case-system-f-page) .references-hero__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  align-self: center;
  padding-bottom: clamp(24px, 4vw, 58px);
}

:where(body.references-case-system-f-page) .references-hero h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 10ch;
  margin-top: 28px;
  text-wrap: balance;
}

:where(body.references-case-system-f-page) .references-hero .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: none;
  margin-top: 34px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

:where(body.references-case-system-f-page) .reference-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 26px clamp(40px, 4.5vw, 100px);
}

:where(body.references-case-system-f-page) .reference-section-intro__title {
  flex: 0 1 auto;
}

:where(body.references-case-system-f-page) .reference-section-intro h2 {
  max-width: 12ch;
}

:where(body.references-case-system-f-page) .reference-section-intro > p {
  flex: 1 1 26rem;
  max-width: none;
}

:where(body.references-case-system-f-page) .reference-section-intro p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

:where(body.references-case-system-f-page) .reference-section-intro--compact {
  margin-bottom: clamp(56px, 6vw, 82px);
}

.references-case-system-f-page .case-system-f-list {
  margin-top: clamp(62px, 6vw, 88px);
}

.references-case-system-f-page .secondary-case[open],
.references-case-system-f-page .secondary-case__details[open] .secondary-case__details-body {
  animation: reference-details-in 320ms var(--ease) both;
}

@keyframes reference-details-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.references-case-system-f-page .reference-index {
  margin-top: clamp(90px, 9vw, 132px);
}

.references-case-system-f-page .ref-list .ref-list__item .ref-list__project {
  max-width: 29ch;
  color: var(--graphite);
  font-family: var(--font-serif);
  font-synthesis: none;
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.23;
}

.references-case-system-f-page .ref-list .ref-list__item--wide .ref-list__project {
  max-width: 38ch;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
}

.references-case-system-f-page .ref-list .ref-list__item .ref-list__client {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .references-case-system-f-page .reference-index .ref-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  :where(body.references-case-system-f-page) .references-hero:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: 0;
}
  
  :where(body.references-case-system-f-page) .references-hero__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 620px;
  padding-bottom: 0;
}
  
  :where(body.references-case-system-f-page) .references-hero h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 11ch;
}
  
  :where(body.references-case-system-f-page) .reference-section-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  :where(body.references-case-system-f-page) .references-hero .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 26px;
}
  
  .references-case-system-f-page .reference-index .ref-list {
    grid-template-columns: 1fr;
  }
  
  .references-case-system-f-page .reference-index .ref-list .ref-list__item,
.references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(even),
.references-case-system-f-page .reference-index .ref-list .ref-list__item--wide {
    grid-column: auto;
    min-height: 142px;
    padding: 24px 20px;
  }
  
  .references-case-system-f-page .ref-list .ref-list__item--wide .ref-list__project {
    font-size: clamp(1.18rem, 6vw, 1.42rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .secondary-case__details[open] .secondary-case__details-body {
    animation: none;
    transition: none;
  }
}

.page-head__copy > .eyebrow::before,
.references-hero .eyebrow::before {
  display: none;
}

.section-head[data-section]::after {
  content: attr(data-section);
  font-variant-numeric: tabular-nums;
}

.contact-section .section-head[data-section]::after {
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cookie-dialog {
  width: min(560px, calc(100% - 40px));
}

.cookie-dialog__surface {
  position: relative;
  overflow: hidden;
}

.cookie-dialog__dismiss {
  position: absolute;
  top: clamp(14px, 2.4vw, 22px);
  right: clamp(14px, 2.4vw, 22px);
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(30, 32, 28, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.cookie-dialog__dismiss:hover,
.cookie-dialog__dismiss:focus-visible {
  border-color: rgba(30, 32, 28, 0.42);
}

.cookie-dialog__dismiss-line {
  grid-area: 1 / 1;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.cookie-dialog__dismiss-line:first-child {
  transform: rotate(45deg);
}

.cookie-dialog__dismiss-line:last-child {
  transform: rotate(-45deg);
}

.cookie-dialog__surface::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 4px;
  background: var(--sage);
}

.cookie-dialog__surface .eyebrow {
  color: var(--sage-dark);
}

.cookie-dialog__actions {
  justify-content: flex-start;
}

.cookie-dialog__actions .button {
  min-width: 138px;
}

.site-header:not(.is-scrolled) {
  background: var(--graphite);
}

.positioning {
  background: var(--off-white);
}

/* CTA under rubriken i positioneringssektionen följer samma avstånd som
   motsvarande text-link på tjänstesidan. */
.positioning .section-intro--split:has(+ .text-link) {
  margin-bottom: clamp(72px, 10.8vw, 195px);
}

/*
 * CTA:n flyttas ned i sektionens befintliga bottenutrymme i stället för att
 * sektionen ska växa, så KPI-panelen under behåller i stort sett sitt läge.
 */
.positioning {
  padding-bottom: clamp(40px, 2.1vw, 60px);
}

@media (min-width: 1200px) {
  .services-concept-b .services-b__map {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .services-concept-b .services-b__node {
    grid-row: span 4;
    grid-template-rows: subgrid;
    display: grid;
  }
  
  .services-concept-b .services-b__link {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    height: 100%;
  }
  
  .services-concept-b .services-b__link h3 {
    grid-row: 2;
  }
  
  .services-concept-b .services-b__link p {
    grid-row: 3;
  }
  
  .services-concept-b .services-b__arrow {
    grid-row: 4;
    align-self: end;
    margin-top: 26px;
  }
}

.section-intro--stacked p {
  white-space: nowrap;
}

.cookie-dialog__settings {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.cookie-dialog__setting input {
  width: 20px;
  height: 20px;
  accent-color: var(--sage-dark);
}

.cookie-dialog__setting input:disabled {
  opacity: 1;
}

/*
 * Headern publicerar sin egen renderade höjd som --header-height.
 * Navigationspanelen positioneras med top: var(--header-height), medan
 * headerns faktiska höjd ägs av .header-inner min-height. De två sattes
 * tidigare i skilda media queries och kunde glida isär, vilket lade panelen
 * över headerns nederkant. Varje min-height nedan har därför en parvis
 * --header-height i samma kontext. :root-värdet lämnas orört, så allt
 * utanför .site-header är oförändrat.
 */
.site-header {
  --header-height: var(--header-height-rest);
}

.site-header .header-inner {
  min-height: 96px;
  transition: min-height 420ms var(--ease);
}

.site-header .header-logo-stack {
  width: 214px;
  /* Krymper bara när headerns kontroller annars inte ryms bredvid logotypen
     (smala telefoner); brand-linken är ett krympbart flexobjekt. */
  max-width: 100%;
  transition: width 420ms var(--ease);
}

.site-header.is-scrolled {
  --header-height: var(--header-height-scrolled);
}

.site-header.is-scrolled .header-inner {
  min-height: 76px;
}

.site-header.is-scrolled .header-logo-stack {
  width: 156px;
}

/* Headern fälls ihop till 76px först när viewporten är både smal och låg;
   .site-header .header-inner styr höjden, så --header-bottom följer med. */
@media (max-width: 880px) and (max-height: 667px) {
  :root {
    --header-height-rest: 76px;
    --header-height-scrolled: 76px;
  }

  .site-header {
    --header-height: 76px;
  }

  .site-header .header-inner {
    min-height: 76px;
  }
  
  .site-header .header-logo-stack {
    width: 156px;
  }
}

@media (min-width: 1200px) {
  .site-nav li {
    display: flex;
    align-items: center;
  }

  .site-nav a:not(.button) {
    line-height: normal;
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  .site-header {
    --header-unit: clamp(1px, 0.053vw, 2px);
    --header-height: calc(96 * var(--header-unit));
    box-shadow: 0 var(--header-unit) 0 var(--header-border);
  }

  .site-header .header-inner {
    min-height: calc(96 * var(--header-unit));
  }

  .site-header .header-logo-stack {
    width: calc(214 * var(--header-unit));
  }

  .site-header.is-scrolled {
    --header-height: calc(76 * var(--header-unit));
  }

  .site-header.is-scrolled .header-inner {
    min-height: calc(76 * var(--header-unit));
  }

  .site-header.is-scrolled .header-logo-stack {
    width: calc(156 * var(--header-unit));
  }

  .site-nav ul {
    gap: calc(38 * var(--header-unit));
  }

  .site-nav a:not(.button) {
    font-size: max(0.75rem, calc(12 * var(--header-unit)));
  }

  .site-nav a:not(.button)::after {
    bottom: calc(-8 * var(--header-unit));
    height: var(--header-unit);
  }

  .header-contact {
    min-height: calc(50 * var(--header-unit));
    padding: calc(13 * var(--header-unit)) calc(23 * var(--header-unit));
    border-width: var(--header-unit);
    font-size: max(0.78rem, calc(12.48 * var(--header-unit)));
  }

  .header-contact:hover {
    transform: translateY(calc(-2 * var(--header-unit)));
  }

  .scroll-progress {
    bottom: calc(-1 * var(--header-unit));
    height: var(--header-unit);
  }
}

.privacy-policy__content {
  max-width: 760px;
  margin-inline: auto;
}

.privacy-policy__content h2 {
  margin-top: clamp(46px, 6vw, 70px);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.privacy-policy__content h2 + p {
  margin-top: 18px;
}

.privacy-policy__content p {
  font-weight: 350;
  color: var(--warm-grey-dark);
}

.privacy-policy__content a,
.privacy-policy__settings {
  color: var(--graphite);
  font: inherit;
  font-weight: 700;
}

.privacy-policy__settings {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.references-page .references-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #141713;
  color: var(--off-white);
}

.references-page .references-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 12, 0.91) 0%, rgba(12, 15, 12, 0.68) 39%, rgba(12, 15, 12, 0.16) 73%, rgba(12, 15, 12, 0.36) 100%),
    linear-gradient(0deg, rgba(12, 15, 12, 0.78) 0%, transparent 42%),
    linear-gradient(180deg, rgba(12, 15, 12, 0.55) 0%, transparent 25%);
  pointer-events: none;
}

.references-page .references-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--header-height) var(--gutter) 0;
  border-right: 1px solid rgba(245, 243, 238, 0.14);
  border-left: 1px solid rgba(245, 243, 238, 0.1);
  background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(245, 243, 238, 0.07) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(245, 243, 238, 0.07) 75%, transparent calc(75% + 1px));
  pointer-events: none;
}

.references-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.references-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 45%;
  filter: saturate(0.82) contrast(1.04);
}

.references-hero__composition:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(150px, 0.62fr) auto minmax(120px, 0.38fr) auto;
  column-gap: clamp(18px, 2.2vw, 34px);
  min-height: inherit;
  padding-top: var(--header-height);
  padding-bottom: clamp(28px, 3vw, 44px);
}

.references-hero__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-column: 1 / 8;
  grid-row: 2;
  align-self: center;
  max-width: 790px;
  padding: clamp(40px, 5vw, 72px) 0;
}

.references-hero h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 12.2ch;
  margin-top: 24px;
  font-size: clamp(3.7rem, 6.3vw, 6.45rem);
  line-height: 0.92;
  text-wrap: balance;
}

.references-hero .page-lead {
  color: var(--off-white);
}

.references-hero .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  width: 100%;
  max-width: none;
  margin-top: 30px;
  font-size: clamp(1rem, 1.28vw, 1.16rem);
}

.references-hero__axis {
  grid-column: 12;
  grid-row: 4;
  align-self: center;
  height: 1px;
  background: var(--sage);
}

.case-system-f-section {
  position: relative;
}

.case-system-f-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: min(18vw, 240px);
  height: 5px;
  background: var(--sage);
}

.reference-section-intro {
  position: relative;
  padding-bottom: clamp(36px, 4vw, 58px);
  border-bottom: 1px solid var(--line-dark);
}

.reference-section-intro__title {
  display: grid;
  gap: 17px;
}

.reference-section-intro__kicker {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .reference-section-intro__kicker {
  color: var(--sage-dark);
  font-size: 0.64rem;
}

.reference-section-intro h2 {
  max-width: 11ch;
}

.reference-section-intro > p {
  align-self: end;
  padding-left: clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--sage);
}

.reference-section-intro--compact {
  padding-bottom: clamp(32px, 3vw, 46px);
}

.reference-section-intro--compact > p {
  border-left-color: rgba(30, 32, 28, 0.32);
}

.method-page .page-head--method {
  background: radial-gradient(circle at 78% 44%, rgba(138, 155, 124, 0.16), transparent 30%),
    linear-gradient(128deg, rgba(138, 155, 124, 0.1), transparent 44%),
    var(--graphite);
}

.method-page .page-head--method::before {
  inset: var(--header-height) var(--gutter) 0 auto;
  width: min(48vw, 690px);
  height: auto;
  border: 1px solid rgba(245, 243, 238, 0.08);
  border-top: 0;
  background: linear-gradient(rgba(245, 243, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: none;
}

.method-page .page-head--method::after {
  top: 20%;
  right: -7%;
  width: min(38vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(138, 155, 124, 0.16);
  border-radius: 50%;
  background: transparent;
  transform: none;
}


.method-page .page-head--method .page-head__copy {
  z-index: 2;
}


.process-interlude__track span {
  white-space: nowrap;
}

.process-handoff {
  position: relative;
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-top: 4px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(30, 32, 28, 0.24);
  background: rgba(245, 243, 238, 0.52);
}

.process-handoff::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 18px;
  width: 1px;
  height: 45px;
  background: var(--sage-dark);
}

.process-handoff__marker {
  position: absolute;
  top: -5px;
  left: 13px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--warm-grey-light);
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow: 0 0 0 1px var(--sage-dark);
}

.process-handoff__label {
  color: var(--sage-dark);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.process-handoff h3 {
  max-width: 18ch;
  margin-top: 16px;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
}

.process-handoff__link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--graphite);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition), gap var(--transition);
}

.process-handoff__link svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.process-handoff__link:hover,
.process-handoff__link:focus-visible {
  gap: 28px;
  color: var(--sage-dark);
}

.about-page .page-head--about {
  background: radial-gradient(circle at 77% 47%, rgba(138, 155, 124, 0.16), transparent 29%),
    linear-gradient(132deg, rgba(138, 155, 124, 0.09), transparent 46%),
    var(--graphite);
}

.about-page .page-head--about::before {
  top: var(--header-height);
  right: var(--gutter);
  bottom: 0;
  width: min(46vw, 660px);
  height: auto;
  border-right: 1px solid rgba(245, 243, 238, 0.09);
  border-left: 1px solid rgba(245, 243, 238, 0.09);
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(245, 243, 238, 0.06) 50%, transparent calc(50% + 1px));
  transform: none;
}

.about-page .page-head--about::after {
  display: none;
}


.focus-system {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 118px);
  border-bottom: 1px solid var(--line-dark);
}

.focus-system__line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sage-dark), rgba(90, 106, 79, 0.2));
}

.focus-system__area {
  position: relative;
  min-height: 230px;
  padding: 30px clamp(20px, 3vw, 42px) 34px 0;
}

.focus-system__area + .focus-system__area {
  padding-left: clamp(20px, 3vw, 42px);
  background: linear-gradient(var(--line-dark), var(--line-dark)) left top / 1px 100% no-repeat;
}

.focus-system__area::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -6px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 4px solid var(--off-white);
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow: 0 0 0 1px var(--sage-dark);
}

.focus-system__area + .focus-system__area::before {
  left: clamp(20px, 3vw, 42px);
}

.focus-system__area h3 {
  max-width: 100%;
  margin-top: 70px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.focus-system__area p:not(.item-number) {
  max-width: 32ch;
  margin-top: 16px;
  color: var(--warm-grey-dark);
}


@media (max-width: 880px) {
  .section-head::before {
    content: "AISTAINE";
  }


  .references-page .references-hero::before {
    background: linear-gradient(180deg, rgba(12, 15, 12, 0.72) 0%, rgba(12, 15, 12, 0.34) 36%, rgba(12, 15, 12, 0.83) 78%, rgba(12, 15, 12, 0.92) 100%),
        linear-gradient(90deg, rgba(12, 15, 12, 0.58), transparent 84%);
  }
  
  .references-page .references-hero::after {
    right: var(--gutter);
    left: var(--gutter);
  }
  
  .references-hero__image img {
    object-position: 56% 38%;
  }
  
  .references-hero__composition:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(104px, 0.25fr) auto 1fr auto auto;
  min-height: inherit;
  padding-bottom: 28px;
}
  
  .references-hero__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-column: 1 / 7;
  grid-row: 2;
  max-width: 650px;
  padding: 54px 0 32px;
}
  
  .references-hero h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 10ch;
  font-size: clamp(3.4rem, 10vw, 5rem);
}
  
  .references-hero__axis {
    grid-column: 6;
    grid-row: 5;
    margin-top: 24px;
  }
  
  .reference-section-intro {
    grid-template-columns: 1fr;
  }
  
  .reference-section-intro > p {
    padding: 0 0 0 22px;
  }


  .method-page .page-head--method::before,
.about-page .page-head--about::before {
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
  }
  
  .method-page .page-head--method::after {
    right: -150px;
    width: 480px;
  }


  .process-handoff {
    grid-column: 1;
  }
  
  .focus-system {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .focus-system__line {
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    height: auto;
    background: linear-gradient(var(--sage-dark), rgba(90, 106, 79, 0.2));
  }
  
  .focus-system__area,
.focus-system__area + .focus-system__area {
    min-height: 0;
    padding: 42px 0 46px 70px;
    border-left: 0;
    border-bottom: 1px solid var(--line-dark);
    background: none;
  }
  
  .focus-system__area:last-child {
    border-bottom: 0;
  }
  
  .focus-system__area::before,
.focus-system__area + .focus-system__area::before {
    top: 48px;
    left: 14px;
  }
  
  .focus-system__area h3 {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  
  
  .references-hero__composition:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-rows: minmax(80px, 0.18fr) auto 1fr auto auto;
}
  
  .references-hero__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  padding-top: 40px;
}
  
  .references-hero h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 9.5ch;
  font-size: clamp(3rem, 15vw, 4.2rem);
}
  
  .references-hero .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 24px;
  font-size: 0.97rem;
}
  
  .references-hero__axis {
    display: none;
  }
  
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .reference-section-intro__kicker {
    font-size: 0.58rem;
  }


  .process-interlude__track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  
  .process-interlude__track span {
    overflow: hidden;
    font-size: 0.48rem;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
  }
  
  .process-handoff {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 24px;
  }
  
  .process-handoff__link {
    justify-self: start;
  }
  
  .focus-system__area,
.focus-system__area + .focus-system__area {
    padding-left: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .references-hero__image img {
    animation: none;
    transition: none;
  }
}


.services-page .page-head--services {
  background: radial-gradient(circle at 76% 25%, rgba(138, 155, 124, 0.24), transparent 17%),
    linear-gradient(132deg, rgba(138, 155, 124, 0.16), transparent 51%),
    var(--graphite);
}

.services-page .page-head--services::before {
  top: calc(var(--header-height) + 26px);
  right: var(--gutter);
  bottom: 36px;
  left: 50%;
  width: auto;
  border: 1px solid rgba(245, 243, 238, 0.14);
  background: linear-gradient(90deg, rgba(245, 243, 238, 0.1) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(180deg, rgba(245, 243, 238, 0.08) 1px, transparent 1px) 0 0 / 100% 33.333%,
    linear-gradient(135deg, rgba(138, 155, 124, 0.13), transparent 62%);
  transform: none;
}

.services-page .page-head--services::after {
  top: calc(var(--header-height) + 54px);
  right: clamp(36px, 8vw, 132px);
  bottom: auto;
  width: min(22vw, 340px);
  border-color: rgba(138, 155, 124, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 33%, rgba(138, 155, 124, 0.48) 33.4% 34%, transparent 34.4%);
  opacity: 0.82;
}

.method-page .process-interlude__track span {
  min-height: 50px;
  padding: 21px 10px 0 0;
}

.method-page .process-interlude__track span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(245, 243, 238, 0.1);
}

.method-page .process-handoff__link {
  justify-content: center;
}

.method-page .process-handoff__link:hover,
.method-page .process-handoff__link:focus-visible {
  color: var(--sage);
}

.references-case-system-f-page .reference-section-intro--compact h2 {
  max-width: none;
  font-size: clamp(2rem, 7.4vw, 5.2rem);
  white-space: nowrap;
}

.references-case-system-f-page .secondary-cases {
  align-items: start;
}

.references-case-system-f-page .secondary-case {
  display: flex;
  flex-direction: column;
  height: auto;
}

.references-case-system-f-page .secondary-case__media {
  flex: 0 0 auto;
}

.references-case-system-f-page .secondary-case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.references-case-system-f-page .secondary-case__details {
  margin-top: auto;
}

.references-case-system-f-page .reference-index .ref-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--off-white);
  list-style: none;
  counter-reset: reference-entry;
}

.references-case-system-f-page .reference-index .ref-list .ref-list__item,
.references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(even),
.references-case-system-f-page .reference-index .ref-list .ref-list__item--wide {
  /*
   * Kortet subgrid:ar radens tre spår (REF-nummer, rubrik, beställare).
   * Rubrikspåret får därmed gemensam höjd ur radens längsta rubrik, så att
   * separatorlinjen och beställarnamnet hamnar på samma Y i båda korten
   * utan individuella offsets. I enkolumnsläge finns bara ett kort per rad,
   * och spåren mäts då av kortets eget innehåll - ingen reserverad höjd.
   */
  position: relative;
  display: grid;
  grid-column: auto;
  grid-template-columns: none;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: start;
  justify-items: start;
  align-content: start;
  gap: 28px;
  min-width: 0;
  min-height: 218px;
  padding: clamp(28px, 3.3vw, 48px);
  border: 0;
  border-bottom: 1px solid rgba(30, 32, 28, 0.22);
  background: var(--off-white);
  line-height: 1;
  counter-increment: reference-entry;
  transition: background-color var(--transition), transform var(--transition);
}

.references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(4n + 1) {
  background: rgba(138, 155, 124, 0.12);
}

.references-case-system-f-page .reference-index .ref-list .ref-list__item::before {
  content: "REF " counter(reference-entry, decimal-leading-zero);
  color: var(--sage-dark);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.references-case-system-f-page .ref-list .ref-list__item .ref-list__project,
.references-case-system-f-page .ref-list .ref-list__item--wide .ref-list__project {
  max-width: 25ch;
  color: var(--graphite);
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  line-height: 1.16;
}

.references-case-system-f-page .ref-list .ref-list__item .ref-list__client {
  display: block;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 32, 28, 0.2);
  color: rgba(30, 32, 28, 0.62);
}

@media (max-width: 880px) {


  .services-page .page-head--services::before {
    top: var(--header-height);
    right: var(--gutter);
    bottom: 28px;
    left: var(--gutter);
    opacity: 0.56;
  }
  
  .services-page .page-head--services::after {
    display: none;
  }
  
  .method-page .process-interlude__inner {
    display: block;
  }
}

@media (max-width: 720px) {
  .references-case-system-f-page .reference-index .ref-list {
    grid-template-columns: 1fr;
  }
  
  .references-case-system-f-page .reference-index .ref-list .ref-list__item,
.references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(even),
.references-case-system-f-page .reference-index .ref-list .ref-list__item--wide {
    min-height: 184px;
    padding: 28px 24px;
  }
}

@media (max-width: 620px) {
  .method-page .process-interlude__track {
    padding: 22px 16px;
  }
  
  .method-page .process-interlude__track span {
    min-height: 54px;
    padding-top: 18px;
    overflow: visible;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }
  
  .method-page .process-handoff {
    padding: 34px 24px;
  }
  
  .method-page .process-handoff h3 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }
  
  .references-case-system-f-page .reference-section-intro--compact h2 {
    font-size: clamp(2rem, 7.4vw, 2.5rem);
  }
}

.stats-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page {
  overflow-x: clip;
}

html:has(.home-page) {
  overflow-x: clip;
}

.stats-panel > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 142px;
  text-align: center;
}



.focus-system__area h3,
.focus-system__area p:not(.item-number) {
  align-self: start;
}

.focus-system__area h3 {
  margin-bottom: 0;
}

.js .focus-system__area.reveal {
  transform: translateY(14px);
}

.js .focus-system__area.reveal.is-visible {
  transform: translateY(0);
}

.services-page .service-foot .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(90, 106, 79, 0.58);
  background: rgba(138, 155, 124, 0.08);
  color: var(--graphite);
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.services-page .service-foot .text-link:hover,
.services-page .service-foot .text-link:focus-visible {
  border-color: var(--sage-dark);
  background: rgba(138, 155, 124, 0.18);
  color: var(--graphite);
}

.method-page .process-interlude .eyebrow::before {
  content: none;
}

.privacy-policy__content > .eyebrow::before {
  content: none;
}

.method-page .process-interlude__statement > span {
  display: block;
}

@media (min-width: 621px) {
  .method-page .process-interlude__statement {
    max-width: none;
  }
  
  .method-page .process-interlude__statement > span {
    white-space: nowrap;
  }
}

.method-page .process-handoff__link {
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.method-page .process-handoff__link:hover,
.method-page .process-handoff__link:focus-visible {
  gap: 10px;
}

.references-case-system-f-page .reference-index .ref-list .ref-list__item,
.references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(4n + 1) {
  background: var(--off-white);
  cursor: default;
}

.references-case-system-f-page .reference-index .ref-list .ref-list__item:hover {
  background: var(--off-white);
}

.js .references-case-system-f-page .reference-index .ref-list .reference-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.js .references-case-system-f-page .reference-index .ref-list .reference-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 721px) {
  .references-case-system-f-page .reference-index .ref-list .ref-list__item:nth-child(odd) {
    border-right: 1px solid rgba(30, 32, 28, 0.22);
  }
}

.project-page .page-head--jalla {
  isolation: isolate;
  background: #141713;
}

.project-page .page-head--jalla .page-head__media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.project-page .page-head--jalla .page-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.82) contrast(1.04);
}

.project-page .page-head--jalla::before {
  z-index: 1;
  border-color: rgba(245, 243, 238, 0.12);
}

.project-page .page-head--jalla::after {
  z-index: 1;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(12, 15, 12, 0.88) 0%, rgba(12, 15, 12, 0.68) 43%, rgba(12, 15, 12, 0.22) 73%, rgba(12, 15, 12, 0.36) 100%), linear-gradient(0deg, rgba(12, 15, 12, 0.58) 0%, transparent 42%), linear-gradient(180deg, rgba(12, 15, 12, 0.48) 0%, transparent 28%);
}

.project-page .page-head--jalla .page-head__layout {
  z-index: 2;
}

.project-page .back-link {
  position: relative;
  padding-bottom: 8px;
  text-decoration: none;
}

.project-page .back-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.project-page .back-link:hover,
.project-page .back-link:focus-visible {
  text-decoration: none;
}

.project-page .back-link:hover::after,
.project-page .back-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (hover: hover) and (pointer: fine) {
  .project-page .image-grid figure img {
    transition: transform 520ms var(--ease);
  }
  
  .project-page .image-grid figure:hover img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-page .image-grid figure img {
    transition: none;
  }
}

.project-page .project-services .services-b {
  margin-top: clamp(70px, 9vw, 112px);
}

.project-page .project-services .services-b__link {
  min-height: 330px;
}

@media (min-width: 1200px) {
  .project-page .project-services .services-b__map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .project-page .project-services .services-b__map::before,
.project-page .project-services .services-b__map::after {
    right: 25%;
    left: 25%;
  }
  
  .project-page .project-services .services-b__map:has(.services-b__node:nth-child(2):focus-within) {
    --route-progress: 1;
  }
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .project-page .project-services .services-b__map:has(.services-b__node:nth-child(2):hover) {
    --route-progress: 1;
  }
}

.references-case-system-f-page .reference-section-intro--compact h2 {
  white-space: nowrap;
}

@media (min-width: 721px) {
  .references-case-system-f-page .reference-section-intro:not(.reference-section-intro--compact) h2 {
    max-width: none;
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    white-space: nowrap;
  }
}

.contact-page .form-grid.stack-top {
  align-items: start;
  row-gap: 28px;
}

.contact-page .form-field {
  grid-template-rows: auto 52px minmax(1.25em, auto);
}

.contact-page .form-field--full {
  grid-template-rows: auto auto minmax(1.25em, auto);
}

.method-page .process-handoff {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  margin-top: clamp(26px, 3vw, 42px);
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid rgba(30, 32, 28, 0.22);
  background: transparent;
  color: var(--graphite);
}

.method-page .process-handoff::before,
.method-page .process-handoff__marker {
  display: none;
}

.method-page .process-handoff__label {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.56rem;
}

.method-page .process-handoff h3 {
  max-width: 25ch;
  margin-top: 7px;
  color: var(--graphite);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.method-page .process-handoff__link {
  position: relative;
  min-height: 40px;
  padding: 8px 0 12px;
  border: 0;
  color: var(--graphite);
}

.method-page .process-handoff__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.method-page .process-handoff__link:hover::after,
.method-page .process-handoff__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 880px) {
  .method-page .process-handoff {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  
  .method-page .process-handoff__link {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .stats-panel > div {
    min-height: 124px;
  }
  

  
  .focus-system__area h3 {
    min-height: 0;
  }
  
  .references-case-system-f-page .reference-section-intro h2 {
    white-space: normal;
  }
}

.js .focus-system__line.reveal[data-reveal="line"] {
  opacity: 0;
  transform: scaleX(0.08);
  transform-origin: left center;
  transition: opacity 560ms var(--ease), transform 900ms var(--ease);
}

.js .focus-system__line.reveal[data-reveal="line"].is-visible {
  opacity: 1;
  transform: scaleX(1);
}

.js .focus-system__area.reveal::before {
  opacity: 0;
  transform: scale(0.58);
  transition: opacity 420ms var(--ease), transform 620ms var(--ease);
}

.js .focus-system__area.reveal.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) main > :is(.page-head, .references-hero) h1 {
  font-size: var(--hero-font-heading);
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) main > :is(.page-head, .references-hero) .eyebrow {
  font-size: var(--hero-font-eyebrow);
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page, .project-page, .contact-page) main > :is(.page-head, .references-hero) .page-lead {
  font-size: var(--hero-font-body);
}

/* Shared content layout for the five main information-page heroes. */
:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) {
  display: block;
  box-sizing: border-box;
  height: auto;
  min-height: 100svh;
  padding: 0;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) > :is(.page-head__layout, .references-hero__composition) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(calc(100% - 2 * clamp(20px, 3vw, 48px)), max(1280px, 67.84vw));
  min-height: 100svh;
  margin-inline: auto;
  padding-top: max(clamp(150px, 19svh, 260px), calc(var(--header-height) + 48px));
  padding-bottom: clamp(48px, 6svh, 96px);
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) :is(.page-head__copy, .references-hero__copy) {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, max(52%, 520px));
  min-width: 0;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .eyebrow {
  margin: 0;
  line-height: 1.4;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) h1 {
  width: 100%;
  max-width: 14.5ch;
  margin: clamp(20px, 1.25vw, 32px) 0 0;
  font-family: var(--font-serif);
  font-synthesis: none;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .page-lead {
  width: 100%;
  max-width: none;
  margin: clamp(24px, 1.55vw, 40px) 0 0;
  line-height: 1.62;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(32px, 2.1vw, 48px) 0 0;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) .hero-actions .button {
  min-height: clamp(50px, 2.65vw, 100px);
  padding: clamp(13px, 0.689vw, 26px) clamp(23px, 1.219vw, 46px);
  font-size: clamp(12.48px, 0.66144vw, 24.96px);
}

@media (max-width: 880px) {
  :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) :is(.page-head__copy, .references-hero__copy) {
    width: 100%;
  }
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  box-sizing: border-box;
  height: auto;
  min-height: 100svh;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  align-items: stretch;
  padding: 0;
}

.contact-page main > .page-head--contact,
.project-page main > .page-head--jalla {
  box-sizing: border-box;
  height: auto;
  min-height: 100svh;
  padding: 0;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head > .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  position: relative;
  box-sizing: border-box;
  min-height: 100svh;
  padding-top: var(--header-height);
  padding-bottom: 0;
  align-items: center;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy {
  z-index: 3;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  position: relative;
  align-self: center;
}

:where(.about-page, .services-page, .contact-page) .page-head__copy:has(> .hero-actions):not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  display: flex;
  flex-direction: column;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy > .eyebrow + h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 24px;
}

:where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy > h1 + .page-lead:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  margin-top: 30px;
}


@media (min-width: 881px) {
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head > .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-columns: minmax(0, 1fr);
  padding-top: var(--header-height);
}
  
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  position: absolute;
  top: clamp(150px, 19svh, 260px);
  left: 0;
  align-self: auto;
  width: min(52%, 720px);
}

  :where(.about-page, .services-page, .contact-page) .page-head__copy:has(> .hero-actions):not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  bottom: clamp(56px, 8svh, 104px);
}
  
  .contact-page .page-head--contact .page-head__copy,
.project-page .page-head--jalla .page-head__copy {
  position: absolute;
  top: clamp(150px, 19svh, 260px);
  left: 0;
  align-self: auto;
  width: min(52%, 720px);
}
  
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  max-width: 13.5ch;
  text-wrap: balance;
}
  
  .contact-page .page-head--contact .page-head__layout,
.project-page .page-head--jalla .page-head__layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-height);
  padding-bottom: 0;
}


  .contact-page .page-head--contact .page-head__copy h1,
.project-page .page-head--case .page-head__copy h1 {
    max-width: 13.5ch;
  }


}

@media (min-width: 881px) and (max-width: 1439px) {
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy h1:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)):not(:where(:is(.project-page, .contact-page) main > .page-head *)) {
  font-size: clamp(2.8rem, calc(-1.15rem + 6.47vw), 4.68rem);
}
  
  
}

@media (max-width: 880px) {
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: 100svh;
}
  
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head > .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(44px, 9vw, 66px);
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 64px;
}
  
  .contact-page .page-head--contact .page-head__layout,
.project-page .page-head--jalla .page-head__layout {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: clamp(44px, 9vw, 66px);
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 64px;
}
  
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) .page-head__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  align-self: start;
  width: 100%;
}

  :where(.about-page, .services-page, .contact-page) .page-head__copy:has(> .hero-actions):not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: calc(100svh - var(--header-height) - 134px);
}
}

@media (max-width: 620px) {
  :where(.about-page, .services-page, .method-page, .privacy-page, .contact-page, .project-page) main > .page-head > .page-head__layout:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  gap: 44px;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 58px;
}
  
  .js .focus-system__line.reveal[data-reveal="line"] {
    transform: scaleY(0.08);
    transform-origin: center top;
  }
  
  .js .focus-system__line.reveal[data-reveal="line"].is-visible {
    transform: scaleY(1);
  }
}

:where(.services-page .page-head--services, .method-page .page-head--method, .about-page .page-head--about)::before,
:where(.services-page .page-head--services, .method-page .page-head--method, .about-page .page-head--about)::after {
  display: none;
}

.page-head__graphic {
  z-index: 1;
  overflow: hidden;
  margin: 0;
  background: var(--graphite);
  pointer-events: none;
}

.page-head__graphic picture,
.page-head__graphic img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-head__graphic img {
  object-fit: cover;
  opacity: 0.88;
}

@media (min-width: 881px) {
  :where(.services-page, .method-page, .about-page) .page-head__graphic {
    position: absolute;
    top: var(--header-height);
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
}

@media (max-width: 880px) {
  .page-head__graphic--services img {
    object-position: 61% center;
  }
  
  .page-head__graphic--method img {
    object-position: 58% center;
  }
  
  .page-head__graphic--about img {
    object-position: 58% center;
  }
}

.references-case-system-f-page .case-system-f-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(112deg, transparent 0 44%, rgba(138, 155, 124, 0.055) 44.1% 56%, transparent 56.1%),
    var(--off-white);
}

.references-case-system-f-page .case-system-f-section::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(30, 32, 28, 0.075) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 239px, rgba(30, 32, 28, 0.045) 240px, transparent 241px 480px);
  pointer-events: none;
}

.references-case-system-f-page .case-system-f-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(320px, 20vw, 410px);
  right: -9vw;
  bottom: clamp(90px, 8vw, 130px);
  left: -9vw;
  border-top: 1px solid rgba(90, 106, 79, 0.2);
  border-bottom: 1px solid rgba(90, 106, 79, 0.14);
  background: linear-gradient(90deg, transparent 0 12%, rgba(138, 155, 124, 0.08) 12.1% 24%, transparent 24.1% 76%, rgba(30, 32, 28, 0.035) 76.1% 88%, transparent 88.1%);
  transform: skewY(-3.5deg);
  pointer-events: none;
}

.references-case-system-f-page .case-system-f-section > .container {
  position: relative;
  z-index: 1;
}

.references-case-system-f-page .case-system-f-list {
  position: relative;
  width: min(100%, 1280px);
  margin-inline: auto;
}

.references-case-system-f-page .case-system-f-list::before,
.references-case-system-f-page .case-system-f-list::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.references-case-system-f-page .case-system-f-list::before {
  top: -34px;
  right: clamp(-46px, -3.2vw, -28px);
  bottom: -34px;
  left: clamp(-46px, -3.2vw, -28px);
  border-right: 1px solid rgba(90, 106, 79, 0.2);
  border-left: 1px solid rgba(90, 106, 79, 0.2);
}

.references-case-system-f-page .case-system-f-list::after {
  top: 12%;
  right: clamp(-54px, -4vw, -34px);
  width: clamp(70px, 7vw, 108px);
  aspect-ratio: 1;
  border: 1px solid rgba(90, 106, 79, 0.34);
  border-radius: 50%;
  box-shadow: 0 calc(760px + var(--case-system-gap)) 0 -1px rgba(90, 106, 79, 0.22),
    0 calc((760px + var(--case-system-gap)) * 3) 0 -1px rgba(90, 106, 79, 0.18);
}

@media (max-width: 880px) {
  .references-case-system-f-page .case-system-f-section {
    background: linear-gradient(112deg, transparent 0 43%, rgba(138, 155, 124, 0.05) 43.2% 58%, transparent 58.2%),
        var(--off-white);
  }
  
  .references-case-system-f-page .case-system-f-list::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .references-case-system-f-page .case-system-f-list::before {
    right: -10px;
    left: -10px;
  }
  
  .references-case-system-f-page .reference-section-intro h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.4rem);
    white-space: normal;
  }
  
  .references-case-system-f-page .reference-section-intro,
.references-case-system-f-page .reference-section-intro__title,
.references-case-system-f-page .reference-section-intro > p {
    min-width: 0;
    max-width: 100%;
  }
  
  .references-case-system-f-page .reference-section-intro > p {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .focus-system__line.reveal[data-reveal="line"],
.js .focus-system__area.reveal::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.project-page .project-service-routes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(54px, 7vw, 88px);
  border: 1px solid rgba(138, 155, 124, 0.38);
  background: radial-gradient(circle at 82% 18%, rgba(138, 155, 124, 0.2), transparent 34%),
    linear-gradient(135deg, #1e201c 0%, #171a16 58%, #20251e 100%);
  box-shadow: 0 28px 70px rgba(30, 32, 28, 0.13);
  color: var(--off-white);
}

.project-page .project-service-routes::before,
.project-page .project-service-routes::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.project-page .project-service-routes::before {
  inset: -46% -12%;
  background: repeating-linear-gradient(116deg, transparent 0 88px, rgba(138, 155, 124, 0.085) 89px 90px, transparent 91px 178px);
  transform: rotate(-2deg);
}

.project-page .project-service-routes::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(138, 155, 124, 0.5) 18%, rgba(138, 155, 124, 0.16) 82%, transparent);
}

.project-page .project-service-routes__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-page .project-service-routes__item {
  /*
   * Kortet subgridar radens tre spår (nummer, rubrik, åtgärd). Rubrikspåret
   * får gemensam höjd ur radens längsta rubrik, och länken subgridar samma
   * spår. Då hamnar åtgärdsraden, pilen och hoverlinjen på samma Y oavsett
   * om rubriken bryts över en eller två rader. Minsta höjd ligger på kortet,
   * inte på länken, så att den fördelas över spåren i stället för att spilla.
   */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 24px;
  min-width: 0;
  min-height: clamp(178px, 15vw, 220px);
  border-bottom: 1px solid rgba(245, 243, 238, 0.18);
}

.project-page .project-service-routes__item:nth-child(odd) {
  border-right: 1px solid rgba(245, 243, 238, 0.18);
}

.project-page .project-service-routes__item:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.project-page .project-service-routes__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 24px;
  padding: clamp(28px, 3.3vw, 48px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: color 360ms var(--ease), transform 180ms var(--ease);
}

.project-page .project-service-routes__link::before,
.project-page .project-service-routes__link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--ease);
}

.project-page .project-service-routes__link::before {
  background: linear-gradient(104deg, rgba(138, 155, 124, 0.24), rgba(138, 155, 124, 0.08) 62%, transparent);
}

.project-page .project-service-routes__link::after {
  top: auto;
  right: clamp(28px, 3.3vw, 48px);
  bottom: 0;
  left: clamp(28px, 3.3vw, 48px);
  height: 2px;
  background: var(--sage);
}

.project-page .project-service-routes__index,
.project-page .project-service-routes__link h3,
.project-page .project-service-routes__action {
  position: relative;
  z-index: 1;
}

.project-page .project-service-routes__index {
  color: rgba(245, 243, 238, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: color 360ms var(--ease);
}

.project-page .project-service-routes__link h3 {
  grid-column: 1 / -1;
  /* Subgriden ger rubrikspåret radens höjd; rubrikerna ska börja i toppen
     av spåret, inte tryckas ned mot åtgärdsraden. */
  align-self: start;
  max-width: none;
  margin: 0;
  color: var(--off-white);
  font-size: clamp(1.75rem, 2.65vw, 2.8rem);
  line-height: 1.02;
  hyphens: none;
  overflow-wrap: normal;
  transition: color 360ms var(--ease), transform 520ms var(--ease);
}

.project-page .project-service-routes__action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 243, 238, 0.66);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 360ms var(--ease);
}

.project-page .project-service-routes__action svg {
  flex: 0 0 auto;
  transition: transform 480ms var(--ease);
}

.project-page .project-service-routes__link:hover::before,
.project-page .project-service-routes__link:focus-visible::before,
.project-page .project-service-routes__item:focus-within .project-service-routes__link::before {
  transform: scaleX(1);
}

.project-page .project-service-routes__link:hover::after,
.project-page .project-service-routes__link:focus-visible::after,
.project-page .project-service-routes__item:focus-within .project-service-routes__link::after {
  transform: scaleX(1);
}

.project-page .project-service-routes__link:hover .project-service-routes__index,
.project-page .project-service-routes__link:focus-visible .project-service-routes__index {
  color: var(--sage);
}

.project-page .project-service-routes__link:hover h3,
.project-page .project-service-routes__link:focus-visible h3 {
  color: #fff;
  transform: translateX(8px);
}

.project-page .project-service-routes__link:hover .project-service-routes__action,
.project-page .project-service-routes__link:focus-visible .project-service-routes__action {
  color: var(--off-white);
}

.project-page .project-service-routes__link:hover .project-service-routes__action svg,
.project-page .project-service-routes__link:focus-visible .project-service-routes__action svg {
  transform: translateX(6px);
}

.project-page .project-service-routes__link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: -5px;
}

.project-page .project-service-routes__link:active {
  background: rgba(138, 155, 124, 0.22);
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .project-page .project-service-routes::after {
    display: none;
  }
  
  .project-page .project-service-routes__list {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .project-page .project-service-routes__item,
.project-page .project-service-routes__item:nth-child(odd),
.project-page .project-service-routes__item:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
    border-right: 0;
  }
  
  .project-page .project-service-routes__item {
    min-height: 154px;
    gap: 18px;
  }

  .project-page .project-service-routes__link {
    padding: 24px 22px;
    gap: 18px;
  }
  
  .project-page .project-service-routes__link h3 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__link,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__link::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__link::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__index,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__link h3,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__action,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).project-page .project-service-routes__action svg {
    transition: none;
  }
}

.project-page .project-services-section--integrated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 78% 38%, rgba(138, 155, 124, 0.18), transparent 30%),
    linear-gradient(154deg, rgba(138, 155, 124, 0.1), transparent 36%),
    #171a16;
  color: var(--off-white);
}

.project-page .project-services-section--integrated::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -8%;
  background: repeating-linear-gradient(116deg, transparent 0 118px, rgba(138, 155, 124, 0.075) 119px 120px, transparent 121px 238px);
  opacity: 0.9;
  transform: rotate(-2deg);
  pointer-events: none;
}

.project-page .project-services-section--integrated .section-head,
.project-page .project-services-section--integrated .section-intro p,
.project-page .project-services-section--integrated .back-link {
  color: rgba(245, 243, 238, 0.72);
}

.project-page .project-services-section--integrated .section-head::before,
.project-page .project-services-section--integrated .section-head::after {
  border-color: rgba(245, 243, 238, 0.2);
}

.project-page .project-services-section--integrated .section-intro h2 {
  color: var(--off-white);
}

.project-page .project-services-section--integrated .project-service-routes {
  margin-top: clamp(38px, 5vw, 64px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-page .project-services-section--integrated .project-service-routes::before {
  opacity: 0.82;
}

.project-page .project-services-section--integrated .project-service-routes__list {
  border-top: 1px solid rgba(245, 243, 238, 0.2);
  border-bottom: 0;
}

.project-page .project-services-section--integrated .project-service-routes__item {
  min-height: clamp(168px, 13vw, 200px);
}

.project-page .project-services-section--integrated .project-service-routes__link {
  background: linear-gradient(90deg, rgba(23, 26, 22, 0.24), rgba(23, 26, 22, 0.05));
}

.project-page .project-services-section--integrated .project-service-routes__link::after {
  right: 0;
  left: 0;
}

.project-page .project-services-section--integrated .project-service-routes__link::before {
  background: linear-gradient(104deg, rgba(138, 155, 124, 0.28), rgba(138, 155, 124, 0.09) 62%, transparent);
}

.project-page .project-services-section--integrated .back-link {
  margin-top: clamp(42px, 5vw, 68px);
}

.project-page .project-services-section--integrated .back-link::after {
  background: var(--sage);
}

@media (max-width: 720px) {
  .project-page .project-services-section--integrated .project-service-routes__link {
    min-height: 150px;
  }
}





.method-page .process-interlude {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171a16;
}

.method-page .process-interlude::before,
.method-page .process-interlude::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.method-page .process-interlude::before {
  inset: 0 -8% 0 48%;
  background: #252a22;
  clip-path: polygon(34% 0, 100% 0, 76% 100%, 0 100%);
}

.method-page .process-interlude::after {
  right: -7%;
  bottom: -18%;
  width: 48%;
  height: 70%;
  background: #4d5947;
  clip-path: polygon(27% 0, 100% 0, 78% 100%, 0 100%);
}

.method-page .process-interlude__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0 clamp(14px, 2vw, 30px);
  min-height: clamp(610px, 50vw, 720px);
  padding-block: clamp(92px, 9vw, 132px);
}

.method-page .process-interlude .eyebrow {
  grid-column: 2 / 7;
  grid-row: 1;
  align-self: auto;
}

.method-page .process-interlude__statement {
  grid-column: 2 / 10;
  grid-row: 2;
  align-self: auto;
  max-width: 13.5ch;
  margin: 24px 0 0;
  font-size: clamp(3.4rem, 5.35vw, 5.85rem);
}

.method-page .process-interlude__body {
  grid-column: 2 / 7;
  grid-row: 3;
  max-width: 54ch;
  margin-top: 30px;
  color: rgba(245, 243, 238, 0.72);
  /* Samma lätta brödtextvikt som hero-texterna. Urbanist hostas som
     variabel font med wght-axel, så 350 är en äkta instans - inte syntetisk. */
  font-weight: 350;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.62;
}

.method-page .process-interlude__actions {
  grid-column: 2 / 7;
  grid-row: 4;
  align-self: end;
  margin-top: clamp(42px, 5vw, 72px);
}

.method-page .process-interlude__track {
  position: relative;
  right: auto;
  bottom: auto;
  grid-column: 2 / 12;
  grid-row: 5;
  align-self: end;
  width: auto;
  margin-top: clamp(62px, 8vw, 104px);
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(245, 243, 238, 0.32);
  background: transparent;
}

.method-page .process-interlude__track span,
.method-page .process-interlude__track span + span {
  min-height: 68px;
  padding: 24px 12px 18px 0;
  border-left: 0;
}

.method-page .process-interlude__track span + span::before {
  left: 0;
}


.references-page .references-hero__axis {
  position: absolute;
  right: 0;
  bottom: clamp(50px, 4vw, 64px);
  width: min(8vw, 116px);
}

.references-case-system-f-page .case-system-f--long-name {
  --case-name-size: clamp(3rem, 3.7vw, 3.75rem);
}

.references-case-system-f-page .case-system-f__name {
  overflow: visible;
  text-wrap: balance;
}

.references-case-system-f-page .case-system-f__footer {
  position: relative;
  z-index: 4;
  background: var(--case-surface);
}

.references-case-system-f-page .case-system-f__meta {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.references-case-system-f-page .case-system-f__meta span {
  white-space: normal;
}

.references-case-system-f-page .secondary-case__name,
.references-case-system-f-page .secondary-case__location {
  display: block;
}

.references-case-system-f-page .secondary-case__location {
  margin-top: 0.28em;
  color: rgba(30, 32, 28, 0.66);
  font-size: 0.7em;
  letter-spacing: -0.02em;
}

@media (min-width: 901px) {
  .references-case-system-f-page .secondary-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  
  .references-case-system-f-page .secondary-case__body {
    padding: clamp(24px, 2.2vw, 32px);
  }
  
  .references-case-system-f-page .secondary-case h3 {
    max-width: 15ch;
    font-size: clamp(1.72rem, 2.2vw, 2.2rem);
  }
  
  .references-case-system-f-page .secondary-case__summary {
    font-size: 0.88rem;
  }
  
  .references-case-system-f-page .secondary-case__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.project-page .project-hero-title__name,
.project-page .project-hero-title__location {
  display: block;
}

.project-page .project-hero-title__location {
  margin-top: 0.2em;
  font-size: 0.58em;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--sage);
}

.privacy-page .page-head--privacy-planes {
  isolation: isolate;
}

.privacy-page .page-head--privacy-planes::before,
.privacy-page .page-head--privacy-planes::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}

.privacy-page .page-head--privacy-planes::after {
  aspect-ratio: auto;
}

.privacy-page .page-head--privacy-planes .page-head__layout {
  z-index: 1;
}

.contact-page .page-head--contact {
  isolation: isolate;
}

.contact-page .page-head--contact::before,
.contact-page .page-head--contact::after {
  display: none;
}

.contact-page .contact-hero-graphic__plane {
  position: absolute;
  display: block;
}

@media (min-width: 881px) {
  .contact-page .contact-hero-graphic {
    position: absolute;
    top: calc(50% + (var(--header-height) / 2));
    right: 0;
    width: min(42%, 590px);
    transform: translateY(-50%);
  }
}

@media (max-width: 880px) {
  .method-page .process-interlude__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 620px;
    padding-block: 88px;
  }
  
  .method-page .process-interlude .eyebrow,
.method-page .process-interlude__statement,
.method-page .process-interlude__body,
.method-page .process-interlude__actions,
.method-page .process-interlude__track {
    grid-column: 1;
  }
  
  .method-page .process-interlude__statement {
    grid-row: 2;
    max-width: 12ch;
  }
  
  .method-page .process-interlude__body {
    grid-row: 3;
    max-width: 50ch;
  }
  
  .method-page .process-interlude__actions {
    grid-row: 4;
  }
  
  .method-page .process-interlude__track {
    grid-row: 5;
    width: 100%;
    margin-top: 64px;
  }


  .references-page .references-hero__axis {
    display: none;
  }
  
  .contact-page .contact-hero-graphic {
    width: min(100%, 640px);
  }
}

@media (max-width: 620px) {
  
  
  .method-page .process-interlude::before {
    inset-inline: 35% -34%;
  }
  
  .method-page .process-interlude::after {
    right: -32%;
    width: 78%;
  }
  
  .method-page .process-interlude__inner {
    min-height: 0;
    padding-block: 76px;
  }
  
  .method-page .process-interlude__statement {
    font-size: clamp(2.8rem, 13.5vw, 4rem);
  }
  
  .method-page .process-interlude__track {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 52px;
  }
  
  .method-page .process-interlude__track span,
.method-page .process-interlude__track span + span {
    min-height: 0;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid rgba(245, 243, 238, 0.16);
    overflow: visible;
  }
  
  .method-page .process-interlude__track span::before,
.method-page .process-interlude__track span + span::before {
    top: 22px;
    left: 0;
  }


  .privacy-page .page-head--privacy-planes::before {
    inset-inline: 35% -40%;
  }
  
  .contact-page .contact-hero-graphic {
    aspect-ratio: 1.42;
  }
}



.services-page .services-area-routes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(58px, 7vw, 88px);
  border: 1px solid rgba(30, 32, 28, 0.18);
  background: var(--warm-grey-light);
  color: var(--graphite);
}

.services-page .services-area-routes::before,
.services-page .services-area-routes::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.services-page .services-area-routes::before {
  inset: -46% -12%;
  background: repeating-linear-gradient(116deg, transparent 0 88px, rgba(30, 32, 28, 0.055) 89px 90px, transparent 91px 178px);
  transform: rotate(-2deg);
}

.services-page .services-area-routes::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(30, 32, 28, 0.24) 18%, rgba(30, 32, 28, 0.08) 82%, transparent);
}

.services-page .services-area-routes__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-page .services-area-routes__item {
  /*
   * Samma subgrid-princip som projektsidornas project-service-routes: kortet
   * subgridar radens tre spår (nummer, rubrik, åtgärd) och länken subgridar
   * samma spår. Rubrikspåret får därmed gemensam höjd ur radens högsta rubrik,
   * så nummer, rubrik, åtgärdsrad, pil och hoverlinje linjerar oavsett hur
   * många rader rubriken tar. Minsta höjd ligger på kortet, inte på länken,
   * så att den fördelas över spåren i stället för att spilla över.
   */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 24px;
  min-width: 0;
  min-height: clamp(178px, 15vw, 220px);
  border-bottom: 1px solid rgba(30, 32, 28, 0.16);
}

.services-page .services-area-routes__item:nth-child(odd) {
  border-right: 1px solid rgba(30, 32, 28, 0.16);
}

.services-page .services-area-routes__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 24px;
  padding: clamp(28px, 3.3vw, 48px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: color 360ms var(--ease), transform 180ms var(--ease);
}

.services-page .services-area-routes__link::before,
.services-page .services-area-routes__link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--ease);
}

.services-page .services-area-routes__link::before {
  background: linear-gradient(104deg, rgba(138, 155, 124, 0.16), rgba(138, 155, 124, 0.05) 62%, transparent);
}

.services-page .services-area-routes__link::after {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--sage);
}

.services-page .services-area-routes__index,
.services-page .services-area-routes__link h3,
.services-page .services-area-routes__action {
  position: relative;
  z-index: 1;
}

.services-page .services-area-routes__index {
  color: rgba(30, 32, 28, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: color 360ms var(--ease);
}

.services-page .services-area-routes__link h3 {
  grid-column: 1 / -1;
  /* Subgriden ger rubrikspåret radens höjd; rubrikerna ska börja i toppen
     av spåret, inte tryckas ned mot åtgärdsraden. */
  align-self: start;
  max-width: none;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(1.4rem, 2.1vw, 2.2rem);
  line-height: 1.15;
  hyphens: none;
  overflow-wrap: normal;
  transition: color 360ms var(--ease), transform 520ms var(--ease);
}

.services-page .services-area-routes__action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(30, 32, 28, 0.64);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 360ms var(--ease);
}

.services-page .services-area-routes__action svg {
  flex: 0 0 auto;
  transition: transform 480ms var(--ease);
}

.services-page .services-area-routes__link:hover::before,
.services-page .services-area-routes__link:hover::after,
.services-page .services-area-routes__link:focus-visible::before,
.services-page .services-area-routes__link:focus-visible::after,
.services-page .services-area-routes__item:focus-within .services-area-routes__link::before,
.services-page .services-area-routes__item:focus-within .services-area-routes__link::after {
  transform: scaleX(1);
}

.services-page .services-area-routes__link:hover .services-area-routes__index,
.services-page .services-area-routes__link:focus-visible .services-area-routes__index {
  color: var(--sage-dark);
}

.services-page .services-area-routes__link:hover h3,
.services-page .services-area-routes__link:focus-visible h3 {
  color: var(--graphite);
  transform: translateX(8px);
}

.services-page .services-area-routes__link:hover .services-area-routes__action,
.services-page .services-area-routes__link:focus-visible .services-area-routes__action {
  color: var(--graphite);
}

.services-page .services-area-routes__link:hover .services-area-routes__action svg,
.services-page .services-area-routes__link:focus-visible .services-area-routes__action svg {
  transform: translateX(6px);
}

.services-page .services-area-routes__link:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: -5px;
}

.services-page .services-area-routes__link:active {
  background: rgba(138, 155, 124, 0.14);
  transform: translateY(1px);
}

.method-page .process-interlude__track span,
.method-page .process-interlude__track span + span {
  color: rgba(245, 243, 238, 0.88);
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

@media (min-width: 901px) {
  .references-case-system-f-page .secondary-case h3 {
    min-height: 5.9rem;
  }
  
  .references-case-system-f-page #danmarks-forskola h3 {
    max-width: none;
  }
  
  .references-case-system-f-page #danmarks-forskola .secondary-case__name {
    white-space: nowrap;
  }
  
  .references-case-system-f-page .secondary-case__summary {
    min-height: 9.3em;
  }
  
  .references-case-system-f-page .secondary-case--compact .secondary-case__meta {
    margin-top: 30px;
  }
  
  .references-case-system-f-page .secondary-case__details[open] .secondary-case__details-body {
    grid-template-rows: minmax(0, 1fr) 6.5rem;
    min-height: 22.375rem;
  }
  
  .references-case-system-f-page .secondary-case__details[open] .secondary-case__facts {
    min-height: 6.5rem;
    align-content: start;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .references-case-system-f-page #danmarks-forskola .secondary-case__name {
    font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  }
  
  .references-case-system-f-page .secondary-case__summary {
    min-height: 13.95em;
  }
  
  .references-case-system-f-page .secondary-case__details[open] .secondary-case__details-body {
    grid-template-rows: minmax(0, 1fr) 8.5rem;
    min-height: 30rem;
  }
  
  .references-case-system-f-page .secondary-case__details[open] .secondary-case__facts {
    min-height: 8.5rem;
  }
}

.references-case-system-f-page .secondary-case:hover .secondary-case__media img,
.references-case-system-f-page .secondary-case:focus-within .secondary-case__media img {
  transform: scale(1.045);
}

.privacy-page .page-head--privacy-planes {
  overflow: hidden;
  background: #171a16;
}

.privacy-page .page-head--privacy-planes::before {
  inset: auto -12% 5% 29%;
  width: auto;
  height: 64%;
  background: #2d352c;
  clip-path: polygon(12% 0, 100% 24%, 82% 100%, 0 68%);
  transform: none;
}

.privacy-page .page-head--privacy-planes::after {
  top: -16%;
  right: 9%;
  bottom: auto;
  width: 31%;
  height: 96%;
  background: #56634f;
  clip-path: polygon(50% 0, 100% 7%, 74% 100%, 0 75%);
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).privacy-page .page-head--privacy-planes .eyebrow::before {
  content: none;
  display: none;
  width: 0;
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]) .cookie-dialog__surface .eyebrow::before {
  content: none;
  display: none;
  width: 0;
  flex-basis: 0;
}

.contact-page .page-head--contact {
  position: relative;
  overflow: hidden;
  background: #1c221c;
}

.contact-page .page-head--contact .page-head__copy {
  z-index: 2;
}

/* Kontakt-hero CTA: layoutneutral 1px kontrastram utanför knappytan. */
.contact-page .page-head--contact .hero-actions .button--primary {
  box-shadow: 0 0 0 1px var(--graphite);
}

.contact-page .contact-hero-graphic {
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  left: 34%;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  transform: none;
}

.contact-page .contact-hero-graphic__plane--light {
  top: -20%;
  right: -8%;
  bottom: auto;
  left: auto;
  width: 84%;
  height: 72%;
  background: #697762;
  clip-path: polygon(28% 0, 100% 0, 100% 78%, 0 100%);
}

.contact-page .contact-hero-graphic__plane--sage {
  right: auto;
  bottom: -23%;
  left: -18%;
  width: 82%;
  height: 72%;
  background: #89997f;
  clip-path: polygon(0 23%, 72% 0, 100% 100%, 20% 100%);
}

.contact-page .contact-hero-graphic__plane--dark {
  top: 11%;
  right: -18%;
  bottom: auto;
  left: auto;
  width: 69%;
  height: 112%;
  background: #354034;
  clip-path: polygon(35% 0, 100% 12%, 80% 100%, 0 77%);
}

.contact-page .contact-facts {
  width: 100%;
  border-top: 0;
}

.contact-page .contact-info > #kontakt-heading {
  position: relative;
  display: inline-block;
}

.contact-page .contact-info > #kontakt-heading::after {
  content: "";
  position: absolute;
  top: calc(100% + 48px);
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-dark);
  pointer-events: none;
}

.contact-page .contact-facts > div {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .services-page .services-area-routes::after {
    display: none;
  }
  
  .services-page .services-area-routes__list {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .services-page .services-area-routes__item,
.services-page .services-area-routes__item:nth-child(odd) {
    border-right: 0;
  }
  
  .services-page .services-area-routes__item {
    min-height: 154px;
    gap: 18px;
  }

  .services-page .services-area-routes__link {
    padding: 24px 22px;
    gap: 18px;
  }
  
  .services-page .services-area-routes__link h3 {
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  }
}

@media (max-width: 620px) {
  .method-page .process-interlude__track span,
.method-page .process-interlude__track span + span {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }
  
  .privacy-page .page-head--privacy-planes::before {
    inset: auto -44% 4% 20%;
    height: 56%;
  }
  
  .privacy-page .page-head--privacy-planes::after {
    top: -8%;
    right: -24%;
    width: 62%;
    height: 82%;
  }
  
  .contact-page .contact-hero-graphic {
    right: -24px;
    left: 40%;
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__link,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__link::before,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__link::after,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__index,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__link h3,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__action,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).services-page .services-area-routes__action svg,
:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).references-case-system-f-page .secondary-case__media img {
    transition: none;
  }
}

:is(body.home-page[class], body.ali-contact-page[class], body.method-page[class], body.privacy-page[class], body.contact-page[class], body.about-page[class], body.references-page[class], body.project-page[class], body.services-page[class]).contact-page .contact-form [hidden] {
  display: none;
}

@media (max-width: 720px) {
  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .services-page .service-head h2 {
    min-width: 0;
    font-size: clamp(1.9rem, 8.6vw, 2.05rem);
  }

  .stats-panel {
    gap: 18px 12px;
    padding: 24px 14px;
  }
  
  .stats-panel > div {
    min-height: 132px;
  }
  
  .stat-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    width: 100%;
    font-size: clamp(1.65rem, 8vw, 2rem);
    white-space: normal;
    column-gap: 4px;
    row-gap: 0;
  }
  
  .stat-suffix {
    margin-left: 0;
  }
  
  .stat-label {
    max-width: 16ch;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: left;
  }
  
  .cookie-dialog__surface {
    padding: clamp(22px, 7vw, 28px);
  }
  
}


@media (min-width: 881px) {
  .contact-page .page-head--contact .page-lead {
    max-width: none;
  }
}

@media (max-width: 880px) {
  :where(.services-page .page-head--services, .method-page .page-head--method, .about-page .page-head--about) {
    overflow: hidden;
    isolation: isolate;
  }
  
  :where(.services-page, .method-page, .about-page) .page-head__graphic {
    position: absolute;
    z-index: 1;
    top: var(--header-height);
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
  }
  
}

@media (max-width: 880px) {
  .site-nav li {
    border-bottom: 0;
  }
  
  .method-page .principle-row {
    column-gap: clamp(30px, 5vw, 42px);
    row-gap: 22px;
  }
}

.method-page .process-interlude__track {
  display: none;
}

@media (min-width: 960px) and (max-width: 1199px) {
  .method-page .process-handoff {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  
  .method-page .process-handoff__link {
    justify-self: start;
  }
}

@media (max-width: 959px) {
  .method-page .process-handoff {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  
  .method-page .process-handoff__link {
    justify-self: start;
  }
}

@media (min-width: 600px) and (max-width: 1199px) {
  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  
  .stats-panel > div {
    align-items: flex-start;
    min-height: 154px;
    text-align: left;
  }
  
  .stat-label {
    max-width: 23ch;
    margin-inline: 0;
    text-align: left;
  }
}

@media (max-width: 599px) {
  .stats-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 26px 22px;
  }
  
  .stats-panel > div {
    align-items: flex-start;
    min-height: 128px;
    text-align: left;
  }
  
  .stat-label {
    max-width: 28ch;
    margin-inline: 0;
    text-align: left;
  }
}

.site-nav--plan .menu-plan__heading,
.site-nav--plan .menu-plan__footer,
.site-nav--plan .menu-plan__index,
.site-nav--plan .menu-plan__title,
.site-nav--plan .menu-plan__detail,
.site-nav--plan .menu-plan__action,
.site-nav--plan .menu-plan__arrow {
  display: none;
}

.site-nav--plan .menu-plan__desktop-label {
  display: inline;
}

@media (max-width: 1199px) {
  body.is-menu-open .site-header .header-logo-stack {
    width: 214px;
  }
  
  .menu-toggle {
    display: block;
  }

  .header-email {
    display: inline-flex;
  }
  
  body.is-menu-open {
    overflow: hidden;
  }
  
  body.is-menu-open .site-header {
    --header-color: var(--graphite);
    --header-border: rgba(30, 32, 28, 0.16);
    --header-surface: var(--off-white);
    backdrop-filter: none;
  }
  
  body[class]:is(.home-page, .ali-contact-page, .method-page, .privacy-page, .contact-page, .about-page, .references-page, .project-page, .services-page).is-menu-open .site-header {
    background: var(--off-white);
    color: var(--graphite);
  }
  
  body[class]:is(.home-page, .ali-contact-page, .method-page, .privacy-page, .contact-page, .about-page, .references-page, .project-page, .services-page).is-menu-open .site-header .header-logo-variant--on-dark {
    opacity: 0;
  }
  
  body[class]:is(.home-page, .ali-contact-page, .method-page, .privacy-page, .contact-page, .about-page, .references-page, .project-page, .services-page).is-menu-open .site-header .header-logo-variant--on-light {
    opacity: 1;
  }
  
  .site-header .site-nav.site-nav--plan {
    position: fixed;
    z-index: 110;
    top: calc(var(--header-offset) + var(--header-height));
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-height: none;
    padding: clamp(22px, 3.2vw, 42px) var(--gutter) 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid rgba(30, 32, 28, 0.16);
    background: var(--off-white);
    color: var(--graphite);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    backdrop-filter: none;
  }
  
  .site-header .site-nav.site-nav--plan::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(30, 32, 28, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 32, 28, 0.05) 1px, transparent 1px);
    background-size: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 104px);
    pointer-events: none;
  }
  
  .site-header .site-nav.site-nav--plan.is-open {
    background: var(--off-white);
    color: var(--graphite);
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .site-nav--plan .menu-plan__heading {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: end;
    width: fit-content;
    margin: 0 0 18px auto;
  }
  
  .site-nav--plan .menu-plan__heading-kicker {
    margin-bottom: 7px;
    color: var(--sage-dark);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.17em;
  }
  
  .site-nav--plan .menu-plan__heading-title {
    font-family: var(--font-serif);
    font-synthesis: none;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.05;
  }
  
  .site-nav--plan > ul {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(170px, 1fr));
    gap: 10px;
    align-items: stretch;
    min-height: 0;
    list-style: none;
  }
  
  .site-nav--plan > ul > .menu-plan__tile {
    min-width: 0;
    border: 0;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--1 {
    grid-column: 1 / 5;
    grid-row: 1;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--2 {
    grid-column: 5 / 9;
    grid-row: 1;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--3 {
    grid-column: 9 / 13;
    grid-row: 1;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--4 {
    grid-column: 1 / 6;
    grid-row: 2;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--5 {
    grid-column: 6 / 10;
    grid-row: 2;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--6 {
    grid-column: 10 / 13;
    grid-row: 2;
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a,
.site-nav--plan > ul > .menu-plan__tile > .header-contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: clamp(20px, 2.7vw, 36px);
    overflow: hidden;
    border: 1px solid rgba(30, 32, 28, 0.16);
    border-radius: 0;
    background: rgba(245, 243, 238, 0.76);
    color: var(--graphite);
    font-family: "Urbanist", Arial, sans-serif;
    line-height: 1;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a::after {
    display: none;
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a:hover,
.site-nav--plan > ul > .menu-plan__tile > a:focus-visible {
    z-index: 2;
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(18, 21, 17, 0.15);
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a[aria-current="page"] {
    box-shadow: inset 0 0 0 2px var(--sage);
  }
  
  .site-nav--plan .menu-plan__desktop-label {
    display: none;
  }
  
  .site-nav--plan .menu-plan__index,
.site-nav--plan .menu-plan__title,
.site-nav--plan .menu-plan__detail,
.site-nav--plan .menu-plan__action,
.site-nav--plan .menu-plan__arrow {
    display: block;
  }
  
  .site-nav--plan .menu-plan__index {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  
  .site-nav--plan .menu-plan__title {
    max-width: 12ch;
    margin-top: clamp(14px, 1.6vw, 22px);
    font-family: var(--font-serif);
    font-synthesis: none;
    font-size: clamp(1.7rem, 4.2vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.95;
  }
  
  .site-nav--plan .menu-plan__detail {
    margin: 12px 40px 0 0;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
  }
  
  .site-nav--plan .menu-plan__detail > span {
    display: block;
  }
  
  .site-nav--plan .menu-plan__arrow {
    position: absolute;
    right: clamp(18px, 2.2vw, 28px);
    bottom: clamp(17px, 2vw, 24px);
    font-size: 1.35rem;
    font-weight: 400;
    transition: transform 180ms var(--ease);
  }
  
  .site-nav--plan a:hover .menu-plan__arrow,
.site-nav--plan a:focus-visible .menu-plan__arrow {
    transform: translateX(5px);
  }
  
  .site-nav--plan > ul > .menu-plan__tile--1 > a {
    border-color: rgba(245, 243, 238, 0.14);
    background: #303630;
    color: var(--off-white);
  }
  
  .site-nav--plan > ul > .menu-plan__tile--4 > a {
    border-color: rgba(30, 32, 28, 0.16);
    background: var(--warm-grey-mid);
    color: var(--graphite);
  }
  
  .site-nav--plan > ul > .menu-plan__tile--2 > a {
    background: var(--sage);
  }
  
  .site-nav--plan > ul > .menu-plan__tile--5 > a {
    border-color: rgba(30, 32, 28, 0.16);
    background: #808078;
    color: var(--graphite);
  }
  
  .site-nav--plan > ul > .menu-plan__tile--6 > a,
.site-nav--plan > ul > .menu-plan__tile--6 > .header-contact {
    border-color: rgba(245, 243, 238, 0.2);
    background: var(--sage-dark);
    color: var(--off-white);
  }
  
  .site-nav--plan .menu-plan__tile--6 .menu-plan__title {
    max-width: 12ch;
  }
  
  .site-nav--plan > ul > .menu-plan__tile--6 > .header-contact {
    align-items: stretch;
    text-align: left;
  }
  
  .site-nav--plan .menu-plan__action {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 15px;
    border: 1px solid rgba(245, 243, 238, 0.58);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .site-nav--plan .menu-plan__footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(60px, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 20px;
    color: var(--sage-dark);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.16em;
  }
  
  .site-nav--plan .menu-plan__footer-line {
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--sage) 0 12%, transparent 12% 14.66%);
  }
}

@media (max-width: 1199px) and (hover: hover) and (pointer: fine) {
  .menu-toggle {
    transition: transform 180ms ease, background-color 180ms ease;
  }
  
  .menu-toggle[aria-expanded="true"]:hover {
    transform: rotate(7deg);
    background: rgba(138, 155, 124, 0.13);
  }

  .header-email {
    transition: background-color 180ms ease;
  }

  .header-email:hover {
    background: rgba(138, 155, 124, 0.13);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .site-nav--plan > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .site-nav--plan > ul > .menu-plan__tile {
    grid-column: auto;
    grid-row: auto;
  }
  
  .site-nav--plan .menu-plan__title {
    font-size: clamp(1.65rem, 5.8vw, 2.9rem);
  }
  
}

@media (max-width: 599px) {
  .site-header .site-nav.site-nav--plan {
    padding: 16px 20px 26px;
  }
  
  .site-nav--plan .menu-plan__heading,
.site-nav--plan .menu-plan__footer {
    display: none;
  }
  
  .site-nav--plan > ul {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 8px;
  }
  
  .site-nav--plan > ul > .menu-plan__tile {
    grid-column: auto;
    grid-row: auto;
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a,
.site-nav--plan > ul > .menu-plan__tile > .header-contact {
    min-height: 116px;
    padding: 18px 20px;
  }
  
  .site-nav--plan .menu-plan__title,
.site-nav--plan .menu-plan__tile--6 .menu-plan__title {
    max-width: 15ch;
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }
  
  .site-nav--plan .menu-plan__title {
    margin-top: 12px;
  }
  
  .site-nav--plan .menu-plan__detail {
    display: none;
  }
  
  .site-nav--plan .menu-plan__action {
    padding: 8px 12px;
  }
}

@media (orientation: landscape) and (max-width: 1199px) {
  .home-page .hero--concept-13,
.home-page .hero--concept-13 .hero-canvas,
.home-page .hero--concept-13 .hero-stage {
    min-height: var(--hero-viewport);
    height: var(--hero-viewport);
  }
  
  .home-page .hero--concept-13 .hero-copy {
    min-height: calc(var(--hero-viewport) - var(--hero-header-offset));
  }

  .home-page .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(28px, 8svh, 64px);
  }

  .home-page .hero--concept-13 h1 {
    max-width: 100%;
    margin-top: var(--hero-compact-heading-gap);
    line-height: 0.9;
  }

  .home-page .hero--concept-13 .hero-copy__support {
    margin-top: var(--hero-compact-intro-gap);
    padding-bottom: clamp(72px, 13svh, 110px);
  }

  .home-page .hero--concept-13 .hero-intro {
    line-height: 1.4;
  }

}

@media (orientation: landscape) and (max-width: 699.98px) {
  .home-page .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(18px, 5svh, 32px);
  }

  .home-page .hero--concept-13 h1 {
    max-width: 100%;
  }

  .home-page .hero--concept-13 .hero-copy__support {
    padding-bottom: clamp(72px, 14svh, 96px);
  }
}

@media (orientation: landscape) and (min-width: 700px) and (max-width: 1199px) and (max-height: 500px) {
  .home-page .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(12px, 3svh, 22px);
  }
  
  .home-page .hero--concept-13 h1 {
    max-width: 100%;
  }

  .home-page .hero--concept-13 .hero-copy__support {
    padding-bottom: clamp(42px, 8svh, 58px);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  body.is-menu-open .site-header .header-logo-stack {
    width: 214px;
  }
  
  .site-nav--plan .menu-plan__tile--4 .menu-plan__detail {
    margin-bottom: clamp(10px, 1.5vw, 18px);
  }
}

@media (max-height: 700px) and (min-width: 900px) and (max-width: 1199px) {
  .site-header .site-nav.site-nav--plan {
    padding-top: 16px;
  }
  
  .site-nav--plan .menu-plan__heading {
    margin-bottom: 12px;
  }
  
  .site-nav--plan > ul {
    grid-template-rows: repeat(2, minmax(120px, 1fr));
  }
  
  .site-nav--plan > ul > .menu-plan__tile > a,
.site-nav--plan > ul > .menu-plan__tile > .header-contact {
    padding: 18px;
  }
  
  .site-nav--plan .menu-plan__footer {
    margin-top: auto;
  }
}

@media (orientation: portrait) and (max-width: 699.98px) {
  .home-page .hero--concept-13 .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(var(--hero-viewport) - var(--hero-header-offset));
  }
  
  .home-page .hero--concept-13 .hero-copy__lead {
    position: static;
    margin-top: clamp(12px, calc(25svh - 130px), clamp(48px, 6.5svh, 56px));
  }
  
  .home-page .hero--concept-13 h1 {
    max-width: 100%;
    margin-top: var(--hero-compact-heading-gap);
    line-height: 0.92;
  }

  .home-page .hero--concept-13 .hero-copy__support {
    position: static;
    margin-top: var(--hero-compact-intro-gap);
    padding-bottom: 0;
  }

  .home-page .hero--concept-13 .hero-intro {
    line-height: 1.42;
  }

}

@media (orientation: landscape) and (min-width: 800px) and (max-width: 1199px) and (max-height: 430px) {
  .home-page .hero--concept-13 .hero-copy__lead {
    margin-top: clamp(16px, 4.5svh, 22px);
  }

  .home-page .hero--concept-13 .hero-copy__support {
    padding-bottom: clamp(64px, 12svh, 76px);
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  .home-page {
    --hero-wide-unit: clamp(1px, 0.053vw, 2px);
    --hero-wide-hairline: var(--hero-wide-unit);
    --hero-wide-frame-gutter: calc(48 * var(--hero-wide-unit));
    --hero-wide-frame-width: calc(1280 * var(--hero-wide-unit));
    --hero-wide-header-height: calc(96 * var(--hero-wide-unit));
    --hero-wide-floor: calc(780 * var(--hero-wide-unit));
    --hero-wide-lead-offset: calc(99.75 * var(--hero-wide-unit));
    --hero-wide-eyebrow-gap: calc(13 * var(--hero-wide-unit));
    --hero-wide-heading-gap: calc(22 * var(--hero-wide-unit));
    --hero-wide-support-gap: calc(47.25 * var(--hero-wide-unit));
    --hero-wide-support-bottom: calc(130 * var(--hero-wide-unit));
    --hero-wide-actions-gap: calc(10 * var(--hero-wide-unit));
    --hero-wide-slideshow-size: calc(46 * var(--hero-wide-unit));
    --hero-wide-slideshow-arrow: calc(9 * var(--hero-wide-unit));
    --hero-wide-slideshow-arrow-stroke: calc(1.5 * var(--hero-wide-unit));
    --hero-wide-slideshow-arrow-offset: calc(3 * var(--hero-wide-unit));
    --hero-wide-motion-size: calc(44 * var(--hero-wide-unit));
    --hero-wide-motion-icon-size: calc(24 * var(--hero-wide-unit));
    --hero-wide-motion-bottom: calc(130 * var(--hero-wide-unit));
    --hero-wide-control-blur: calc(12 * var(--hero-wide-unit));
    --header-height: var(--hero-wide-header-height);
  }
  
  .home-page .header-inner,
.home-page .hero--concept-13 .hero-stage {
    width: min(
        calc(100% - (2 * var(--hero-wide-frame-gutter))),
        var(--hero-wide-frame-width)
      );
  }
  
  .home-page .site-header.is-scrolled {
    backdrop-filter: blur(calc(16 * var(--hero-wide-unit))) saturate(120%);
  }
  
  .home-page .hero--concept-13,
.home-page .hero--concept-13 .hero-canvas,
.home-page .hero--concept-13 .hero-stage {
    min-height: max(var(--hero-wide-floor), var(--hero-viewport));
  }
  
  .home-page .hero--concept-13 {
    --hero-header-offset: var(--hero-wide-header-height);
  }
  
  .home-page .hero--concept-13 .hero-stage {
    padding-top: var(--hero-header-offset);
  }
  
  .home-page .hero--concept-13 .hero-copy {
    min-height: calc(max(var(--hero-wide-floor), var(--hero-viewport)) - var(--hero-header-offset));
  }

  .home-page .hero--concept-13 .hero-copy__lead {
    margin-top: var(--hero-wide-lead-offset);
  }

  .home-page .hero--concept-13 .eyebrow {
    gap: var(--hero-wide-eyebrow-gap);
  }

  .home-page .hero--concept-13 h1 {
    margin-top: var(--hero-wide-heading-gap);
    line-height: 0.9;
  }

  .home-page .hero--concept-13 .hero-copy__support {
    margin-top: var(--hero-wide-support-gap);
    padding-bottom: var(--hero-wide-support-bottom);
  }

  .home-page .hero--concept-13 .hero-intro {
    line-height: 1.58;
  }
  
  .home-page :is(.site-header, .hero--concept-13) :focus-visible {
    outline-width: calc(3 * var(--hero-wide-unit));
    outline-offset: calc(4 * var(--hero-wide-unit));
  }
}


@media (orientation: landscape) and (min-width: 1848px) and (min-height: 1155px) {
  html:has(body:is(.method-page, .privacy-page, .contact-page, .references-page, .project-page, .ali-contact-page)) {
    --site-wide-unit: clamp(1px, min(0.053vw, 0.11svh), 2px);
    font-size: calc(16 * var(--site-wide-unit));
  }

  body:is(.method-page, .privacy-page, .contact-page, .references-page, .project-page, .ali-contact-page) {
    --gutter: calc(48 * var(--site-wide-unit));
    --max-width: calc(1280 * var(--site-wide-unit));
    --header-height: calc(96 * var(--site-wide-unit));
    font-size: calc(17 * var(--site-wide-unit));
  }

  body:is(.method-page, .privacy-page, .contact-page, .references-page, .project-page, .ali-contact-page) .hero-actions .button:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  min-height: calc(50 * var(--site-wide-unit));
  padding: calc(13 * var(--site-wide-unit)) calc(23 * var(--site-wide-unit));
  font-size: max(0.78rem, calc(12.5 * var(--site-wide-unit)));
}

  body:is(.method-page, .privacy-page, .contact-page, .project-page) .page-head__copy:not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  top: calc(190 * var(--site-wide-unit));
  width: min(52%, calc(850 * var(--site-wide-unit)));
}

  body:is(.method-page, .privacy-page, .contact-page) .page-head__copy:has(> .hero-actions):not(:where(:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero), :is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) *)) {
  bottom: calc(80 * var(--site-wide-unit));
}


  body:is(.method-page, .privacy-page, .contact-page, .references-page, .project-page, .ali-contact-page) .section {
    padding-block: calc(128 * var(--site-wide-unit));
  }

  body:is(.method-page, .privacy-page, .contact-page, .references-page, .project-page, .ali-contact-page) .section-head {
    grid-template-columns: minmax(calc(90 * var(--site-wide-unit)), 0.18fr) 1fr auto;
    gap: calc(20 * var(--site-wide-unit));
    margin-bottom: calc(80 * var(--site-wide-unit));
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  .about-page .page-head--about .page-head__graphic {
    width: min(
        calc(100% - (2 * var(--about-hero-wide-frame-gutter))),
        var(--about-hero-wide-frame-width)
      );
  }
}

.home-page {
  --home-section-frame-gutter: var(--gutter);
  --home-section-frame-max-width: var(--max-width);
}

@media (orientation: landscape) and (min-width: 1848px) and (min-height: 1155px) {
  html:has(body.home-page) {
    --home-wide-content-unit: clamp(1px, 0.053vw, 2px);
    font-size: calc(16 * var(--home-wide-content-unit));
  }
  
  .home-page {
    --home-section-frame-gutter: calc(48 * var(--home-wide-content-unit));
    --home-section-frame-max-width: calc(1280 * var(--home-wide-content-unit));
    --gutter: var(--home-section-frame-gutter);
    --max-width: var(--home-section-frame-max-width);
    font-size: calc(17 * var(--home-wide-content-unit));
  }
  
  .home-page .section {
    padding-block: calc(128 * var(--home-wide-content-unit));
  }

  .home-page .experience__stage {
    padding-top: calc(128 * var(--home-wide-content-unit));
  }
  
  .home-page :is(.section, .experience) .section-head {
    grid-template-columns: minmax(calc(90 * var(--home-wide-content-unit)), 0.18fr) 1fr auto;
    gap: calc(20 * var(--home-wide-content-unit));
  }
  
  .home-page .section .section-head {
    margin-bottom: calc(80 * var(--home-wide-content-unit));
  }
  
  .home-page .section-intro--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(calc(280 * var(--home-wide-content-unit)), 0.62fr);
    gap: calc(120 * var(--home-wide-content-unit));
  }
  
  .home-page .section-intro--stacked {
    gap: calc(40 * var(--home-wide-content-unit));
  }
  
  .home-page .stack-top {
    margin-top: calc(42 * var(--home-wide-content-unit));
  }
  
  .home-page .stack-top-lg {
    margin-top: calc(64 * var(--home-wide-content-unit));
  }
  
  .home-page main > :not(.hero--concept-13) .button {
    min-height: calc(50 * var(--home-wide-content-unit));
    padding: calc(13 * var(--home-wide-content-unit)) calc(23 * var(--home-wide-content-unit));
  }
  
  .home-page .text-link,
.home-page .back-link {
    gap: calc(12 * var(--home-wide-content-unit));
  }
  
  .home-page .text-link__arrow {
    width: calc(30 * var(--home-wide-content-unit));
    height: calc(30 * var(--home-wide-content-unit));
    flex-basis: calc(30 * var(--home-wide-content-unit));
  }
  
  .home-page .text-link__arrow svg {
    width: calc(16 * var(--home-wide-content-unit));
    height: calc(16 * var(--home-wide-content-unit));
  }
  
  .home-page .principles-grid {
    margin-top: calc(118 * var(--home-wide-content-unit));
  }
  
  .home-page .principle {
    min-height: calc(230 * var(--home-wide-content-unit));
    padding: calc(30 * var(--home-wide-content-unit)) calc(42 * var(--home-wide-content-unit)) calc(34 * var(--home-wide-content-unit)) 0;
  }
  
  .home-page .principle + .principle {
    padding-left: calc(42 * var(--home-wide-content-unit));
  }
  
  .home-page .principle h3 {
    margin-top: calc(70 * var(--home-wide-content-unit));
  }
  
  .home-page .stats-panel {
    gap: calc(36 * var(--home-wide-content-unit));
    padding: calc(52 * var(--home-wide-content-unit));
    border-top-width: calc(3 * var(--home-wide-content-unit));
  }
  
  .home-page .stats-panel > div {
    min-height: calc(142 * var(--home-wide-content-unit));
  }
  
  .home-page .stat-suffix {
    margin-left: calc(4 * var(--home-wide-content-unit));
  }
  
  .home-page .stat-label {
    margin-top: calc(7 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b {
    margin-top: calc(120 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__node::before {
    width: calc(17 * var(--home-wide-content-unit));
    height: calc(17 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__node::after {
    height: calc(42 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__link {
    min-height: calc(410 * var(--home-wide-content-unit));
    padding: calc(48 * var(--home-wide-content-unit)) calc(38 * var(--home-wide-content-unit)) calc(34 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__link h3 {
    margin-top: calc(72 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__link p {
    margin-top: calc(26 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__arrow {
    width: calc(36 * var(--home-wide-content-unit));
    height: calc(36 * var(--home-wide-content-unit));
    margin-top: calc(26 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__arrow svg {
    width: calc(16 * var(--home-wide-content-unit));
    height: calc(16 * var(--home-wide-content-unit));
  }
  
  .home-page .services-concept-b .services-b__node:first-child .services-b__link h3,
.home-page .services-concept-b .services-b__node:focus-within .services-b__link h3,
.home-page .services-concept-b .services-b__node.is-touch-activating .services-b__link h3 {
    transform: translateY(calc(4 * var(--home-wide-content-unit)));
  }
  
  .home-page .services > .container > .text-link {
    margin-top: calc(42 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid {
    margin-top: calc(112 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid::before,
.home-page .process-grid::after {
    top: calc(29 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid li {
    min-height: calc(260 * var(--home-wide-content-unit));
    padding: 0 calc(58 * var(--home-wide-content-unit)) calc(32 * var(--home-wide-content-unit)) 0;
  }
  
  .home-page .process-grid li + li {
    padding-left: calc(58 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid li::before {
    top: calc(23 * var(--home-wide-content-unit));
    width: calc(13 * var(--home-wide-content-unit));
    height: calc(13 * var(--home-wide-content-unit));
    border-width: calc(3 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid li + li::before {
    left: calc(58 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid .item-number {
    padding-left: calc(26 * var(--home-wide-content-unit));
  }
  
  .home-page .process-grid h3 {
    margin-top: calc(80 * var(--home-wide-content-unit));
  }
  
  .home-page .process > .container > .text-link {
    margin-top: calc(24 * var(--home-wide-content-unit));
  }
  
  .home-page .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(calc(300 * var(--home-wide-content-unit)), 0.64fr);
    gap: calc(150 * var(--home-wide-content-unit));
  }
  
  .home-page .button--contact {
    margin-top: calc(34 * var(--home-wide-content-unit));
  }
  
  .home-page .site-footer {
    padding: calc(120 * var(--home-wide-content-unit)) 0 calc(34 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-grid {
    gap: calc(80 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-logo-lockup {
    margin-bottom: calc(30 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-logo {
    width: calc(220 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-brand .footer-tagline {
    margin-top: calc(10 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-brand a {
    margin-top: calc(20 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-nav {
    grid-template-columns: repeat(2, minmax(calc(120 * var(--home-wide-content-unit)), 1fr));
    gap: calc(18 * var(--home-wide-content-unit)) calc(54 * var(--home-wide-content-unit));
  }
  
  .home-page .footer-bottom {
    margin-top: calc(78 * var(--home-wide-content-unit));
    padding-top: calc(24 * var(--home-wide-content-unit));
  }
}


.about-page .person-block .credential {
  justify-self: start;
  width: min(100%, 218px);
}

@media (max-width: 959px) {
  .about-page .person-block .credential {
    justify-self: start;
    width: min(100%, 218px);
  }
}

@media (orientation: landscape) and (min-width: 1100px) and (max-width: 1199px) {
  .about-page .person-block .credential {
    justify-self: start;
    width: min(100%, 218px);
  }
}


@media (orientation: portrait) and (max-width: 834px),
       (orientation: landscape) and (min-width: 900px) and (max-width: 1199px) {
  
  
  .about-page main > .page-head--about {
    overflow: hidden;
  }
}

@media (orientation: landscape) and (min-width: 1680px) {
  .about-page {
    --about-hero-wide-unit: clamp(1px, 0.053vw, 2px);
    --about-hero-wide-frame-gutter: calc(48 * var(--about-hero-wide-unit));
    --about-hero-wide-frame-width: calc(1280 * var(--about-hero-wide-unit));
  }
  
  .about-page .page-head--about .page-head__graphic {
  width: min(
        calc(100% - (2 * var(--about-hero-wide-frame-gutter))),
        var(--about-hero-wide-frame-width)
      );
}
}

@media (max-width: 880px) and (min-height: 780px) and (orientation: portrait) {
  body.is-menu-open .site-header {
    --header-height: 112px;
  }
  
  body.is-menu-open .site-header .header-inner {
    min-height: 112px;
  }
}

@media (min-width: 1680px) and (min-height: 1050px) and (orientation: landscape) {
  .about-page {
    --about-wide-unit: clamp(1px, min(0.053vw, 0.11svh), 2px);
    --about-wide-frame-gutter: calc(48 * var(--about-wide-unit));
    --about-wide-frame-width: calc(1280 * var(--about-wide-unit));
    --header-height: calc(96 * var(--about-wide-unit));
  }
  
  .about-page .header-inner {
  width: min(
        calc(100% - (2 * var(--about-wide-frame-gutter))),
        var(--about-wide-frame-width)
      );
}
  
  .about-page .page-head--about .page-head__graphic {
    width: 100vw;
  }
  
}

@media (min-width: 1848px) and (min-height: 1155px) and (orientation: landscape) {
  html:has(body.about-page) {
    --about-wide-unit: clamp(1px, 0.053vw, 2px);
    font-size: calc(16 * var(--about-wide-unit));
  }
  
  .about-page {
    --gutter: var(--about-wide-frame-gutter);
    --max-width: var(--about-wide-frame-width);
    font-size: calc(17 * var(--about-wide-unit));
  }
  
  .about-page .section {
    padding-block: calc(128 * var(--about-wide-unit));
  }
  
  .about-page .section .section-head {
    grid-template-columns: minmax(calc(90 * var(--about-wide-unit)), 0.18fr) 1fr auto;
    gap: calc(20 * var(--about-wide-unit));
    margin-bottom: calc(80 * var(--about-wide-unit));
  }
  
  .about-page .section-intro--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(calc(280 * var(--about-wide-unit)), 0.62fr);
    gap: calc(120 * var(--about-wide-unit));
  }
  
  .about-page .person-block {
    gap: calc(72 * var(--about-wide-unit));
  }
}


@media (max-width: 880px) {
  .services-page main > .page-head--services {
    overflow: hidden;
  }


}


@media (orientation: landscape) and (min-width: 1680px) {
  .services-page {
    --services-hero-unit: clamp(1px, 0.053vw, 2px);
    --gutter: calc(48 * var(--services-hero-unit));
    --max-width: calc(1280 * var(--services-hero-unit));
    --header-height: calc(96 * var(--services-hero-unit));
  }
  
  .services-page .header-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
}
}

@media (min-width: 1848px) and (min-height: 1155px) and (orientation: landscape) {
  html:has(body.services-page) {
    --services-wide-unit: clamp(1px, 0.053vw, 2px);
    font-size: calc(16 * var(--services-wide-unit));
  }
  
  .services-page {
    --gutter: calc(48 * var(--services-wide-unit));
    --max-width: calc(1280 * var(--services-wide-unit));
    --header-height: calc(96 * var(--services-wide-unit));
  }
  
  .services-page .header-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
}
}

.ali-contact-page {
  --ali-hero: var(--graphite);
  --ali-card-shadow: 0 28px 80px rgba(16, 18, 15, 0.24);
}

.ali-contact-page .site-header:not(.is-scrolled) {
  background: rgba(30, 32, 28, 0.94);
}

:where(body.ali-contact-page) .ali-contact-hero {
  padding: max(clamp(150px, 19svh, 260px), calc(var(--header-height) + 48px)) 0 clamp(96px, 12vw, 160px);
  background: var(--ali-hero);
  color: var(--off-white);
}

:where(body.ali-contact-page) .ali-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(540px, 1fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: start;
}

:where(body.ali-contact-page) .ali-contact-intro {
  max-width: 520px;
}

:where(body.ali-contact-page) .ali-contact-intro .eyebrow {
  margin-bottom: 28px;
  color: var(--warm-grey-mid);
  font-size: var(--hero-font-eyebrow);
}

:where(body.ali-contact-page) .ali-contact-intro .eyebrow::before {
  display: none;
}

:where(body.ali-contact-page) .ali-contact-intro h1 {
  max-width: none;
  font-size: clamp(3.6rem, 4.9vw, 5.25rem);
  white-space: nowrap;
}

:where(body.ali-contact-page) .ali-contact-role {
  margin-top: 28px;
  color: var(--off-white);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 350;
}

:where(body.ali-contact-page) .ali-contact-company {
  margin-top: 4px;
  color: rgba(245, 243, 238, 0.64);
}

:where(body.ali-contact-page) .ali-contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  background: var(--off-white);
  box-shadow: var(--ali-card-shadow);
  color: var(--graphite);
}

:where(body.ali-contact-page) .ali-contact-card__field {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(121deg, transparent 0 52%, rgba(233, 230, 223, 0.92) 52.2% 100%);
  pointer-events: none;
}

:where(body.ali-contact-page) .ali-contact-card__top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}

:where(body.ali-contact-page) .ali-contact-card__logo {
  width: min(56%, 280px);
  height: auto;
}

:where(body.ali-contact-page) .ali-contact-card__identity {
  flex: 0 0 auto;
  text-align: right;
}

:where(body.ali-contact-page) .ali-contact-card__identity h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
}

:where(body.ali-contact-page) .ali-contact-card__identity p {
  margin-top: 8px;
  color: var(--sage-dark);
  font-size: 0.94rem;
  font-weight: 500;
}

:where(body.ali-contact-page) .ali-contact-card__line {
  height: 1px;
  margin: clamp(38px, 6vw, 64px) 0;
  background: var(--sage);
}

:where(body.ali-contact-page) .ali-contact-facts {
  display: grid;
  gap: 18px;
}

:where(body.ali-contact-page) .ali-contact-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

:where(body.ali-contact-page) .ali-contact-facts dt {
  color: var(--warm-grey-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(body.ali-contact-page) .ali-contact-facts dd,
:where(body.ali-contact-page) .ali-contact-facts a {
  min-width: 0;
}

:where(body.ali-contact-page) .ali-contact-facts a {
  text-decoration-color: rgba(30, 32, 28, 0.28);
  text-underline-offset: 4px;
}

:where(body.ali-contact-page) .ali-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(38px, 6vw, 60px);
}

:where(body.ali-contact-page) .ali-contact-action {
  display: flex;
  min-height: 56px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(30, 32, 28, 0.28);
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

:where(body.ali-contact-page) .ali-contact-action__icon,
:where(body.ali-contact-page) .ali-contact-action__arrow {
  display: inline-flex;
  flex-shrink: 0;
}

:where(body.ali-contact-page) .ali-contact-action:hover {
  border-color: var(--sage-dark);
  background: var(--sage);
  transform: translateY(-2px);
}

:where(body.ali-contact-page) .ali-contact-action--primary {
  border-color: var(--sage);
  background: var(--sage);
}

:where(body.ali-contact-page) .ali-contact-action--primary:hover {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--off-white);
}

:where(body.ali-contact-page) .ali-contact-footer {
  padding-top: clamp(64px, 8vw, 96px);
}

@media (max-width: 900px) {
  :where(body.ali-contact-page) .ali-contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  
  :where(body.ali-contact-page) .ali-contact-intro h1 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  :where(body.ali-contact-page) .ali-contact-hero {
    padding-top: calc(var(--header-height) + 32px);
  }

  :where(body.ali-contact-page) .ali-contact-intro .eyebrow {
    margin-bottom: 16px;
  }

  :where(body.ali-contact-page) .ali-contact-intro h1 {
    font-size: clamp(2.75rem, 12vw, 3.75rem);
  }

  :where(body.ali-contact-page) .ali-contact-role {
    margin-top: 14px;
  }

  :where(body.ali-contact-page) .ali-contact-card {
    margin-inline: calc(-1 * var(--gutter));
    padding: 22px var(--gutter) 30px;
  }

  :where(body.ali-contact-page) .ali-contact-card__top {
    display: block;
  }

  :where(body.ali-contact-page) .ali-contact-card__logo {
    width: min(58%, 200px);
  }

  /* Namn/roll upprepas redan i heron ovanför kortet; döljs på mobil för att undvika duplicering och korta ner kortets överdel. */
  :where(body.ali-contact-page) .ali-contact-card__identity {
    display: none;
  }

  :where(body.ali-contact-page) .ali-contact-card__line {
    margin: 22px 0;
  }

  :where(body.ali-contact-page) .ali-contact-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  :where(body.ali-contact-page) .ali-contact-facts dd {
    overflow-wrap: anywhere;
  }

  :where(body.ali-contact-page) .ali-contact-actions {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(body.ali-contact-page) .ali-contact-action {
    transition: none;
  }
}

@media (min-width: 881px) {


  .about-page .page-head--about .page-head__graphic {
    width: 100vw;
    max-width: none;
  }
}

/* Delad split-flap/Solari-textanimation för roterande hero-ord/fraser */
.split-flap {
  display: inline-flex;
  overflow-x: visible;
  overflow-y: visible;
  vertical-align: baseline;
  color: var(--sage);
  line-height: 1.15;
  transition: width calc(var(--split-flap-width-ms) * 1ms) var(--ease);
}

/* Tillfälligt animationsstate (skilt från preorienteringen): på instanser med data-split-flap-clip sätter JS klassen när breddändringen börjar (förorientering eller shuffle) och tar bort den när övergången är klar och de gamla teckenkolumnerna är borttagna, så gammal text aldrig målas utanför aktuell bredd. Klipper endast i X-led; i vila visas ordet obeskuret. */
.split-flap.is-clipping {
  overflow-x: clip;
}

.split-flap__chars {
  display: inline-flex;
}

.split-flap__col {
  display: inline-block;
  perspective: 90px;
}

.split-flap__char {
  display: inline-block;
  white-space: pre;
  line-height: 1.15;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.split-flap__char.is-flip-out {
  transition: transform 240ms cubic-bezier(0.5, 0, 0.75, 0);
  transform: rotateX(-90deg);
}

.split-flap__char.is-return-start {
  transition: none;
  transform: rotateX(90deg);
}

.split-flap__char.is-flip-in {
  transition: transform 240ms cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotateX(0deg);
}

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

@media (prefers-reduced-motion: reduce) {
  .split-flap {
    transition: none;
  }

  .split-flap__char {
    transition: none;
    transform: none;
  }
}

/* Ingen egen accentfärg på det växlande ordet i sidfots-CTA:n längre — det ska ha samma mörka textfärg som resten av rubriken ("Låt oss skapa … i ert nästa steg."), inte split-flap-komponentens vanliga Sage-text. */
.contact-section .split-flap {
  color: inherit;
}

/* Om Aistaine-heron: de växlande orden ska ha samma off-white färg som övrig rubriktext, inte split-flap-komponentens vanliga Sage-text. Skoppat till page-head--about så att andra split-flap-instanser (t.ex. startsidan) behåller sin Sage-färg. */
.page-head--about .split-flap {
  color: inherit;
}

/* Radlåsning för "Låt oss skapa / [ord] i / ert nästa steg." (Kontakt-hero + sidfots-CTA). nowrap gör varje rad odelbar så "i" aldrig faller ned på egen rad. */
.split-flap-cta__line {
  display: block;
  white-space: nowrap;
}


/* Rubriker som innehåller split-flap behöver något större radhöjd än standardvärdet så att nedstaplar (g/j/p/q/y) och höga bokstavsformer får full vertikal frigång och aldrig krockar med raden ovan/under */
h1:has(.split-flap),
h2:has(.split-flap) {
  line-height: 1.1;
}

:is(.about-page, .services-page, .method-page, .privacy-page, .references-page) main > :is(.page-head, .references-hero) h1:has(.split-flap) {
  line-height: 1.1;
}

/* Hero-brödtext: teckenvikt globalt (färgen sätts av basreglerna för .page-head .page-lead / .references-hero .page-lead / .hero-intro) */
.page-head .page-lead,
.references-hero .page-lead {
  font-weight: 350;
}

/* ==========================================================================
   Tryckåterkoppling för touch
   --------------------------------------------------------------------------
   Etablerad hover ligger kvar oförändrad för mus, och focus-visible för
   tangentbord. Problemet var att komponenter vars hover-uttryck ligger bakom
   (hover: hover) blev visuellt döda vid tryck på touch: inget hände förrän
   navigeringen skedde.

   Här speglas därför varje komponents redan etablerade sluttillstånd som
   :active. Mönstret följer de :active-regler som redan fanns för
   services-area-routes och project-service-routes (sage-ton + 1px tryck).

   :active släpper när fingret lyfts och kan därför inte bli kvar som
   sticky hover, och kräver inte heller dubbeltryck.
   ========================================================================== */

/* Text-CTA:er: "Se alla våra tjänster", "Läs om vårt arbetssätt",
   "Lär känna Aistaine", "Se våra referenser" m.fl. */
.text-link:active .text-link__arrow {
  background: var(--graphite);
  color: var(--off-white);
  transform: rotate(45deg);
}

/* Mörk sektion: samma inverterade fyllning som hover/focus där. */
:where(body.home-page) .experience__link:active .text-link__arrow {
  color: var(--graphite-deep);
  background: var(--off-white);
}

/* Knappar */
.button:active {
  transform: translateY(1px);
}

.button--primary:active {
  background: var(--off-white);
}

.button--on-dark:active {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--graphite);
}

/* Navigation och textlänkar */
.site-nav a:not(.button):active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-nav a:active {
  color: var(--sage);
}

.back-link:active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.service-nav a:active {
  color: var(--sage-dark);
}

/* Hero-kontroller: viktigast på mobil, där de bara nås via touch. */
.hero--concept-13 .slideshow-control:active {
  border-color: var(--sage);
  background: rgba(30, 32, 28, 0.82);
  transform: translateY(1px);
}

.motion-toggle:active {
  border-color: var(--sage);
  background: var(--graphite);
}

/* Referenskort och case-länkar */
.references-case-system-f-page .reference-index .ref-list .ref-list__item:active {
  background: var(--off-white);
}

.references-case-system-f-page .case-system-f__link:active,
.references-case-system-f-page .secondary-case__link:active {
  color: var(--sage-dark);
}

/* Arbetssätt: överlämningslänken */
.process-handoff__link:active {
  color: var(--sage);
}

/* /ali/ kontaktknappar */
:where(body.ali-contact-page) .ali-contact-action:active {
  border-color: var(--sage-dark);
  background: var(--sage);
  transform: translateY(1px);
}

/* Integritetsdialogens stängknapp */
.cookie-dialog__dismiss:active {
  color: var(--sage-dark);
}

/* ==========================================================================
   Sticky-knapp för integritetsinställningar
   --------------------------------------------------------------------------
   Visas endast på integritetssidan och är den enda öppningspunkten för
   inställningsdialogen. Footerns "Integritet" är numera en vanlig länk hit.

   Speglar den fasta e-postknappens formspråk (cirkel, tunn ram, dämpad
   graphite-yta, backdrop-blur) men ligger nere till vänster, så att de två
   aldrig kan krocka på de vyer där båda finns. Ikonen är ett eget, förenklat
   fingeravtryck i samma linjestil som övriga Aistaine-ikoner.
   ========================================================================== */
.privacy-settings-button {
  display: none;
}

.privacy-page .privacy-settings-button {
  --privacy-button-size: 48px;
  position: fixed;
  z-index: 90;
  top: auto;
  right: auto;
  bottom: calc(var(--privacy-button-size) + env(safe-area-inset-bottom, 0px));
  left: max(var(--gutter), calc(12px + env(safe-area-inset-left)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--privacy-button-size);
  height: var(--privacy-button-size);
  min-width: var(--privacy-button-size);
  min-height: var(--privacy-button-size);
  padding: 0;
  border: 1px solid rgba(245, 243, 238, 0.36);
  border-radius: 50%;
  background: rgba(30, 32, 28, 0.72);
  color: var(--off-white);
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(115%);
  transition: opacity var(--transition),
    visibility var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.privacy-page .privacy-settings-button svg {
  flex: 0 0 auto;
}

/* Kontrasten följer ytan under knappen, samma mekanism som e-postknappen. */
.privacy-page .privacy-settings-button[data-theme="dark"] {
  border-color: rgba(245, 243, 238, 0.76);
  background: rgba(245, 243, 238, 0.94);
  color: var(--graphite);
}

.privacy-page .privacy-settings-button:is([data-theme="light"], [data-theme="warm-grey-mid"]) {
  border-color: rgba(30, 32, 28, 0.72);
  background: rgba(30, 32, 28, 0.9);
  color: var(--off-white);
}

.privacy-page .privacy-settings-button:focus-visible,
.privacy-page .privacy-settings-button:active,
.privacy-page .privacy-settings-button[data-theme="dark"]:focus-visible,
.privacy-page .privacy-settings-button[data-theme="dark"]:active,
.privacy-page .privacy-settings-button:is([data-theme="light"], [data-theme="warm-grey-mid"]):focus-visible,
.privacy-page .privacy-settings-button:is([data-theme="light"], [data-theme="warm-grey-mid"]):active {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--graphite);
}

@media (hover: hover) and (pointer: fine) {
  .privacy-page .privacy-settings-button:hover,
  .privacy-page .privacy-settings-button[data-theme="dark"]:hover,
  .privacy-page .privacy-settings-button:is([data-theme="light"], [data-theme="warm-grey-mid"]):hover {
    border-color: var(--sage);
    background: var(--sage);
    color: var(--graphite);
  }
}

/* Samma storlek och höjd som e-postknappen där båda kan förekomma. */
@media (max-width: 1199px) {
  .privacy-page .privacy-settings-button {
    --privacy-button-size: 44px;
  }
}

/* Knappen ska inte ligga kvar över öppen meny eller öppen dialog. */
body.is-menu-open .privacy-settings-button,
body:has(.cookie-dialog[open]) .privacy-settings-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}


/* ==========================================================================
   Bildhover i Referenser-sidans staplade layout
   --------------------------------------------------------------------------
   Över 1100px bärs hovern av det diagonala clip-path-snittet. Under 1100px
   är bilden rektangulär och snittet nollställt, så samma uttryck kan inte
   användas. Här återanvänds i stället sidans etablerade rektangulära
   bildeffekt (samma scale som .secondary-case__media img).

   Guardad bakom hover/pointer så att coarse pointer inte får påtvingad
   desktop-hover, sticky hover efter tap eller krav på dubbeltryck.
   Tangentbord täcks av :focus-within-regeln i 1100px-blocket ovan.
   ========================================================================== */
@media (max-width: 1100px) and (hover: hover) and (pointer: fine) {
  .references-case-system-f-page .case-system-f:hover .case-system-f__media img {
    transform: scale(1.045);
  }
}
