/* Agmenta Holding AB */

/* Typsnitten ligger lokalt (SIL Open Font License), latin-delen räcker för svenska */
@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/bodoni-moda.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/bodoni-moda-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/familjen-grotesk.woff2") format("woff2");
}

:root {
  --ivory: #F4F0E8;
  --bone: #EAE3D6;
  --ink: #0E1830;
  --ink-2: #15213F;
  --ink-3: #1C2A4D;
  --brass: #B08A5A;
  --brass-hi: #CBA97F;
  --brass-text: #87663C;
  --brass-faint: rgba(176, 138, 90, .3);
  --green: #3F8F6B;
  --green-hi: #6CC79C;
  --muted: #5A6072;
  --muted-dk: #A3A9B8;
  --line: rgba(14, 24, 48, .14);
  --line-dk: rgba(244, 240, 232, .14);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1400px;
  --hdr: 84px;
  --ease: cubic-bezier(.19, .8, .2, 1);

  --logo-gold: #bc996f;
  --logo-arc: #cfaa87;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) - 1px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--ivory); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; font-size: 14px;
}
.skip:focus { top: 12px; }

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

/* ---------- Header ---------- */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.hdr.scrolled {
  background: rgba(244, 240, 232, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-color: var(--line);
}
.hdr.on-dark { color: var(--ivory); background: rgba(14, 24, 48, .82); border-color: var(--line-dk); }
.hdr.hide { transform: translateY(-100%); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-logo { display: block; }
.logo { width: 148px; height: auto; overflow: visible; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; letter-spacing: .01em; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active::after { background: var(--brass); }
.nav .nav-cta {
  padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover, .nav .nav-cta.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.hdr.on-dark .nav .nav-cta:hover, .hdr.on-dark .nav .nav-cta.active { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.menu-btn {
  display: none; align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px 0; color: inherit; cursor: pointer;
  font: 500 15px/1 var(--sans);
}
.menu-btn i { position: relative; width: 22px; height: 8px; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 6.5px; }
.menu-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--ivory);
  padding-top: var(--hdr);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu[hidden] { display: block; visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .hdr { color: var(--ivory); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: 32px 40px; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  font: 400 clamp(40px, 11vw, 64px)/1.15 var(--serif);
  padding: 10px 0; border-bottom: 1px solid var(--line-dk);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu-nav a:hover { color: var(--brass-hi); }
.menu-open .menu-nav a { opacity: 1; transform: none; }
.menu-open .menu-nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-nav a:nth-child(4) { transition-delay: .15s; }
.menu-foot { color: var(--muted-dk); font-size: 15px; line-height: 1.6; }

/* ---------- Shared ---------- */

.sec { padding-block: clamp(96px, 13vw, 200px); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -.02em;
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.arw { position: relative; width: 22px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.arw::after {
  content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .arw { width: 30px; }

.band { margin: 0; overflow: hidden; background: var(--bone); position: relative; }
.band picture { display: block; width: 100%; height: 100%; }
.band img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: calc(var(--hdr) + clamp(48px, 9vh, 120px)); overflow: hidden; }

.hero-arc {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(420px, 52vw, 860px); height: auto;
  right: clamp(-340px, -15vw, -80px); top: calc(var(--hdr) - 24px);
}
.hero-arc path {
  fill: none; stroke: var(--brass); stroke-width: .06;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .75;
  transition: stroke-dashoffset 1.4s cubic-bezier(.6, .05, .2, 1) .1s;
}
.loaded .hero-arc path { stroke-dashoffset: 0; }

.hero .wrap { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(54px, 11.2vw, 176px);
  line-height: .98;
  letter-spacing: -.03em;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero-title .ln:last-child { margin-bottom: 0; }
.hero-title .ln > span { display: inline-block; }
.js .hero-title .ln > span { transform: translateY(125%); transition: transform .9s var(--ease); }
.js .hero-title .ln:nth-child(2) > span { transition-delay: .08s; }
.loaded .hero-title .ln > span { transform: none !important; }
.hero-title strong { font-weight: 400; color: var(--brass-text); }

.hero-intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 120px);
  margin-top: clamp(48px, 8vh, 96px); padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-sub { font: 500 15px/1.5 var(--sans); letter-spacing: .01em; }
.hero-sub span { color: var(--muted); font-weight: 400; }
.hero-copy { max-width: 620px; }
.hero-copy p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--ink); }
.hero-copy p + p { margin-top: .7em; }
.hero-copy .btn { margin-top: 36px; }

.band-hero { margin-top: clamp(56px, 9vh, 104px); aspect-ratio: 1300 / 520; }
.js .band-hero { clip-path: inset(6% 4% 6% 4%); transition: clip-path 1s var(--ease); transform: none; opacity: 1; }
.js .band-hero.in { clip-path: inset(0 0 0 0); }
.band-hero img { object-position: 60% 50%; transform: scale(1.05); }

/* KPI strip */
.kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.kpis-cap {
  grid-column: 1 / -1;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 22px 0 0;
}
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 28px 30px 0;
}
.kpi + .kpi { padding-left: 28px; border-left: 1px solid var(--line); }
.kpi-label { font-size: 14px; color: var(--muted); }
.kpi-link { transition: background-color .5s var(--ease); }
.kpi-link:hover { background: rgba(14, 24, 48, .035); }
.kpi-go {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.kpi-go .arw { width: 14px; }
.kpi-link:hover .kpi-go { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.kpi-link:hover .kpi-go .arw { width: 18px; }
.kpi-val {
  font-family: var(--serif); font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.kpi-val b { font-weight: 400; }
.kpi-val small { font-family: var(--sans); font-size: 14px; letter-spacing: .08em; margin-left: 8px; color: var(--muted); vertical-align: .9em; }
.mini { position: relative; display: block; height: 4px; margin: 10px 0 20px; background: var(--line); border-radius: 2px; }
.mini i {
  position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--brass);
  left: calc(var(--a) / 200 * 100%); width: calc((var(--b) - var(--a)) / 200 * 100%);
  transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s;
}
.kpi.in .mini i, .no-js .mini i { transform: scaleX(1); }
.mini em {
  position: absolute; top: 11px; font: 500 12px/1 var(--sans); font-style: normal; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mini-lo { left: calc(var(--a) / 200 * 100%); }
.mini-hi { left: calc(var(--b) / 200 * 100%); transform: translateX(-100%); }
.mini-max { right: 0; color: var(--muted) !important; font-weight: 400 !important; }
.kpi-status { justify-content: flex-end; }
.kpi-status p { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; max-width: 260px; }
.kpi-status .pulse { position: absolute; left: 0; top: .5em; }

.pulse {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3F8F6B; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #3F8F6B;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Om Agmenta ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 120px); align-items: start; }
.lead { font-size: clamp(20px, 1.75vw, 26px); line-height: 1.5; letter-spacing: -.005em; }
.lead em { font-style: normal; color: var(--brass-text); background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; }

.band-city { margin-top: clamp(64px, 9vw, 128px); aspect-ratio: 1300 / 490; }
.band-city::after { display: none; }
.band-city img { transform: scale(1.12); }

.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 120px); margin-top: clamp(48px, 6vw, 80px); }
.cols p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 560px; }
.cols p:first-child { grid-column: 1; }
.cols p:last-child { grid-column: 2; }

/* ---------- Motto ---------- */

.motto { background: var(--ink); color: var(--ivory); padding-block: clamp(110px, 15vw, 220px) clamp(80px, 10vw, 150px); text-align: center; overflow: hidden; }
.motto-pre { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dk); }
.motto-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(46px, 8.6vw, 148px); line-height: 1.02; letter-spacing: -.025em;
  margin-top: 28px; text-wrap: balance;
}
.horizon { position: relative; height: 64px; margin-top: clamp(64px, 9vw, 120px); text-align: left; }
.hz-line {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--brass-hi) 0 50%, rgba(203, 169, 127, .45) 62%, rgba(203, 169, 127, 0) 100%);
  transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease) .2s;
}
.horizon.in .hz-line { transform: scaleX(1); }
.hz-tick { position: absolute; top: 0; left: calc(var(--x) * 1%); width: 1px; height: 10px; background: var(--brass-hi); opacity: 0; transition: opacity .8s var(--ease); }
.horizon.in .hz-tick { opacity: 1; transition-delay: calc(var(--x) * 18ms + .4s); }
.hz-tick i {
  position: absolute; top: 20px; left: 0; transform: translateX(-50%);
  font: 400 13px/1 var(--sans); font-style: normal; color: var(--muted-dk); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hz-tick:first-of-type i { transform: none; }
.hz-50 { height: 18px; top: -8px; }
.hz-50::before {
  content: ""; position: absolute; left: -6px; top: 2px; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--brass-hi); background: var(--ink);
}
.hz-50::after { content: ""; position: absolute; left: -2px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-hi); }
.hz-50 i { top: 28px; color: var(--ivory); font-weight: 500; }

/* ---------- Hur vi jobbar ---------- */

.how { background: var(--ivory); }
.rows { margin-top: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 120px);
  padding-block: clamp(36px, 4.4vw, 64px);
  border-top: 1px solid var(--line);
  position: relative;
}
.row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.row:hover::before { transform: scaleX(1); }
.row h3 {
  font-family: var(--serif); font-size: clamp(28px, 2.7vw, 42px); line-height: 1.12; letter-spacing: -.015em;
  max-width: 14em;
}
.row h3 .pre {
  display: block; margin-bottom: 14px;
  font: 500 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-text);
}
.row-body p { font-size: 17.5px; line-height: 1.75; color: var(--muted); max-width: 640px; }
.row-body p + p { margin-top: 1em; }

.closer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  margin-top: clamp(80px, 10vw, 150px);
}
.closer p {
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.14; letter-spacing: -.02em;
  max-width: 22em; text-wrap: pretty;
}
.closer p span { color: var(--brass-text); }

/* ---------- Kontakt ---------- */

.contact { background: var(--ink); color: var(--ivory); }
.contact .btn { border-color: var(--ivory); }
.contact-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(32px, 6vw, 120px); align-items: start; }
.contact-intro .addr { margin-top: 40px; font-size: 17px; line-height: 1.6; color: var(--ivory); }
.contact-intro .addr strong { font-weight: 500; }
.contact-intro p { margin-top: 24px; color: var(--muted-dk); font-size: 17px; line-height: 1.75; max-width: 520px; }
.contact-intro .addr + p { margin-top: 40px; }

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-dk);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
  margin-top: clamp(0px, 1vw, 12px);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dk); }
.panel-head h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px;
  border: 1px solid var(--line-dk); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--muted-dk);
}

.rc { margin-top: 18px; }
.rc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
.rc-label { align-self: center; font-size: 15px; color: var(--ivory); padding-right: 12px; }
.rc-track {
  position: relative; height: 84px;
  background-image:
    linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
  background-size: 25% 100%;
  border-right: 1px solid var(--line-dk);
}
.rc-bar {
  position: absolute; top: 50%; height: 10px; margin-top: 4px; border-radius: 5px;
  left: calc(var(--a) / 200 * 100%); width: calc((var(--b) - var(--a)) / 200 * 100%);
  background: linear-gradient(90deg, var(--brass), var(--brass-hi));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease), box-shadow .3s;
  cursor: default; outline-offset: 6px;
}
.rc-row:nth-child(2) .rc-bar { transition-delay: .15s; }
.panel.in .rc-bar { transform: scaleX(1); }
.rc-bar:hover, .rc-bar:focus-visible { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3px var(--brass-hi); }
.rc-bar i {
  position: absolute; bottom: calc(100% + 10px);
  font: 500 13px/1 var(--sans); font-style: normal; color: var(--ivory);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease) 1.2s;
}
.panel.in .rc-bar i { opacity: 1; }
.rc-bar .lo { left: 0; }
.rc-bar .hi { right: 0; }
.rc-axis .rc-track { height: 34px; background-image: none; border-right: 0; border-top: 1px solid var(--line-dk); }
.rc-axis i {
  position: absolute; top: 12px; left: calc(var(--x) / 200 * 100%); transform: translateX(-50%);
  font: 400 12px/1 var(--sans); font-style: normal; color: var(--muted-dk); font-variant-numeric: tabular-nums;
}
.rc-axis i:first-child { transform: none; }
.rc-axis i:last-child { transform: translateX(-100%); }


.people {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line-dk);
}
.person { padding: clamp(36px, 4vw, 56px) clamp(24px, 4vw, 64px) 0 0; display: flex; flex-direction: column; }
.person + .person { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--line-dk); }
.person h3 { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.person > p { margin-top: 22px; color: var(--muted-dk); font-size: 17px; line-height: 1.7; max-width: 520px; }
.person dl { margin: 26px 0 0; }
.person dt { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 10px; }
.person dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ivory); padding: 10px 0; border-top: 1px solid var(--line-dk); max-width: 520px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 32px; }
.lnk {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 20px;
  border: 1px solid var(--line-dk); border-radius: 999px;
  font-size: 15px; color: var(--ivory); font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
a.lnk:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.ico { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-tel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M5 3.5h3.2l1.6 4.4-2.2 1.5a11.5 11.5 0 0 0 7 7l1.5-2.2 4.4 1.6V19a1.5 1.5 0 0 1-1.6 1.5C10.7 20 4 13.3 3.5 5.1A1.5 1.5 0 0 1 5 3.5Z'/%3E%3C/svg%3E"); }
.ico-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='1.5'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }

/* ---------- Formulär ---------- */

.inquiry {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 120px);
  align-items: start; margin-top: clamp(80px, 10vw, 140px);
  scroll-margin-top: calc(var(--hdr) + 24px);
}
.inq-intro { position: sticky; top: calc(var(--hdr) + 32px); }
.inq-intro h3 { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 58px); line-height: 1.06; letter-spacing: -.02em; }
.inq-intro p { margin-top: 24px; color: var(--muted-dk); font-size: 17px; line-height: 1.7; max-width: 440px; }

.inq-box { background: var(--ivory); color: var(--ink); border-radius: 4px; padding: clamp(24px, 3.4vw, 48px); position: relative; }
.form { display: flex; flex-direction: column; gap: 32px; }
.form[hidden] { display: none; }
.f-type { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-type legend, .fld > span, .f-price-head label {
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.f-type legend { padding: 0; margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 15px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

.f-price { transition: opacity .4s var(--ease); }
.f-price[hidden] { display: none; }
.f-price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.f-price-head output {
  font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.f-range { position: relative; height: 28px; }
.f-range::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); border-radius: 1px; }
.f-band {
  position: absolute; top: 11px; height: 6px; border-radius: 3px; background: var(--brass-faint);
  left: calc(var(--a, 0) / 250 * 100%); width: calc((var(--b, 0) - var(--a, 0)) / 250 * 100%);
  transition: left .5s var(--ease), width .5s var(--ease);
}
.f-range input {
  -webkit-appearance: none; appearance: none; position: relative; z-index: 1;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
.f-range input::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.f-range input::-moz-range-track { height: 28px; background: transparent; }
.f-range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--ink); border: 6px solid var(--ivory); box-shadow: 0 0 0 1px var(--ink);
  transition: transform .25s var(--ease);
}
.f-range input::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink);
  border: 6px solid var(--ivory); box-shadow: 0 0 0 1px var(--ink);
}
.f-range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.f-range input:focus-visible { outline: none; }
.f-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--brass-faint); }
.f-scale { position: relative; height: 18px; margin-top: 6px; }
.f-scale i {
  position: absolute; top: 0; font: 400 12px/1 var(--sans); font-style: normal; color: var(--muted);
  font-variant-numeric: tabular-nums; transform: translateX(-50%);
}
.f-scale i:nth-child(1) { left: 0; transform: none; }
.f-scale i:nth-child(2) { left: 20%; }
.f-scale i:nth-child(3) { left: 40%; }
.f-scale i:nth-child(4) { left: 60%; }
.f-scale i:nth-child(5) { left: 80%; }
.f-scale i:nth-child(6) { left: 100%; transform: translateX(-100%); }
.f-match {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); transition: color .4s, border-color .4s, background-color .4s;
}
.f-match[hidden] { display: none; }
.f-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .4s; }
.f-match.ok { color: var(--ink); border-color: rgba(63, 143, 107, .45); background: rgba(63, 143, 107, .08); }
.f-match.ok .f-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 143, 107, .16); }

.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-wide { grid-column: 1 / -1; }
.fld input, .fld textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(14, 24, 48, .28); border-radius: 0;
  background: transparent; color: var(--ink); padding: 10px 0 12px;
  font: 400 17px/1.4 var(--sans); outline: none; resize: vertical;
  transition: border-color .3s var(--ease);
}
.fld textarea { min-height: 96px; }
.fld input:focus, .fld textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.fld input:user-invalid { border-bottom-color: #B4553C; box-shadow: 0 1px 0 #B4553C; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.f-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--muted); cursor: pointer; max-width: 340px; }
.f-consent input {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1px solid rgba(14, 24, 48, .4); border-radius: 3px; background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color .3s, border-color .3s;
}
.f-consent input::after {
  content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory);
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease);
}
.f-consent input:checked { background: var(--ink); border-color: var(--ink); }
.f-consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.f-consent input:user-invalid { border-color: #B4553C; }

.btn-solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); height: 56px; padding: 0 30px; cursor: pointer; font-family: var(--sans); }
.btn-solid:hover { background: var(--ink-3); }
.btn-solid[disabled] { opacity: .6; cursor: progress; }
.f-error { font-size: 14.5px; color: #B4553C; }

.f-done { text-align: center; padding: clamp(48px, 7vw, 96px) 12px; }
.f-done:focus { outline: none; }
.f-check {
  display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--brass); position: relative;
}
.f-check::after {
  content: ""; width: 24px; height: 12px; border-left: 1.5px solid var(--brass-text); border-bottom: 1.5px solid var(--brass-text);
  transform: translateY(-3px) rotate(-45deg);
}
.f-done-t { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; margin-top: 28px; letter-spacing: -.02em; }
.f-done p:not(.f-done-t) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.f-demo { display: none; }
.demo .f-demo { display: block; font-size: 14px !important; }

.demo-badge {
  display: none; position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 46;
  padding: 7px 12px; border-radius: 999px; background: var(--brass); color: var(--ink);
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}
.demo .demo-badge { display: block; }

.ico-save { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20c.8-3.6 3.6-5.5 7-5.5s6.2 1.9 7 5.5'/%3E%3Cpath d='M19 3.5v5M16.5 6h5'/%3E%3C/svg%3E"); }
button.lnk { background: transparent; font-family: var(--sans); cursor: pointer; }
button.lnk:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.fab {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: none; align-items: center; gap: 14px; height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--ivory); border-radius: 999px;
  font-size: 15px; font-weight: 500; box-shadow: 0 10px 30px rgba(5, 10, 25, .28);
  transform: translate(-50%, calc(100% + 64px)); transition: transform .6s var(--ease);
}
.fab.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */

.ftr { background: var(--ivory); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.ftr-nav { display: flex; flex-direction: column; align-items: flex-start; }
.ftr-nav a {
  font: 400 clamp(34px, 4.2vw, 60px)/1.1 var(--serif); letter-spacing: -.02em;
  transition: color .3s, transform .5s var(--ease);
}
.ftr-nav a:hover { color: var(--brass-text); transform: translateX(10px); }
.ftr-meta { font-size: 14px; line-height: 1.8; color: var(--muted); text-align: right; }
.ftr-meta span { color: var(--line); margin: 0 4px; }
.ftr-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ftr-logo {
  width: 100%; height: auto; color: var(--ink);
  margin-top: clamp(64px, 8vw, 120px); margin-bottom: clamp(28px, 4vw, 64px);
  padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line);
}

/* ---------- Tooltip ---------- */

.tip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--ivory); color: var(--ink);
  padding: 8px 12px; border-radius: 4px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(5, 10, 25, .3);
  transform: translate(-50%, calc(-100% - 12px));
}

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

@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-status { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --hdr: 72px; }
  .logo { width: 128px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-intro, .split, .cols, .row, .contact-top, .inquiry { grid-template-columns: minmax(0, 1fr); }
  .cols p:first-child, .cols p:last-child { grid-column: auto; }
  .cols { gap: 24px; }
  .band-city { aspect-ratio: 16 / 10; }
  .band-city img { object-position: 47% 50%; }
  .inq-intro { position: static; }
  .fab { display: inline-flex; }
  .hero-arc { width: 120vw; right: -62vw; top: 40px; }
  .band-hero { aspect-ratio: 4 / 3; }
  .band-hero img { object-position: 74% 50%; }
  .closer { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .person, .person + .person { padding: 40px 0 48px; border-left: 0; }
  .person + .person { border-top: 1px solid var(--line-dk); }
  .ftr-top { grid-template-columns: minmax(0, 1fr); }
  .ftr-meta { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-title { font-size: 12.4vw; }
  .hero-title .ln { white-space: nowrap; }
  .kpi { padding: 18px 14px 22px 0; }
  .kpi + .kpi { padding-left: 14px; }
  .kpi-go { top: 16px; right: 12px; width: 32px; height: 32px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .inq-box { margin-inline: calc(var(--pad) * -.5); }
  .f-foot .btn-solid { width: 100%; justify-content: center; }
  .seg span { height: 40px; padding: 0 14px; font-size: 14px; }
  .kpi-val { font-size: clamp(32px, 10vw, 42px); white-space: nowrap; }
  .kpi-val small { display: block; margin: 10px 0 0; font-size: 12px; vertical-align: baseline; }
  .kpi-status p { font-size: 14px; }
  .rc-row { grid-template-columns: 92px minmax(0, 1fr); }
  .rc-label { font-size: 14px; }
  .hz-tick:not(.hz-50):not(:first-of-type) i { display: none; }
  .ftr-meta span { margin: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .hero-title .ln > span { transform: none; }
  .hero-arc path { stroke-dashoffset: 0; }
  .js .band-hero { clip-path: none; }
  .fab { transition: none; }
  .band img { transform: none !important; }
}
