/* System Norge AS · stylesheet
 * Dark page over a fixed blue background, Transducer type, one yellow accent, frosted glass panels.
 * Order: fonts, tokens, base, controls, nav, hero, sections, panels and cards, photos, quotes,
 * logos, contact band, footer, terms page, motion. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Transducer"; src: url("./fonts/Transducer-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Transducer"; src: url("./fonts/Transducer-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap-l: 176px;
  --z-sticky-nav: 300; --z-toast: 500;
  --color-paper: oklch(14.9% 0.006 264); --color-paper-2: oklch(19% 0.008 264); --color-paper-3: oklch(24% 0.01 264);
  --color-ink: oklch(97% 0.004 264); --color-ink-2: oklch(84.5% 0.008 264); --color-muted: oklch(70% 0.01 264);
  --color-rule: oklch(30% 0.01 264);
  --color-accent: oklch(95.4% 0.216 114); --color-accent-ink: oklch(14.9% 0.006 264); --color-focus: oklch(95.4% 0.216 114);
  --glass-line: color-mix(in oklab, white 6%, transparent);
  --font-display: "Transducer", system-ui, sans-serif; --font-body: "Transducer", system-ui, sans-serif;
  --font-dict: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius-panel: 28px; --radius-card: 18px; --radius-pill: 999px;
  --tracking-display: -0.02em;
}
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap-l: 96px; --gap-columns: 16px; --radius-panel: 22px; --radius-card: 14px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* The blue background stays still behind the page while the content scrolls over it */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--color-paper) url("./img/bg-wide.png") center / cover no-repeat; }
@media (orientation: portrait) { body::before { background-image: url("./img/bg-tall.png"); } }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); }
h2 { max-width: 30ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
b, strong { font-weight: 500; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg);
  border: 1px solid var(--color-accent); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 500 var(--text-md)/1 var(--font-body);
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--m-in) var(--ease-out), color var(--m-in) var(--ease-out), border-color var(--m-in) var(--ease-out), transform var(--m-out) var(--ease-out);
}
.btn:hover { background: transparent; color: var(--color-accent); }
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: var(--m-press); }
.btn:focus-visible { outline-offset: 3px; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-ink-2); }
.btn--quiet:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); }
@media (max-width: 40rem) { .actions .btn { flex: 1 1 100%; } }

.link {
  font: 500 var(--text-lg)/1.2 var(--font-body);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}

/* ---------- Nav: a floating glass pill ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.nav {
  position: fixed; top: var(--space-md); left: 50%; z-index: var(--z-sticky-nav);
  translate: -50% 0; width: min(calc(100% - 2 * var(--gutter)), 56rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  min-height: 60px; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  background: linear-gradient(140deg, color-mix(in oklab, white 10%, transparent), color-mix(in oklab, white 4%, transparent)), color-mix(in oklab, var(--color-paper) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line); border-radius: var(--radius-pill);
}
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a:not(.btn) {
  font-size: var(--text-md); text-decoration: none; padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent; transition: border-color var(--dur-short) var(--ease-out);
}
.nav__links a:not(.btn):hover { border-bottom-color: var(--color-ink-2); }
.nav__links a[aria-current="page"]:not(.btn) { border-bottom-color: var(--color-accent); }
.nav__links .btn { min-height: 44px; }
.nav__toggle { display: none; min-height: 44px; padding: 0 var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.nav__toggle:hover { background: var(--color-paper-3); }
.nav__toggle:active { transform: translateY(1px); }

@media (max-width: 58rem) {
  .nav { flex-wrap: wrap; border-radius: var(--radius-panel); }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: var(--space-xs) var(--space-md); }
  .nav__links.is-open { display: flex; }
  /* While the menu is open it needs a nearly solid ground, or the page text shows through the list */
  .nav:has(.nav__links.is-open) { background: linear-gradient(140deg, color-mix(in oklab, white 8%, transparent), color-mix(in oklab, white 3%, transparent)), color-mix(in oklab, var(--color-paper) 94%, transparent); }
  .nav__links a:not(.btn) { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-lg); }
  .nav__links .btn { margin-top: var(--space-md); }
}

/* Salg og installasjon: reads as a plain link. When revealed, a Bravur System box blooms out from the centre,
   its purple-to-pink gradient turning slowly, while the text dissolves and their logo comes into focus.
   Revealed by hover with a mouse or by keyboard focus. A press on a phone shows the centred .partner-stage instead. */
.nav__links a.nav__partner { --disc: 260px; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; }
/* The turning gradient: a square larger than the box, spinning behind it */
.nav__partner::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: var(--disc); height: var(--disc); margin: calc(var(--disc) / -2) 0 0 calc(var(--disc) / -2);
  background: conic-gradient(from 0deg, #180021 0deg, #300530 70deg, #C92687 150deg, #300530 230deg, #180021 300deg, #180021 360deg);
  clip-path: circle(0 at 50% 50%); transition: clip-path 620ms var(--ease-enter);
  animation: partner-turn 9s linear infinite paused;
}
/* A dark veil just inside the edge, so the gradient glows around the rim and stays soft behind the logo */
.nav__partner::after {
  content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: inherit;
  background: linear-gradient(115deg, rgb(24 0 33 / 0.86), rgb(48 5 48 / 0.62));
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.nav__partner span, .nav__partner img { grid-area: 1 / 1; }
.nav__partner span { transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 420ms var(--ease-out); }
.nav__partner img { justify-self: center; height: 27px; width: auto; opacity: 0; filter: blur(8px); transform: scale(0.82); transition: opacity 320ms var(--ease-out), filter 420ms var(--ease-out), transform 620ms var(--ease-enter); }

/* Revealed. The text spreads with a transform, never letter-spacing: that would widen the link and push the other items. */
.nav__partner:focus-visible::before { clip-path: circle(calc(var(--disc) * 0.54) at 50% 50%); animation-play-state: running; }
.nav__partner:focus-visible::after { opacity: 1; }
.nav__partner:focus-visible span { opacity: 0; filter: blur(6px); transform: scaleX(1.12); }
.nav__partner:focus-visible img { opacity: 1; filter: none; transform: none; transition-delay: 140ms; }
@media (hover: hover) and (pointer: fine) {
  .nav__partner:hover::before { clip-path: circle(calc(var(--disc) * 0.54) at 50% 50%); animation-play-state: running; }
  .nav__partner:hover::after { opacity: 1; }
  .nav__partner:hover span { opacity: 0; filter: blur(6px); transform: scaleX(1.12); }
  .nav__partner:hover img { opacity: 1; filter: none; transform: none; transition-delay: 140ms; }
}

/* In the bar: a pill the width of the text and the height of "Kontakt oss" */
@media (min-width: 58.0625rem) {
  .nav__links a.nav__partner { display: inline-grid; justify-items: center; min-height: 44px; padding: 0 0 2px; border: 0; border-radius: var(--radius-pill); }
}
/* In the phone menu: a plain full-width row */
@media (max-width: 58rem) {
  .nav__links a.nav__partner { border-radius: var(--radius-card); }
  .nav__partner span { justify-self: start; }
}
/* The wrapper keeps the note anchored to the link without changing the menu's spacing. The note itself only exists on desktop. */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__note { display: none; }
@media (max-width: 58rem) { .nav__item { display: grid; } }

/* A short note about Bravur System under the link: a clipped reveal from the top, the text coming into focus after it */
@media (min-width: 58.0625rem) {
  .nav__note {
    display: block; position: absolute; top: calc(100% + 20px); left: 50%; width: 22rem; margin-left: -11rem; z-index: 2; pointer-events: none;
    padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card);
    background: linear-gradient(140deg, rgb(48 5 48 / 0.97), rgb(24 0 33 / 0.97));
    box-shadow: inset 0 0 0 1px rgb(201 38 135 / 0.35), 0 24px 48px -20px rgb(0 0 0 / 0.7);
    font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px); clip-path: inset(0 0 100% 0 round var(--radius-card));
    transition: opacity 260ms var(--ease-out), transform 520ms var(--ease-enter), clip-path 520ms var(--ease-enter), visibility 0s linear 520ms;
  }
  .nav__note > span { display: block; opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity 320ms var(--ease-out), filter 420ms var(--ease-out), transform 520ms var(--ease-enter); }
  .nav__partner:is(:hover, :focus-visible) ~ .nav__note { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 round var(--radius-card)); transition-delay: 0s; }
  .nav__partner:is(:hover, :focus-visible) ~ .nav__note > span { opacity: 1; filter: none; transform: none; transition-delay: 180ms; }
}

@keyframes partner-turn { to { transform: rotate(360deg); } }

/* A press on a phone: the Bravur box and the note rise in the middle of the screen over the tinted veil,
   then site.js follows the link after 3 s. Built by site.js, so it only exists when it is needed. */
.partner-stage {
  position: fixed; inset: 0; z-index: var(--z-toast); pointer-events: none;
  display: grid; place-content: center; justify-items: center; gap: var(--space-lg); padding: var(--space-lg);
}
.partner-stage__logo {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  width: min(20rem, calc(100vw - 2 * var(--space-lg))); min-height: 6.5rem; padding: var(--space-lg); border-radius: var(--radius-panel);
  box-shadow: 0 30px 70px -24px rgb(0 0 0 / 0.8), 0 0 60px -10px rgb(201 38 135 / 0.45);
  opacity: 0; transform: scale(0.6); transition: opacity 420ms var(--ease-out), transform 800ms var(--ease-enter);
}
.partner-stage__logo::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: conic-gradient(from 0deg, #180021 0deg, #300530 70deg, #C92687 150deg, #300530 230deg, #180021 300deg, #180021 360deg);
  animation: partner-turn 9s linear infinite;
}
.partner-stage__logo::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: inherit; background: linear-gradient(115deg, rgb(24 0 33 / 0.86), rgb(48 5 48 / 0.62)); }
.partner-stage__logo img { width: 100%; max-width: 15rem; height: auto; filter: blur(8px); transform: scale(0.8); transition: filter 520ms var(--ease-out) 200ms, transform 3s var(--ease-enter) 200ms; }
.partner-stage__note {
  width: min(20rem, calc(100vw - 2 * var(--space-lg))); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card);
  background: linear-gradient(140deg, rgb(48 5 48 / 0.97), rgb(24 0 33 / 0.97)); box-shadow: inset 0 0 0 1px rgb(201 38 135 / 0.35), 0 24px 48px -20px rgb(0 0 0 / 0.7);
  font-size: var(--text-md); line-height: 1.5; color: var(--color-ink);
  opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0 round var(--radius-card));
  transition: opacity 300ms var(--ease-out) 450ms, transform 640ms var(--ease-enter) 450ms, clip-path 640ms var(--ease-enter) 450ms;
}
.partner-stage__note > span { display: block; opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity 360ms var(--ease-out) 700ms, filter 460ms var(--ease-out) 700ms, transform 560ms var(--ease-enter) 700ms; }
.partner-stage.is-on .partner-stage__logo { opacity: 1; transform: scale(1); }
.partner-stage.is-on .partner-stage__logo img { filter: none; transform: scale(1.12); }
.partner-stage.is-on .partner-stage__note { opacity: 1; transform: none; clip-path: inset(0 round var(--radius-card)); }
.partner-stage.is-on .partner-stage__note > span { opacity: 1; filter: none; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(100dvh, 56.25rem); padding-block: var(--space-3xl) var(--space-2xl); }
.hero .container { position: relative; z-index: 1; display: grid; gap: var(--space-lg); }
.hero h1 { font-size: var(--text-display-s); max-width: 18ch; }
.hero .lead { color: var(--color-ink-2); max-width: 36ch; }

/* Home: the show photo fills the frame and fades into the background, the headline rests at the foot */
.hero--photo { isolation: isolate; min-height: min(100dvh, 60rem); }
.hero--photo .lead { max-width: 44ch; }
.hero__photo { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 20%); mask-image: linear-gradient(to top, transparent 0%, #000 20%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 45%, transparent) 16%, transparent 42%),
    linear-gradient(to bottom, color-mix(in oklab, var(--color-paper) 55%, transparent) 0%, transparent 20%),
    linear-gradient(to right, color-mix(in oklab, var(--color-paper) 62%, transparent) 0%, transparent 58%);
}
@media (max-width: 60rem) {
  .hero--photo { min-height: min(88dvh, 44rem); padding-block: var(--space-4xl) var(--space-xl); }
  .hero__photo img { object-position: 50% 0; height: 62%; }
  .hero__photo::after { background: linear-gradient(to top, var(--color-paper) 38%, color-mix(in oklab, var(--color-paper) 55%, transparent) 55%, transparent 80%), linear-gradient(to bottom, color-mix(in oklab, var(--color-paper) 55%, transparent) 0%, transparent 20%); }
}
@media (max-width: 40rem) { .hero--photo h1 { font-size: clamp(1.625rem, 8.2vw, 2.25rem); } }

/* Inside pages: a plain page head, optionally with a photo beside it */
.hero--page { min-height: 0; padding-block: calc(var(--space-3xl) + var(--space-xl)) var(--space-xl); }
.hero--split .container { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: end; }
.hero__text { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); }
.hero--split .media { grid-column: 8 / span 5; aspect-ratio: 4 / 3; }
@media (max-width: 60rem) {
  .hero__text, .hero--split .media { grid-column: 1 / -1; }
  .hero--split .media { aspect-ratio: 3 / 2; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap-s); }
.section--tall { padding-block: var(--section-gap-l); }
.section--flush { padding-block: 0; }
.section--flush-top { padding-top: 0; }

/* Section head: the name on the left, the lede and its link on the right */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: end; margin-bottom: var(--space-2xl); }
.section-head h2 { grid-column: 1 / span 5; }
.section-head__body { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.section-head__body p { font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink-2); max-width: 44ch; }
.section-head .link:hover { text-decoration-color: var(--color-accent); }
@media (max-width: 60rem) {
  .section-head { margin-bottom: var(--space-xl); }
  .section-head h2, .section-head__body { grid-column: 1 / -1; }
}

/* ---------- Glass panels ---------- */
.glass, .card, .switch, .rows, .doc__toc {
  background: linear-gradient(140deg, color-mix(in oklab, white 10%, transparent) 0%, color-mix(in oklab, white 4%, transparent) 45%, color-mix(in oklab, white 6%, transparent) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-radius: var(--radius-panel);
  box-shadow: inset 0 0 40px color-mix(in oklab, white 5%, transparent), 0 30px 70px -30px rgb(0 0 0 / 0.55);
}
.switch, .about-panel { border-radius: calc(var(--radius-panel) + 4px); }

/* ---------- Photos ---------- */
.media { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-card); background: var(--color-paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
@media (max-width: 40rem) { .media--wide { aspect-ratio: 3 / 2; } }

/* A mosaic of jobs */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(15rem, 27vw, 27rem); gap: var(--gap-columns); }
.mosaic li { grid-column: span 4; }
.mosaic li:nth-child(1) { grid-column: span 7; }
.mosaic li:nth-child(2) { grid-column: span 5; }
@media (max-width: 40rem) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .mosaic li, .mosaic li:nth-child(2) { grid-column: span 1; }
  .mosaic li:nth-child(1) { grid-column: span 2; }
}

/* ---------- Cards: a photo inside a glass panel, the name and one line under it ---------- */
.cards, .services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; gap: var(--space-md); align-content: start; padding: var(--space-sm) var(--space-sm) var(--space-lg); }
.card > h2, .card > h3, .card > p { padding-inline: var(--space-sm); }
.card .media { aspect-ratio: 4 / 5; margin-bottom: var(--space-xs); }
.card h2, .card h3 { font-size: var(--text-2xl); line-height: 1.1; }
.card p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; max-width: 30ch; }

/* Services: camera production and AV lead, sound and light follow as compact cards */
.card--lead .media { aspect-ratio: 3 / 2; }
.card--lead h2, .card--lead h3 { font-size: var(--text-section); line-height: 1.05; }
.card--lead p { max-width: 40ch; }
.card--minor { grid-template-columns: clamp(6rem, 12vw, 11rem) minmax(0, 1fr); column-gap: var(--space-lg); align-items: center; padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm); }
.card--minor .media { aspect-ratio: 1 / 1; margin-bottom: 0; }
.card--minor > div:last-child { display: grid; gap: var(--space-xs); }

@media (max-width: 60rem) { .card:not(.card--lead) h2, .card:not(.card--lead) h3 { font-size: var(--text-xl); } }
@media (max-width: 40rem) {
  .cards, .services { grid-template-columns: minmax(0, 1fr); }
  .cards .media { aspect-ratio: 1 / 1; }
  .card--lead h2, .card--lead h3 { font-size: clamp(1.5rem, 7.2vw, 2rem); }
}

/* ---------- Tile: one large link to another page, opening on a photo ---------- */
.tiles { display: grid; }
.tile {
  display: flex; flex-direction: column; min-height: 18rem; overflow: hidden;
  border-radius: var(--radius-panel); background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--m-in) var(--ease-out);
}
.tile:hover { background: var(--color-ink); }
.tile:hover .link { text-decoration-thickness: 4px; }
.tile:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; }
.tile h2 { font-size: var(--text-section); }
.tile p { margin-top: var(--space-md); max-width: 34ch; font-size: var(--text-lead); line-height: 1.4; }
.tile__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); padding: var(--space-xl); }
@media (min-width: 60.0625rem) {
  .tile { flex-direction: row; min-height: 24rem; }
  .tile__media { flex: 0 0 46%; aspect-ratio: auto; }
}
@media (max-width: 40rem) { .tile__body { padding: var(--space-lg); gap: var(--space-lg); } }

/* ---------- Om System: photo and statement share one panel ---------- */
.about-panel { padding: var(--space-md); align-items: center; }
.about__photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.about { grid-column: 7 / span 6; align-self: center; display: grid; gap: var(--space-xl); padding: var(--space-lg) var(--space-xl) var(--space-lg) 0; }
.about h2 { font-size: var(--text-lg); letter-spacing: 0; color: var(--color-muted); }
.about .statement { font: 500 var(--text-section)/1.1 var(--font-display); max-width: 22ch; letter-spacing: var(--tracking-display); }
.about p:not(.statement) { color: var(--color-ink-2); }
/* The statement lights up word by word as it comes into view (site.js) */
.is-lightup .w { color: color-mix(in oklab, var(--color-ink) 30%, transparent); transition: color 220ms var(--ease-out); }
.is-lightup .w.is-lit { color: var(--color-ink); }
@media (max-width: 60rem) {
  .about-panel { padding: var(--space-sm); row-gap: var(--space-lg); }
  .about__photo, .about { grid-column: 1 / -1; }
  .about__photo { aspect-ratio: 4 / 3; }
  .about { padding: var(--space-xs) var(--space-xs) var(--space-md); }
}

/* ---------- Rows: large name on the left, a label on the right (Kontakt) ---------- */
.rows { padding-inline: var(--space-xl); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.row:last-child { border-bottom: 0; }
.row h2 { grid-column: 1 / span 7; font-size: var(--text-section); max-width: none; }
.row h2 a { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 0.16em; transition: text-decoration-thickness var(--dur-short) var(--ease-out); }
.row h2 a:hover { text-decoration-thickness: 6px; }
.row p { grid-column: 8 / span 5; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; }
@media (max-width: 60rem) {
  .row { row-gap: var(--space-sm); }
  .row h2, .row p { grid-column: 1 / -1; }
  .row p { margin-top: var(--space-xs); }
}
@media (max-width: 40rem) { .rows { padding-inline: var(--space-lg); } }

/* ---------- Customer quotes: tabs on the left, one quote at a time on the right ---------- */
.switch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; padding: var(--space-2xl) var(--space-xl); }
.switch__head { grid-column: 1 / span 4; display: grid; gap: var(--space-xl); align-content: start; }
.switch__tabs { display: grid; gap: var(--space-xs); justify-items: start; }
.switch__tab {
  padding: var(--space-xs) 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--color-muted); font: 500 var(--text-lg)/1.2 var(--font-body); text-align: left;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.switch__tab:hover { color: var(--color-ink); }
.switch__tab:active { transform: translateY(1px); }
.switch__tab[aria-selected="true"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.switch__panels { grid-column: 6 / span 7; display: grid; gap: var(--space-2xl); }
/* With script the quotes are stacked in one cell so the panel keeps the height of the longest one */
.js .switch__panels { gap: 0; }
.js .switch__panels > .quote { grid-area: 1 / 1; }
.js .switch__panels > .quote[hidden] { display: block !important; visibility: hidden; }
.quote { margin: 0; display: grid; gap: var(--space-lg); align-content: start; }
.quote blockquote { margin: 0; font-size: var(--text-2xl); line-height: 1.35; max-width: 40ch; }
.quote figcaption { color: var(--color-ink-2); font-size: var(--text-md); }
.quote figcaption b { display: block; color: var(--color-ink); }
@media (max-width: 60rem) {
  .switch__head, .switch__panels { grid-column: 1 / -1; }
  .switch__tabs { gap: 0; }
  .switch__tab { min-height: 44px; }
}
@media (max-width: 40rem) {
  .switch { padding: var(--space-lg); }
  .quote blockquote { font-size: var(--text-lg); line-height: 1.45; }
}

/* ---------- Customer logos: one colour, drifting slowly sideways ---------- */
.logos { padding-block: 0 var(--section-gap-s); }
.section--flush + .logos { padding-top: var(--section-gap-s); }
.logos + .section { padding-top: 0; }
.logos__title { max-width: none; margin: 0 0 var(--space-xl); padding-inline: var(--gutter); text-align: center; font: 400 var(--text-lg)/1.3 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.logos__view { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
/* Without script (or with reduced motion): a still, centred, wrapping row */
.logos__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-xl) var(--space-3xl); }
.logos__track li { flex: none; display: flex; align-items: center; }
.logos__track img { opacity: 0.72; transition: opacity var(--dur-short) var(--ease-out); }
.logos__track li:hover img { opacity: 1; }
/* With script: two copies of the row on one line, moving left by exactly one copy */
.logos__view.is-running { display: flex; }
.logos__view.is-running .logos__track { flex: none; flex-wrap: nowrap; justify-content: flex-start; padding: 0 calc(var(--space-3xl) / 2); animation: logos-drift 70s linear infinite; }
.logos__view.is-running:hover .logos__track { animation-play-state: paused; }
@keyframes logos-drift { to { transform: translateX(-100%); } }
@media (max-width: 40rem) {
  .logos__track { gap: var(--space-lg) var(--space-2xl); }
  .logos__track img { transform: scale(0.85); }
  .logos__view.is-running .logos__track { padding: 0 calc(var(--space-2xl) / 2); animation-duration: 55s; }
}

/* ---------- Contact band ---------- */
.band { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--section-gap-s); }
.band :focus-visible { outline-color: var(--color-accent-ink); }
.band h2 { grid-column: 1 / span 6; font-size: var(--text-section); max-width: 20ch; }
.band__contact { grid-column: 8 / span 5; display: grid; gap: var(--space-md); align-content: center; justify-items: start; }
.band__contact a { font: 500 clamp(var(--text-lg), 2.6vw, var(--text-3xl))/1.1 var(--font-display); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.band__contact a:hover { text-decoration-thickness: 6px; }
@media (max-width: 60rem) {
  .band h2, .band__contact { grid-column: 1 / -1; }
  .band__contact a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: var(--section-gap-s) var(--space-xl); color: var(--color-ink);
  background: color-mix(in oklab, white 4%, transparent); border-top: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: end; }
.footer__statement { grid-column: 1 / span 7; display: grid; gap: var(--space-xl); justify-items: start; }
.footer__statement img { height: 44px; width: auto; }
.footer__links { grid-column: 9 / span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.footer__links h2 { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); letter-spacing: 0; margin-bottom: var(--space-sm); }
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.footer__links a { text-decoration: none; color: var(--color-ink-2); }
.footer__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.footer__legal { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .footer__statement, .footer__links { grid-column: 1 / -1; }
  .footer__links ul { gap: 0; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The company values, set as dictionary entries and shown one at a time (site.js) */
.values { margin: 0; display: grid; gap: var(--space-xl); width: 100%; max-width: 34rem; }
.value { display: grid; gap: var(--space-sm); align-content: start; padding-inline-start: var(--space-lg); border-inline-start: 2px solid var(--color-accent); }
.value dt { font: 500 var(--text-display-s)/1.05 var(--font-display); letter-spacing: var(--tracking-display); }
.value dd { margin: 0; display: grid; gap: var(--space-sm); font-family: var(--font-dict); font-size: var(--text-lg); line-height: 1.45; color: var(--color-ink-2); }
.value__meta { max-width: none; color: var(--color-muted); }
.value__ipa { color: var(--color-ink-2); margin-inline-end: var(--space-2xs); }
.value ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); counter-reset: sense; }
.value li { counter-increment: sense; display: grid; grid-template-columns: 1.4em minmax(0, 1fr); }
.value li::before { content: counter(sense); font-weight: 700; color: var(--color-ink); }
.value li > i { grid-column: 2; color: var(--color-muted); }
.values.is-rolling { gap: 0; }
.values.is-rolling .value { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(1.5rem); transition: opacity var(--dur-long) var(--ease-out), transform 600ms var(--ease-out), visibility 0s linear 600ms; }
.values.is-rolling .value.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.values.is-rolling .value.is-out { transform: translateY(-1.5rem); }
.values__pause { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-muted); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.3em; }
.values__pause:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
@media (max-width: 40rem) { .value dd { font-size: var(--text-md); } }

/* ---------- Language switch: a small glass pill fixed in the bottom-left corner ---------- */
.lang {
  position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: calc(var(--z-sticky-nav) - 2);
  display: flex; padding: var(--space-2xs); border: 1px solid var(--glass-line); border-radius: var(--radius-pill);
  background: linear-gradient(140deg, color-mix(in oklab, white 10%, transparent), color-mix(in oklab, white 4%, transparent)), color-mix(in oklab, var(--color-paper) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-muted); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: none; transition: color var(--m-in) var(--ease-out), background-color var(--m-in) var(--ease-out); }
.lang a:hover { color: var(--color-ink); }
.lang a[aria-current="true"] { background: var(--color-accent); color: var(--color-accent-ink); }

/* ---------- Vilkår: a long document with its contents beside it ---------- */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.doc__toc { grid-column: 1 / span 3; position: sticky; top: var(--space-3xl); padding: var(--space-lg); font-size: var(--text-sm); }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.doc__toc ol ol { margin-top: var(--space-xs); padding-inline-start: var(--space-md); }
.doc__toc a { color: var(--color-ink-2); text-decoration: none; }
.doc__toc a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.doc__toc > ol > li > a { color: var(--color-ink); font-weight: 500; }
.doc__body { grid-column: 5 / span 7; display: grid; gap: var(--space-3xl); }
.doc__part { display: grid; gap: var(--space-xl); }
.doc__part + .doc__part { padding-top: var(--space-3xl); border-top: 1px solid var(--color-rule); }
.doc__clause { display: grid; gap: var(--space-md); }
.doc__clause h3 { max-width: none; }
.doc__clause p, .doc__clause li { line-height: 1.65; }
.doc__clause ol { margin: 0; padding-inline-start: var(--space-lg); display: grid; gap: var(--space-md); }
.doc__clause ol li::marker { color: var(--color-muted); }
.doc__clause ul { margin: var(--space-xs) 0 0; padding-inline-start: var(--space-lg); display: grid; gap: var(--space-2xs); }
@media (max-width: 60rem) {
  .doc__toc { grid-column: 1 / -1; position: static; }
  .doc__toc ol ol { display: none; }
  .doc__body { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
/* The hero enters once on load */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes photo-settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: enter 700ms var(--ease-enter) both; }
  .hero .lead { animation: enter 700ms var(--ease-enter) 140ms both; }
  .hero .actions { animation: enter 700ms var(--ease-enter) 280ms both; }
  .hero__photo img { animation: photo-settle 1100ms var(--ease-enter) both; }
  .hero--split .media { animation: enter 800ms var(--ease-enter) 200ms both; }
}
/* Hover lifts only where there is a real pointer */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .tile:hover { transform: translateY(-2px); }
}
/* Visitors who ask for less motion get none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .tile:hover .tile__media img { transform: none; }
}
